Metric
A Metric is a monitoring metric data delivered from an external cloud service via a DataSource.
Package : spaceone.api.monitoring.plugin
Metric
Metric Methods:
Method | Request | Response |
---|---|---|
list
Gets a list of all Metrics from a specific cloud service. You can use the method to list up the Metrics to collect before using the
get_data
method to collect the Metrics.
Type | Message |
---|---|
Request | |
Response |
get_data
Gets a Metric from a specific cloud service resource
instance
. By specifying the time period to collect the Metric, the Metric data value of theinstance
during the period is returned.
Type | Message |
---|---|
Request | |
Response |
Message
MetricDataInfo
Field | Type | Description |
---|---|---|
labels | ||
values |
MetricDataRequest
Field | Type | Required | Description |
---|---|---|---|
options | ✔ | ||
secret_data | ✔ | ||
metric_query | ✔ | ||
metric | string | ✔ | metric identifier in case of requested metric info is not a single. |
start | string | ✔ | |
end | string | ✔ | |
period | ✘ | ||
stat | string | ✘ | |
schema | string | ✘ |
MetricInfo
Field | Type | Description |
---|---|---|
key | string | |
name | string | |
group | string | |
unit | ||
metric_query |
MetricRequest
Field | Type | Required | Description |
---|---|---|---|
options | ✔ | ||
secret_data | ✔ | ||
query | ✔ | ||
schema | string | ✘ |
MetricsInfo
Field | Type | Description |
---|---|---|
metrics |
Last updated