Create metric type

The endpoint to assign agent policy for resources.

Leave Feedback

URL

POST https://{api-url}/This endpoint is used to create a metric type.

Sample URLs

https://{api-url}/api/v2/metric/tenants/client_7/metrictype

Parameters

FieldData TypeDescription
metricNameStringMetric type name.
displayNameStringMetric display name.
descriptionStringSummary of the metric type.
unitStringMetric type unit.
typeStringMetric type.
groupNameString(Optional) Metric group name.
displayUnitString(Optional) Unit name displayed in the graph.
unitLabelString(Optional) Label of the y-axis in the graph widget).
resourceTypeString(Optional) Resource type.
metricNameString(Optional) Metric type name.

Sample request

{
	"metricName" : "system.metric.device.test",
	"displayName" : "TestMetric",
	"description" : "Sample metric please ignore",
	"groupName" : "system.test.*",
	"unit" : "%",
	"type" : "Guage",
	"resourceType" : "CPU",
	"displayUnit" : "Percentage (%)",
	"unitLabel" : "Percentage (%)"
}

Sample response

Null