Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.arms.getDispatchRules
Explore with Pulumi AI
This data source provides the Arms Dispatch Rules of the current Alibaba Cloud user.
NOTE: Available since v1.136.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.arms.AlertContact("default", {
    alertContactName: "example_value",
    email: "example_value@aaa.com",
});
const defaultAlertContactGroup = new alicloud.arms.AlertContactGroup("default", {
    alertContactGroupName: "example_value",
    contactIds: [_default.id],
});
const defaultDispatchRule = new alicloud.arms.DispatchRule("default", {
    dispatchRuleName: "example_value",
    dispatchType: "CREATE_ALERT",
    groupRules: [{
        groupWaitTime: 5,
        groupInterval: 15,
        repeatInterval: 100,
        groupingFields: ["alertname"],
    }],
    labelMatchExpressionGrids: [{
        labelMatchExpressionGroups: [{
            labelMatchExpressions: [{
                key: "_aliyun_arms_involvedObject_kind",
                value: "app",
                operator: "eq",
            }],
        }],
    }],
    notifyRules: [{
        notifyObjects: [
            {
                notifyObjectId: _default.id,
                notifyType: "ARMS_CONTACT",
                name: "example_value",
            },
            {
                notifyObjectId: defaultAlertContactGroup.id,
                notifyType: "ARMS_CONTACT_GROUP",
                name: "example_value",
            },
        ],
        notifyChannels: [
            "dingTalk",
            "wechat",
        ],
        notifyStartTime: "10:00",
        notifyEndTime: "23:00",
    }],
});
const ids = alicloud.arms.getDispatchRulesOutput({
    ids: [defaultDispatchRule.id],
});
export const armsDispatchRuleId1 = ids.apply(ids => ids.rules?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.arms.AlertContact("default",
    alert_contact_name="example_value",
    email="example_value@aaa.com")
default_alert_contact_group = alicloud.arms.AlertContactGroup("default",
    alert_contact_group_name="example_value",
    contact_ids=[default.id])
default_dispatch_rule = alicloud.arms.DispatchRule("default",
    dispatch_rule_name="example_value",
    dispatch_type="CREATE_ALERT",
    group_rules=[{
        "group_wait_time": 5,
        "group_interval": 15,
        "repeat_interval": 100,
        "grouping_fields": ["alertname"],
    }],
    label_match_expression_grids=[{
        "label_match_expression_groups": [{
            "label_match_expressions": [{
                "key": "_aliyun_arms_involvedObject_kind",
                "value": "app",
                "operator": "eq",
            }],
        }],
    }],
    notify_rules=[{
        "notify_objects": [
            {
                "notify_object_id": default.id,
                "notify_type": "ARMS_CONTACT",
                "name": "example_value",
            },
            {
                "notify_object_id": default_alert_contact_group.id,
                "notify_type": "ARMS_CONTACT_GROUP",
                "name": "example_value",
            },
        ],
        "notify_channels": [
            "dingTalk",
            "wechat",
        ],
        "notify_start_time": "10:00",
        "notify_end_time": "23:00",
    }])
ids = alicloud.arms.get_dispatch_rules_output(ids=[default_dispatch_rule.id])
pulumi.export("armsDispatchRuleId1", ids.rules[0].id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := arms.NewAlertContact(ctx, "default", &arms.AlertContactArgs{
			AlertContactName: pulumi.String("example_value"),
			Email:            pulumi.String("example_value@aaa.com"),
		})
		if err != nil {
			return err
		}
		defaultAlertContactGroup, err := arms.NewAlertContactGroup(ctx, "default", &arms.AlertContactGroupArgs{
			AlertContactGroupName: pulumi.String("example_value"),
			ContactIds: pulumi.StringArray{
				_default.ID(),
			},
		})
		if err != nil {
			return err
		}
		defaultDispatchRule, err := arms.NewDispatchRule(ctx, "default", &arms.DispatchRuleArgs{
			DispatchRuleName: pulumi.String("example_value"),
			DispatchType:     pulumi.String("CREATE_ALERT"),
			GroupRules: arms.DispatchRuleGroupRuleArray{
				&arms.DispatchRuleGroupRuleArgs{
					GroupWaitTime:  pulumi.Int(5),
					GroupInterval:  pulumi.Int(15),
					RepeatInterval: pulumi.Int(100),
					GroupingFields: pulumi.StringArray{
						pulumi.String("alertname"),
					},
				},
			},
			LabelMatchExpressionGrids: arms.DispatchRuleLabelMatchExpressionGridArray{
				&arms.DispatchRuleLabelMatchExpressionGridArgs{
					LabelMatchExpressionGroups: arms.DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupArray{
						&arms.DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupArgs{
							LabelMatchExpressions: arms.DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupLabelMatchExpressionArray{
								&arms.DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupLabelMatchExpressionArgs{
									Key:      pulumi.String("_aliyun_arms_involvedObject_kind"),
									Value:    pulumi.String("app"),
									Operator: pulumi.String("eq"),
								},
							},
						},
					},
				},
			},
			NotifyRules: arms.DispatchRuleNotifyRuleArray{
				&arms.DispatchRuleNotifyRuleArgs{
					NotifyObjects: arms.DispatchRuleNotifyRuleNotifyObjectArray{
						&arms.DispatchRuleNotifyRuleNotifyObjectArgs{
							NotifyObjectId: _default.ID(),
							NotifyType:     pulumi.String("ARMS_CONTACT"),
							Name:           pulumi.String("example_value"),
						},
						&arms.DispatchRuleNotifyRuleNotifyObjectArgs{
							NotifyObjectId: defaultAlertContactGroup.ID(),
							NotifyType:     pulumi.String("ARMS_CONTACT_GROUP"),
							Name:           pulumi.String("example_value"),
						},
					},
					NotifyChannels: pulumi.StringArray{
						pulumi.String("dingTalk"),
						pulumi.String("wechat"),
					},
					NotifyStartTime: pulumi.String("10:00"),
					NotifyEndTime:   pulumi.String("23:00"),
				},
			},
		})
		if err != nil {
			return err
		}
		ids := arms.GetDispatchRulesOutput(ctx, arms.GetDispatchRulesOutputArgs{
			Ids: pulumi.StringArray{
				defaultDispatchRule.ID(),
			},
		}, nil)
		ctx.Export("armsDispatchRuleId1", ids.ApplyT(func(ids arms.GetDispatchRulesResult) (*string, error) {
			return &ids.Rules[0].Id, nil
		}).(pulumi.StringPtrOutput))
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Arms.AlertContact("default", new()
    {
        AlertContactName = "example_value",
        Email = "example_value@aaa.com",
    });
    var defaultAlertContactGroup = new AliCloud.Arms.AlertContactGroup("default", new()
    {
        AlertContactGroupName = "example_value",
        ContactIds = new[]
        {
            @default.Id,
        },
    });
    var defaultDispatchRule = new AliCloud.Arms.DispatchRule("default", new()
    {
        DispatchRuleName = "example_value",
        DispatchType = "CREATE_ALERT",
        GroupRules = new[]
        {
            new AliCloud.Arms.Inputs.DispatchRuleGroupRuleArgs
            {
                GroupWaitTime = 5,
                GroupInterval = 15,
                RepeatInterval = 100,
                GroupingFields = new[]
                {
                    "alertname",
                },
            },
        },
        LabelMatchExpressionGrids = new[]
        {
            new AliCloud.Arms.Inputs.DispatchRuleLabelMatchExpressionGridArgs
            {
                LabelMatchExpressionGroups = new[]
                {
                    new AliCloud.Arms.Inputs.DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupArgs
                    {
                        LabelMatchExpressions = new[]
                        {
                            new AliCloud.Arms.Inputs.DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupLabelMatchExpressionArgs
                            {
                                Key = "_aliyun_arms_involvedObject_kind",
                                Value = "app",
                                Operator = "eq",
                            },
                        },
                    },
                },
            },
        },
        NotifyRules = new[]
        {
            new AliCloud.Arms.Inputs.DispatchRuleNotifyRuleArgs
            {
                NotifyObjects = new[]
                {
                    new AliCloud.Arms.Inputs.DispatchRuleNotifyRuleNotifyObjectArgs
                    {
                        NotifyObjectId = @default.Id,
                        NotifyType = "ARMS_CONTACT",
                        Name = "example_value",
                    },
                    new AliCloud.Arms.Inputs.DispatchRuleNotifyRuleNotifyObjectArgs
                    {
                        NotifyObjectId = defaultAlertContactGroup.Id,
                        NotifyType = "ARMS_CONTACT_GROUP",
                        Name = "example_value",
                    },
                },
                NotifyChannels = new[]
                {
                    "dingTalk",
                    "wechat",
                },
                NotifyStartTime = "10:00",
                NotifyEndTime = "23:00",
            },
        },
    });
    var ids = AliCloud.Arms.GetDispatchRules.Invoke(new()
    {
        Ids = new[]
        {
            defaultDispatchRule.Id,
        },
    });
    return new Dictionary<string, object?>
    {
        ["armsDispatchRuleId1"] = ids.Apply(getDispatchRulesResult => getDispatchRulesResult.Rules[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.arms.AlertContact;
import com.pulumi.alicloud.arms.AlertContactArgs;
import com.pulumi.alicloud.arms.AlertContactGroup;
import com.pulumi.alicloud.arms.AlertContactGroupArgs;
import com.pulumi.alicloud.arms.DispatchRule;
import com.pulumi.alicloud.arms.DispatchRuleArgs;
import com.pulumi.alicloud.arms.inputs.DispatchRuleGroupRuleArgs;
import com.pulumi.alicloud.arms.inputs.DispatchRuleLabelMatchExpressionGridArgs;
import com.pulumi.alicloud.arms.inputs.DispatchRuleNotifyRuleArgs;
import com.pulumi.alicloud.arms.ArmsFunctions;
import com.pulumi.alicloud.arms.inputs.GetDispatchRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var default_ = new AlertContact("default", AlertContactArgs.builder()
            .alertContactName("example_value")
            .email("example_value@aaa.com")
            .build());
        var defaultAlertContactGroup = new AlertContactGroup("defaultAlertContactGroup", AlertContactGroupArgs.builder()
            .alertContactGroupName("example_value")
            .contactIds(default_.id())
            .build());
        var defaultDispatchRule = new DispatchRule("defaultDispatchRule", DispatchRuleArgs.builder()
            .dispatchRuleName("example_value")
            .dispatchType("CREATE_ALERT")
            .groupRules(DispatchRuleGroupRuleArgs.builder()
                .groupWaitTime(5)
                .groupInterval(15)
                .repeatInterval(100)
                .groupingFields("alertname")
                .build())
            .labelMatchExpressionGrids(DispatchRuleLabelMatchExpressionGridArgs.builder()
                .labelMatchExpressionGroups(DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupArgs.builder()
                    .labelMatchExpressions(DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupLabelMatchExpressionArgs.builder()
                        .key("_aliyun_arms_involvedObject_kind")
                        .value("app")
                        .operator("eq")
                        .build())
                    .build())
                .build())
            .notifyRules(DispatchRuleNotifyRuleArgs.builder()
                .notifyObjects(                
                    DispatchRuleNotifyRuleNotifyObjectArgs.builder()
                        .notifyObjectId(default_.id())
                        .notifyType("ARMS_CONTACT")
                        .name("example_value")
                        .build(),
                    DispatchRuleNotifyRuleNotifyObjectArgs.builder()
                        .notifyObjectId(defaultAlertContactGroup.id())
                        .notifyType("ARMS_CONTACT_GROUP")
                        .name("example_value")
                        .build())
                .notifyChannels(                
                    "dingTalk",
                    "wechat")
                .notifyStartTime("10:00")
                .notifyEndTime("23:00")
                .build())
            .build());
        final var ids = ArmsFunctions.getDispatchRules(GetDispatchRulesArgs.builder()
            .ids(defaultDispatchRule.id())
            .build());
        ctx.export("armsDispatchRuleId1", ids.applyValue(getDispatchRulesResult -> getDispatchRulesResult).applyValue(ids -> ids.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id())));
    }
}
resources:
  default:
    type: alicloud:arms:AlertContact
    properties:
      alertContactName: example_value
      email: example_value@aaa.com
  defaultAlertContactGroup:
    type: alicloud:arms:AlertContactGroup
    name: default
    properties:
      alertContactGroupName: example_value
      contactIds:
        - ${default.id}
  defaultDispatchRule:
    type: alicloud:arms:DispatchRule
    name: default
    properties:
      dispatchRuleName: example_value
      dispatchType: CREATE_ALERT
      groupRules:
        - groupWaitTime: 5
          groupInterval: 15
          repeatInterval: 100
          groupingFields:
            - alertname
      labelMatchExpressionGrids:
        - labelMatchExpressionGroups:
            - labelMatchExpressions:
                - key: _aliyun_arms_involvedObject_kind
                  value: app
                  operator: eq
      notifyRules:
        - notifyObjects:
            - notifyObjectId: ${default.id}
              notifyType: ARMS_CONTACT
              name: example_value
            - notifyObjectId: ${defaultAlertContactGroup.id}
              notifyType: ARMS_CONTACT_GROUP
              name: example_value
          notifyChannels:
            - dingTalk
            - wechat
          notifyStartTime: 10:00
          notifyEndTime: 23:00
variables:
  ids:
    fn::invoke:
      function: alicloud:arms:getDispatchRules
      arguments:
        ids:
          - ${defaultDispatchRule.id}
outputs:
  armsDispatchRuleId1: ${ids.rules[0].id}
Using getDispatchRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDispatchRules(args: GetDispatchRulesArgs, opts?: InvokeOptions): Promise<GetDispatchRulesResult>
function getDispatchRulesOutput(args: GetDispatchRulesOutputArgs, opts?: InvokeOptions): Output<GetDispatchRulesResult>def get_dispatch_rules(dispatch_rule_name: Optional[str] = None,
                       enable_details: Optional[bool] = None,
                       ids: Optional[Sequence[str]] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDispatchRulesResult
def get_dispatch_rules_output(dispatch_rule_name: Optional[pulumi.Input[str]] = None,
                       enable_details: Optional[pulumi.Input[bool]] = None,
                       ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       name_regex: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDispatchRulesResult]func GetDispatchRules(ctx *Context, args *GetDispatchRulesArgs, opts ...InvokeOption) (*GetDispatchRulesResult, error)
func GetDispatchRulesOutput(ctx *Context, args *GetDispatchRulesOutputArgs, opts ...InvokeOption) GetDispatchRulesResultOutput> Note: This function is named GetDispatchRules in the Go SDK.
public static class GetDispatchRules 
{
    public static Task<GetDispatchRulesResult> InvokeAsync(GetDispatchRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetDispatchRulesResult> Invoke(GetDispatchRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDispatchRulesResult> getDispatchRules(GetDispatchRulesArgs args, InvokeOptions options)
public static Output<GetDispatchRulesResult> getDispatchRules(GetDispatchRulesArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:arms/getDispatchRules:getDispatchRules
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DispatchRule stringName 
- The name of the dispatch rule.
- EnableDetails bool
- Default to false. Set it totruecan output more details about resource attributes.
- Ids List<string>
- A list of dispatch rule id.
- NameRegex string
- A regex string to filter results by Dispatch Rule name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- DispatchRule stringName 
- The name of the dispatch rule.
- EnableDetails bool
- Default to false. Set it totruecan output more details about resource attributes.
- Ids []string
- A list of dispatch rule id.
- NameRegex string
- A regex string to filter results by Dispatch Rule name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- dispatchRule StringName 
- The name of the dispatch rule.
- enableDetails Boolean
- Default to false. Set it totruecan output more details about resource attributes.
- ids List<String>
- A list of dispatch rule id.
- nameRegex String
- A regex string to filter results by Dispatch Rule name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- dispatchRule stringName 
- The name of the dispatch rule.
- enableDetails boolean
- Default to false. Set it totruecan output more details about resource attributes.
- ids string[]
- A list of dispatch rule id.
- nameRegex string
- A regex string to filter results by Dispatch Rule name.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- dispatch_rule_ strname 
- The name of the dispatch rule.
- enable_details bool
- Default to false. Set it totruecan output more details about resource attributes.
- ids Sequence[str]
- A list of dispatch rule id.
- name_regex str
- A regex string to filter results by Dispatch Rule name.
- output_file str
- File name where to save data source results (after running pulumi preview).
- dispatchRule StringName 
- The name of the dispatch rule.
- enableDetails Boolean
- Default to false. Set it totruecan output more details about resource attributes.
- ids List<String>
- A list of dispatch rule id.
- nameRegex String
- A regex string to filter results by Dispatch Rule name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
getDispatchRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of Dispatch Rule names.
- Rules
List<Pulumi.Ali Cloud. Arms. Outputs. Get Dispatch Rules Rule> 
- A list of Arms Dispatch Rules. Each element contains the following attributes:
- DispatchRule stringName 
- The name of the dispatch rule.
- EnableDetails bool
- NameRegex string
- OutputFile string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Dispatch Rule names.
- Rules
[]GetDispatch Rules Rule 
- A list of Arms Dispatch Rules. Each element contains the following attributes:
- DispatchRule stringName 
- The name of the dispatch rule.
- EnableDetails bool
- NameRegex string
- OutputFile string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Dispatch Rule names.
- rules
List<GetDispatch Rules Rule> 
- A list of Arms Dispatch Rules. Each element contains the following attributes:
- dispatchRule StringName 
- The name of the dispatch rule.
- enableDetails Boolean
- nameRegex String
- outputFile String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Dispatch Rule names.
- rules
GetDispatch Rules Rule[] 
- A list of Arms Dispatch Rules. Each element contains the following attributes:
- dispatchRule stringName 
- The name of the dispatch rule.
- enableDetails boolean
- nameRegex string
- outputFile string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Dispatch Rule names.
- rules
Sequence[GetDispatch Rules Rule] 
- A list of Arms Dispatch Rules. Each element contains the following attributes:
- dispatch_rule_ strname 
- The name of the dispatch rule.
- enable_details bool
- name_regex str
- output_file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Dispatch Rule names.
- rules List<Property Map>
- A list of Arms Dispatch Rules. Each element contains the following attributes:
- dispatchRule StringName 
- The name of the dispatch rule.
- enableDetails Boolean
- nameRegex String
- outputFile String
Supporting Types
GetDispatchRulesRule   
- DispatchRule stringId 
- Dispatch rule ID.
- DispatchRule stringName 
- The name of the dispatch rule.
- GroupRules List<Pulumi.Ali Cloud. Arms. Inputs. Get Dispatch Rules Rule Group Rule> 
- Sets the event group.
- Id string
- The ID of the Dispatch Rule.
- LabelMatch List<Pulumi.Expression Grids Ali Cloud. Arms. Inputs. Get Dispatch Rules Rule Label Match Expression Grid> 
- Sets the dispatch rule.
- NotifyRules List<Pulumi.Ali Cloud. Arms. Inputs. Get Dispatch Rules Rule Notify Rule> 
- Sets the notification rule.
- NotifyTemplates List<Pulumi.Ali Cloud. Arms. Inputs. Get Dispatch Rules Rule Notify Template> 
- (Available since v1.238.0) The notification method.
- Status string
- The resource status of Alert Dispatch Rule.
- DispatchRule stringId 
- Dispatch rule ID.
- DispatchRule stringName 
- The name of the dispatch rule.
- GroupRules []GetDispatch Rules Rule Group Rule 
- Sets the event group.
- Id string
- The ID of the Dispatch Rule.
- LabelMatch []GetExpression Grids Dispatch Rules Rule Label Match Expression Grid 
- Sets the dispatch rule.
- NotifyRules []GetDispatch Rules Rule Notify Rule 
- Sets the notification rule.
- NotifyTemplates []GetDispatch Rules Rule Notify Template 
- (Available since v1.238.0) The notification method.
- Status string
- The resource status of Alert Dispatch Rule.
- dispatchRule StringId 
- Dispatch rule ID.
- dispatchRule StringName 
- The name of the dispatch rule.
- groupRules List<GetDispatch Rules Rule Group Rule> 
- Sets the event group.
- id String
- The ID of the Dispatch Rule.
- labelMatch List<GetExpression Grids Dispatch Rules Rule Label Match Expression Grid> 
- Sets the dispatch rule.
- notifyRules List<GetDispatch Rules Rule Notify Rule> 
- Sets the notification rule.
- notifyTemplates List<GetDispatch Rules Rule Notify Template> 
- (Available since v1.238.0) The notification method.
- status String
- The resource status of Alert Dispatch Rule.
- dispatchRule stringId 
- Dispatch rule ID.
- dispatchRule stringName 
- The name of the dispatch rule.
- groupRules GetDispatch Rules Rule Group Rule[] 
- Sets the event group.
- id string
- The ID of the Dispatch Rule.
- labelMatch GetExpression Grids Dispatch Rules Rule Label Match Expression Grid[] 
- Sets the dispatch rule.
- notifyRules GetDispatch Rules Rule Notify Rule[] 
- Sets the notification rule.
- notifyTemplates GetDispatch Rules Rule Notify Template[] 
- (Available since v1.238.0) The notification method.
- status string
- The resource status of Alert Dispatch Rule.
- dispatch_rule_ strid 
- Dispatch rule ID.
- dispatch_rule_ strname 
- The name of the dispatch rule.
- group_rules Sequence[GetDispatch Rules Rule Group Rule] 
- Sets the event group.
- id str
- The ID of the Dispatch Rule.
- label_match_ Sequence[Getexpression_ grids Dispatch Rules Rule Label Match Expression Grid] 
- Sets the dispatch rule.
- notify_rules Sequence[GetDispatch Rules Rule Notify Rule] 
- Sets the notification rule.
- notify_templates Sequence[GetDispatch Rules Rule Notify Template] 
- (Available since v1.238.0) The notification method.
- status str
- The resource status of Alert Dispatch Rule.
- dispatchRule StringId 
- Dispatch rule ID.
- dispatchRule StringName 
- The name of the dispatch rule.
- groupRules List<Property Map>
- Sets the event group.
- id String
- The ID of the Dispatch Rule.
- labelMatch List<Property Map>Expression Grids 
- Sets the dispatch rule.
- notifyRules List<Property Map>
- Sets the notification rule.
- notifyTemplates List<Property Map>
- (Available since v1.238.0) The notification method.
- status String
- The resource status of Alert Dispatch Rule.
GetDispatchRulesRuleGroupRule     
- GroupInterval int
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- GroupWait intTime 
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- GroupingFields List<string>
- The fields that are used to group events. Events with the same field content are assigned to a group. Alerts with the same specified grouping field are sent to the handler in separate notifications.
- RepeatInterval int
- The silence period of repeated alerts. All alerts are repeatedly sent at specified intervals until the alerts are cleared. The minimum value is 61. Default to 600.
- GroupInterval int
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- GroupWait intTime 
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- GroupingFields []string
- The fields that are used to group events. Events with the same field content are assigned to a group. Alerts with the same specified grouping field are sent to the handler in separate notifications.
- RepeatInterval int
- The silence period of repeated alerts. All alerts are repeatedly sent at specified intervals until the alerts are cleared. The minimum value is 61. Default to 600.
- groupInterval Integer
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- groupWait IntegerTime 
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- groupingFields List<String>
- The fields that are used to group events. Events with the same field content are assigned to a group. Alerts with the same specified grouping field are sent to the handler in separate notifications.
- repeatInterval Integer
- The silence period of repeated alerts. All alerts are repeatedly sent at specified intervals until the alerts are cleared. The minimum value is 61. Default to 600.
- groupInterval number
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- groupWait numberTime 
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- groupingFields string[]
- The fields that are used to group events. Events with the same field content are assigned to a group. Alerts with the same specified grouping field are sent to the handler in separate notifications.
- repeatInterval number
- The silence period of repeated alerts. All alerts are repeatedly sent at specified intervals until the alerts are cleared. The minimum value is 61. Default to 600.
- group_interval int
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- group_wait_ inttime 
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- grouping_fields Sequence[str]
- The fields that are used to group events. Events with the same field content are assigned to a group. Alerts with the same specified grouping field are sent to the handler in separate notifications.
- repeat_interval int
- The silence period of repeated alerts. All alerts are repeatedly sent at specified intervals until the alerts are cleared. The minimum value is 61. Default to 600.
- groupInterval Number
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- groupWait NumberTime 
- The duration for which the system waits after the first alert is sent. After the duration, all alerts are sent in a single notification to the handler.
- groupingFields List<String>
- The fields that are used to group events. Events with the same field content are assigned to a group. Alerts with the same specified grouping field are sent to the handler in separate notifications.
- repeatInterval Number
- The silence period of repeated alerts. All alerts are repeatedly sent at specified intervals until the alerts are cleared. The minimum value is 61. Default to 600.
GetDispatchRulesRuleLabelMatchExpressionGrid       
- labelMatch List<Property Map>Expression Groups 
- Sets the dispatch rule.
GetDispatchRulesRuleLabelMatchExpressionGridLabelMatchExpressionGroup           
- labelMatch List<Property Map>Expressions 
- Sets the dispatch rule.
GetDispatchRulesRuleLabelMatchExpressionGridLabelMatchExpressionGroupLabelMatchExpression              
GetDispatchRulesRuleNotifyRule     
- NotifyChannels List<string>
- A list of notification methods.
- NotifyEnd stringTime 
- (Available since v1.237.0) End time of notification.
- NotifyObjects List<Pulumi.Ali Cloud. Arms. Inputs. Get Dispatch Rules Rule Notify Rule Notify Object> 
- Sets the notification object.
- NotifyStart stringTime 
- (Available since v1.237.0) Start time of notification.
- NotifyChannels []string
- A list of notification methods.
- NotifyEnd stringTime 
- (Available since v1.237.0) End time of notification.
- NotifyObjects []GetDispatch Rules Rule Notify Rule Notify Object 
- Sets the notification object.
- NotifyStart stringTime 
- (Available since v1.237.0) Start time of notification.
- notifyChannels List<String>
- A list of notification methods.
- notifyEnd StringTime 
- (Available since v1.237.0) End time of notification.
- notifyObjects List<GetDispatch Rules Rule Notify Rule Notify Object> 
- Sets the notification object.
- notifyStart StringTime 
- (Available since v1.237.0) Start time of notification.
- notifyChannels string[]
- A list of notification methods.
- notifyEnd stringTime 
- (Available since v1.237.0) End time of notification.
- notifyObjects GetDispatch Rules Rule Notify Rule Notify Object[] 
- Sets the notification object.
- notifyStart stringTime 
- (Available since v1.237.0) Start time of notification.
- notify_channels Sequence[str]
- A list of notification methods.
- notify_end_ strtime 
- (Available since v1.237.0) End time of notification.
- notify_objects Sequence[GetDispatch Rules Rule Notify Rule Notify Object] 
- Sets the notification object.
- notify_start_ strtime 
- (Available since v1.237.0) Start time of notification.
- notifyChannels List<String>
- A list of notification methods.
- notifyEnd StringTime 
- (Available since v1.237.0) End time of notification.
- notifyObjects List<Property Map>
- Sets the notification object.
- notifyStart StringTime 
- (Available since v1.237.0) Start time of notification.
GetDispatchRulesRuleNotifyRuleNotifyObject       
- Name string
- The name of the contact or contact group.
- NotifyObject stringId 
- The ID of the contact or contact group.
- NotifyType string
- The type of the alert contact.
- Name string
- The name of the contact or contact group.
- NotifyObject stringId 
- The ID of the contact or contact group.
- NotifyType string
- The type of the alert contact.
- name String
- The name of the contact or contact group.
- notifyObject StringId 
- The ID of the contact or contact group.
- notifyType String
- The type of the alert contact.
- name string
- The name of the contact or contact group.
- notifyObject stringId 
- The ID of the contact or contact group.
- notifyType string
- The type of the alert contact.
- name str
- The name of the contact or contact group.
- notify_object_ strid 
- The ID of the contact or contact group.
- notify_type str
- The type of the alert contact.
- name String
- The name of the contact or contact group.
- notifyObject StringId 
- The ID of the contact or contact group.
- notifyType String
- The type of the alert contact.
GetDispatchRulesRuleNotifyTemplate     
- EmailContent string
- The content of the email.
- EmailRecover stringContent 
- The content of the email.
- EmailRecover stringTitle 
- The title of the email.
- EmailTitle string
- The title of the email.
- RobotContent string
- The content of the robot.
- SmsContent string
- The content of the SMS.
- SmsRecover stringContent 
- The content of the SMS.
- TtsContent string
- The content of the TTS.
- TtsRecover stringContent 
- The content of the TTS.
- EmailContent string
- The content of the email.
- EmailRecover stringContent 
- The content of the email.
- EmailRecover stringTitle 
- The title of the email.
- EmailTitle string
- The title of the email.
- RobotContent string
- The content of the robot.
- SmsContent string
- The content of the SMS.
- SmsRecover stringContent 
- The content of the SMS.
- TtsContent string
- The content of the TTS.
- TtsRecover stringContent 
- The content of the TTS.
- emailContent String
- The content of the email.
- emailRecover StringContent 
- The content of the email.
- emailRecover StringTitle 
- The title of the email.
- emailTitle String
- The title of the email.
- robotContent String
- The content of the robot.
- smsContent String
- The content of the SMS.
- smsRecover StringContent 
- The content of the SMS.
- ttsContent String
- The content of the TTS.
- ttsRecover StringContent 
- The content of the TTS.
- emailContent string
- The content of the email.
- emailRecover stringContent 
- The content of the email.
- emailRecover stringTitle 
- The title of the email.
- emailTitle string
- The title of the email.
- robotContent string
- The content of the robot.
- smsContent string
- The content of the SMS.
- smsRecover stringContent 
- The content of the SMS.
- ttsContent string
- The content of the TTS.
- ttsRecover stringContent 
- The content of the TTS.
- email_content str
- The content of the email.
- email_recover_ strcontent 
- The content of the email.
- email_recover_ strtitle 
- The title of the email.
- email_title str
- The title of the email.
- robot_content str
- The content of the robot.
- sms_content str
- The content of the SMS.
- sms_recover_ strcontent 
- The content of the SMS.
- tts_content str
- The content of the TTS.
- tts_recover_ strcontent 
- The content of the TTS.
- emailContent String
- The content of the email.
- emailRecover StringContent 
- The content of the email.
- emailRecover StringTitle 
- The title of the email.
- emailTitle String
- The title of the email.
- robotContent String
- The content of the robot.
- smsContent String
- The content of the SMS.
- smsRecover StringContent 
- The content of the SMS.
- ttsContent String
- The content of the TTS.
- ttsRecover StringContent 
- The content of the TTS.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.