Service

A service represents something you monitor (like a web service, email service, or database service). It is a container for related incidents that associates them with escalation policies.

Example Usage

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleUser = new Pagerduty.User("exampleUser", new Pagerduty.UserArgs
        {
            Email = "125.greenholt.earline@graham.name",
            Teams = 
            {
                pagerduty_team.Example.Id,
            },
        });
        var foo = new Pagerduty.EscalationPolicy("foo", new Pagerduty.EscalationPolicyArgs
        {
            NumLoops = 2,
            Rules = 
            {
                new Pagerduty.Inputs.EscalationPolicyRuleArgs
                {
                    EscalationDelayInMinutes = 10,
                    Targets = 
                    {
                        new Pagerduty.Inputs.EscalationPolicyRuleTargetArgs
                        {
                            Type = "user",
                            Id = exampleUser.Id,
                        },
                    },
                },
            },
        });
        var exampleService = new Pagerduty.Service("exampleService", new Pagerduty.ServiceArgs
        {
            AutoResolveTimeout = "14400",
            AcknowledgementTimeout = "600",
            EscalationPolicy = pagerduty_escalation_policy.Example.Id,
            AlertCreation = "create_alerts_and_incidents",
        });
    }

}

Coming soon!

import pulumi
import pulumi_pagerduty as pagerduty

example_user = pagerduty.User("exampleUser",
    email="125.greenholt.earline@graham.name",
    teams=[pagerduty_team["example"]["id"]])
foo = pagerduty.EscalationPolicy("foo",
    num_loops=2,
    rules=[pagerduty.EscalationPolicyRuleArgs(
        escalation_delay_in_minutes=10,
        targets=[pagerduty.EscalationPolicyRuleTargetArgs(
            type="user",
            id=example_user.id,
        )],
    )])
example_service = pagerduty.Service("exampleService",
    auto_resolve_timeout="14400",
    acknowledgement_timeout="600",
    escalation_policy=pagerduty_escalation_policy["example"]["id"],
    alert_creation="create_alerts_and_incidents")
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const exampleUser = new pagerduty.User("exampleUser", {
    email: "125.greenholt.earline@graham.name",
    teams: [pagerduty_team.example.id],
});
const foo = new pagerduty.EscalationPolicy("foo", {
    numLoops: 2,
    rules: [{
        escalationDelayInMinutes: 10,
        targets: [{
            type: "user",
            id: exampleUser.id,
        }],
    }],
});
const exampleService = new pagerduty.Service("exampleService", {
    autoResolveTimeout: 14400,
    acknowledgementTimeout: 600,
    escalationPolicy: pagerduty_escalation_policy.example.id,
    alertCreation: "create_alerts_and_incidents",
});

Create a Service Resource

new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
@overload
def Service(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            acknowledgement_timeout: Optional[str] = None,
            alert_creation: Optional[str] = None,
            alert_grouping: Optional[str] = None,
            alert_grouping_timeout: Optional[int] = None,
            auto_resolve_timeout: Optional[str] = None,
            description: Optional[str] = None,
            escalation_policy: Optional[str] = None,
            incident_urgency_rule: Optional[ServiceIncidentUrgencyRuleArgs] = None,
            name: Optional[str] = None,
            scheduled_actions: Optional[Sequence[ServiceScheduledActionArgs]] = None,
            support_hours: Optional[ServiceSupportHoursArgs] = None)
@overload
def Service(resource_name: str,
            args: ServiceArgs,
            opts: Optional[ResourceOptions] = None)
func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
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.

Service Resource Properties

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

Inputs

The Service resource accepts the following input properties:

EscalationPolicy string
The escalation policy used by this service.
AcknowledgementTimeout string
Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string.
AlertCreation string
Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value “create_incidents” is default: events will create an incident that cannot be merged. Value “create_alerts_and_incidents” is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
AlertGrouping string
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 the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - 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.
AlertGroupingTimeout int
The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
AutoResolveTimeout string
Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
Description string
IncidentUrgencyRule ServiceIncidentUrgencyRuleArgs
Name string
The name of the service.
ScheduledActions List<ServiceScheduledActionArgs>
SupportHours ServiceSupportHoursArgs
EscalationPolicy string
The escalation policy used by this service.
AcknowledgementTimeout string
Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string.
AlertCreation string
Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value “create_incidents” is default: events will create an incident that cannot be merged. Value “create_alerts_and_incidents” is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
AlertGrouping string
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 the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - 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.
AlertGroupingTimeout int
The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
AutoResolveTimeout string
Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
Description string
IncidentUrgencyRule ServiceIncidentUrgencyRule
Name string
The name of the service.
ScheduledActions []ServiceScheduledAction
SupportHours ServiceSupportHours
escalationPolicy string
The escalation policy used by this service.
acknowledgementTimeout string
Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string.
alertCreation string
Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value “create_incidents” is default: events will create an incident that cannot be merged. Value “create_alerts_and_incidents” is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
alertGrouping string
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 the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - 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.
alertGroupingTimeout number
The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
autoResolveTimeout string
Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
description string
incidentUrgencyRule ServiceIncidentUrgencyRuleArgs
name string
The name of the service.
scheduledActions ServiceScheduledActionArgs[]
supportHours ServiceSupportHoursArgs
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.
alert_creation str
Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value “create_incidents” is default: events will create an incident that cannot be merged. Value “create_alerts_and_incidents” is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
alert_grouping str
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 the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - 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.
alert_grouping_timeout int
The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
auto_resolve_timeout str
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_rule ServiceIncidentUrgencyRuleArgs
name str
The name of the service.
scheduled_actions Sequence[ServiceScheduledActionArgs]
support_hours ServiceSupportHoursArgs

