Description

Reset the OEABL WebApp metrics for the given ABL application.

HTTP Operation

DELETE

URI

host_name:port/oemanager/applications/ABL_app_name/webapps/Web_app_name/metrics

Content-Type

application/vnd.progress+json

Response codes

200 Success
500 Unexpected Server Error

Command-line example

curl -X PUT -v
http://localhost:16680/oemanager/applications/oepas1/webapps/ROOT/metrics -u 
username:password
-H "Content-Type: application/vnd.progress+json" -d {"clientASKResponseTimeout":160, "maxSessions":11,
"minSessions":1, "serviceFaultLevel":2} 
:

ABL HTTP client example

using Progress.Json.ObjectModel.*.
define variable resp as OpenEdge.Net.HTTP.IHttpResponse.
define variable jsonData as JsonObject.

jsonData = new Progress.Json.ObjectModel.JsonObject().
jsonData:Add('clientASKResponseTimeout',  160).
jsonData:Add('maxSessions',  11).
jsonData:Add('minSessions',  1).
jsonData:Add('serviceFaultLevel',  2).

resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client
   :Execute(OpenEdge.Net.HTTP.RequestBuilder
      :Put('http://localhost:16680/oemanager/applications/oepas1/webapps/ROOT/metrics', jsonData)
      :ContentType('application/vnd.progress+json') 
      :UsingBasicAuthentication(new OpenEdge.Net.HTTP.Credentials('PASOE Manager Application', 'username', 'password'))
      :Request
   ).

Request body example

{
  "operation": "RESET OE_BROKER METRICS",
  "outcome": "FAILURE",
  "result": "",
  "errmsg": " Unable to find OEABL service [ ROOT ]",
  "versionStr": "v12.7.0 ( 2023-04-20 )",
  "versionNo": 1
}