Vorheriges Thema: Get All Measures for a Characteristic

Nächstes Thema: Set a Metric Value to DB for a Service by Name

Set a Metric Value to DB for a Service by UUID

This web service sets aggregated metric data for a single metric.

HTTP Type

POST

Restriction

None. Open to all public users.

URI

{type}/SMI/{version}/service/{serviceUUID}/measures/{metricUUID}

Parameter

Description

{serviceUUID}

UUID of the service to which the metric data will be sent.

{metricUUID}

UUID of the metric for which the aggregated data is applicable.

&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.

&mdr

When setting aggregated metric data, defines the UUId of the source MDR.

Example:

This URI sets metric data for the specified service for the specified measure from the specified MDR.

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/service/99500098-c4b9-11df-bbd8-6b395a4ff3f3/metric/c791d9e0-9980-11df-b747-93be55be4ac3?key=df3936ec01c5d3adf9f0048116cd5b84&secret=13f6232ebf484e57103cd4ac234a22aa&updateTime=2010-08-20-19-32-05&metricValue=1&mdr=d5c63c4a-c4b9-11df-9ffc-63cfe0917981

Sample output of successful execution:

 {
"result":
	{
	"returnCode": "0",
	"errorMessage": "Operation Successful.",
	"resultCount": 0,
	}
}