Outputs

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

CreatedAt string
HtmlUrl string
Id string
The provider-assigned unique ID for this managed resource.
LastIncidentTimestamp string
Status string
CreatedAt string
HtmlUrl string
Id string
The provider-assigned unique ID for this managed resource.
LastIncidentTimestamp string
Status string
createdAt string
htmlUrl string
id string
The provider-assigned unique ID for this managed resource.
lastIncidentTimestamp string
status string
created_at str
html_url str
id str
The provider-assigned unique ID for this managed resource.
last_incident_timestamp str
status str

Look up an 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_timeout: Optional[int] = 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,
        scheduled_actions: Optional[Sequence[ServiceScheduledActionArgs]] = None,
        status: Optional[str] = None,
        support_hours: Optional[ServiceSupportHoursArgs] = 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)
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.

The following state arguments are supported:

AcknowledgementTimeout string
Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string.
AlertCreation string
Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value “create_incidents” is default: events will create an incident that cannot be merged. Value “create_alerts_and_incidents” is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
AlertGrouping string
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 the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - 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.
AlertGroupingTimeout int
The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
AutoResolveTimeout string
Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
CreatedAt string
Description string
EscalationPolicy string
The escalation policy used by this service.
HtmlUrl string
IncidentUrgencyRule ServiceIncidentUrgencyRuleArgs
LastIncidentTimestamp string
Name string
The name of the service.
ScheduledActions List<ServiceScheduledActionArgs>
Status string
SupportHours ServiceSupportHoursArgs
AcknowledgementTimeout string
Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string.
AlertCreation string
Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value “create_incidents” is default: events will create an incident that cannot be merged. Value “create_alerts_and_incidents” is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
AlertGrouping string
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 the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - 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.
AlertGroupingTimeout int
The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
AutoResolveTimeout string
Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
CreatedAt string
Description string
EscalationPolicy string
The escalation policy used by this service.
HtmlUrl string
IncidentUrgencyRule ServiceIncidentUrgencyRule
LastIncidentTimestamp string
Name string
The name of the service.
ScheduledActions []ServiceScheduledAction
Status string
SupportHours ServiceSupportHours
acknowledgementTimeout string
Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string.
alertCreation string
Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value “create_incidents” is default: events will create an incident that cannot be merged. Value “create_alerts_and_incidents” is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
alertGrouping string
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 the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - 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.
alertGroupingTimeout number
The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
autoResolveTimeout string
Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
createdAt string
description string
escalationPolicy string
The escalation policy used by this service.
htmlUrl string
incidentUrgencyRule ServiceIncidentUrgencyRuleArgs
lastIncidentTimestamp string
name string
The name of the service.
scheduledActions ServiceScheduledActionArgs[]
status string
supportHours ServiceSupportHoursArgs
acknowledgement_timeout str
Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string.
alert_creation str
Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value “create_incidents” is default: events will create an incident that cannot be merged. Value “create_alerts_and_incidents” is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. This option is recommended.
alert_grouping str
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 the alert_grouping_timeout setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to intelligent - 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.
alert_grouping_timeout int
The duration in minutes within which to automatically group incoming alerts. This setting applies only when alert_grouping is set to time. To continue grouping alerts until the incident is resolved, set this value to 0.
auto_resolve_timeout str
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
description str
escalation_policy str
The escalation policy used by this service.
html_url str
incident_urgency_rule ServiceIncidentUrgencyRuleArgs
last_incident_timestamp str
name str
The name of the service.
scheduled_actions Sequence[ServiceScheduledActionArgs]
status str
support_hours ServiceSupportHoursArgs

Supporting Types

ServiceIncidentUrgencyRule

