docs
api
Cloud Monitor(CloudWatch)
QueryMetricDataSummary

Get Resource Attribute List - QueryMetricDataSummary

Overview

Get Resource Graph Attribute List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is QueryMetricDataSummary.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion, global products can be omitted, others must be passed.Yes
ProjectIdstringProject ID.Yes
ProductKeystringProduct TypeYes
OffsetintNumber of SkipsYes
LimitintCurrent Page Data SizeYes
Metrics.NstringSpecify the list of metrics to query, if not specified, the default set of metrics will be used.No
ResourceIds.NstringSpecify the list of resource IDs to queryNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
TraceIdstringtrace IDNo
TotalCountintTotalNo
DataQueryMetricDataSummaryRespDataDataNo

Data Model

QueryMetricDataSummaryRespData

Field NameTypeDescription InformationRequired
TotalintTotalNo
Listarray[ResourceSummary]Result SetNo

ResourceSummary

Field NameTypeDescription InformationRequired
RegionstringRegionNo
ZonestringAvailability ZoneNo
ProjectIdintProject IDNo
CompanyIdintCompany IDNo
ResourceIdstringResource IDNo
NamestringResource NameNo
RegionCNstringRegion Chinese NameNo
ZoneCNstringAvailability ZoneNo
ProductKeystringProduct TypeNo
OrganizationIdintProject IDNo
StatusintResource StatusNo
MonitorAttrarray[ResourceMonitorItem]The current values of various metrics of the resource, type is:
map[string][]MetricSingleSample
The key of the map is the metric name, and the value is the array of sample points.
No

ResourceMonitorItem

Field NameTypeDescription InformationRequired
MetricstringMetric NameNo
MetricValuesarray[MetricSingleSample]Metric Data ArrayNo

MetricSingleSample

Field NameTypeDescription InformationRequired
MetricstringMetric NameNo
TagsobjectThe k-v object of the metric's tagNo
ValueMetricSampleSingle sample point object of the indexNo

MetricSample

Field NameTypeDescription InformationRequired
TimestampfloattimestampNo
ValuefloatSample ValueNo

Example

Request Example

https://api.surfercloud.com/?Action=QueryMetricDataSummary
&Region=cn-zj
&ProjectId=CXUBJRIx
&ProductKey=jRIQzjck
&Offset=9
&Limit=3
&Metrics.N=mZHSOGcV
&ResourceIds.N=gYnDoDyh

Response Example

{
  "Action": "QueryMetricDataSummaryResponse",
  "Data": {},
  "Message": "XNlHoNgi",
  "RetCode": 0,
  "TotalCount": 7,
  "TraceId": "vSFARHxW"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved