All Products
Search
Document Center

Cloud Monitor:ModifyGroupMonitoringAgentProcess

Last Updated:Oct 30, 2025

You can call the ModifyGroupMonitoringAgentProcess operation to modify the process monitoring settings for an application group.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cms:ModifyGroupMonitoringAgentProcess

update

*MonitoringAgentProcess

acs:cms::{#accountId}:group/{#groupId}

None None

Request parameters

Parameter

Type

Required

Description

Example

Id

string

Yes

The ID of the process monitoring job for the application group.

92E3065F-0980-4E31-9AA0-BA6****

GroupId

string

Yes

The ID of the application group.

6780****

MatchExpressFilterRelation

string

No

This parameter is deprecated. You can ignore it.

and

AlertConfig

array<object>

Yes

The configurations of the alert rule.

array<object>

No

None.

SilenceTime

string

No

The mute period. The value of N can be 1 to 200.

Unit: seconds. Minimum value: 3600. Default value: 86400.

Note

If monitoring data continuously exceeds the alert threshold, an alert notification is sent only once during each mute period.

86400

ComparisonOperator

string

Yes

The comparison operator for the threshold of the Critical alert level. The value of N can be 1 to 200. Valid values:

  • GreaterThanOrEqualToThreshold: greater than or equal to

  • GreaterThanThreshold: greater than

  • LessThanOrEqualToThreshold: less than or equal to

  • LessThanThreshold: less than

  • NotEqualToThreshold: not equal to

  • GreaterThanYesterday: greater than the value at the same time yesterday

  • LessThanYesterday: less than the value at the same time yesterday

  • GreaterThanLastWeek: greater than the value at the same time last week

  • LessThanLastWeek: less than the value at the same time last week

  • GreaterThanLastPeriod: greater than the value in the last monitoring cycle

  • LessThanLastPeriod: less than the value in the last monitoring cycle

GreaterThanOrEqualToThreshold

Webhook

string

No

The callback URL. A POST request is sent to this URL when an alert is triggered. The value of N can be 1 to 200.

http://www.aliyun.com

Times

string

Yes

The number of consecutive times that the alert level is reached. The value of N can be 1 to 200. Default value: 3.

Note

An alert is triggered only when the alert level is reached the specified number of consecutive times and the threshold is met.

3

EscalationsLevel

string

Yes

The alert level. The value of N can be 1 to 200. Valid values:

  • critical (default): critical

  • warn: warning

  • info: information

warn

EffectiveInterval

string

No

The time period when the alert rule is effective. The value of N can be 1 to 200.

00:00-22:59

NoEffectiveInterval

string

No

This parameter is deprecated. You can ignore it.

00:00-05:30

Threshold

string

Yes

The alert threshold. The value of N can be 1 to 200.

5

Statistics

string

No

The statistical method for alerts. The value of N can be 1 to 200.

Note

Only Average is supported.

Average

TargetList

array<object>

No

None.

object

No

None.

Id

string

No

The ID of the alert-triggered target.

For more information, see DescribeMetricRuleTargets.

1

Arn

string

No

The Alibaba Cloud Resource Name (ARN) of the resource.

For more information, see DescribeMetricRuleTargets.

The ARN of a resource is in the following format: acs:{product-abbreviation}:{regionId}:{userId}:/{resource-type}/{resource-name}/message. For example: acs:mns:cn-hangzhou:120886317861****:/queues/test123/message. The parameters are described as follows:

  • {product-abbreviation}: Currently, only Simple Message Queue (formerly MNS) is supported.

  • {userId}: The ID of your Alibaba Cloud account.

  • {regionId}: The region where the Simple Message Queue (formerly MNS) queue or subject is located.

  • {resource-type}: The type of the resource that receives alerts. Valid values:

    • queues: a queue.

    • topics: a subject.

  • {resource-name}: The name of the resource.

    • If the resource type is queues, the resource name is the queue name.

    • If the resource type is topics, the resource name is the subject name.

acs:mns:cn-hangzhou:120886317861****:/queues/test/message

Level

string

No

The alert level. Valid values:

  • INFO: information

  • WARN: warning

  • CRITICAL: critical

["INFO", "WARN", "CRITICAL"]

JsonParams

string

No

The JSON-formatted parameters for the alert callback.

{"customField1":"value1","customField2":"$.name"}

Response elements

Element

Type

Description

Example

object

None.

Code

string

The status code.

Note

A status code of 200 indicates that the request was successful.

200

Message

string

The error message.

The Request is not authorization.

RequestId

string

The request ID.

7985D471-3FA8-4EE9-8F4B-45C19DF3D36F

Success

boolean

Indicates whether the operation was successful. Valid values:

  • true: The operation was successful.

  • false: The operation failed.

true

Examples

Success response

JSON format

{
  "Code": "200",
  "Message": "The Request is not authorization.",
  "RequestId": "7985D471-3FA8-4EE9-8F4B-45C19DF3D36F",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

400 ParameterInvalid Illegal parameters.
500 InternalError The request processing has failed due to some unknown error.
403 AccessForbidden User not authorized to operate on the specified resource.
404 ResourceNotFound The specified resource is not found. The specified resource is not found.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.