Type string
The type of scheduled action. Currently, this must be set to urgency_change.
DuringSupportHours ServiceIncidentUrgencyRuleDuringSupportHoursArgs
Incidents' urgency during support hours.
OutsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
Incidents' urgency outside of support hours.
Urgency string
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.
Type string
The type of scheduled action. Currently, this must be set to urgency_change.
DuringSupportHours ServiceIncidentUrgencyRuleDuringSupportHours
Incidents' urgency during support hours.
OutsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHours
Incidents' urgency outside of support hours.
Urgency string
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.
type string
The type of scheduled action. Currently, this must be set to urgency_change.
duringSupportHours ServiceIncidentUrgencyRuleDuringSupportHoursArgs
Incidents' urgency during support hours.
outsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
Incidents' urgency outside of support hours.
urgency string
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.
type str
The type of scheduled action. Currently, this must be set to urgency_change.
during_support_hours ServiceIncidentUrgencyRuleDuringSupportHoursArgs
Incidents' urgency during support hours.
outside_support_hours ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
Incidents' urgency outside of support hours.
urgency str
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.

ServiceIncidentUrgencyRuleDuringSupportHours

Type string
The type of scheduled action. Currently, this must be set to urgency_change.
Urgency string
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.
Type string
The type of scheduled action. Currently, this must be set to urgency_change.
Urgency string
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.
type string
The type of scheduled action. Currently, this must be set to urgency_change.
urgency string
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.
type str
The type of scheduled action. Currently, this must be set to urgency_change.
urgency str
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.

ServiceIncidentUrgencyRuleOutsideSupportHours

Type string
The type of scheduled action. Currently, this must be set to urgency_change.
Urgency string
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.
Type string
The type of scheduled action. Currently, this must be set to urgency_change.
Urgency string
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.
type string
The type of scheduled action. Currently, this must be set to urgency_change.
urgency string
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.
type str
The type of scheduled action. Currently, this must be set to urgency_change.
urgency str
The urgency: low Notify responders (does not escalate), high (follows escalation rules) or severity_based Set’s the urgency of the incident based on the severity set by the triggering monitoring tool.

ServiceScheduledAction

Ats List<ServiceScheduledActionAtArgs>
A block representing when the scheduled action will occur.
ToUrgency string
The urgency to change to: low (does not escalate), or high (follows escalation rules).
Type string
The type of scheduled action. Currently, this must be set to urgency_change.
Ats []ServiceScheduledActionAt
A block representing when the scheduled action will occur.
ToUrgency string
The urgency to change to: low (does not escalate), or high (follows escalation rules).
Type string
The type of scheduled action. Currently, this must be set to urgency_change.
ats ServiceScheduledActionAtArgs[]
A block representing when the scheduled action will occur.
toUrgency string
The urgency to change to: low (does not escalate), or high (follows escalation rules).
type string
The type of scheduled action. Currently, this must be set to urgency_change.
ats Sequence[ServiceScheduledActionAtArgs]
A block representing when the scheduled action will occur.
to_urgency str
The urgency to change to: low (does not escalate), or high (follows escalation rules).
type str
The type of scheduled action. Currently, this must be set to urgency_change.

ServiceScheduledActionAt

Name string
Designates either the start or the end of the scheduled action. Can be support_hours_start or support_hours_end.
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 or support_hours_end.
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 or support_hours_end.
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 or support_hours_end.
type str
The type of time specification. Currently, this must be set to named_time.

ServiceSupportHours

DaysOfWeeks List<int>
Array of days of week as integers. 1 to 7, 1 being Monday and 7 being Sunday.
EndTime string
The support hours' ending time of day.
StartTime string
The support hours' starting time of day.
TimeZone string
The time zone for the support hours.
Type string
The type of scheduled action. Currently, this must be set to urgency_change.
DaysOfWeeks []int
Array of days of week as integers. 1 to 7, 1 being Monday and 7 being Sunday.
EndTime string
The support hours' ending time of day.
StartTime string
The support hours' starting time of day.
TimeZone string
The time zone for the support hours.
Type string
The type of scheduled action. Currently, this must be set to urgency_change.
daysOfWeeks number[]
Array of days of week as integers. 1 to 7, 1 being Monday and 7 being Sunday.
endTime string
The support hours' ending time of day.
startTime string
The support hours' starting time of day.
timeZone string
The time zone for the support hours.
type string
The type of scheduled action. Currently, this must be set to urgency_change.
days_of_weeks Sequence[int]
Array of days of week as integers. 1 to 7, 1 being Monday and 7 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 scheduled action. Currently, this must be set to urgency_change.

Import

Services can be imported using the id, e.g.

 $ pulumi import pagerduty:index/service:Service main PLBP09X

Package Details

Repository
https://github.com/pulumi/pulumi-pagerduty
License
Apache-2.0
Notes
This Pulumi package is based on the pagerduty Terraform Provider.