Creates a policy to pause alert notifications for an application group.

If the policy is valid, no alert notifications are sent for the application group.

This topic describes how to create the PauseNotify policy to pause alert notifications for the 7301**** application group. The StartTime parameter is set to 1622949300000 and the EndTime parameter is set to 1623208500000. This indicates that the policy is valid from 2021-06-06 11:15:00 UTC+8 to 2021-06-09 11:15:00 UTC+8.

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
Action String Yes CreateMonitorGroupNotifyPolicy

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

GroupId String Yes 7301****

The ID of the application group.

PolicyType String Yes PauseNotify

The type of the policy. Valid value: PauseNotify.

StartTime Long Yes 1622949300000

The timestamp that indicates the start time of the validity period for the policy.

This value is a UNIX timestamp that represents the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

EndTime Long Yes 1623208500000

The timestamp that indicates the end time of the validity period for the policy.

This value is a UNIX timestamp that represents the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

Response parameters

Parameter Type Example Description
RequestId String 13356BCA-3EC3-4748-A771-2064DA69AEF1

The ID of the request.

Success String true

Indicates whether the call succeeds. Valid values:

  • true: The call succeeds.
  • false: The call fails.
Code String 200

The HTTP status code.

Note The HTTP status code 200 indicates that the call succeeds.
Result Integer 1

The number of entries that are returned.

Message String The Request is not authorization.

The error message.

For more information about common request parameters, see Common parameters.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateMonitorGroupNotifyPolicy
&GroupId=7301****
&PolicyType=PauseNotify
&StartTime=1551756547863
&EndTime=1551757147863
&<Common request parameters>

Sample success responses

XML format

<CreateMonitorGroupNotifyPolicyResponse>
		  <RequestId>13356BCA-3EC3-4748-A771-2064DA69AEF1</RequestId>
		  <Result>1</Result>
		  <Success>true</Success>
		  <Code>200</Code>
</CreateMonitorGroupNotifyPolicyResponse>

JSON format

{
  "RequestId":"13356BCA-3EC3-4748-A771-2064DA69AEF1",
  "Result": 1,
  "Success": true,
  "Code": "200"
}

Error codes

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