1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. AlertGroupingPolicy
Viewing docs for zenduty 2.1.0
published on Monday, Oct 5, 2026 by zenduty
zenduty
Viewing docs for zenduty 2.1.0
published on Monday, Oct 5, 2026 by zenduty

    Import

    Alert grouping policies can be imported using the team_id (unique_id of the team), service_id (unique_id of the service), and alert_grouping_policy_id (unique_id of the policy).

    hcl

    resource “zenduty_alert_grouping_policy” “policy1” {

    }

    $ pulumi import zenduty:index/alertGroupingPolicy:AlertGroupingPolicy policy1 team_id/service_id/alert_grouping_policy_id`
    

    $ terraform state show zenduty_alert_grouping_policy.policy1

    * copy the output data and paste inside zenduty_alert_grouping_policy.policy1 resource block and remove the id attribute

    $ pulumi preview to verify the import

    Create AlertGroupingPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AlertGroupingPolicy(name: string, args: AlertGroupingPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def AlertGroupingPolicy(resource_name: str,
                            args: AlertGroupingPolicyArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlertGroupingPolicy(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            service_id: Optional[str] = None,
                            team_id: Optional[str] = None,
                            time_window: Optional[float] = None,
                            alert_grouping_policy_id: Optional[str] = None,
                            custom_fields: Optional[Sequence[str]] = None,
                            is_active: Optional[bool] = None,
                            match_mode: Optional[float] = None,
                            static_fields: Optional[Sequence[str]] = None)
    func NewAlertGroupingPolicy(ctx *Context, name string, args AlertGroupingPolicyArgs, opts ...ResourceOption) (*AlertGroupingPolicy, error)
    public AlertGroupingPolicy(string name, AlertGroupingPolicyArgs args, CustomResourceOptions? opts = null)
    public AlertGroupingPolicy(String name, AlertGroupingPolicyArgs args)
    public AlertGroupingPolicy(String name, AlertGroupingPolicyArgs args, CustomResourceOptions options)
    
    type: zenduty:AlertGroupingPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "zenduty_alert_grouping_policy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AlertGroupingPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AlertGroupingPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AlertGroupingPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertGroupingPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertGroupingPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var alertGroupingPolicyResource = new Zenduty.AlertGroupingPolicy("alertGroupingPolicyResource", new()
    {
        ServiceId = "string",
        TeamId = "string",
        TimeWindow = 0.0,
        AlertGroupingPolicyId = "string",
        CustomFields = new[]
        {
            "string",
        },
        IsActive = false,
        MatchMode = 0.0,
        StaticFields = new[]
        {
            "string",
        },
    });
    
    example, err := zenduty.NewAlertGroupingPolicy(ctx, "alertGroupingPolicyResource", &zenduty.AlertGroupingPolicyArgs{
    	ServiceId:             pulumi.String("string"),
    	TeamId:                pulumi.String("string"),
    	TimeWindow:            pulumi.Float64(0),
    	AlertGroupingPolicyId: pulumi.String("string"),
    	CustomFields: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IsActive:  pulumi.Bool(false),
    	MatchMode: pulumi.Float64(0),
    	StaticFields: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "zenduty_alert_grouping_policy" "alertGroupingPolicyResource" {
      lifecycle {
        create_before_destroy = true
      }
      service_id               = "string"
      team_id                  = "string"
      time_window              = 0
      alert_grouping_policy_id = "string"
      custom_fields            = ["string"]
      is_active                = false
      match_mode               = 0
      static_fields            = ["string"]
    }
    
    var alertGroupingPolicyResource = new AlertGroupingPolicy("alertGroupingPolicyResource", AlertGroupingPolicyArgs.builder()
        .serviceId("string")
        .teamId("string")
        .timeWindow(0.0)
        .alertGroupingPolicyId("string")
        .customFields("string")
        .isActive(false)
        .matchMode(0.0)
        .staticFields("string")
        .build());
    
    alert_grouping_policy_resource = zenduty.AlertGroupingPolicy("alertGroupingPolicyResource",
        service_id="string",
        team_id="string",
        time_window=float(0),
        alert_grouping_policy_id="string",
        custom_fields=["string"],
        is_active=False,
        match_mode=float(0),
        static_fields=["string"])
    
    const alertGroupingPolicyResource = new zenduty.AlertGroupingPolicy("alertGroupingPolicyResource", {
        serviceId: "string",
        teamId: "string",
        timeWindow: 0,
        alertGroupingPolicyId: "string",
        customFields: ["string"],
        isActive: false,
        matchMode: 0,
        staticFields: ["string"],
    });
    
    type: zenduty:AlertGroupingPolicy
    properties:
        alertGroupingPolicyId: string
        customFields:
            - string
        isActive: false
        matchMode: 0
        serviceId: string
        staticFields:
            - string
        teamId: string
        timeWindow: 0
    

    AlertGroupingPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AlertGroupingPolicy resource accepts the following input properties:

    ServiceId string
    The unique_id of the service this policy applies to. The service must have collation = 3.
    TeamId string
    The unique_id of the team the service belongs to.
    TimeWindow double
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    AlertGroupingPolicyId string
    The ID of the alert grouping policy.
    CustomFields List<string>
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    IsActive bool

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    MatchMode double
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    StaticFields List<string>
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    ServiceId string
    The unique_id of the service this policy applies to. The service must have collation = 3.
    TeamId string
    The unique_id of the team the service belongs to.
    TimeWindow float64
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    AlertGroupingPolicyId string
    The ID of the alert grouping policy.
    CustomFields []string
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    IsActive bool

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    MatchMode float64
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    StaticFields []string
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    service_id string
    The unique_id of the service this policy applies to. The service must have collation = 3.
    team_id string
    The unique_id of the team the service belongs to.
    time_window number
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    alert_grouping_policy_id string
    The ID of the alert grouping policy.
    custom_fields list(string)
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    is_active bool

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    match_mode number
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    static_fields list(string)
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    serviceId String
    The unique_id of the service this policy applies to. The service must have collation = 3.
    teamId String
    The unique_id of the team the service belongs to.
    timeWindow Double
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    alertGroupingPolicyId String
    The ID of the alert grouping policy.
    customFields List<String>
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    isActive Boolean

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    matchMode Double
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    staticFields List<String>
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    serviceId string
    The unique_id of the service this policy applies to. The service must have collation = 3.
    teamId string
    The unique_id of the team the service belongs to.
    timeWindow number
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    alertGroupingPolicyId string
    The ID of the alert grouping policy.
    customFields string[]
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    isActive boolean

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    matchMode number
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    staticFields string[]
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    service_id str
    The unique_id of the service this policy applies to. The service must have collation = 3.
    team_id str
    The unique_id of the team the service belongs to.
    time_window float
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    alert_grouping_policy_id str
    The ID of the alert grouping policy.
    custom_fields Sequence[str]
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    is_active bool

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    match_mode float
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    static_fields Sequence[str]
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    serviceId String
    The unique_id of the service this policy applies to. The service must have collation = 3.
    teamId String
    The unique_id of the team the service belongs to.
    timeWindow Number
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    alertGroupingPolicyId String
    The ID of the alert grouping policy.
    customFields List<String>
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    isActive Boolean

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    matchMode Number
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    staticFields List<String>
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AlertGroupingPolicy resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AlertGroupingPolicy Resource

    Get an existing AlertGroupingPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AlertGroupingPolicyState, opts?: CustomResourceOptions): AlertGroupingPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alert_grouping_policy_id: Optional[str] = None,
            custom_fields: Optional[Sequence[str]] = None,
            is_active: Optional[bool] = None,
            match_mode: Optional[float] = None,
            service_id: Optional[str] = None,
            static_fields: Optional[Sequence[str]] = None,
            team_id: Optional[str] = None,
            time_window: Optional[float] = None) -> AlertGroupingPolicy
    func GetAlertGroupingPolicy(ctx *Context, name string, id IDInput, state *AlertGroupingPolicyState, opts ...ResourceOption) (*AlertGroupingPolicy, error)
    public static AlertGroupingPolicy Get(string name, Input<string> id, AlertGroupingPolicyState? state, CustomResourceOptions? opts = null)
    public static AlertGroupingPolicy get(String name, Output<String> id, AlertGroupingPolicyState state, CustomResourceOptions options)
    resources:  _:    type: zenduty:AlertGroupingPolicy    get:      id: ${id}
    import {
      to = zenduty_alert_grouping_policy.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AlertGroupingPolicyId string
    The ID of the alert grouping policy.
    CustomFields List<string>
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    IsActive bool

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    MatchMode double
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    ServiceId string
    The unique_id of the service this policy applies to. The service must have collation = 3.
    StaticFields List<string>
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    TeamId string
    The unique_id of the team the service belongs to.
    TimeWindow double
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    AlertGroupingPolicyId string
    The ID of the alert grouping policy.
    CustomFields []string
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    IsActive bool

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    MatchMode float64
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    ServiceId string
    The unique_id of the service this policy applies to. The service must have collation = 3.
    StaticFields []string
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    TeamId string
    The unique_id of the team the service belongs to.
    TimeWindow float64
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    alert_grouping_policy_id string
    The ID of the alert grouping policy.
    custom_fields list(string)
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    is_active bool

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    match_mode number
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    service_id string
    The unique_id of the service this policy applies to. The service must have collation = 3.
    static_fields list(string)
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    team_id string
    The unique_id of the team the service belongs to.
    time_window number
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    alertGroupingPolicyId String
    The ID of the alert grouping policy.
    customFields List<String>
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    isActive Boolean

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    matchMode Double
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    serviceId String
    The unique_id of the service this policy applies to. The service must have collation = 3.
    staticFields List<String>
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    teamId String
    The unique_id of the team the service belongs to.
    timeWindow Double
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    alertGroupingPolicyId string
    The ID of the alert grouping policy.
    customFields string[]
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    isActive boolean

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    matchMode number
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    serviceId string
    The unique_id of the service this policy applies to. The service must have collation = 3.
    staticFields string[]
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    teamId string
    The unique_id of the team the service belongs to.
    timeWindow number
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    alert_grouping_policy_id str
    The ID of the alert grouping policy.
    custom_fields Sequence[str]
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    is_active bool

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    match_mode float
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    service_id str
    The unique_id of the service this policy applies to. The service must have collation = 3.
    static_fields Sequence[str]
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    team_id str
    The unique_id of the team the service belongs to.
    time_window float
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.
    alertGroupingPolicyId String
    The ID of the alert grouping policy.
    customFields List<String>
    JSONPath expressions evaluated against the integration's alert payload (e.g. host_id, labels.host).
    isActive Boolean

    Whether the policy is enforced. Defaults to true.

    At least one of static_fields or custom_fields must be set, and a field may be listed only once across both lists. Both rules are checked at plan time.

    matchMode Number
    1 requires only one of the listed fields (static_fields and custom_fields combined) to match, 2 requires every listed field to match. Defaults to 2.
    serviceId String
    The unique_id of the service this policy applies to. The service must have collation = 3.
    staticFields List<String>
    Built-in alert attributes to compare. One or more of incident_title, incident_summary, integration.
    teamId String
    The unique_id of the team the service belongs to.
    timeWindow Number
    Minutes to wait for matching alerts before closing correlation eligibility, 1 to 20.

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    zenduty
    Viewing docs for zenduty 2.1.0
    published on Monday, Oct 5, 2026 by zenduty

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial