published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
A service represents something you monitor (like a web service, email service, or database service). It is a container for related incidents that associates them with escalation policies.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
return await Deployment.RunAsync(() =>
{
var exampleUser = new Pagerduty.User("exampleUser", new()
{
Email = "125.greenholt.earline@graham.name",
});
var foo = new Pagerduty.EscalationPolicy("foo", new()
{
NumLoops = 2,
Rules = new[]
{
new Pagerduty.Inputs.EscalationPolicyRuleArgs
{
EscalationDelayInMinutes = 10,
Targets = new[]
{
new Pagerduty.Inputs.EscalationPolicyRuleTargetArgs
{
Type = "user_reference",
Id = exampleUser.Id,
},
},
},
},
});
var exampleService = new Pagerduty.Service("exampleService", new()
{
AutoResolveTimeout = "14400",
AcknowledgementTimeout = "600",
EscalationPolicy = foo.Id,
AlertCreation = "create_alerts_and_incidents",
AutoPauseNotificationsParameters = new Pagerduty.Inputs.ServiceAutoPauseNotificationsParametersArgs
{
Enabled = true,
Timeout = 300,
},
});
});
package main
import (
"github.com/pulumi/pulumi-pagerduty/sdk/v3/go/pagerduty"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleUser, err := pagerduty.NewUser(ctx, "exampleUser", &pagerduty.UserArgs{
Email: pulumi.String("125.greenholt.earline@graham.name"),
})
if err != nil {
return err
}
foo, err := pagerduty.NewEscalationPolicy(ctx, "foo", &pagerduty.EscalationPolicyArgs{
NumLoops: pulumi.Int(2),
Rules: pagerduty.EscalationPolicyRuleArray{
&pagerduty.EscalationPolicyRuleArgs{
EscalationDelayInMinutes: pulumi.Int(10),
Targets: pagerduty.EscalationPolicyRuleTargetArray{
&pagerduty.EscalationPolicyRuleTargetArgs{
Type: pulumi.String("user_reference"),
Id: exampleUser.ID(),
},
},
},
},
})
if err != nil {
return err
}
_, err = pagerduty.NewService(ctx, "exampleService", &pagerduty.ServiceArgs{
AutoResolveTimeout: pulumi.String("14400"),
AcknowledgementTimeout: pulumi.String("600"),
EscalationPolicy: foo.ID(),
AlertCreation: pulumi.String("create_alerts_and_incidents"),
AutoPauseNotificationsParameters: &pagerduty.ServiceAutoPauseNotificationsParametersArgs{
Enabled: pulumi.Bool(true),
Timeout: pulumi.Int(300),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.pagerduty.User;
import com.pulumi.pagerduty.UserArgs;
import com.pulumi.pagerduty.EscalationPolicy;
import com.pulumi.pagerduty.EscalationPolicyArgs;
import com.pulumi.pagerduty.inputs.EscalationPolicyRuleArgs;
import com.pulumi.pagerduty.Service;
import com.pulumi.pagerduty.ServiceArgs;
import com.pulumi.pagerduty.inputs.ServiceAutoPauseNotificationsParametersArgs;
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 exampleUser = new User("exampleUser", UserArgs.builder()
.email("125.greenholt.earline@graham.name")
.build());
var foo = new EscalationPolicy("foo", EscalationPolicyArgs.builder()
.numLoops(2)
.rules(EscalationPolicyRuleArgs.builder()
.escalationDelayInMinutes(10)
.targets(EscalationPolicyRuleTargetArgs.builder()
.type("user_reference")
.id(exampleUser.id())
.build())
.build())
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.autoResolveTimeout(14400)
.acknowledgementTimeout(600)
.escalationPolicy(foo.id())
.alertCreation("create_alerts_and_incidents")
.autoPauseNotificationsParameters(ServiceAutoPauseNotificationsParametersArgs.builder()
.enabled(true)
.timeout(300)
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";
const exampleUser = new pagerduty.User("exampleUser", {email: "125.greenholt.earline@graham.name"});
const foo = new pagerduty.EscalationPolicy("foo", {
numLoops: 2,
rules: [{
escalationDelayInMinutes: 10,
targets: [{
type: "user_reference",
id: exampleUser.id,
}],
}],
});
const exampleService = new pagerduty.Service("exampleService", {
autoResolveTimeout: "14400",
acknowledgementTimeout: "600",
escalationPolicy: foo.id,
alertCreation: "create_alerts_and_incidents",
autoPauseNotificationsParameters: {
enabled: true,
timeout: 300,
},
});
import pulumi
import pulumi_pagerduty as pagerduty
example_user = pagerduty.User("exampleUser", email="125.greenholt.earline@graham.name")
foo = pagerduty.EscalationPolicy("foo",
num_loops=2,
rules=[pagerduty.EscalationPolicyRuleArgs(
escalation_delay_in_minutes=10,
targets=[pagerduty.EscalationPolicyRuleTargetArgs(
type="user_reference",
id=example_user.id,
)],
)])
example_service = pagerduty.Service("exampleService",
auto_resolve_timeout="14400",
acknowledgement_timeout="600",
escalation_policy=foo.id,
alert_creation="create_alerts_and_incidents",
auto_pause_notifications_parameters=pagerduty.ServiceAutoPauseNotificationsParametersArgs(
enabled=True,
timeout=300,
))
resources:
exampleUser:
type: pagerduty:User
properties:
email: 125.greenholt.earline@graham.name
foo:
type: pagerduty:EscalationPolicy
properties:
numLoops: 2
rules:
- escalationDelayInMinutes: 10
targets:
- type: user_reference
id: ${exampleUser.id}
exampleService:
type: pagerduty:Service
properties:
autoResolveTimeout: 14400
acknowledgementTimeout: 600
escalationPolicy: ${foo.id}
alertCreation: create_alerts_and_incidents
autoPauseNotificationsParameters:
enabled: true
timeout: 300
Create Service Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);@overload
def Service(resource_name: str,
args: ServiceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Service(resource_name: str,
opts: Optional[ResourceOptions] = None,
escalation_policy: Optional[str] = None,
auto_resolve_timeout: Optional[str] = None,
alert_grouping: Optional[str] = None,
alert_grouping_parameters: Optional[ServiceAlertGroupingParametersArgs] = None,
alert_grouping_timeout: Optional[str] = None,
auto_pause_notifications_parameters: Optional[ServiceAutoPauseNotificationsParametersArgs] = None,
acknowledgement_timeout: Optional[str] = None,
description: Optional[str] = None,
alert_creation: Optional[str] = None,
incident_urgency_rule: Optional[ServiceIncidentUrgencyRuleArgs] = None,
name: Optional[str] = None,
response_play: Optional[str] = None,
scheduled_actions: Optional[Sequence[ServiceScheduledActionArgs]] = None,
support_hours: Optional[ServiceSupportHoursArgs] = None)func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: pagerduty:Service
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServiceArgs
- 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 ServiceArgs
- 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 ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceArgs
- 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 serviceResource = new Pagerduty.Service("serviceResource", new()
{
EscalationPolicy = "string",
AutoResolveTimeout = "string",
AlertGroupingParameters = new Pagerduty.Inputs.ServiceAlertGroupingParametersArgs
{
Config = new Pagerduty.Inputs.ServiceAlertGroupingParametersConfigArgs
{
Aggregate = "string",
Fields = new[]
{
"string",
},
Timeout = 0,
},
Type = "string",
},
AutoPauseNotificationsParameters = new Pagerduty.Inputs.ServiceAutoPauseNotificationsParametersArgs
{
Enabled = false,
Timeout = 0,
},
AcknowledgementTimeout = "string",
Description = "string",
AlertCreation = "string",
IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs
{
Type = "string",
DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs
{
Type = "string",
Urgency = "string",
},
OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
{
Type = "string",
Urgency = "string",
},
Urgency = "string",
},
Name = "string",
ResponsePlay = "string",
ScheduledActions = new[]
{
new Pagerduty.Inputs.ServiceScheduledActionArgs
{
Ats = new[]
{
new Pagerduty.Inputs.ServiceScheduledActionAtArgs
{
Name = "string",
Type = "string",
},
},
ToUrgency = "string",
Type = "string",
},
},
SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs
{
DaysOfWeeks = new[]
{
0,
},
EndTime = "string",
StartTime = "string",
TimeZone = "string",
Type = "string",
},
});
example, err := pagerduty.NewService(ctx, "serviceResource", &pagerduty.ServiceArgs{
EscalationPolicy: pulumi.String("string"),
AutoResolveTimeout: pulumi.String("string"),
AlertGroupingParameters: &pagerduty.ServiceAlertGroupingParametersArgs{
Config: &pagerduty.ServiceAlertGroupingParametersConfigArgs{
Aggregate: pulumi.String("string"),
Fields: pulumi.StringArray{
pulumi.String("string"),
},
Timeout: pulumi.Int(0),
},
Type: pulumi.String("string"),
},
AutoPauseNotificationsParameters: &pagerduty.ServiceAutoPauseNotificationsParametersArgs{
Enabled: pulumi.Bool(false),
Timeout: pulumi.Int(0),
},
AcknowledgementTimeout: pulumi.String("string"),
Description: pulumi.String("string"),
AlertCreation: pulumi.String("string"),
IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{
Type: pulumi.String("string"),
DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{
Type: pulumi.String("string"),
Urgency: pulumi.String("string"),
},
OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{
Type: pulumi.String("string"),
Urgency: pulumi.String("string"),
},
Urgency: pulumi.String("string"),
},
Name: pulumi.String("string"),
ResponsePlay: pulumi.String("string"),
ScheduledActions: pagerduty.ServiceScheduledActionArray{
&pagerduty.ServiceScheduledActionArgs{
Ats: pagerduty.ServiceScheduledActionAtArray{
&pagerduty.ServiceScheduledActionAtArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
ToUrgency: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
SupportHours: &pagerduty.ServiceSupportHoursArgs{
DaysOfWeeks: pulumi.IntArray{
pulumi.Int(0),
},
EndTime: pulumi.String("string"),
StartTime: pulumi.String("string"),
TimeZone: pulumi.String("string"),
Type: pulumi.String("string"),
},
})
var serviceResource = new Service("serviceResource", ServiceArgs.builder()
.escalationPolicy("string")
.autoResolveTimeout("string")
.alertGroupingParameters(ServiceAlertGroupingParametersArgs.builder()
.config(ServiceAlertGroupingParametersConfigArgs.builder()
.aggregate("string")
.fields("string")
.timeout(0)
.build())
.type("string")
.build())
.autoPauseNotificationsParameters(ServiceAutoPauseNotificationsParametersArgs.builder()
.enabled(false)
.timeout(0)
.build())
.acknowledgementTimeout("string")
.description("string")
.alertCreation("string")
.incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder()
.type("string")
.duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder()
.type("string")
.urgency("string")
.build())
.outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder()
.type("string")
.urgency("string")
.build())
.urgency("string")
.build())
.name("string")
.responsePlay("string")
.scheduledActions(ServiceScheduledActionArgs.builder()
.ats(ServiceScheduledActionAtArgs.builder()
.name("string")
.type("string")
.build())
.toUrgency("string")
.type("string")
.build())
.supportHours(ServiceSupportHoursArgs.builder()
.daysOfWeeks(0)
.endTime("string")
.startTime("string")
.timeZone("string")
.type("string")
.build())
.build());
service_resource = pagerduty.Service("serviceResource",
escalation_policy="string",
auto_resolve_timeout="string",
alert_grouping_parameters={
"config": {
"aggregate": "string",
"fields": ["string"],
"timeout": 0,
},
"type": "string",
},
auto_pause_notifications_parameters={
"enabled": False,
"timeout": 0,
},
acknowledgement_timeout="string",
description="string",
alert_creation="string",
incident_urgency_rule={
"type": "string",
"during_support_hours": {
"type": "string",
"urgency": "string",
},
"outside_support_hours": {
"type": "string",
"urgency": "string",
},
"urgency": "string",
},
name="string",
response_play="string",
scheduled_actions=[{
"ats": [{
"name": "string",
"type": "string",
}],
"to_urgency": "string",
"type": "string",
}],
support_hours={
"days_of_weeks": [0],
"end_time": "string",
"start_time": "string",
"time_zone": "string",
"type": "string",
})
const serviceResource = new pagerduty.Service("serviceResource", {
escalationPolicy: "string",
autoResolveTimeout: "string",
alertGroupingParameters: {
config: {
aggregate: "string",
fields: ["string"],
timeout: 0,
},
type: "string",
},
autoPauseNotificationsParameters: {
enabled: false,
timeout: 0,
},
acknowledgementTimeout: "string",
description: "string",
alertCreation: "string",
incidentUrgencyRule: {
type: "string",
duringSupportHours: {
type: "string",
urgency: "string",
},
outsideSupportHours: {
type: "string",
urgency: "string",
},
urgency: "string",
},
name: "string",
responsePlay: "string",
scheduledActions: [{
ats: [{
name: "string",
type: "string",
}],
toUrgency: "string",
type: "string",
}],
supportHours: {
daysOfWeeks: [0],
endTime: "string",
startTime: "string",
timeZone: "string",
type: "string",
},
});
type: pagerduty:Service
properties:
acknowledgementTimeout: string
alertCreation: string
alertGroupingParameters:
config:
aggregate: string
fields:
- string
timeout: 0
type: string
autoPauseNotificationsParameters:
enabled: false
timeout: 0
autoResolveTimeout: string
description: string
escalationPolicy: string
incidentUrgencyRule:
duringSupportHours:
type: string
urgency: string
outsideSupportHours:
type: string
urgency: string
type: string
urgency: string
name: string
responsePlay: string
scheduledActions:
- ats:
- name: string
type: string
toUrgency: string
type: string
supportHours:
daysOfWeeks:
- 0
endTime: string
startTime: string
timeZone: string
type: string
Service 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 Service resource accepts the following input properties:
- Escalation
Policy string - The escalation policy used by this service.
- Acknowledgement
Timeout string - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - Alert
Creation string - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- Alert
Grouping string - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - Alert
Grouping ServiceParameters Alert Grouping Parameters - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- Alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - Auto
Pause ServiceNotifications Parameters Auto Pause Notifications Parameters - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- Auto
Resolve stringTimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - Description string
- Incident
Urgency ServiceRule Incident Urgency Rule - Name string
- The name of the service.
- Response
Play string - The response play used by this service.
- Scheduled
Actions List<ServiceScheduled Action> - Support
Hours ServiceSupport Hours
- Escalation
Policy string - The escalation policy used by this service.
- Acknowledgement
Timeout string - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - Alert
Creation string - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- Alert
Grouping string - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - Alert
Grouping ServiceParameters Alert Grouping Parameters Args - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- Alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - Auto
Pause ServiceNotifications Parameters Auto Pause Notifications Parameters Args - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- Auto
Resolve stringTimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - Description string
- Incident
Urgency ServiceRule Incident Urgency Rule Args - Name string
- The name of the service.
- Response
Play string - The response play used by this service.
- Scheduled
Actions []ServiceScheduled Action Args - Support
Hours ServiceSupport Hours Args
- escalation
Policy String - The escalation policy used by this service.
- acknowledgement
Timeout String - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - alert
Creation String - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- alert
Grouping String - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - alert
Grouping ServiceParameters Alert Grouping Parameters - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- alert
Grouping StringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - auto
Pause ServiceNotifications Parameters Auto Pause Notifications Parameters - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- auto
Resolve StringTimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - description String
- incident
Urgency ServiceRule Incident Urgency Rule - name String
- The name of the service.
- response
Play String - The response play used by this service.
- scheduled
Actions List<ServiceScheduled Action> - support
Hours ServiceSupport Hours
- escalation
Policy string - The escalation policy used by this service.
- acknowledgement
Timeout string - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - alert
Creation string - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- alert
Grouping string - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - alert
Grouping ServiceParameters Alert Grouping Parameters - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - auto
Pause ServiceNotifications Parameters Auto Pause Notifications Parameters - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- auto
Resolve stringTimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - description string
- incident
Urgency ServiceRule Incident Urgency Rule - name string
- The name of the service.
- response
Play string - The response play used by this service.
- scheduled
Actions ServiceScheduled Action[] - support
Hours ServiceSupport Hours
- escalation_
policy str - The escalation policy used by this service.
- acknowledgement_
timeout str - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - alert_
creation str - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- alert_
grouping str - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - alert_
grouping_ Serviceparameters Alert Grouping Parameters Args - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- alert_
grouping_ strtimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - auto_
pause_ Servicenotifications_ parameters Auto Pause Notifications Parameters Args - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- auto_
resolve_ strtimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - description str
- incident_
urgency_ Servicerule Incident Urgency Rule Args - name str
- The name of the service.
- response_
play str - The response play used by this service.
- scheduled_
actions Sequence[ServiceScheduled Action Args] - support_
hours ServiceSupport Hours Args
- escalation
Policy String - The escalation policy used by this service.
- acknowledgement
Timeout String - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - alert
Creation String - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- alert
Grouping String - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - alert
Grouping Property MapParameters - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- alert
Grouping StringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - auto
Pause Property MapNotifications Parameters - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- auto
Resolve StringTimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - description String
- incident
Urgency Property MapRule - name String
- The name of the service.
- response
Play String - The response play used by this service.
- scheduled
Actions List<Property Map> - support
Hours Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
- Created
At string - Creation timestamp of the service.
- Html
Url string - URL at which the entity is uniquely displayed in the Web app.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Incident stringTimestamp - Last incident timestamp of the service.
- Status string
- The status of the service.
- Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- Created
At string - Creation timestamp of the service.
- Html
Url string - URL at which the entity is uniquely displayed in the Web app.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Incident stringTimestamp - Last incident timestamp of the service.
- Status string
- The status of the service.
- Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- created
At String - Creation timestamp of the service.
- html
Url String - URL at which the entity is uniquely displayed in the Web app.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Incident StringTimestamp - Last incident timestamp of the service.
- status String
- The status of the service.
- type String
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- created
At string - Creation timestamp of the service.
- html
Url string - URL at which the entity is uniquely displayed in the Web app.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Incident stringTimestamp - Last incident timestamp of the service.
- status string
- The status of the service.
- type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- created_
at str - Creation timestamp of the service.
- html_
url str - URL at which the entity is uniquely displayed in the Web app.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
incident_ strtimestamp - Last incident timestamp of the service.
- status str
- The status of the service.
- type str
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- created
At String - Creation timestamp of the service.
- html
Url String - URL at which the entity is uniquely displayed in the Web app.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Incident StringTimestamp - Last incident timestamp of the service.
- status String
- The status of the service.
- type String
- The type of alert grouping; one of
intelligent,timeorcontent_based.
Look up Existing Service Resource
Get an existing Service 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?: ServiceState, opts?: CustomResourceOptions): Service@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acknowledgement_timeout: Optional[str] = None,
alert_creation: Optional[str] = None,
alert_grouping: Optional[str] = None,
alert_grouping_parameters: Optional[ServiceAlertGroupingParametersArgs] = None,
alert_grouping_timeout: Optional[str] = None,
auto_pause_notifications_parameters: Optional[ServiceAutoPauseNotificationsParametersArgs] = None,
auto_resolve_timeout: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
escalation_policy: Optional[str] = None,
html_url: Optional[str] = None,
incident_urgency_rule: Optional[ServiceIncidentUrgencyRuleArgs] = None,
last_incident_timestamp: Optional[str] = None,
name: Optional[str] = None,
response_play: Optional[str] = None,
scheduled_actions: Optional[Sequence[ServiceScheduledActionArgs]] = None,
status: Optional[str] = None,
support_hours: Optional[ServiceSupportHoursArgs] = None,
type: Optional[str] = None) -> Servicefunc GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)resources: _: type: pagerduty:Service get: 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.
- Acknowledgement
Timeout string - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - Alert
Creation string - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- Alert
Grouping string - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - Alert
Grouping ServiceParameters Alert Grouping Parameters - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- Alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - Auto
Pause ServiceNotifications Parameters Auto Pause Notifications Parameters - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- Auto
Resolve stringTimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - Created
At string - Creation timestamp of the service.
- Description string
- Escalation
Policy string - The escalation policy used by this service.
- Html
Url string - URL at which the entity is uniquely displayed in the Web app.
- Incident
Urgency ServiceRule Incident Urgency Rule - Last
Incident stringTimestamp - Last incident timestamp of the service.
- Name string
- The name of the service.
- Response
Play string - The response play used by this service.
- Scheduled
Actions List<ServiceScheduled Action> - Status string
- The status of the service.
- Support
Hours ServiceSupport Hours - Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- Acknowledgement
Timeout string - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - Alert
Creation string - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- Alert
Grouping string - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - Alert
Grouping ServiceParameters Alert Grouping Parameters Args - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- Alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - Auto
Pause ServiceNotifications Parameters Auto Pause Notifications Parameters Args - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- Auto
Resolve stringTimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - Created
At string - Creation timestamp of the service.
- Description string
- Escalation
Policy string - The escalation policy used by this service.
- Html
Url string - URL at which the entity is uniquely displayed in the Web app.
- Incident
Urgency ServiceRule Incident Urgency Rule Args - Last
Incident stringTimestamp - Last incident timestamp of the service.
- Name string
- The name of the service.
- Response
Play string - The response play used by this service.
- Scheduled
Actions []ServiceScheduled Action Args - Status string
- The status of the service.
- Support
Hours ServiceSupport Hours Args - Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- acknowledgement
Timeout String - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - alert
Creation String - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- alert
Grouping String - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - alert
Grouping ServiceParameters Alert Grouping Parameters - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- alert
Grouping StringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - auto
Pause ServiceNotifications Parameters Auto Pause Notifications Parameters - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- auto
Resolve StringTimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - created
At String - Creation timestamp of the service.
- description String
- escalation
Policy String - The escalation policy used by this service.
- html
Url String - URL at which the entity is uniquely displayed in the Web app.
- incident
Urgency ServiceRule Incident Urgency Rule - last
Incident StringTimestamp - Last incident timestamp of the service.
- name String
- The name of the service.
- response
Play String - The response play used by this service.
- scheduled
Actions List<ServiceScheduled Action> - status String
- The status of the service.
- support
Hours ServiceSupport Hours - type String
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- acknowledgement
Timeout string - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - alert
Creation string - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- alert
Grouping string - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - alert
Grouping ServiceParameters Alert Grouping Parameters - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - auto
Pause ServiceNotifications Parameters Auto Pause Notifications Parameters - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- auto
Resolve stringTimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - created
At string - Creation timestamp of the service.
- description string
- escalation
Policy string - The escalation policy used by this service.
- html
Url string - URL at which the entity is uniquely displayed in the Web app.
- incident
Urgency ServiceRule Incident Urgency Rule - last
Incident stringTimestamp - Last incident timestamp of the service.
- name string
- The name of the service.
- response
Play string - The response play used by this service.
- scheduled
Actions ServiceScheduled Action[] - status string
- The status of the service.
- support
Hours ServiceSupport Hours - type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- acknowledgement_
timeout str - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - alert_
creation str - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- alert_
grouping str - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - alert_
grouping_ Serviceparameters Alert Grouping Parameters Args - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- alert_
grouping_ strtimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - auto_
pause_ Servicenotifications_ parameters Auto Pause Notifications Parameters Args - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- auto_
resolve_ strtimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - created_
at str - Creation timestamp of the service.
- description str
- escalation_
policy str - The escalation policy used by this service.
- html_
url str - URL at which the entity is uniquely displayed in the Web app.
- incident_
urgency_ Servicerule Incident Urgency Rule Args - last_
incident_ strtimestamp - Last incident timestamp of the service.
- name str
- The name of the service.
- response_
play str - The response play used by this service.
- scheduled_
actions Sequence[ServiceScheduled Action Args] - status str
- The status of the service.
- support_
hours ServiceSupport Hours Args - type str
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- acknowledgement
Timeout String - Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the
"null"string. If not passed in, will default to '"1800"'. - alert
Creation String - Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
- alert
Grouping String - (Deprecated) Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to
time: All alerts within a specified duration will be grouped into the same incident. This duration is set in thealert_grouping_timeoutsetting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set tointelligent- Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. This field is deprecated, usealert_grouping_parameters.typeinstead, - alert
Grouping Property MapParameters - Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident.
- alert
Grouping StringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_groupingis set totime. To continue grouping alerts until the incident is resolved, set this value to0. This field is deprecated, usealert_grouping_parameters.config.timeoutinstead, - auto
Pause Property MapNotifications Parameters - Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans as mentioned here.
- auto
Resolve StringTimeout - Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the
"null"string. - created
At String - Creation timestamp of the service.
- description String
- escalation
Policy String - The escalation policy used by this service.
- html
Url String - URL at which the entity is uniquely displayed in the Web app.
- incident
Urgency Property MapRule - last
Incident StringTimestamp - Last incident timestamp of the service.
- name String
- The name of the service.
- response
Play String - The response play used by this service.
- scheduled
Actions List<Property Map> - status String
- The status of the service.
- support
Hours Property Map - type String
- The type of alert grouping; one of
intelligent,timeorcontent_based.
Supporting Types
ServiceAlertGroupingParameters, ServiceAlertGroupingParametersArgs
- Config
Service
Alert Grouping Parameters Config - Alert grouping parameters dependent on
type. Iftypeis set tointelligentor empty thenconfigcan be empty. - Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- Config
Service
Alert Grouping Parameters Config - Alert grouping parameters dependent on
type. Iftypeis set tointelligentor empty thenconfigcan be empty. - Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- config
Service
Alert Grouping Parameters Config - Alert grouping parameters dependent on
type. Iftypeis set tointelligentor empty thenconfigcan be empty. - type String
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- config
Service
Alert Grouping Parameters Config - Alert grouping parameters dependent on
type. Iftypeis set tointelligentor empty thenconfigcan be empty. - type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- config
Service
Alert Grouping Parameters Config - Alert grouping parameters dependent on
type. Iftypeis set tointelligentor empty thenconfigcan be empty. - type str
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- config Property Map
- Alert grouping parameters dependent on
type. Iftypeis set tointelligentor empty thenconfigcan be empty. - type String
- The type of alert grouping; one of
intelligent,timeorcontent_based.
ServiceAlertGroupingParametersConfig, ServiceAlertGroupingParametersConfigArgs
- Aggregate string
- One of
anyorall. This setting applies only whentypeis set tocontent_based. Group alerts based on one or all offieldsvalue(s). - Fields List<string>
- Alerts will be grouped together if the content of these fields match. This setting applies only when
typeis set tocontent_based. - Timeout int
The duration in minutes within which to automatically group incoming alerts. This setting applies only when
typeis set totime. To continue grouping alerts until the incident is resolved, set this value to0.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
- Aggregate string
- One of
anyorall. This setting applies only whentypeis set tocontent_based. Group alerts based on one or all offieldsvalue(s). - Fields []string
- Alerts will be grouped together if the content of these fields match. This setting applies only when
typeis set tocontent_based. - Timeout int
The duration in minutes within which to automatically group incoming alerts. This setting applies only when
typeis set totime. To continue grouping alerts until the incident is resolved, set this value to0.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
- aggregate String
- One of
anyorall. This setting applies only whentypeis set tocontent_based. Group alerts based on one or all offieldsvalue(s). - fields List<String>
- Alerts will be grouped together if the content of these fields match. This setting applies only when
typeis set tocontent_based. - timeout Integer
The duration in minutes within which to automatically group incoming alerts. This setting applies only when
typeis set totime. To continue grouping alerts until the incident is resolved, set this value to0.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
- aggregate string
- One of
anyorall. This setting applies only whentypeis set tocontent_based. Group alerts based on one or all offieldsvalue(s). - fields string[]
- Alerts will be grouped together if the content of these fields match. This setting applies only when
typeis set tocontent_based. - timeout number
The duration in minutes within which to automatically group incoming alerts. This setting applies only when
typeis set totime. To continue grouping alerts until the incident is resolved, set this value to0.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
- aggregate str
- One of
anyorall. This setting applies only whentypeis set tocontent_based. Group alerts based on one or all offieldsvalue(s). - fields Sequence[str]
- Alerts will be grouped together if the content of these fields match. This setting applies only when
typeis set tocontent_based. - timeout int
The duration in minutes within which to automatically group incoming alerts. This setting applies only when
typeis set totime. To continue grouping alerts until the incident is resolved, set this value to0.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
- aggregate String
- One of
anyorall. This setting applies only whentypeis set tocontent_based. Group alerts based on one or all offieldsvalue(s). - fields List<String>
- Alerts will be grouped together if the content of these fields match. This setting applies only when
typeis set tocontent_based. - timeout Number
The duration in minutes within which to automatically group incoming alerts. This setting applies only when
typeis set totime. To continue grouping alerts until the incident is resolved, set this value to0.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
ServiceAutoPauseNotificationsParameters, ServiceAutoPauseNotificationsParametersArgs
- Enabled bool
- Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
- Timeout int
Indicates in seconds how long alerts should be suspended before triggering. Allowed values:
120,180,300,600,900ifenabledistrue. Must be omitted or set tonullifenabledisfalse.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
- Enabled bool
- Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
- Timeout int
Indicates in seconds how long alerts should be suspended before triggering. Allowed values:
120,180,300,600,900ifenabledistrue. Must be omitted or set tonullifenabledisfalse.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
- enabled Boolean
- Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
- timeout Integer
Indicates in seconds how long alerts should be suspended before triggering. Allowed values:
120,180,300,600,900ifenabledistrue. Must be omitted or set tonullifenabledisfalse.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
- enabled boolean
- Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
- timeout number
Indicates in seconds how long alerts should be suspended before triggering. Allowed values:
120,180,300,600,900ifenabledistrue. Must be omitted or set tonullifenabledisfalse.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
- enabled bool
- Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
- timeout int
Indicates in seconds how long alerts should be suspended before triggering. Allowed values:
120,180,300,600,900ifenabledistrue. Must be omitted or set tonullifenabledisfalse.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
- enabled Boolean
- Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
- timeout Number
Indicates in seconds how long alerts should be suspended before triggering. Allowed values:
120,180,300,600,900ifenabledistrue. Must be omitted or set tonullifenabledisfalse.You may specify one optional
incident_urgency_ruleblock configuring what urgencies to use. Your PagerDuty account must have theurgenciesability to assign an incident urgency rule. The block contains the following arguments:
ServiceIncidentUrgencyRule, ServiceIncidentUrgencyRuleArgs
- Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based. - During
Support ServiceHours Incident Urgency Rule During Support Hours - Incidents' urgency during support hours.
- Outside
Support ServiceHours Incident Urgency Rule Outside Support Hours Incidents' urgency outside support hours.
When using
type = "use_support_hours"inincident_urgency_ruleyou must specify exactly one (otherwise optional)support_hoursblock. Your PagerDuty account must have theservice_support_hoursability to assign support hours. The block contains the following arguments:- Urgency string
- The urgency:
lowNotify responders (does not escalate),high(follows escalation rules) orseverity_basedSet's the urgency of the incident based on the severity set by the triggering monitoring tool.
- Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based. - During
Support ServiceHours Incident Urgency Rule During Support Hours - Incidents' urgency during support hours.
- Outside
Support ServiceHours Incident Urgency Rule Outside Support Hours Incidents' urgency outside support hours.
When using
type = "use_support_hours"inincident_urgency_ruleyou must specify exactly one (otherwise optional)support_hoursblock. Your PagerDuty account must have theservice_support_hoursability to assign support hours. The block contains the following arguments:- Urgency string
- The urgency:
lowNotify responders (does not escalate),high(follows escalation rules) orseverity_basedSet's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type String
- The type of alert grouping; one of
intelligent,timeorcontent_based. - during
Support ServiceHours Incident Urgency Rule During Support Hours - Incidents' urgency during support hours.
- outside
Support ServiceHours Incident Urgency Rule Outside Support Hours Incidents' urgency outside support hours.
When using
type = "use_support_hours"inincident_urgency_ruleyou must specify exactly one (otherwise optional)support_hoursblock. Your PagerDuty account must have theservice_support_hoursability to assign support hours. The block contains the following arguments:- urgency String
- The urgency:
lowNotify responders (does not escalate),high(follows escalation rules) orseverity_basedSet's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type string
- The type of alert grouping; one of
intelligent,timeorcontent_based. - during
Support ServiceHours Incident Urgency Rule During Support Hours - Incidents' urgency during support hours.
- outside
Support ServiceHours Incident Urgency Rule Outside Support Hours Incidents' urgency outside support hours.
When using
type = "use_support_hours"inincident_urgency_ruleyou must specify exactly one (otherwise optional)support_hoursblock. Your PagerDuty account must have theservice_support_hoursability to assign support hours. The block contains the following arguments:- urgency string
- The urgency:
lowNotify responders (does not escalate),high(follows escalation rules) orseverity_basedSet's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type str
- The type of alert grouping; one of
intelligent,timeorcontent_based. - during_
support_ Servicehours Incident Urgency Rule During Support Hours - Incidents' urgency during support hours.
- outside_
support_ Servicehours Incident Urgency Rule Outside Support Hours Incidents' urgency outside support hours.
When using
type = "use_support_hours"inincident_urgency_ruleyou must specify exactly one (otherwise optional)support_hoursblock. Your PagerDuty account must have theservice_support_hoursability to assign support hours. The block contains the following arguments:- urgency str
- The urgency:
lowNotify responders (does not escalate),high(follows escalation rules) orseverity_basedSet's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type String
- The type of alert grouping; one of
intelligent,timeorcontent_based. - during
Support Property MapHours - Incidents' urgency during support hours.
- outside
Support Property MapHours Incidents' urgency outside support hours.
When using
type = "use_support_hours"inincident_urgency_ruleyou must specify exactly one (otherwise optional)support_hoursblock. Your PagerDuty account must have theservice_support_hoursability to assign support hours. The block contains the following arguments:- urgency String
- The urgency:
lowNotify responders (does not escalate),high(follows escalation rules) orseverity_basedSet's the urgency of the incident based on the severity set by the triggering monitoring tool.
ServiceIncidentUrgencyRuleDuringSupportHours, ServiceIncidentUrgencyRuleDuringSupportHoursArgs
ServiceIncidentUrgencyRuleOutsideSupportHours, ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
ServiceScheduledAction, ServiceScheduledActionArgs
- Ats
List<Service
Scheduled Action At> - A block representing when the scheduled action will occur.
- To
Urgency string - The urgency to change to:
low(does not escalate), orhigh(follows escalation rules). - Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- Ats
[]Service
Scheduled Action At - A block representing when the scheduled action will occur.
- To
Urgency string - The urgency to change to:
low(does not escalate), orhigh(follows escalation rules). - Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- ats
List<Service
Scheduled Action At> - A block representing when the scheduled action will occur.
- to
Urgency String - The urgency to change to:
low(does not escalate), orhigh(follows escalation rules). - type String
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- ats
Service
Scheduled Action At[] - A block representing when the scheduled action will occur.
- to
Urgency string - The urgency to change to:
low(does not escalate), orhigh(follows escalation rules). - type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- ats
Sequence[Service
Scheduled Action At] - A block representing when the scheduled action will occur.
- to_
urgency str - The urgency to change to:
low(does not escalate), orhigh(follows escalation rules). - type str
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- ats List<Property Map>
- A block representing when the scheduled action will occur.
- to
Urgency String - The urgency to change to:
low(does not escalate), orhigh(follows escalation rules). - type String
- The type of alert grouping; one of
intelligent,timeorcontent_based.
ServiceScheduledActionAt, ServiceScheduledActionAtArgs
- Name string
Designates either the start or the end of the scheduled action. Can be
support_hours_startorsupport_hours_end.Note that it is currently only possible to define the scheduled action when urgency is set to
highforduring_support_hoursand tolowforoutside_support_hoursinincident_urgency_rule.Below is an example for a
pagerduty.Serviceresource withincident_urgency_ruleswithtype = "use_support_hours",support_hoursand a defaultscheduled_actionas well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";const foo = new pagerduty.Service("foo", { description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: pagerduty_escalation_policy.foo.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });
import pulumi import pulumi_pagerduty as pagerduty foo = pagerduty.Service("foo", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=pagerduty_escalation_policy["foo"]["id"], incident_urgency_rule=pagerduty.ServiceIncidentUrgencyRuleArgs( type="use_support_hours", during_support_hours=pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs( type="constant", urgency="high", ), outside_support_hours=pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs( type="constant", urgency="low", ), ), support_hours=pagerduty.ServiceSupportHoursArgs( type="fixed_time_per_day", time_zone="America/Lima", start_time="09:00:00", end_time="17:00:00", days_of_weeks=[ 1, 2, 3, 4, 5, ], ), scheduled_actions=[pagerduty.ServiceScheduledActionArgs( type="urgency_change", to_urgency="high", ats=[pagerduty.ServiceScheduledActionAtArgs( type="named_time", name="support_hours_start", )], )])using System.Collections.Generic; using System.Linq; using Pulumi; using Pagerduty = Pulumi.Pagerduty; return await Deployment.RunAsync(() => { var foo = new Pagerduty.Service("foo", new() { Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = pagerduty_escalation_policy.Foo.Id, IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs { Type = "use_support_hours", DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs { Type = "constant", Urgency = "high", }, OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs { Type = "constant", Urgency = "low", }, }, SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs { Type = "fixed_time_per_day", TimeZone = "America/Lima", StartTime = "09:00:00", EndTime = "17:00:00", DaysOfWeeks = new[] { 1, 2, 3, 4, 5, }, }, ScheduledActions = new[] { new Pagerduty.Inputs.ServiceScheduledActionArgs { Type = "urgency_change", ToUrgency = "high", Ats = new[] { new Pagerduty.Inputs.ServiceScheduledActionAtArgs { Type = "named_time", Name = "support_hours_start", }, }, }, }, }); });package main import ( "github.com/pulumi/pulumi-pagerduty/sdk/v3/go/pagerduty" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{ Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(pagerduty_escalation_policy.Foo.Id), IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{ Type: pulumi.String("use_support_hours"), DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("high"), }, OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("low"), }, }, SupportHours: &pagerduty.ServiceSupportHoursArgs{ Type: pulumi.String("fixed_time_per_day"), TimeZone: pulumi.String("America/Lima"), StartTime: pulumi.String("09:00:00"), EndTime: pulumi.String("17:00:00"), DaysOfWeeks: pulumi.IntArray{ pulumi.Int(1), pulumi.Int(2), pulumi.Int(3), pulumi.Int(4), pulumi.Int(5), }, }, ScheduledActions: pagerduty.ServiceScheduledActionArray{ &pagerduty.ServiceScheduledActionArgs{ Type: pulumi.String("urgency_change"), ToUrgency: pulumi.String("high"), Ats: pagerduty.ServiceScheduledActionAtArray{ &pagerduty.ServiceScheduledActionAtArgs{ Type: pulumi.String("named_time"), Name: pulumi.String("support_hours_start"), }, }, }, }, }) if err != nil { return err } return nil }) }package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.pagerduty.Service; import com.pulumi.pagerduty.ServiceArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs; 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 foo = new Service("foo", ServiceArgs.builder() .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(pagerduty_escalation_policy.foo().id()) .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder() .type("use_support_hours") .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder() .type("constant") .urgency("high") .build()) .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder() .type("constant") .urgency("low") .build()) .build()) .supportHours(ServiceSupportHoursArgs.builder() .type("fixed_time_per_day") .timeZone("America/Lima") .startTime("09:00:00") .endTime("17:00:00") .daysOfWeeks( 1, 2, 3, 4, 5) .build()) .scheduledActions(ServiceScheduledActionArgs.builder() .type("urgency_change") .toUrgency("high") .ats(ServiceScheduledActionAtArgs.builder() .type("named_time") .name("support_hours_start") .build()) .build()) .build()); } }resources: foo: type: pagerduty:Service properties: description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${pagerduty_escalation_policy.foo.id} incidentUrgencyRule: type: use_support_hours duringSupportHours: type: constant urgency: high outsideSupportHours: type: constant urgency: low supportHours: type: fixed_time_per_day timeZone: America/Lima startTime: 09:00:00 endTime: 17:00:00 daysOfWeeks: - 1 - 2 - 3 - 4 - 5 scheduledActions: - type: urgency_change toUrgency: high ats: - type: named_time name: support_hours_start- Type string
- The type of time specification. Currently, this must be set to
named_time.
- Name string
Designates either the start or the end of the scheduled action. Can be
support_hours_startorsupport_hours_end.Note that it is currently only possible to define the scheduled action when urgency is set to
highforduring_support_hoursand tolowforoutside_support_hoursinincident_urgency_rule.Below is an example for a
pagerduty.Serviceresource withincident_urgency_ruleswithtype = "use_support_hours",support_hoursand a defaultscheduled_actionas well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";const foo = new pagerduty.Service("foo", { description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: pagerduty_escalation_policy.foo.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });
import pulumi import pulumi_pagerduty as pagerduty foo = pagerduty.Service("foo", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=pagerduty_escalation_policy["foo"]["id"], incident_urgency_rule=pagerduty.ServiceIncidentUrgencyRuleArgs( type="use_support_hours", during_support_hours=pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs( type="constant", urgency="high", ), outside_support_hours=pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs( type="constant", urgency="low", ), ), support_hours=pagerduty.ServiceSupportHoursArgs( type="fixed_time_per_day", time_zone="America/Lima", start_time="09:00:00", end_time="17:00:00", days_of_weeks=[ 1, 2, 3, 4, 5, ], ), scheduled_actions=[pagerduty.ServiceScheduledActionArgs( type="urgency_change", to_urgency="high", ats=[pagerduty.ServiceScheduledActionAtArgs( type="named_time", name="support_hours_start", )], )])using System.Collections.Generic; using System.Linq; using Pulumi; using Pagerduty = Pulumi.Pagerduty; return await Deployment.RunAsync(() => { var foo = new Pagerduty.Service("foo", new() { Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = pagerduty_escalation_policy.Foo.Id, IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs { Type = "use_support_hours", DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs { Type = "constant", Urgency = "high", }, OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs { Type = "constant", Urgency = "low", }, }, SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs { Type = "fixed_time_per_day", TimeZone = "America/Lima", StartTime = "09:00:00", EndTime = "17:00:00", DaysOfWeeks = new[] { 1, 2, 3, 4, 5, }, }, ScheduledActions = new[] { new Pagerduty.Inputs.ServiceScheduledActionArgs { Type = "urgency_change", ToUrgency = "high", Ats = new[] { new Pagerduty.Inputs.ServiceScheduledActionAtArgs { Type = "named_time", Name = "support_hours_start", }, }, }, }, }); });package main import ( "github.com/pulumi/pulumi-pagerduty/sdk/v3/go/pagerduty" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{ Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(pagerduty_escalation_policy.Foo.Id), IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{ Type: pulumi.String("use_support_hours"), DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("high"), }, OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("low"), }, }, SupportHours: &pagerduty.ServiceSupportHoursArgs{ Type: pulumi.String("fixed_time_per_day"), TimeZone: pulumi.String("America/Lima"), StartTime: pulumi.String("09:00:00"), EndTime: pulumi.String("17:00:00"), DaysOfWeeks: pulumi.IntArray{ pulumi.Int(1), pulumi.Int(2), pulumi.Int(3), pulumi.Int(4), pulumi.Int(5), }, }, ScheduledActions: pagerduty.ServiceScheduledActionArray{ &pagerduty.ServiceScheduledActionArgs{ Type: pulumi.String("urgency_change"), ToUrgency: pulumi.String("high"), Ats: pagerduty.ServiceScheduledActionAtArray{ &pagerduty.ServiceScheduledActionAtArgs{ Type: pulumi.String("named_time"), Name: pulumi.String("support_hours_start"), }, }, }, }, }) if err != nil { return err } return nil }) }package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.pagerduty.Service; import com.pulumi.pagerduty.ServiceArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs; 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 foo = new Service("foo", ServiceArgs.builder() .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(pagerduty_escalation_policy.foo().id()) .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder() .type("use_support_hours") .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder() .type("constant") .urgency("high") .build()) .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder() .type("constant") .urgency("low") .build()) .build()) .supportHours(ServiceSupportHoursArgs.builder() .type("fixed_time_per_day") .timeZone("America/Lima") .startTime("09:00:00") .endTime("17:00:00") .daysOfWeeks( 1, 2, 3, 4, 5) .build()) .scheduledActions(ServiceScheduledActionArgs.builder() .type("urgency_change") .toUrgency("high") .ats(ServiceScheduledActionAtArgs.builder() .type("named_time") .name("support_hours_start") .build()) .build()) .build()); } }resources: foo: type: pagerduty:Service properties: description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${pagerduty_escalation_policy.foo.id} incidentUrgencyRule: type: use_support_hours duringSupportHours: type: constant urgency: high outsideSupportHours: type: constant urgency: low supportHours: type: fixed_time_per_day timeZone: America/Lima startTime: 09:00:00 endTime: 17:00:00 daysOfWeeks: - 1 - 2 - 3 - 4 - 5 scheduledActions: - type: urgency_change toUrgency: high ats: - type: named_time name: support_hours_start- Type string
- The type of time specification. Currently, this must be set to
named_time.
- name String
Designates either the start or the end of the scheduled action. Can be
support_hours_startorsupport_hours_end.Note that it is currently only possible to define the scheduled action when urgency is set to
highforduring_support_hoursand tolowforoutside_support_hoursinincident_urgency_rule.Below is an example for a
pagerduty.Serviceresource withincident_urgency_ruleswithtype = "use_support_hours",support_hoursand a defaultscheduled_actionas well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";const foo = new pagerduty.Service("foo", { description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: pagerduty_escalation_policy.foo.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });
import pulumi import pulumi_pagerduty as pagerduty foo = pagerduty.Service("foo", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=pagerduty_escalation_policy["foo"]["id"], incident_urgency_rule=pagerduty.ServiceIncidentUrgencyRuleArgs( type="use_support_hours", during_support_hours=pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs( type="constant", urgency="high", ), outside_support_hours=pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs( type="constant", urgency="low", ), ), support_hours=pagerduty.ServiceSupportHoursArgs( type="fixed_time_per_day", time_zone="America/Lima", start_time="09:00:00", end_time="17:00:00", days_of_weeks=[ 1, 2, 3, 4, 5, ], ), scheduled_actions=[pagerduty.ServiceScheduledActionArgs( type="urgency_change", to_urgency="high", ats=[pagerduty.ServiceScheduledActionAtArgs( type="named_time", name="support_hours_start", )], )])using System.Collections.Generic; using System.Linq; using Pulumi; using Pagerduty = Pulumi.Pagerduty; return await Deployment.RunAsync(() => { var foo = new Pagerduty.Service("foo", new() { Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = pagerduty_escalation_policy.Foo.Id, IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs { Type = "use_support_hours", DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs { Type = "constant", Urgency = "high", }, OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs { Type = "constant", Urgency = "low", }, }, SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs { Type = "fixed_time_per_day", TimeZone = "America/Lima", StartTime = "09:00:00", EndTime = "17:00:00", DaysOfWeeks = new[] { 1, 2, 3, 4, 5, }, }, ScheduledActions = new[] { new Pagerduty.Inputs.ServiceScheduledActionArgs { Type = "urgency_change", ToUrgency = "high", Ats = new[] { new Pagerduty.Inputs.ServiceScheduledActionAtArgs { Type = "named_time", Name = "support_hours_start", }, }, }, }, }); });package main import ( "github.com/pulumi/pulumi-pagerduty/sdk/v3/go/pagerduty" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{ Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(pagerduty_escalation_policy.Foo.Id), IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{ Type: pulumi.String("use_support_hours"), DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("high"), }, OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("low"), }, }, SupportHours: &pagerduty.ServiceSupportHoursArgs{ Type: pulumi.String("fixed_time_per_day"), TimeZone: pulumi.String("America/Lima"), StartTime: pulumi.String("09:00:00"), EndTime: pulumi.String("17:00:00"), DaysOfWeeks: pulumi.IntArray{ pulumi.Int(1), pulumi.Int(2), pulumi.Int(3), pulumi.Int(4), pulumi.Int(5), }, }, ScheduledActions: pagerduty.ServiceScheduledActionArray{ &pagerduty.ServiceScheduledActionArgs{ Type: pulumi.String("urgency_change"), ToUrgency: pulumi.String("high"), Ats: pagerduty.ServiceScheduledActionAtArray{ &pagerduty.ServiceScheduledActionAtArgs{ Type: pulumi.String("named_time"), Name: pulumi.String("support_hours_start"), }, }, }, }, }) if err != nil { return err } return nil }) }package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.pagerduty.Service; import com.pulumi.pagerduty.ServiceArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs; 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 foo = new Service("foo", ServiceArgs.builder() .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(pagerduty_escalation_policy.foo().id()) .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder() .type("use_support_hours") .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder() .type("constant") .urgency("high") .build()) .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder() .type("constant") .urgency("low") .build()) .build()) .supportHours(ServiceSupportHoursArgs.builder() .type("fixed_time_per_day") .timeZone("America/Lima") .startTime("09:00:00") .endTime("17:00:00") .daysOfWeeks( 1, 2, 3, 4, 5) .build()) .scheduledActions(ServiceScheduledActionArgs.builder() .type("urgency_change") .toUrgency("high") .ats(ServiceScheduledActionAtArgs.builder() .type("named_time") .name("support_hours_start") .build()) .build()) .build()); } }resources: foo: type: pagerduty:Service properties: description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${pagerduty_escalation_policy.foo.id} incidentUrgencyRule: type: use_support_hours duringSupportHours: type: constant urgency: high outsideSupportHours: type: constant urgency: low supportHours: type: fixed_time_per_day timeZone: America/Lima startTime: 09:00:00 endTime: 17:00:00 daysOfWeeks: - 1 - 2 - 3 - 4 - 5 scheduledActions: - type: urgency_change toUrgency: high ats: - type: named_time name: support_hours_start- type String
- The type of time specification. Currently, this must be set to
named_time.
- name string
Designates either the start or the end of the scheduled action. Can be
support_hours_startorsupport_hours_end.Note that it is currently only possible to define the scheduled action when urgency is set to
highforduring_support_hoursand tolowforoutside_support_hoursinincident_urgency_rule.Below is an example for a
pagerduty.Serviceresource withincident_urgency_ruleswithtype = "use_support_hours",support_hoursand a defaultscheduled_actionas well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";const foo = new pagerduty.Service("foo", { description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: pagerduty_escalation_policy.foo.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });
import pulumi import pulumi_pagerduty as pagerduty foo = pagerduty.Service("foo", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=pagerduty_escalation_policy["foo"]["id"], incident_urgency_rule=pagerduty.ServiceIncidentUrgencyRuleArgs( type="use_support_hours", during_support_hours=pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs( type="constant", urgency="high", ), outside_support_hours=pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs( type="constant", urgency="low", ), ), support_hours=pagerduty.ServiceSupportHoursArgs( type="fixed_time_per_day", time_zone="America/Lima", start_time="09:00:00", end_time="17:00:00", days_of_weeks=[ 1, 2, 3, 4, 5, ], ), scheduled_actions=[pagerduty.ServiceScheduledActionArgs( type="urgency_change", to_urgency="high", ats=[pagerduty.ServiceScheduledActionAtArgs( type="named_time", name="support_hours_start", )], )])using System.Collections.Generic; using System.Linq; using Pulumi; using Pagerduty = Pulumi.Pagerduty; return await Deployment.RunAsync(() => { var foo = new Pagerduty.Service("foo", new() { Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = pagerduty_escalation_policy.Foo.Id, IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs { Type = "use_support_hours", DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs { Type = "constant", Urgency = "high", }, OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs { Type = "constant", Urgency = "low", }, }, SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs { Type = "fixed_time_per_day", TimeZone = "America/Lima", StartTime = "09:00:00", EndTime = "17:00:00", DaysOfWeeks = new[] { 1, 2, 3, 4, 5, }, }, ScheduledActions = new[] { new Pagerduty.Inputs.ServiceScheduledActionArgs { Type = "urgency_change", ToUrgency = "high", Ats = new[] { new Pagerduty.Inputs.ServiceScheduledActionAtArgs { Type = "named_time", Name = "support_hours_start", }, }, }, }, }); });package main import ( "github.com/pulumi/pulumi-pagerduty/sdk/v3/go/pagerduty" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{ Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(pagerduty_escalation_policy.Foo.Id), IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{ Type: pulumi.String("use_support_hours"), DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("high"), }, OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("low"), }, }, SupportHours: &pagerduty.ServiceSupportHoursArgs{ Type: pulumi.String("fixed_time_per_day"), TimeZone: pulumi.String("America/Lima"), StartTime: pulumi.String("09:00:00"), EndTime: pulumi.String("17:00:00"), DaysOfWeeks: pulumi.IntArray{ pulumi.Int(1), pulumi.Int(2), pulumi.Int(3), pulumi.Int(4), pulumi.Int(5), }, }, ScheduledActions: pagerduty.ServiceScheduledActionArray{ &pagerduty.ServiceScheduledActionArgs{ Type: pulumi.String("urgency_change"), ToUrgency: pulumi.String("high"), Ats: pagerduty.ServiceScheduledActionAtArray{ &pagerduty.ServiceScheduledActionAtArgs{ Type: pulumi.String("named_time"), Name: pulumi.String("support_hours_start"), }, }, }, }, }) if err != nil { return err } return nil }) }package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.pagerduty.Service; import com.pulumi.pagerduty.ServiceArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs; 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 foo = new Service("foo", ServiceArgs.builder() .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(pagerduty_escalation_policy.foo().id()) .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder() .type("use_support_hours") .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder() .type("constant") .urgency("high") .build()) .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder() .type("constant") .urgency("low") .build()) .build()) .supportHours(ServiceSupportHoursArgs.builder() .type("fixed_time_per_day") .timeZone("America/Lima") .startTime("09:00:00") .endTime("17:00:00") .daysOfWeeks( 1, 2, 3, 4, 5) .build()) .scheduledActions(ServiceScheduledActionArgs.builder() .type("urgency_change") .toUrgency("high") .ats(ServiceScheduledActionAtArgs.builder() .type("named_time") .name("support_hours_start") .build()) .build()) .build()); } }resources: foo: type: pagerduty:Service properties: description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${pagerduty_escalation_policy.foo.id} incidentUrgencyRule: type: use_support_hours duringSupportHours: type: constant urgency: high outsideSupportHours: type: constant urgency: low supportHours: type: fixed_time_per_day timeZone: America/Lima startTime: 09:00:00 endTime: 17:00:00 daysOfWeeks: - 1 - 2 - 3 - 4 - 5 scheduledActions: - type: urgency_change toUrgency: high ats: - type: named_time name: support_hours_start- type string
- The type of time specification. Currently, this must be set to
named_time.
- name str
Designates either the start or the end of the scheduled action. Can be
support_hours_startorsupport_hours_end.Note that it is currently only possible to define the scheduled action when urgency is set to
highforduring_support_hoursand tolowforoutside_support_hoursinincident_urgency_rule.Below is an example for a
pagerduty.Serviceresource withincident_urgency_ruleswithtype = "use_support_hours",support_hoursand a defaultscheduled_actionas well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";const foo = new pagerduty.Service("foo", { description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: pagerduty_escalation_policy.foo.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });
import pulumi import pulumi_pagerduty as pagerduty foo = pagerduty.Service("foo", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=pagerduty_escalation_policy["foo"]["id"], incident_urgency_rule=pagerduty.ServiceIncidentUrgencyRuleArgs( type="use_support_hours", during_support_hours=pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs( type="constant", urgency="high", ), outside_support_hours=pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs( type="constant", urgency="low", ), ), support_hours=pagerduty.ServiceSupportHoursArgs( type="fixed_time_per_day", time_zone="America/Lima", start_time="09:00:00", end_time="17:00:00", days_of_weeks=[ 1, 2, 3, 4, 5, ], ), scheduled_actions=[pagerduty.ServiceScheduledActionArgs( type="urgency_change", to_urgency="high", ats=[pagerduty.ServiceScheduledActionAtArgs( type="named_time", name="support_hours_start", )], )])using System.Collections.Generic; using System.Linq; using Pulumi; using Pagerduty = Pulumi.Pagerduty; return await Deployment.RunAsync(() => { var foo = new Pagerduty.Service("foo", new() { Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = pagerduty_escalation_policy.Foo.Id, IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs { Type = "use_support_hours", DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs { Type = "constant", Urgency = "high", }, OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs { Type = "constant", Urgency = "low", }, }, SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs { Type = "fixed_time_per_day", TimeZone = "America/Lima", StartTime = "09:00:00", EndTime = "17:00:00", DaysOfWeeks = new[] { 1, 2, 3, 4, 5, }, }, ScheduledActions = new[] { new Pagerduty.Inputs.ServiceScheduledActionArgs { Type = "urgency_change", ToUrgency = "high", Ats = new[] { new Pagerduty.Inputs.ServiceScheduledActionAtArgs { Type = "named_time", Name = "support_hours_start", }, }, }, }, }); });package main import ( "github.com/pulumi/pulumi-pagerduty/sdk/v3/go/pagerduty" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{ Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(pagerduty_escalation_policy.Foo.Id), IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{ Type: pulumi.String("use_support_hours"), DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("high"), }, OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("low"), }, }, SupportHours: &pagerduty.ServiceSupportHoursArgs{ Type: pulumi.String("fixed_time_per_day"), TimeZone: pulumi.String("America/Lima"), StartTime: pulumi.String("09:00:00"), EndTime: pulumi.String("17:00:00"), DaysOfWeeks: pulumi.IntArray{ pulumi.Int(1), pulumi.Int(2), pulumi.Int(3), pulumi.Int(4), pulumi.Int(5), }, }, ScheduledActions: pagerduty.ServiceScheduledActionArray{ &pagerduty.ServiceScheduledActionArgs{ Type: pulumi.String("urgency_change"), ToUrgency: pulumi.String("high"), Ats: pagerduty.ServiceScheduledActionAtArray{ &pagerduty.ServiceScheduledActionAtArgs{ Type: pulumi.String("named_time"), Name: pulumi.String("support_hours_start"), }, }, }, }, }) if err != nil { return err } return nil }) }package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.pagerduty.Service; import com.pulumi.pagerduty.ServiceArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs; 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 foo = new Service("foo", ServiceArgs.builder() .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(pagerduty_escalation_policy.foo().id()) .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder() .type("use_support_hours") .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder() .type("constant") .urgency("high") .build()) .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder() .type("constant") .urgency("low") .build()) .build()) .supportHours(ServiceSupportHoursArgs.builder() .type("fixed_time_per_day") .timeZone("America/Lima") .startTime("09:00:00") .endTime("17:00:00") .daysOfWeeks( 1, 2, 3, 4, 5) .build()) .scheduledActions(ServiceScheduledActionArgs.builder() .type("urgency_change") .toUrgency("high") .ats(ServiceScheduledActionAtArgs.builder() .type("named_time") .name("support_hours_start") .build()) .build()) .build()); } }resources: foo: type: pagerduty:Service properties: description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${pagerduty_escalation_policy.foo.id} incidentUrgencyRule: type: use_support_hours duringSupportHours: type: constant urgency: high outsideSupportHours: type: constant urgency: low supportHours: type: fixed_time_per_day timeZone: America/Lima startTime: 09:00:00 endTime: 17:00:00 daysOfWeeks: - 1 - 2 - 3 - 4 - 5 scheduledActions: - type: urgency_change toUrgency: high ats: - type: named_time name: support_hours_start- type str
- The type of time specification. Currently, this must be set to
named_time.
- name String
Designates either the start or the end of the scheduled action. Can be
support_hours_startorsupport_hours_end.Note that it is currently only possible to define the scheduled action when urgency is set to
highforduring_support_hoursand tolowforoutside_support_hoursinincident_urgency_rule.Below is an example for a
pagerduty.Serviceresource withincident_urgency_ruleswithtype = "use_support_hours",support_hoursand a defaultscheduled_actionas well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";const foo = new pagerduty.Service("foo", { description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: pagerduty_escalation_policy.foo.id, incidentUrgencyRule: { type: "use_support_hours", duringSupportHours: { type: "constant", urgency: "high", }, outsideSupportHours: { type: "constant", urgency: "low", }, }, supportHours: { type: "fixed_time_per_day", timeZone: "America/Lima", startTime: "09:00:00", endTime: "17:00:00", daysOfWeeks: [ 1, 2, 3, 4, 5, ], }, scheduledActions: [{ type: "urgency_change", toUrgency: "high", ats: [{ type: "named_time", name: "support_hours_start", }], }], });
import pulumi import pulumi_pagerduty as pagerduty foo = pagerduty.Service("foo", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=pagerduty_escalation_policy["foo"]["id"], incident_urgency_rule=pagerduty.ServiceIncidentUrgencyRuleArgs( type="use_support_hours", during_support_hours=pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs( type="constant", urgency="high", ), outside_support_hours=pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs( type="constant", urgency="low", ), ), support_hours=pagerduty.ServiceSupportHoursArgs( type="fixed_time_per_day", time_zone="America/Lima", start_time="09:00:00", end_time="17:00:00", days_of_weeks=[ 1, 2, 3, 4, 5, ], ), scheduled_actions=[pagerduty.ServiceScheduledActionArgs( type="urgency_change", to_urgency="high", ats=[pagerduty.ServiceScheduledActionAtArgs( type="named_time", name="support_hours_start", )], )])using System.Collections.Generic; using System.Linq; using Pulumi; using Pagerduty = Pulumi.Pagerduty; return await Deployment.RunAsync(() => { var foo = new Pagerduty.Service("foo", new() { Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = pagerduty_escalation_policy.Foo.Id, IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs { Type = "use_support_hours", DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs { Type = "constant", Urgency = "high", }, OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs { Type = "constant", Urgency = "low", }, }, SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs { Type = "fixed_time_per_day", TimeZone = "America/Lima", StartTime = "09:00:00", EndTime = "17:00:00", DaysOfWeeks = new[] { 1, 2, 3, 4, 5, }, }, ScheduledActions = new[] { new Pagerduty.Inputs.ServiceScheduledActionArgs { Type = "urgency_change", ToUrgency = "high", Ats = new[] { new Pagerduty.Inputs.ServiceScheduledActionAtArgs { Type = "named_time", Name = "support_hours_start", }, }, }, }, }); });package main import ( "github.com/pulumi/pulumi-pagerduty/sdk/v3/go/pagerduty" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := pagerduty.NewService(ctx, "foo", &pagerduty.ServiceArgs{ Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(pagerduty_escalation_policy.Foo.Id), IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{ Type: pulumi.String("use_support_hours"), DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("high"), }, OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{ Type: pulumi.String("constant"), Urgency: pulumi.String("low"), }, }, SupportHours: &pagerduty.ServiceSupportHoursArgs{ Type: pulumi.String("fixed_time_per_day"), TimeZone: pulumi.String("America/Lima"), StartTime: pulumi.String("09:00:00"), EndTime: pulumi.String("17:00:00"), DaysOfWeeks: pulumi.IntArray{ pulumi.Int(1), pulumi.Int(2), pulumi.Int(3), pulumi.Int(4), pulumi.Int(5), }, }, ScheduledActions: pagerduty.ServiceScheduledActionArray{ &pagerduty.ServiceScheduledActionArgs{ Type: pulumi.String("urgency_change"), ToUrgency: pulumi.String("high"), Ats: pagerduty.ServiceScheduledActionAtArray{ &pagerduty.ServiceScheduledActionAtArgs{ Type: pulumi.String("named_time"), Name: pulumi.String("support_hours_start"), }, }, }, }, }) if err != nil { return err } return nil }) }package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.pagerduty.Service; import com.pulumi.pagerduty.ServiceArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceSupportHoursArgs; import com.pulumi.pagerduty.inputs.ServiceScheduledActionArgs; 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 foo = new Service("foo", ServiceArgs.builder() .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(pagerduty_escalation_policy.foo().id()) .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder() .type("use_support_hours") .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder() .type("constant") .urgency("high") .build()) .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder() .type("constant") .urgency("low") .build()) .build()) .supportHours(ServiceSupportHoursArgs.builder() .type("fixed_time_per_day") .timeZone("America/Lima") .startTime("09:00:00") .endTime("17:00:00") .daysOfWeeks( 1, 2, 3, 4, 5) .build()) .scheduledActions(ServiceScheduledActionArgs.builder() .type("urgency_change") .toUrgency("high") .ats(ServiceScheduledActionAtArgs.builder() .type("named_time") .name("support_hours_start") .build()) .build()) .build()); } }resources: foo: type: pagerduty:Service properties: description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${pagerduty_escalation_policy.foo.id} incidentUrgencyRule: type: use_support_hours duringSupportHours: type: constant urgency: high outsideSupportHours: type: constant urgency: low supportHours: type: fixed_time_per_day timeZone: America/Lima startTime: 09:00:00 endTime: 17:00:00 daysOfWeeks: - 1 - 2 - 3 - 4 - 5 scheduledActions: - type: urgency_change toUrgency: high ats: - type: named_time name: support_hours_start- type String
- The type of time specification. Currently, this must be set to
named_time.
ServiceSupportHours, ServiceSupportHoursArgs
- Days
Of List<int>Weeks - Array of days of week as integers.
1to7,1being Monday and7being Sunday. - End
Time string The support hours' ending time of day.
A
scheduled_actionsblock is required when usingtype = "use_support_hours"inincident_urgency_rule.The block contains the following arguments:
- Start
Time string - The support hours' starting time of day.
- Time
Zone string - The time zone for the support hours.
- Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- Days
Of []intWeeks - Array of days of week as integers.
1to7,1being Monday and7being Sunday. - End
Time string The support hours' ending time of day.
A
scheduled_actionsblock is required when usingtype = "use_support_hours"inincident_urgency_rule.The block contains the following arguments:
- Start
Time string - The support hours' starting time of day.
- Time
Zone string - The time zone for the support hours.
- Type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- days
Of List<Integer>Weeks - Array of days of week as integers.
1to7,1being Monday and7being Sunday. - end
Time String The support hours' ending time of day.
A
scheduled_actionsblock is required when usingtype = "use_support_hours"inincident_urgency_rule.The block contains the following arguments:
- start
Time String - The support hours' starting time of day.
- time
Zone String - The time zone for the support hours.
- type String
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- days
Of number[]Weeks - Array of days of week as integers.
1to7,1being Monday and7being Sunday. - end
Time string The support hours' ending time of day.
A
scheduled_actionsblock is required when usingtype = "use_support_hours"inincident_urgency_rule.The block contains the following arguments:
- start
Time string - The support hours' starting time of day.
- time
Zone string - The time zone for the support hours.
- type string
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- days_
of_ Sequence[int]weeks - Array of days of week as integers.
1to7,1being Monday and7being Sunday. - end_
time str The support hours' ending time of day.
A
scheduled_actionsblock is required when usingtype = "use_support_hours"inincident_urgency_rule.The block contains the following arguments:
- start_
time str - The support hours' starting time of day.
- time_
zone str - The time zone for the support hours.
- type str
- The type of alert grouping; one of
intelligent,timeorcontent_based.
- days
Of List<Number>Weeks - Array of days of week as integers.
1to7,1being Monday and7being Sunday. - end
Time String The support hours' ending time of day.
A
scheduled_actionsblock is required when usingtype = "use_support_hours"inincident_urgency_rule.The block contains the following arguments:
- start
Time String - The support hours' starting time of day.
- time
Zone String - The time zone for the support hours.
- type String
- The type of alert grouping; one of
intelligent,timeorcontent_based.
Import
Services can be imported using the id, e.g.
$ pulumi import pagerduty:index/service:Service main PLBP09X
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- PagerDuty pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pagerdutyTerraform Provider.
published on Monday, Mar 9, 2026 by Pulumi
