This web service sets aggregated metric data for a single metric.
POST
None. Open to all public users.
{type}/SMI/{version}/service/{serviceName}/MDR/{mdrName}/metric/{metricName}
|
Parameter |
Description |
|
{serviceName} |
Name of the service to which the metric data will be sent. |
|
{metricName} |
Name of the metric for which the aggregated data is applicable. |
|
{mdrName} |
Name of the MDR that is the source of the metric data. |
|
&key |
The API Key that is provided when your application has been registered. |
|
&secret |
The Shared Secret that is provided when your application has been registered. |
|
&metricValue |
Defines the aggregated metric data value. |
|
&updateTime |
When setting metric data, specifies the time when the MDR retrieved the aggregated data value. The format of the date is YYYY-MM-DD-hh-mm-ss. |
Example:
The following example will set metric data for the “Total downtime” metric for the TestService service. The metric data is from the MDR TestMDR.
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/service/TestService/MDR/TestMDR/metric/Total downtime?updateTime=2011-1-8-20-9-35&metricValue=98&key=d63ccf3b9f3aa275b81588ee8d7b55ee&secret=10dd676e423a88c73673674c1b6d4860
Sample output of successful execution:
{
"result":
{
"returnCode": "0",
"errorMessage": "Operation Successful.",
"resultCount": 0,
}
}
| Copyright © 2012 CA. Alle Rechte vorbehalten. | Senden Sie CA Technologies eine E-Mail zu diesem Thema. |