DescribeDrdsInstanceMonitor

更新时间:
复制 MD 格式

You can call the DescribeDrdsInstanceMonitor operation to query performance monitoring data for a PolarDB-X instance.

Description

This operation queries performance monitoring data for an instance within a specified time range based on performance metrics. By default, if you do not specify the PeriodMultiple parameter, the statistical period varies based on the time range:
  • If the time range is less than 1 day, the statistical period is 5 minutes.
  • If the time range is more than 1 day but less than 2 days, the statistical period is 10 minutes.
  • If the time range is more than 2 days but less than 5 days, the statistical period is 30 minutes.
  • If the time range is more than 5 days but less than one week, the statistical period is 1 hour.
  • If the time range is more than one week, the query is not supported.

Request parameters

Parameter nameTypeRequiredDescription
ActionStringYesA required parameter. Set the value to DescribeDrdsInstanceMonitor.
DrdsInstanceIdStringYesThe ID of the PolarDB-X instance.
KeyStringYesThe performance metrics. Separate multiple metrics with commas (,). For more information, see the Performance metrics table.
StartTimeLongYesThe start time of the query. This is a UNIX timestamp in milliseconds. For example: 1542814801930.
EndTimeLongYesThe end time of the query. This is a UNIX timestamp in milliseconds. For example: 1542944401930.
PeriodMultipleIntegerNoThe multiplier for the statistical period. The final statistical period is 5 minutes × PeriodMultiple. For example, if you set PeriodMultiple to 2, the statistical period is 10 minutes. If you set it to 12, the statistical period is 1 hour. If you do not specify this parameter, the default statistical period is used as described in the Description section.
Table 1. Performance metrics
Key-ValueDescription
cpuCPU utilization (Unit: %)
netNetwork traffic (Unit: kbps)
lqpsLogical queries per second (QPS)
pqpsPhysical QPS
lrtLogical response time (RT) (Unit: ms)
prtPhysical RT (Unit: ms)
conNumber of connections
threadNumber of active threads

Return values

ParameterTypeDescription
dataListAn array that consists of PartialPerformanceData objects.
Table 2. PartialPerformanceData details
ParameterTypeDescription
KeyStringThe performance metric. For more information, see the Performance metrics table.
UnitStringThe unit of the performance metric value.
ValuesListAn array that consists of PerformanceValue objects. It contains the values of the specified performance metric at different points in time.
Table 3. PerformanceValue details
ParameterTypeDescription
DateLongA UNIX timestamp in milliseconds.
ValueStringThe value of the performance metric at the corresponding time.

Error codes

Error codeError messageFault descriptionHTTP status code
ServiceUnableDRDS service is not enable for youThe service is not activated.400
ActionUnauthorizedThe specified action is not available for youYou are not authorized to perform this action.400
InvalidDRDSInstanceId.NotFoundThe DrdsInstanceId provided does not exist in our records.The specified instance ID does not exist.404
InvalidParameter.timeThe startTime and endTime must in one weekThe time range cannot exceed one week.400
InvalidParameter.periodMultipleThe periodMultiple is too larger than the time between startTime and endTimeThe statistical period, which is calculated as PeriodMultiple × 5 minutes, exceeds the specified time range (EndTime - StartTime).-