published on Monday, Oct 5, 2026 by zenduty
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:
- 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 double - Minutes to wait for matching alerts before closing correlation eligibility,
1to20. - Alert
Grouping stringPolicy Id - 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_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- Match
Mode double 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- Static
Fields List<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 float64 - Minutes to wait for matching alerts before closing correlation eligibility,
1to20. - Alert
Grouping stringPolicy Id - The ID of the alert grouping policy.
- Custom
Fields []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_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- Match
Mode float64 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- Static
Fields []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,
1to20. - alert_
grouping_ stringpolicy_ id - 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_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- match_
mode number 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- static_
fields list(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 Double - Minutes to wait for matching alerts before closing correlation eligibility,
1to20. - alert
Grouping StringPolicy Id - 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 Boolean Whether the policy is enforced. Defaults to
true.At least one of
static_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- match
Mode Double 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- static
Fields List<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,
1to20. - alert
Grouping stringPolicy Id - The ID of the alert grouping policy.
- custom
Fields string[] - JSONPath expressions evaluated against the integration's alert payload (e.g.
host_id,labels.host). - is
Active boolean Whether the policy is enforced. Defaults to
true.At least one of
static_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- match
Mode number 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- static
Fields 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,
1to20. - alert_
grouping_ strpolicy_ id - 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_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- match_
mode float 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- static_
fields Sequence[str] - 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,
1to20. - alert
Grouping StringPolicy Id - 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 Boolean Whether the policy is enforced. Defaults to
true.At least one of
static_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- match
Mode Number 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- static
Fields 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) -> AlertGroupingPolicyfunc 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.
- Alert
Grouping stringPolicy Id - 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_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- Match
Mode double 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- 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 double - Minutes to wait for matching alerts before closing correlation eligibility,
1to20.
- Alert
Grouping stringPolicy Id - The ID of the alert grouping policy.
- Custom
Fields []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_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- Match
Mode float64 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- Service
Id string - The unique_id of the service this policy applies to. The service must have
collation = 3. - Static
Fields []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 float64 - Minutes to wait for matching alerts before closing correlation eligibility,
1to20.
- alert_
grouping_ stringpolicy_ id - 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_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- match_
mode number 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- 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,
1to20.
- alert
Grouping StringPolicy Id - 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 Boolean Whether the policy is enforced. Defaults to
true.At least one of
static_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- match
Mode Double 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- 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 Double - Minutes to wait for matching alerts before closing correlation eligibility,
1to20.
- alert
Grouping stringPolicy Id - The ID of the alert grouping policy.
- custom
Fields string[] - JSONPath expressions evaluated against the integration's alert payload (e.g.
host_id,labels.host). - is
Active boolean Whether the policy is enforced. Defaults to
true.At least one of
static_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- match
Mode number 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- service
Id string - The unique_id of the service this policy applies to. The service must have
collation = 3. - static
Fields 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,
1to20.
- alert_
grouping_ strpolicy_ id - 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_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- match_
mode float 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- 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,
1to20.
- alert
Grouping StringPolicy Id - 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 Boolean Whether the policy is enforced. Defaults to
true.At least one of
static_fieldsorcustom_fieldsmust be set, and a field may be listed only once across both lists. Both rules are checked at plan time.- match
Mode Number 1requires only one of the listed fields (static_fieldsandcustom_fieldscombined) to match,2requires every listed field to match. Defaults to2.- 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,
1to20.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zendutyTerraform Provider.
published on Monday, Oct 5, 2026 by zenduty