WebSphere Business Monitor, Version 6.2 Operating Systems: AIX, HP-UX, Linux, Solaris, Windows


KPI - KPI History Resource - POST Method

Use this URI to recalculate KPI History.

Resource URI

POST /models/{model id}/versions/{version}/kpis/history/{kpi id}?{parameters}

Parameters

Optional Parameters
NameValue TypeDescription
locale string
The locale. This value consists of lowercase ISO language code (ISO 639) and the uppercase ISO country code (ISO 3166) joined by an underscore (for example, en_US). Results will be returned in the locale specified. If no locale is specified, the locale of the REST server will be used.
historygenerate number
Number of hours to generate KPI History.
historyoverwrite boolean
Whether to overwrite the History Value and Prediction Basis value. Valid values are true and false. If false, the calculation will skip existing KPI History records. If true then the History Value and Prediction Basis Value will be updated.

Request Content

Usage:

The following parameter example will re-calculate the last 300 hours of KPI History records and overwrite the history value and prediction basis value:

?historygenerate=300&historyoverwrite=true

Response Content

The POST request type will update the KPI history and return an empty array {}.

Error Response Content

Detailed error information.

The default content-type is application/json.

MIME Type: application/json


+ View Schema
{ "description": "REST error response", 
  "type": "object",
  "properties":
   { "Status Code" : {"type":"integer"},
     "Error" : {"type":"string"},
   }
} 

Status Codes

The method returns one of the following status codes:
CodeDescription
200 OK
Successful completion - requested data returned. Note that the list may be empty.
403 Forbidden
Not authorized to request the resource.
404 Not Found
Resource not found or URL not supported.
400 Bad Request
The request contains invalid parameters or is missing parameters and inputs.
500 Internal Server Error
Internal error processing the request.

Available Since

6.2

Parent Topic: KPI History Resource