Docs
api
Cloud Monitor(CloudWatch)
QueryMetricDataSet

Query Monitoring Metric Data Set - QueryMetricDataSet

Overview

Query Monitoring Metrics Dataset

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is QueryMetricDataSet.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See Region and Zone ListYes
ProjectIdstringProject ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList APIYes
ProductKeystringResource TypeYes
StartTimeintStart TimeYes
EndTimeintDeadlineYes
MetricInfos.N.MetricstringMetric NameYes
MetricInfos.N.ResourceIdstringMetric’s associated resource idYes
TagList.N.TagKeystringThe key of the Tag of the metric to be queriedNo
TagValues.NstringTo query the Value of the Tag of the metricNo

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
TraceIdstringLog Link IDNo
DataQueryMetricDataRespQueryMetricDataRespNo

Data Model

QueryMetricDataResp

Field NameTypeDescription InformationRequired
Listarray[QueryMetricDataRespItem]Query Result SetNo

QueryMetricDataRespItem

Field NameTypeDescription InformationRequired
MetricstringMetric NameNo
TagsobjectAll tag keys and corresponding value arrays of the metric query results.

The format of Tags is, the key is the tagkey string, and the value is an array of tagValue strings.
No
Resultsarray[MetricResult]No

MetricResult

Field NameTypeDescription InformationRequired
ResourceIdstringUUID of the resourceNo
TagMapobjectTagMap is an object, both key and value are strings.
TagMap returns the key and value of all tags of the current series.
No
Valuesarray[MetricSample]No

MetricSample

Field NameTypeDescription InformationRequired
TimestampfloattimestampNo
ValuefloatSample ValueNo

Example

Request Example

https://api.dezai.com/?Action=QueryMetricDataSet
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=lBXDBARv
&ProductKey=YoLcjjOJ
&StartTime=2
&EndTime=1
&MetricInfos.N.Metric=wBhLvIzA
&MetricInfos.N.ResourceId=pAlImMnm
&MetricInfos.N.TagList.N.TagKey=bYSOyCNH
&MetricInfos.N.TagList.N.TagValues.N=jNRAlNmm

Response Example

{
  "Action": "QueryMetricDataSetResponse",
  "Data": {},
  "Message": "nPOVsgEJ",
  "RetCode": 0,
  "TraceId": "wbgFGCpd"
}