1. Packages
  2. PagerDuty
  3. API Docs
  4. Service
PagerDuty v4.12.3 published on Tuesday, May 21, 2024 by Pulumi

pagerduty.Service

Explore with Pulumi AI

pagerduty logo
PagerDuty v4.12.3 published on Tuesday, May 21, 2024 by Pulumi

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

    Example Usage

    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=[pagerduty.EscalationPolicyRuleArgs(
            escalation_delay_in_minutes=10,
            targets=[pagerduty.EscalationPolicyRuleTargetArgs(
                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=pagerduty.ServiceAutoPauseNotificationsParametersArgs(
            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.

    Example

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

    var serviceResource = new Pagerduty.Service("serviceResource", new()
    {
        EscalationPolicy = "string",
        AutoResolveTimeout = "string",
        AlertGroupingParameters = new Pagerduty.Inputs.ServiceAlertGroupingParametersArgs
        {
            Config = new Pagerduty.Inputs.ServiceAlertGroupingParametersConfigArgs
            {
                Aggregate = "string",
                Fields = new[]
                {
                    "string",
                },
                TimeWindow = 0,
                Timeout = 0,
            },
            Type = "string",
        },
        AutoPauseNotificationsParameters = new Pagerduty.Inputs.ServiceAutoPauseNotificationsParametersArgs
        {
            Enabled = false,
            Timeout = 0,
        },
        AcknowledgementTimeout = "string",
        Description = "string",
        AlertCreation = "string",
        IncidentUrgencyRule = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleArgs
        {
            Type = "string",
            DuringSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleDuringSupportHoursArgs
            {
                Type = "string",
                Urgency = "string",
            },
            OutsideSupportHours = new Pagerduty.Inputs.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs
            {
                Type = "string",
                Urgency = "string",
            },
            Urgency = "string",
        },
        Name = "string",
        ResponsePlay = "string",
        ScheduledActions = new[]
        {
            new Pagerduty.Inputs.ServiceScheduledActionArgs
            {
                Ats = new[]
                {
                    new Pagerduty.Inputs.ServiceScheduledActionAtArgs
                    {
                        Name = "string",
                        Type = "string",
                    },
                },
                ToUrgency = "string",
                Type = "string",
            },
        },
        SupportHours = new Pagerduty.Inputs.ServiceSupportHoursArgs
        {
            DaysOfWeeks = new[]
            {
                0,
            },
            EndTime = "string",
            StartTime = "string",
            TimeZone = "string",
            Type = "string",
        },
    });
    
    example, err := pagerduty.NewService(ctx, "serviceResource", &pagerduty.ServiceArgs{
    	EscalationPolicy:   pulumi.String("string"),
    	AutoResolveTimeout: pulumi.String("string"),
    	AlertGroupingParameters: &pagerduty.ServiceAlertGroupingParametersArgs{
    		Config: &pagerduty.ServiceAlertGroupingParametersConfigArgs{
    			Aggregate: pulumi.String("string"),
    			Fields: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			TimeWindow: pulumi.Int(0),
    			Timeout:    pulumi.Int(0),
    		},
    		Type: pulumi.String("string"),
    	},
    	AutoPauseNotificationsParameters: &pagerduty.ServiceAutoPauseNotificationsParametersArgs{
    		Enabled: pulumi.Bool(false),
    		Timeout: pulumi.Int(0),
    	},
    	AcknowledgementTimeout: pulumi.String("string"),
    	Description:            pulumi.String("string"),
    	AlertCreation:          pulumi.String("string"),
    	IncidentUrgencyRule: &pagerduty.ServiceIncidentUrgencyRuleArgs{
    		Type: pulumi.String("string"),
    		DuringSupportHours: &pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs{
    			Type:    pulumi.String("string"),
    			Urgency: pulumi.String("string"),
    		},
    		OutsideSupportHours: &pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs{
    			Type:    pulumi.String("string"),
    			Urgency: pulumi.String("string"),
    		},
    		Urgency: pulumi.String("string"),
    	},
    	Name:         pulumi.String("string"),
    	ResponsePlay: pulumi.String("string"),
    	ScheduledActions: pagerduty.ServiceScheduledActionArray{
    		&pagerduty.ServiceScheduledActionArgs{
    			Ats: pagerduty.ServiceScheduledActionAtArray{
    				&pagerduty.ServiceScheduledActionAtArgs{
    					Name: pulumi.String("string"),
    					Type: pulumi.String("string"),
    				},
    			},
    			ToUrgency: pulumi.String("string"),
    			Type:      pulumi.String("string"),
    		},
    	},
    	SupportHours: &pagerduty.ServiceSupportHoursArgs{
    		DaysOfWeeks: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    		EndTime:   pulumi.String("string"),
    		StartTime: pulumi.String("string"),
    		TimeZone:  pulumi.String("string"),
    		Type:      pulumi.String("string"),
    	},
    })
    
    var serviceResource = new Service("serviceResource", ServiceArgs.builder()
        .escalationPolicy("string")
        .autoResolveTimeout("string")
        .alertGroupingParameters(ServiceAlertGroupingParametersArgs.builder()
            .config(ServiceAlertGroupingParametersConfigArgs.builder()
                .aggregate("string")
                .fields("string")
                .timeWindow(0)
                .timeout(0)
                .build())
            .type("string")
            .build())
        .autoPauseNotificationsParameters(ServiceAutoPauseNotificationsParametersArgs.builder()
            .enabled(false)
            .timeout(0)
            .build())
        .acknowledgementTimeout("string")
        .description("string")
        .alertCreation("string")
        .incidentUrgencyRule(ServiceIncidentUrgencyRuleArgs.builder()
            .type("string")
            .duringSupportHours(ServiceIncidentUrgencyRuleDuringSupportHoursArgs.builder()
                .type("string")
                .urgency("string")
                .build())
            .outsideSupportHours(ServiceIncidentUrgencyRuleOutsideSupportHoursArgs.builder()
                .type("string")
                .urgency("string")
                .build())
            .urgency("string")
            .build())
        .name("string")
        .responsePlay("string")
        .scheduledActions(ServiceScheduledActionArgs.builder()
            .ats(ServiceScheduledActionAtArgs.builder()
                .name("string")
                .type("string")
                .build())
            .toUrgency("string")
            .type("string")
            .build())
        .supportHours(ServiceSupportHoursArgs.builder()
            .daysOfWeeks(0)
            .endTime("string")
            .startTime("string")
            .timeZone("string")
            .type("string")
            .build())
        .build());
    
    service_resource = pagerduty.Service("serviceResource",
        escalation_policy="string",
        auto_resolve_timeout="string",
        alert_grouping_parameters=pagerduty.ServiceAlertGroupingParametersArgs(
            config=pagerduty.ServiceAlertGroupingParametersConfigArgs(
                aggregate="string",
                fields=["string"],
                time_window=0,
                timeout=0,
            ),
            type="string",
        ),
        auto_pause_notifications_parameters=pagerduty.ServiceAutoPauseNotificationsParametersArgs(
            enabled=False,
            timeout=0,
        ),
        acknowledgement_timeout="string",
        description="string",
        alert_creation="string",
        incident_urgency_rule=pagerduty.ServiceIncidentUrgencyRuleArgs(
            type="string",
            during_support_hours=pagerduty.ServiceIncidentUrgencyRuleDuringSupportHoursArgs(
                type="string",
                urgency="string",
            ),
            outside_support_hours=pagerduty.ServiceIncidentUrgencyRuleOutsideSupportHoursArgs(
                type="string",
                urgency="string",
            ),
            urgency="string",
        ),
        name="string",
        response_play="string",
        scheduled_actions=[pagerduty.ServiceScheduledActionArgs(
            ats=[pagerduty.ServiceScheduledActionAtArgs(
                name="string",
                type="string",
            )],
            to_urgency="string",
            type="string",
        )],
        support_hours=pagerduty.ServiceSupportHoursArgs(
            days_of_weeks=[0],
            end_time="string",
            start_time="string",
            time_zone="string",
            type="string",
        ))
    
    const serviceResource = new pagerduty.Service("serviceResource", {
        escalationPolicy: "string",
        autoResolveTimeout: "string",
        alertGroupingParameters: {
            config: {
                aggregate: "string",
                fields: ["string"],
                timeWindow: 0,
                timeout: 0,
            },
            type: "string",
        },
        autoPauseNotificationsParameters: {
            enabled: false,
            timeout: 0,
        },
        acknowledgementTimeout: "string",
        description: "string",
        alertCreation: "string",
        incidentUrgencyRule: {
            type: "string",
            duringSupportHours: {
                type: "string",
                urgency: "string",
            },
            outsideSupportHours: {
                type: "string",
                urgency: "string",
            },
            urgency: "string",
        },
        name: "string",
        responsePlay: "string",
        scheduledActions: [{
            ats: [{
                name: "string",
                type: "string",
            }],
            toUrgency: "string",
            type: "string",
        }],
        supportHours: {
            daysOfWeeks: [0],
            endTime: "string",
            startTime: "string",
            timeZone: "string",
            type: "string",
        },
    });
    
    type: pagerduty:Service
    properties:
        acknowledgementTimeout: string
        alertCreation: string
        alertGroupingParameters:
            config:
                aggregate: string
                fields:
                    - string
                timeWindow: 0
                timeout: 0
            type: string
        autoPauseNotificationsParameters:
            enabled: false
            timeout: 0
        autoResolveTimeout: string
        description: string
        escalationPolicy: string
        incidentUrgencyRule:
            duringSupportHours:
                type: string
                urgency: string
            outsideSupportHours:
                type: string
                urgency: string
            type: string
            urgency: string
        name: string
        responsePlay: string
        scheduledActions:
            - ats:
                - name: string
                  type: string
              toUrgency: string
              type: string
        supportHours:
            daysOfWeeks:
                - 0
            endTime: string
            startTime: string
            timeZone: string
            type: string
    

    Service Resource Properties

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

    Inputs

    The Service resource accepts the following input properties:

    Outputs

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

    CreatedAt string
    Creation timestamp of the service.
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastIncidentTimestamp string
    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.
    CreatedAt string
    Creation timestamp of the service.
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastIncidentTimestamp string
    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.
    createdAt String
    Creation timestamp of the service.
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app.
    id String
    The provider-assigned unique ID for this managed resource.
    lastIncidentTimestamp String
    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.
    createdAt string
    Creation timestamp of the service.
    htmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    id string
    The provider-assigned unique ID for this managed resource.
    lastIncidentTimestamp string
    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_timestamp str
    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.
    createdAt String
    Creation timestamp of the service.
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app.
    id String
    The provider-assigned unique ID for this managed resource.
    lastIncidentTimestamp String
    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.
    The following state arguments are supported:
    AcknowledgementTimeout string
    AlertCreation string
    AlertGrouping string

    Deprecated: Use alert_grouping_parameters.type

    AlertGroupingParameters ServiceAlertGroupingParameters
    AlertGroupingTimeout string

    Deprecated: Use alert_grouping_parameters.config.timeout

    AutoPauseNotificationsParameters ServiceAutoPauseNotificationsParameters
    AutoResolveTimeout string
    CreatedAt string
    Creation timestamp of the service.
    Description string
    EscalationPolicy string
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    IncidentUrgencyRule ServiceIncidentUrgencyRule
    LastIncidentTimestamp string
    Last incident timestamp of the service.
    Name string
    ResponsePlay string
    ScheduledActions List<ServiceScheduledAction>
    Status string
    The status of the service.
    SupportHours ServiceSupportHours
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    AcknowledgementTimeout string
    AlertCreation string
    AlertGrouping string

    Deprecated: Use alert_grouping_parameters.type

    AlertGroupingParameters ServiceAlertGroupingParametersArgs
    AlertGroupingTimeout string

    Deprecated: Use alert_grouping_parameters.config.timeout

    AutoPauseNotificationsParameters ServiceAutoPauseNotificationsParametersArgs
    AutoResolveTimeout string
    CreatedAt string
    Creation timestamp of the service.
    Description string
    EscalationPolicy string
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    IncidentUrgencyRule ServiceIncidentUrgencyRuleArgs
    LastIncidentTimestamp string
    Last incident timestamp of the service.
    Name string
    ResponsePlay string
    ScheduledActions []ServiceScheduledActionArgs
    Status string
    The status of the service.
    SupportHours ServiceSupportHoursArgs
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    acknowledgementTimeout String
    alertCreation String
    alertGrouping String

    Deprecated: Use alert_grouping_parameters.type

    alertGroupingParameters ServiceAlertGroupingParameters
    alertGroupingTimeout String

    Deprecated: Use alert_grouping_parameters.config.timeout

    autoPauseNotificationsParameters ServiceAutoPauseNotificationsParameters
    autoResolveTimeout String
    createdAt String
    Creation timestamp of the service.
    description String
    escalationPolicy String
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app.
    incidentUrgencyRule ServiceIncidentUrgencyRule
    lastIncidentTimestamp String
    Last incident timestamp of the service.
    name String
    responsePlay String
    scheduledActions List<ServiceScheduledAction>
    status String
    The status of the service.
    supportHours ServiceSupportHours
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    acknowledgementTimeout string
    alertCreation string
    alertGrouping string

    Deprecated: Use alert_grouping_parameters.type

    alertGroupingParameters ServiceAlertGroupingParameters
    alertGroupingTimeout string

    Deprecated: Use alert_grouping_parameters.config.timeout

    autoPauseNotificationsParameters ServiceAutoPauseNotificationsParameters
    autoResolveTimeout string
    createdAt string
    Creation timestamp of the service.
    description string
    escalationPolicy string
    htmlUrl string
    URL at which the entity is uniquely displayed in the Web app.
    incidentUrgencyRule ServiceIncidentUrgencyRule
    lastIncidentTimestamp string
    Last incident timestamp of the service.
    name string
    responsePlay string
    scheduledActions ServiceScheduledAction[]
    status string
    The status of the service.
    supportHours ServiceSupportHours
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    acknowledgement_timeout str
    alert_creation str
    alert_grouping str

    Deprecated: Use alert_grouping_parameters.type

    alert_grouping_parameters ServiceAlertGroupingParametersArgs
    alert_grouping_timeout str

    Deprecated: Use alert_grouping_parameters.config.timeout

    auto_pause_notifications_parameters ServiceAutoPauseNotificationsParametersArgs
    auto_resolve_timeout str
    created_at str
    Creation timestamp of the service.
    description str
    escalation_policy str
    html_url str
    URL at which the entity is uniquely displayed in the Web app.
    incident_urgency_rule ServiceIncidentUrgencyRuleArgs
    last_incident_timestamp str
    Last incident timestamp of the service.
    name str
    response_play str
    scheduled_actions Sequence[ServiceScheduledActionArgs]
    status str
    The status of the service.
    support_hours ServiceSupportHoursArgs
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    acknowledgementTimeout String
    alertCreation String
    alertGrouping String

    Deprecated: Use alert_grouping_parameters.type

    alertGroupingParameters Property Map
    alertGroupingTimeout String

    Deprecated: Use alert_grouping_parameters.config.timeout

    autoPauseNotificationsParameters Property Map
    autoResolveTimeout String
    createdAt String
    Creation timestamp of the service.
    description String
    escalationPolicy String
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app.
    incidentUrgencyRule Property Map
    lastIncidentTimestamp String
    Last incident timestamp of the service.
    name String
    responsePlay String
    scheduledActions List<Property Map>
    status String
    The status of the service.
    supportHours 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 ServiceAlertGroupingParametersConfig
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    Type string
    The type of alert grouping; one of intelligent, time or content_based.
    Config ServiceAlertGroupingParametersConfig
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    Type string
    The type of alert grouping; one of intelligent, time or content_based.
    config ServiceAlertGroupingParametersConfig
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    type String
    The type of alert grouping; one of intelligent, time or content_based.
    config ServiceAlertGroupingParametersConfig
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    type string
    The type of alert grouping; one of intelligent, time or content_based.
    config ServiceAlertGroupingParametersConfig
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    type str
    The type of alert grouping; one of intelligent, time or content_based.
    config Property Map
    Alert grouping parameters dependent on type. If type is set to intelligent or empty then config can be empty.
    type String
    The type of alert grouping; one of intelligent, time or content_based.

    ServiceAlertGroupingParametersConfig, ServiceAlertGroupingParametersConfigArgs

    Aggregate string
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields 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 to content_based.
    TimeWindow int
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600. Any Alerts arriving greater than time_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 to time. To continue grouping alerts until the incident is resolved, set this value to 0.
    Aggregate string
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields value(s).
    Fields []string
    Alerts will be grouped together if the content of these fields match. This setting applies only when type is set to content_based.
    TimeWindow int
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600. Any Alerts arriving greater than time_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 to time. To continue grouping alerts until the incident is resolved, set this value to 0.
    aggregate String
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields 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 to content_based.
    timeWindow Integer
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600. Any Alerts arriving greater than time_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 to time. To continue grouping alerts until the incident is resolved, set this value to 0.
    aggregate string
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields value(s).
    fields string[]
    Alerts will be grouped together if the content of these fields match. This setting applies only when type is set to content_based.
    timeWindow number
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600. Any Alerts arriving greater than time_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 to time. To continue grouping alerts until the incident is resolved, set this value to 0.
    aggregate str
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields 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 to content_based.
    time_window int
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600. Any Alerts arriving greater than time_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 to time. To continue grouping alerts until the incident is resolved, set this value to 0.
    aggregate String
    One of any or all. This setting applies only when type is set to content_based. Group alerts based on one or all of fields 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 to content_based.
    timeWindow Number
    The maximum amount of time allowed between Alerts. This setting applies only when type is set to intelligent or content_based. Value must be between 300 and 3600. Any Alerts arriving greater than time_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 to time. To continue grouping alerts until the incident is resolved, set this value to 0.

    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 if enabled is true. Must be omitted or set to null if enabled is false.

    You may specify one optional incident_urgency_rule block configuring what urgencies to use. Your PagerDuty account must have the urgencies ability to assign an incident urgency rule. The block contains the following arguments:

    Enabled bool
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    Timeout int

    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.

    You may specify one optional incident_urgency_rule block configuring what urgencies to use. Your PagerDuty account must have the urgencies ability to assign an incident urgency rule. The block contains the following arguments:

    enabled Boolean
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    timeout Integer

    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.

    You may specify one optional incident_urgency_rule block configuring what urgencies to use. Your PagerDuty account must have the urgencies ability to assign an incident urgency rule. The block contains the following arguments:

    enabled boolean
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    timeout number

    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.

    You may specify one optional incident_urgency_rule block configuring what urgencies to use. Your PagerDuty account must have the urgencies ability to assign an incident urgency rule. The block contains the following arguments:

    enabled bool
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    timeout int

    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.

    You may specify one optional incident_urgency_rule block configuring what urgencies to use. Your PagerDuty account must have the urgencies ability to assign an incident urgency rule. The block contains the following arguments:

    enabled Boolean
    Indicates whether alerts should be automatically suspended when identified as transient. If not passed in, will default to 'false'.
    timeout Number

    Indicates in seconds how long alerts should be suspended before triggering. Allowed values: 120, 180, 300, 600, 900 if enabled is true. Must be omitted or set to null if enabled is false.

    You may specify one optional incident_urgency_rule block configuring what urgencies to use. Your PagerDuty account must have the urgencies ability to assign an incident urgency rule. The block contains the following arguments:

    ServiceIncidentUrgencyRule, ServiceIncidentUrgencyRuleArgs

    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    DuringSupportHours ServiceIncidentUrgencyRuleDuringSupportHours
    OutsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHours
    Urgency string
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    DuringSupportHours ServiceIncidentUrgencyRuleDuringSupportHours
    OutsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHours
    Urgency string
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    duringSupportHours ServiceIncidentUrgencyRuleDuringSupportHours
    outsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHours
    urgency String
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    duringSupportHours ServiceIncidentUrgencyRuleDuringSupportHours
    outsideSupportHours ServiceIncidentUrgencyRuleOutsideSupportHours
    urgency string
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    during_support_hours ServiceIncidentUrgencyRuleDuringSupportHours
    outside_support_hours ServiceIncidentUrgencyRuleOutsideSupportHours
    urgency str
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    duringSupportHours Property Map
    outsideSupportHours Property Map
    urgency String

    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
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    Urgency string
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency String
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency string
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency str
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency String

    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
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    Urgency string
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency String
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency string
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency str
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    urgency String

    ServiceScheduledAction, ServiceScheduledActionArgs

    Ats List<ServiceScheduledActionAt>
    ToUrgency string
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    Ats []ServiceScheduledActionAt
    ToUrgency string
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    ats List<ServiceScheduledActionAt>
    toUrgency String
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    ats ServiceScheduledActionAt[]
    toUrgency string
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    ats Sequence[ServiceScheduledActionAt]
    to_urgency str
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    ats List<Property Map>
    toUrgency String
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.

    ServiceScheduledActionAt, ServiceScheduledActionAtArgs

    Name string
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    Name string
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    name String
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    name string
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    name str
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    name String
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.

    ServiceSupportHours, ServiceSupportHoursArgs

    DaysOfWeeks List<int>
    EndTime string
    StartTime string
    TimeZone string
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    DaysOfWeeks []int
    EndTime string
    StartTime string
    TimeZone string
    Type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    daysOfWeeks List<Integer>
    endTime String
    startTime String
    timeZone String
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    daysOfWeeks number[]
    endTime string
    startTime string
    timeZone string
    type string
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    days_of_weeks Sequence[int]
    end_time str
    start_time str
    time_zone str
    type str
    The type of object. The value returned will be service. Can be used for passing to a service dependency.
    daysOfWeeks List<Number>
    endTime String
    startTime String
    timeZone String
    type String
    The type of object. The value returned will be service. Can be used for passing to a service dependency.

    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.
    pagerduty logo
    PagerDuty v4.12.3 published on Tuesday, May 21, 2024 by Pulumi