Metric
A Metric is a monitoring metric of a specific cloud service delivered from a DataSource.
Package : spaceone.api.monitoring.v1
Metric
list
GET /monitoring/v1/data-source/{data_source_id}/metrics
Gets a list of all Metrics of one or more specified Resources. The parameter
resources
is a list of Resources from which to get a list of Metrics collected.
Request
Response
{
"data_source_id": "ds-31190a65a42a",
"resource_type": "inventory.CloudService",
"resources": [
"cloud-svc-cd0105d255da"
],
"domain_id": "domain-58010aa2e451"
}
get_data
GET /monitoring/v1/data-source/{data_source_id}/metric-data
Gets data of a single Metric. You must specify the parameter
metric
to get data of. You can specify theperiod
to get data for.
Request
Response
{
"data_source_id": "ds-31190a65a42a",
"resource_type": "inventory.CloudService",
"resources": [
"cloud-svc-cd0105d255da"
],
"metric": "AWS/EC2.CPUUtilization",
"start": "2022-06-21T03:11:29.438Z",
"end": "2022-06-21T04:11:29.438Z",
"stat": "AVERAGE",
"domain_id": "domain-58010aa2e451"
}
Message
MetricDataInfo
labels
values
domain_id
string
MetricDataRequest
data_source_id
string
✔
metric_query
✔
metric
string
✔
start
string
✔
end
string
✔
period
✘
stat
string
✘
domain_id
string
✔
MetricInfo
key
string
name
string
group
string
unit
metric_query
MetricRequest
data_source_id
string
✔
resources
list of string
✔
domain_id
string
✔
MetricsInfo
metrics
available_resources
domain_id
string
Last updated
Was this helpful?