You can call this operation to query the monitoring granularity of an apsaradb for MongoDB instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID provided by Alibaba Cloud for you to access services.

Action String No DescribeDBInstanceMonitor

The operation that you want to perform. Set the value to DescribeDBInstanceMonitor.

Response parameters

Parameter Type Example Description
Granularity String 1

Monitoring granularity. The return value is 1or300 in seconds.

RequestId String EFD65226-08CC-4C4D-B6A4-CB3C382F67B0

The ID of the request.

Examples

Sample requests


http(s)://mongodb.aliyuncs.com/? Action=DescribeDBInstanceMonitor
&DBInstanceId=dds-bpxxxxxxxx
&<Common request parameters>

Sample success responses

XML format

<DescribeDBInstanceMonitorResponse>
	  <Granularity>1</Granularity>
	  <RequestId>EFD65226-08CC-4C4D-B6A4-CB3C382F67B0</RequestId>
</DescribeDBInstanceMonitorResponse>

JSON format

{
	"Granularity":1,
	"RequestId":"EFD65226-08CC-4C4D-B6A4-CB3C382F67B0"
}

Error codes.

For a list of error codes, visit the API Error Center.