pagerduty.Service
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";
const example = new pagerduty.User("example", {
name: "Earline Greenholt",
email: "125.greenholt.earline@graham.name",
});
const foo = new pagerduty.EscalationPolicy("foo", {
name: "Engineering Escalation Policy",
numLoops: 2,
rules: [{
escalationDelayInMinutes: 10,
targets: [{
type: "user_reference",
id: example.id,
}],
}],
});
const exampleService = new pagerduty.Service("example", {
name: "My Web App",
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 = pagerduty.User("example",
name="Earline Greenholt",
email="125.greenholt.earline@graham.name")
foo = pagerduty.EscalationPolicy("foo",
name="Engineering Escalation Policy",
num_loops=2,
rules=[{
"escalation_delay_in_minutes": 10,
"targets": [{
"type": "user_reference",
"id": example.id,
}],
}])
example_service = pagerduty.Service("example",
name="My Web App",
auto_resolve_timeout="14400",
acknowledgement_timeout="600",
escalation_policy=foo.id,
alert_creation="create_alerts_and_incidents",
auto_pause_notifications_parameters={
"enabled": True,
"timeout": 300,
})
package main
import (
"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := pagerduty.NewUser(ctx, "example", &pagerduty.UserArgs{
Name: pulumi.String("Earline Greenholt"),
Email: pulumi.String("125.greenholt.earline@graham.name"),
})
if err != nil {
return err
}
foo, err := pagerduty.NewEscalationPolicy(ctx, "foo", &pagerduty.EscalationPolicyArgs{
Name: pulumi.String("Engineering Escalation Policy"),
NumLoops: pulumi.Int(2),
Rules: pagerduty.EscalationPolicyRuleArray{
&pagerduty.EscalationPolicyRuleArgs{
EscalationDelayInMinutes: pulumi.Int(10),
Targets: pagerduty.EscalationPolicyRuleTargetArray{
&pagerduty.EscalationPolicyRuleTargetArgs{
Type: pulumi.String("user_reference"),
Id: example.ID(),
},
},
},
},
})
if err != nil {
return err
}
_, err = pagerduty.NewService(ctx, "example", &pagerduty.ServiceArgs{
Name: pulumi.String("My Web App"),
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
return await Deployment.RunAsync(() =>
{
var example = new Pagerduty.User("example", new()
{
Name = "Earline Greenholt",
Email = "125.greenholt.earline@graham.name",
});
var foo = new Pagerduty.EscalationPolicy("foo", new()
{
Name = "Engineering Escalation Policy",
NumLoops = 2,
Rules = new[]
{
new Pagerduty.Inputs.EscalationPolicyRuleArgs
{
EscalationDelayInMinutes = 10,
Targets = new[]
{
new Pagerduty.Inputs.EscalationPolicyRuleTargetArgs
{
Type = "user_reference",
Id = example.Id,
},
},
},
},
});
var exampleService = new Pagerduty.Service("example", new()
{
Name = "My Web App",
AutoResolveTimeout = "14400",
AcknowledgementTimeout = "600",
EscalationPolicy = foo.Id,
AlertCreation = "create_alerts_and_incidents",
AutoPauseNotificationsParameters = new Pagerduty.Inputs.ServiceAutoPauseNotificationsParametersArgs
{
Enabled = true,
Timeout = 300,
},
});
});
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 example = new User("example", UserArgs.builder()
.name("Earline Greenholt")
.email("125.greenholt.earline@graham.name")
.build());
var foo = new EscalationPolicy("foo", EscalationPolicyArgs.builder()
.name("Engineering Escalation Policy")
.numLoops(2)
.rules(EscalationPolicyRuleArgs.builder()
.escalationDelayInMinutes(10)
.targets(EscalationPolicyRuleTargetArgs.builder()
.type("user_reference")
.id(example.id())
.build())
.build())
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.name("My Web App")
.autoResolveTimeout(14400)
.acknowledgementTimeout(600)
.escalationPolicy(foo.id())
.alertCreation("create_alerts_and_incidents")
.autoPauseNotificationsParameters(ServiceAutoPauseNotificationsParametersArgs.builder()
.enabled(true)
.timeout(300)
.build())
.build());
}
}
resources:
example:
type: pagerduty:User
properties:
name: Earline Greenholt
email: 125.greenholt.earline@graham.name
foo:
type: pagerduty:EscalationPolicy
properties:
name: Engineering Escalation Policy
numLoops: 2
rules:
- escalationDelayInMinutes: 10
targets:
- type: user_reference
id: ${example.id}
exampleService:
type: pagerduty:Service
name: example
properties:
name: My Web App
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",
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"),
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")
.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",
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",
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
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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - Alert
Grouping ServiceParameters Alert Grouping Parameters - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - Alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - Alert
Grouping ServiceParameters Alert Grouping Parameters Args - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - Alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - alert
Grouping ServiceParameters Alert Grouping Parameters - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - alert
Grouping StringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - alert
Grouping ServiceParameters Alert Grouping Parameters - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - alert_
grouping_ Serviceparameters Alert Grouping Parameters Args - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - alert_
grouping_ strtimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - alert
Grouping Property MapParameters - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - alert
Grouping StringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
- 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
- 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
- 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
- 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
- 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
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) -> Service
func 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)
Resource lookup is not supported in YAML
- 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - Alert
Grouping ServiceParameters Alert Grouping Parameters - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - Alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
- 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - Alert
Grouping ServiceParameters Alert Grouping Parameters Args - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - Alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
- 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - alert
Grouping ServiceParameters Alert Grouping Parameters - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - alert
Grouping StringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
- 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - alert
Grouping ServiceParameters Alert Grouping Parameters - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - alert
Grouping stringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
- 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - alert_
grouping_ Serviceparameters Alert Grouping Parameters Args - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - alert_
grouping_ strtimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
- 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 - (Deprecated) This attribute has been deprecated as all services will be migrated to use alerts and incidents. The incident only service setting will be no longer available and this attribute will be removed in an upcoming version. See knowledge base for details https://support.pagerduty.com/docs/alerts#enable-and-disable-alerts-on-a-service.
- 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_timeout
setting (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.type
instead, - alert
Grouping Property MapParameters - (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. Instructions on how to migrate this configuration to
pagerduty.AlertGroupingSetting
resource can be found here. - alert
Grouping StringTimeout - (Deprecated) The duration in minutes within which to automatically group incoming alerts. This setting applies only when
alert_grouping
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
. This field is deprecated, usealert_grouping_parameters.config.timeout
instead, - 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 - (Deprecated) 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 object. The value returned will be
service
. Can be used for passing to a service dependency.
Supporting Types
ServiceAlertGroupingParameters, ServiceAlertGroupingParametersArgs
- Config
Service
Alert Grouping Parameters Config - Alert grouping parameters dependent on
type
. Iftype
is set tointelligent
or empty thenconfig
can be empty. - Type string
- The type of alert grouping; one of
intelligent
,time
orcontent_based
.
- Config
Service
Alert Grouping Parameters Config - Alert grouping parameters dependent on
type
. Iftype
is set tointelligent
or empty thenconfig
can be empty. - Type string
- The type of alert grouping; one of
intelligent
,time
orcontent_based
.
- config
Service
Alert Grouping Parameters Config - Alert grouping parameters dependent on
type
. Iftype
is set tointelligent
or empty thenconfig
can be empty. - type String
- The type of alert grouping; one of
intelligent
,time
orcontent_based
.
- config
Service
Alert Grouping Parameters Config - Alert grouping parameters dependent on
type
. Iftype
is set tointelligent
or empty thenconfig
can be empty. - type string
- The type of alert grouping; one of
intelligent
,time
orcontent_based
.
- config
Service
Alert Grouping Parameters Config - Alert grouping parameters dependent on
type
. Iftype
is set tointelligent
or empty thenconfig
can be empty. - type str
- The type of alert grouping; one of
intelligent
,time
orcontent_based
.
- config Property Map
- Alert grouping parameters dependent on
type
. Iftype
is set tointelligent
or empty thenconfig
can be empty. - type String
- The type of alert grouping; one of
intelligent
,time
orcontent_based
.
ServiceAlertGroupingParametersConfig, ServiceAlertGroupingParametersConfigArgs
- Aggregate string
- One of
any
orall
. This setting applies only whentype
is set tocontent_based
. Group alerts based on one or all offields
value(s). - Fields List<string>
- Alerts will be grouped together if the content of these fields match. This setting applies only when
type
is set tocontent_based
. - Time
Window int - The maximum amount of time allowed between Alerts. This setting applies only when
type
is set tointelligent
orcontent_based
. Value must be between300
and3600
or exactly86400
(86400 is supported only forcontent_based
alert grouping). Any Alerts arriving greater thantime_window
seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours. - Timeout int
- The duration in minutes within which to automatically group incoming alerts. This setting applies only when
type
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
.
- Aggregate string
- One of
any
orall
. This setting applies only whentype
is set tocontent_based
. Group alerts based on one or all offields
value(s). - Fields []string
- Alerts will be grouped together if the content of these fields match. This setting applies only when
type
is set tocontent_based
. - Time
Window int - The maximum amount of time allowed between Alerts. This setting applies only when
type
is set tointelligent
orcontent_based
. Value must be between300
and3600
or exactly86400
(86400 is supported only forcontent_based
alert grouping). Any Alerts arriving greater thantime_window
seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours. - Timeout int
- The duration in minutes within which to automatically group incoming alerts. This setting applies only when
type
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
.
- aggregate String
- One of
any
orall
. This setting applies only whentype
is set tocontent_based
. Group alerts based on one or all offields
value(s). - fields List<String>
- Alerts will be grouped together if the content of these fields match. This setting applies only when
type
is set tocontent_based
. - time
Window Integer - The maximum amount of time allowed between Alerts. This setting applies only when
type
is set tointelligent
orcontent_based
. Value must be between300
and3600
or exactly86400
(86400 is supported only forcontent_based
alert grouping). Any Alerts arriving greater thantime_window
seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours. - timeout Integer
- The duration in minutes within which to automatically group incoming alerts. This setting applies only when
type
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
.
- aggregate string
- One of
any
orall
. This setting applies only whentype
is set tocontent_based
. Group alerts based on one or all offields
value(s). - fields string[]
- Alerts will be grouped together if the content of these fields match. This setting applies only when
type
is set tocontent_based
. - time
Window number - The maximum amount of time allowed between Alerts. This setting applies only when
type
is set tointelligent
orcontent_based
. Value must be between300
and3600
or exactly86400
(86400 is supported only forcontent_based
alert grouping). Any Alerts arriving greater thantime_window
seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours. - timeout number
- The duration in minutes within which to automatically group incoming alerts. This setting applies only when
type
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
.
- aggregate str
- One of
any
orall
. This setting applies only whentype
is set tocontent_based
. Group alerts based on one or all offields
value(s). - fields Sequence[str]
- Alerts will be grouped together if the content of these fields match. This setting applies only when
type
is set tocontent_based
. - time_
window int - The maximum amount of time allowed between Alerts. This setting applies only when
type
is set tointelligent
orcontent_based
. Value must be between300
and3600
or exactly86400
(86400 is supported only forcontent_based
alert grouping). Any Alerts arriving greater thantime_window
seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours. - timeout int
- The duration in minutes within which to automatically group incoming alerts. This setting applies only when
type
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
.
- aggregate String
- One of
any
orall
. This setting applies only whentype
is set tocontent_based
. Group alerts based on one or all offields
value(s). - fields List<String>
- Alerts will be grouped together if the content of these fields match. This setting applies only when
type
is set tocontent_based
. - time
Window Number - The maximum amount of time allowed between Alerts. This setting applies only when
type
is set tointelligent
orcontent_based
. Value must be between300
and3600
or exactly86400
(86400 is supported only forcontent_based
alert grouping). Any Alerts arriving greater thantime_window
seconds apart will not be grouped together. This is a rolling time window and is counted from the most recently grouped alert. The window is extended every time a new alert is added to the group, up to 24 hours. - timeout Number
- The duration in minutes within which to automatically group incoming alerts. This setting applies only when
type
is set totime
. To continue grouping alerts until the incident is resolved, set this value to0
.
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
,900
ifenabled
istrue
. Must be omitted or set tonull
ifenabled
isfalse
.
- 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
,900
ifenabled
istrue
. Must be omitted or set tonull
ifenabled
isfalse
.
- 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
,900
ifenabled
istrue
. Must be omitted or set tonull
ifenabled
isfalse
.
- 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
,900
ifenabled
istrue
. Must be omitted or set tonull
ifenabled
isfalse
.
- 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
,900
ifenabled
istrue
. Must be omitted or set tonull
ifenabled
isfalse
.
- 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
,900
ifenabled
istrue
. Must be omitted or set tonull
ifenabled
isfalse
.
ServiceIncidentUrgencyRule, ServiceIncidentUrgencyRuleArgs
- Type string
- The type of incident urgency:
constant
oruse_support_hours
(when depending on specific support hours; seesupport_hours
). - 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.
- Urgency string
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- Type string
- The type of incident urgency:
constant
oruse_support_hours
(when depending on specific support hours; seesupport_hours
). - 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.
- Urgency string
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type String
- The type of incident urgency:
constant
oruse_support_hours
(when depending on specific support hours; seesupport_hours
). - 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.
- urgency String
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type string
- The type of incident urgency:
constant
oruse_support_hours
(when depending on specific support hours; seesupport_hours
). - 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.
- urgency string
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type str
- The type of incident urgency:
constant
oruse_support_hours
(when depending on specific support hours; seesupport_hours
). - 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.
- urgency str
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type String
- The type of incident urgency:
constant
oruse_support_hours
(when depending on specific support hours; seesupport_hours
). - during
Support Property MapHours - Incidents' urgency during support hours.
- outside
Support Property MapHours - Incidents' urgency outside support hours.
- urgency String
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
ServiceIncidentUrgencyRuleDuringSupportHours, ServiceIncidentUrgencyRuleDuringSupportHoursArgs
- Type string
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - Urgency string
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- Type string
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - Urgency string
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type String
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - urgency String
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type string
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - urgency string
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type str
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - urgency str
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type String
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - urgency String
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
ServiceIncidentUrgencyRuleOutsideSupportHours, ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
- Type string
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - Urgency string
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- Type string
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - Urgency string
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type String
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - urgency String
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type string
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - urgency string
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type str
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - urgency str
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
- type String
- The type of object. The value returned will be
service
. Can be used for passing to a service dependency. - urgency String
- The urgency:
low
Notify responders (does not escalate),high
(follows escalation rules) orseverity_based
Set's the urgency of the incident based on the severity set by the triggering monitoring tool.
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 scheduled action. Currently, this must be set to
urgency_change
.
- 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 scheduled action. Currently, this must be set to
urgency_change
.
- 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 scheduled action. Currently, this must be set to
urgency_change
.
- 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 scheduled action. Currently, this must be set to
urgency_change
.
- 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 scheduled action. Currently, this must be set to
urgency_change
.
- 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 scheduled action. Currently, this must be set to
urgency_change
.
ServiceScheduledActionAt, ServiceScheduledActionAtArgs
- Name string
Designates either the start or the end of the scheduled action. Can be
support_hours_start
orsupport_hours_end
.Note that it is currently only possible to define the scheduled action when urgency is set to
high
forduring_support_hours
and tolow
foroutside_support_hours
inincident_urgency_rule
.Below is an example for a
pagerduty.Service
resource withincident_urgency_rules
withtype = "use_support_hours"
,support_hours
and a defaultscheduled_action
as well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";
const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.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", name="bar", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=foo_pagerduty_escalation_policy["id"], incident_urgency_rule={ "type": "use_support_hours", "during_support_hours": { "type": "constant", "urgency": "high", }, "outside_support_hours": { "type": "constant", "urgency": "low", }, }, support_hours={ "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=[{ "type": "urgency_change", "to_urgency": "high", "ats": [{ "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() { Name = "bar", Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = fooPagerdutyEscalationPolicy.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/v4/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{ Name: pulumi.String("bar"), Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(fooPagerdutyEscalationPolicy.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() .name("bar") .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(fooPagerdutyEscalationPolicy.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: name: bar description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${fooPagerdutyEscalationPolicy.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_start
orsupport_hours_end
.Note that it is currently only possible to define the scheduled action when urgency is set to
high
forduring_support_hours
and tolow
foroutside_support_hours
inincident_urgency_rule
.Below is an example for a
pagerduty.Service
resource withincident_urgency_rules
withtype = "use_support_hours"
,support_hours
and a defaultscheduled_action
as well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";
const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.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", name="bar", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=foo_pagerduty_escalation_policy["id"], incident_urgency_rule={ "type": "use_support_hours", "during_support_hours": { "type": "constant", "urgency": "high", }, "outside_support_hours": { "type": "constant", "urgency": "low", }, }, support_hours={ "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=[{ "type": "urgency_change", "to_urgency": "high", "ats": [{ "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() { Name = "bar", Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = fooPagerdutyEscalationPolicy.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/v4/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{ Name: pulumi.String("bar"), Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(fooPagerdutyEscalationPolicy.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() .name("bar") .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(fooPagerdutyEscalationPolicy.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: name: bar description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${fooPagerdutyEscalationPolicy.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_start
orsupport_hours_end
.Note that it is currently only possible to define the scheduled action when urgency is set to
high
forduring_support_hours
and tolow
foroutside_support_hours
inincident_urgency_rule
.Below is an example for a
pagerduty.Service
resource withincident_urgency_rules
withtype = "use_support_hours"
,support_hours
and a defaultscheduled_action
as well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";
const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.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", name="bar", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=foo_pagerduty_escalation_policy["id"], incident_urgency_rule={ "type": "use_support_hours", "during_support_hours": { "type": "constant", "urgency": "high", }, "outside_support_hours": { "type": "constant", "urgency": "low", }, }, support_hours={ "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=[{ "type": "urgency_change", "to_urgency": "high", "ats": [{ "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() { Name = "bar", Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = fooPagerdutyEscalationPolicy.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/v4/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{ Name: pulumi.String("bar"), Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(fooPagerdutyEscalationPolicy.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() .name("bar") .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(fooPagerdutyEscalationPolicy.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: name: bar description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${fooPagerdutyEscalationPolicy.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_start
orsupport_hours_end
.Note that it is currently only possible to define the scheduled action when urgency is set to
high
forduring_support_hours
and tolow
foroutside_support_hours
inincident_urgency_rule
.Below is an example for a
pagerduty.Service
resource withincident_urgency_rules
withtype = "use_support_hours"
,support_hours
and a defaultscheduled_action
as well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";
const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.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", name="bar", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=foo_pagerduty_escalation_policy["id"], incident_urgency_rule={ "type": "use_support_hours", "during_support_hours": { "type": "constant", "urgency": "high", }, "outside_support_hours": { "type": "constant", "urgency": "low", }, }, support_hours={ "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=[{ "type": "urgency_change", "to_urgency": "high", "ats": [{ "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() { Name = "bar", Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = fooPagerdutyEscalationPolicy.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/v4/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{ Name: pulumi.String("bar"), Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(fooPagerdutyEscalationPolicy.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() .name("bar") .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(fooPagerdutyEscalationPolicy.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: name: bar description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${fooPagerdutyEscalationPolicy.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_start
orsupport_hours_end
.Note that it is currently only possible to define the scheduled action when urgency is set to
high
forduring_support_hours
and tolow
foroutside_support_hours
inincident_urgency_rule
.Below is an example for a
pagerduty.Service
resource withincident_urgency_rules
withtype = "use_support_hours"
,support_hours
and a defaultscheduled_action
as well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";
const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.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", name="bar", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=foo_pagerduty_escalation_policy["id"], incident_urgency_rule={ "type": "use_support_hours", "during_support_hours": { "type": "constant", "urgency": "high", }, "outside_support_hours": { "type": "constant", "urgency": "low", }, }, support_hours={ "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=[{ "type": "urgency_change", "to_urgency": "high", "ats": [{ "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() { Name = "bar", Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = fooPagerdutyEscalationPolicy.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/v4/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{ Name: pulumi.String("bar"), Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(fooPagerdutyEscalationPolicy.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() .name("bar") .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(fooPagerdutyEscalationPolicy.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: name: bar description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${fooPagerdutyEscalationPolicy.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_start
orsupport_hours_end
.Note that it is currently only possible to define the scheduled action when urgency is set to
high
forduring_support_hours
and tolow
foroutside_support_hours
inincident_urgency_rule
.Below is an example for a
pagerduty.Service
resource withincident_urgency_rules
withtype = "use_support_hours"
,support_hours
and a defaultscheduled_action
as well.import * as pulumi from "@pulumi/pulumi"; import * as pagerduty from "@pulumi/pagerduty";
const foo = new pagerduty.Service("foo", { name: "bar", description: "bar bar bar", autoResolveTimeout: "3600", acknowledgementTimeout: "3600", escalationPolicy: fooPagerdutyEscalationPolicy.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", name="bar", description="bar bar bar", auto_resolve_timeout="3600", acknowledgement_timeout="3600", escalation_policy=foo_pagerduty_escalation_policy["id"], incident_urgency_rule={ "type": "use_support_hours", "during_support_hours": { "type": "constant", "urgency": "high", }, "outside_support_hours": { "type": "constant", "urgency": "low", }, }, support_hours={ "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=[{ "type": "urgency_change", "to_urgency": "high", "ats": [{ "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() { Name = "bar", Description = "bar bar bar", AutoResolveTimeout = "3600", AcknowledgementTimeout = "3600", EscalationPolicy = fooPagerdutyEscalationPolicy.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/v4/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{ Name: pulumi.String("bar"), Description: pulumi.String("bar bar bar"), AutoResolveTimeout: pulumi.String("3600"), AcknowledgementTimeout: pulumi.String("3600"), EscalationPolicy: pulumi.Any(fooPagerdutyEscalationPolicy.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() .name("bar") .description("bar bar bar") .autoResolveTimeout(3600) .acknowledgementTimeout(3600) .escalationPolicy(fooPagerdutyEscalationPolicy.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: name: bar description: bar bar bar autoResolveTimeout: 3600 acknowledgementTimeout: 3600 escalationPolicy: ${fooPagerdutyEscalationPolicy.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.
1
to7
,1
being Monday and7
being Sunday. - End
Time string - The support hours' ending time of day.
- 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 support hours. Can be
fixed_time_per_day
.
- Days
Of []intWeeks - Array of days of week as integers.
1
to7
,1
being Monday and7
being Sunday. - End
Time string - The support hours' ending time of day.
- 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 support hours. Can be
fixed_time_per_day
.
- days
Of List<Integer>Weeks - Array of days of week as integers.
1
to7
,1
being Monday and7
being Sunday. - end
Time String - The support hours' ending time of day.
- 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 support hours. Can be
fixed_time_per_day
.
- days
Of number[]Weeks - Array of days of week as integers.
1
to7
,1
being Monday and7
being Sunday. - end
Time string - The support hours' ending time of day.
- 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 support hours. Can be
fixed_time_per_day
.
- days_
of_ Sequence[int]weeks - Array of days of week as integers.
1
to7
,1
being Monday and7
being Sunday. - end_
time str - The support hours' ending time of day.
- 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 support hours. Can be
fixed_time_per_day
.
- days
Of List<Number>Weeks - Array of days of week as integers.
1
to7
,1
being Monday and7
being Sunday. - end
Time String - The support hours' ending time of day.
- 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 support hours. Can be
fixed_time_per_day
.
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
pagerduty
Terraform Provider.