GroupMetricRuleProps
Properties for defining a GroupMetricRule
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cms-groupmetricrule
Initializer
import ros_cdk_cms
ros_cdk_cms.GroupMetricRuleProps(
category: typing.Union[str, IResolvable],
escalations: typing.Union[IResolvable, EscalationsProperty],
group_id: typing.Union[str, IResolvable],
metric_name: typing.Union[str, IResolvable],
namespace: typing.Union[str, IResolvable],
rule_id: typing.Union[str, IResolvable],
rule_name: typing.Union[str, IResolvable],
dimensions: typing.Union[str, IResolvable] = None,
effective_interval: typing.Union[str, IResolvable] = None,
email_subject: typing.Union[str, IResolvable] = None,
interval: typing.Union[typing.Union[int, float], IResolvable] = None,
no_effective_interval: typing.Union[str, IResolvable] = None,
period: typing.Union[typing.Union[int, float], IResolvable] = None,
silence_time: typing.Union[typing.Union[int, float], IResolvable] = None,
webhook: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
category |
typing.Union[str, ros_cdk_core.IResolvable] |
Property category: The abbreviation of the service name. |
escalations |
typing.Union[ros_cdk_core.IResolvable, EscalationsProperty] |
Property escalations: undefined. |
group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property groupId: The ID of application group. |
metric_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property metricName: The name of the metric. |
namespace |
typing.Union[str, ros_cdk_core.IResolvable] |
Property namespace: The data namespace of the service. |
rule_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property ruleId: The ID of the alert rule. |
rule_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property ruleName: The name of the alert rule. |
dimensions |
typing.Union[str, ros_cdk_core.IResolvable] |
Property dimensions: The expended resource dimensions. |
effective_interval |
typing.Union[str, ros_cdk_core.IResolvable] |
Property effectiveInterval: The period when the alert rule is effective. |
email_subject |
typing.Union[str, ros_cdk_core.IResolvable] |
Property emailSubject: The subject of the alert notification email. |
interval |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property interval: The detection period of alerts. |
no_effective_interval |
typing.Union[str, ros_cdk_core.IResolvable] |
Property noEffectiveInterval: The period when the alert rule is ineffective. |
period |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property period: The aggregation period. |
silence_time |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property silenceTime: The duration of the mute period during which new alerts are not sent even if the trigger conditions are met. |
webhook |
typing.Union[str, ros_cdk_core.IResolvable] |
Property webhook: The URL of the callback triggered when an alert occurs. |
category
Required
category: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property category: The abbreviation of the service name.
Valid values: ECS (including Alibaba Cloud and non-Alibaba Cloud hosts) RDS (ApsaraDB for RDS) ADS (AnalyticDB) SLB (Server Load Balancer) VPC (Virtual Private Cloud) APIGATEWAY (API Gateway) CDN CS (Container Service for Swarm) DCDN (Dynamic Route for CDN) DDoS (distributed denial of service) EIP (Elastic IP) ELASTICSEARCH (Elasticsearch) EMR (E-MapReduce) ESS (Auto Scaling) HBASE (ApsaraDB for HBase) IOT_EDGE (IoT Edge) K8S_POD (k8s pod) KVSTORE_SHARDING (ApsaraDB for Redis cluster version) KVSTORE_SPLITRW (ApsaraDB for Redis read/write splitting version) KVSTORE_STANDARD (ApsaraDB for Redis standard version) MEMCACHE (ApsaraDB for Memcache) MNS (Message Service) MONGODB (ApsaraDB for MongoDB replica set instances) MONGODB_CLUSTER (ApsaraDB for MongoDB cluster version) MONGODB_SHARDING (ApsaraDB for MongoDB sharded clusters) MQ_TOPIC (Message Service topic) OCS (original version of ApsaraDB for Memcache) OPENSEARCH (Open Search) OSS (Object Storage Service) POLARDB (ApsaraDB for POLARDB) PETADATA (HybridDB for MySQL) SCDN (Secure Content Delivery Network) SHAREBANDWIDTHPACKAGES (shared bandwidth package) SLS (Log Service) VPN (VPN Gateway)
escalations
Required
escalations: typing.Union[IResolvable, EscalationsProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, EscalationsProperty]
Property escalations: undefined.
group_id
Required
group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property groupId: The ID of application group.
metric_name
Required
metric_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property metricName: The name of the metric.
For more information, call DescribeMetricMetaList or see Preset metrics reference.
namespace
Required
namespace: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property namespace: The data namespace of the service.
For more information, call DescribeMetricMetaList or see Preset metrics reference.
rule_id
Required
rule_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ruleId: The ID of the alert rule.
The IDs of alert rules are generated by callers to ensure uniqueness.
rule_name
Required
rule_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ruleName: The name of the alert rule.
dimensions
Optional
dimensions: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property dimensions: The expended resource dimensions.
effective_interval
Optional
effective_interval: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property effectiveInterval: The period when the alert rule is effective.
email_subject
Optional
email_subject: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property emailSubject: The subject of the alert notification email.
interval
Optional
interval: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property interval: The detection period of alerts.
no_effective_interval
Optional
no_effective_interval: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property noEffectiveInterval: The period when the alert rule is ineffective.
period
Optional
period: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property period: The aggregation period.
Unite: second.
silence_time
Optional
silence_time: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property silenceTime: The duration of the mute period during which new alerts are not sent even if the trigger conditions are met.
Unit: second. Default value: 86400. Minimum value: 60.
webhook
Optional
webhook: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property webhook: The URL of the callback triggered when an alert occurs.