docs
api
Cloud Monitor(CloudWatch)
GetProductMetrics

Get the metric list associated with cloud products - GetProductMetrics

Overview

Get the metric list associated with cloud products

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetProductMetrics.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
ProductKeystringCloud product key, for example UHOST-uhostYes

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
DataGetProductMetricsRespDataReturn DataYes

Data Model

GetProductMetricsRespData

Field NameTypeDescription InformationRequired
TotalintTotal number of query resultsNo
Listarray[Metirc]Metric ListNo
UnitConfigsarray[MetricUnitConfig]Unit Conversion InformationNo

Metirc

Field NameTypeDescription InformationRequired
ProductTypeintCloud Product IDNo
UnitIDintUnit IDNo
MetricIDintMetric IDNo
MetricstringUnique Indicator Identifier (uhost_cpu_usage)No
MetricEnNamestringMetric English NameNo
MetricChNamestringMetric Chinese NameNo
MetricEnDescstringMetric English DescriptionNo
MetricChDescstringMetric Chinese DescriptionNo
MetricGroupstringMetric Classification/Metric GroupNo
FrequencyMsintReporting Frequency MillisecondsNo
UnitMetricUnitUnitNo
CreatedBystringCreatorNo
CreatedAtstringCreation TimeNo
UpdatedBystringModifierNo
UpdatedAtstringModification TimeNo

MetricUnitConfig

Field NameTypeDescription InformationRequired
UnitCnNamesarray[string]List of Metric Chinese NamesNo
UnitEnNamesarray[string]List of Indicator English NamesNo
ConversionFactorintConversion FactorNo
ConversionRulesarray[ConversionRule]Conversion RulesNo

ConversionRule

Field NameTypeDescription InformationRequired
FromstringSourceNo
TostringTargetNo
ConversionFactorintConversion FactorNo

MetricUnit

Field NameTypeDescription InformationRequired
UnitIDintUnit IDNo
GroupIdintGroupIdNo
UnitEnNamestringEnglish Name of the UnitNo
UnitChNamestringCompany Chinese NameNo
UnitDescstringUnit DescriptionNo
ConversionFactorintConversion FactorNo
CreatedBystringCreatorNo
UpdatedBystringModifierNo
CreatedAtstringCreation TimeNo
UpdatedAtstringModification TimeNo
DeletedAtintDeletion TimeNo

Example

Request Example

https://api.surfercloud.com/?Action=GetProductMetrics
&ProductKey=jVhlepWB
&MetricGroup=XQkJSCbW

Response Example

{
  "Action": "GetProductMetricsResponse",
  "List": [
    {
      "CreatedAt": 1,
      "CreatedBy": "tLhKOVLD",
      "FrequencyMs": 9,
      "Id": 1,
      "Metric": "ugUWVHdH",
      "MetricChDesc": "qVkXFHAM",
      "MetricChName": "LNuoYvdb",
      "MetricEnDesc": "TSlSuWGC",
      "MetricEnName": "CLhJOIQh",
      "MetricGroup": "YdeQeLBt",
      "MetricID": 6,
      "ProductType": 3,
      "UnitID": 2,
      "UpdateAt": 8,
      "UpdateBy": "fchAAjJb"
    }
  ],
  "RetCode": 0,
  "Total": 9
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved