Data from Cloud Product Monitor, Site Monitor, or Custom Monitor with a defined time range can be accessed using multiple dimensions, metrics, and statistics.
API restriction
Each query can include up to 100 dimension combinations.
Cloud product identifier. For values, refer to [Cloud Product Identifier List](BCM/Cloud Product Monitor List/Cloud Product Monitor Object Type List.md)
Yes
Body
region
String
Region identifier. For values, refer to [Region List](BCM/API Reference/Service domain.md)
Yes
Body
resourceType
String
Monitor object type, default value: Instance. For values, refer to [Cloud Product Monitor Object Type List](BCM/Cloud Product Monitor List/Cloud Product Monitor Object Type List.md)
No
Body
metricNames
List<String>
List of Monitor Metrics
Yes
Body
statistics
List<String>
List of statistic methods includes: average, maximum, minimum, sum, and sampleCount. If left empty, the latest original value will be returned by default.
Time corresponding to the statistical period of Metric, default is the current time. Refer to [Date and Time](BCM/API Reference/General Description.md), expressed in UTC date
Yes
Body
Dimension
Name
Types
Description
Required or not
Parameter location
name
String
Dimension key
Yes
Body
value
String
Dimension value
Yes
Body
Parameter explanation
For cloud product identifier like Scope, Metric, Statistic, and Dimension, refer to [Core Concepts](BCM/Product Description/Core concepts.md).
Response parameters
Name
Types
Description
requestId
String
Request identifier
code
String
Return code
message
String
Error message
metrics
List<AllDataMetric>
Monitor Metric
AllDataMetric
Name
Types
Description
region
String
Region identifier
scope
String
Cloud product identifier
userId
String
User ID
resourceId
String
Resource ID
metricName
String
Metric name
dimensions
List<Dimensions>
Dimension list
dataPoints
List<DataPoint>
Monitor Metric data
DataPoint
Name
Types
Description
average
double
Average of Metrics within the statistical period
sum
double
Sum of Metrics within the statistical period
minimum
double
Minimum value of Metrics within the statistical period
maximum
double
Maximum value of Metrics within the counting cycle
sampleCount
int
Number of DataPoints for the Metric within the statistical period
value
int
Original value of Metrics within the counting cycle
timestamp
DateTime
Time corresponding to the statistical period of Metric, refer to [Date and Time](BCM/API Reference/General Description.md), expressed in UTC date