Show / Hide Table of Contents

Class 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,
                Target = 
                {

                    {
                        { "id", exampleUser.Id },
                        { "type", "user" },
                    },
                },
            },
        },
    });
    var exampleService = new Pagerduty.Service("exampleService", new Pagerduty.ServiceArgs
    {
        AcknowledgementTimeout = 600,
        AlertCreation = "create_incidents",
        AutoResolveTimeout = 14400,
        EscalationPolicy = pagerduty_escalation_policy.Example.Id,
    });
}

}
Inheritance
System.Object
Pulumi.Resource
Pulumi.CustomResource
Service
Inherited Members
Pulumi.CustomResource.Id
Pulumi.Resource.GetResourceType()
Pulumi.Resource.GetResourceName()
Pulumi.Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public class Service : CustomResource

Constructors

View Source

Service(String, ServiceArgs, CustomResourceOptions)

Create a Service resource with the given unique name, arguments, and options.

Declaration
public Service(string name, ServiceArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ServiceArgs args

The arguments used to populate this resource's properties

Pulumi.CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AcknowledgementTimeout

Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the "null" string.

Declaration
public Output<string> AcknowledgementTimeout { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

AlertCreation

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.

Declaration
public Output<string> AlertCreation { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

AlertGrouping

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.

Declaration
public Output<string> AlertGrouping { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

AlertGroupingTimeout

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.

Declaration
public Output<int?> AlertGroupingTimeout { get; }
Property Value
Type Description
Pulumi.Output<System.Nullable<System.Int32>>
View Source

AutoResolveTimeout

Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the &quot;null&quot; string.

Declaration
public Output<string> AutoResolveTimeout { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

CreatedAt

Declaration
public Output<string> CreatedAt { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

Description

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

EscalationPolicy

The escalation policy used by this service.

Declaration
public Output<string> EscalationPolicy { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

HtmlUrl

Declaration
public Output<string> HtmlUrl { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

IncidentUrgencyRule

Declaration
public Output<ServiceIncidentUrgencyRule> IncidentUrgencyRule { get; }
Property Value
Type Description
Pulumi.Output<ServiceIncidentUrgencyRule>
View Source

LastIncidentTimestamp

Declaration
public Output<string> LastIncidentTimestamp { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

Name

The name of the service.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

ScheduledActions

Declaration
public Output<ImmutableArray<ServiceScheduledAction>> ScheduledActions { get; }
Property Value
Type Description
Pulumi.Output<System.Collections.Immutable.ImmutableArray<ServiceScheduledAction>>
View Source

Status

Declaration
public Output<string> Status { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

SupportHours

Declaration
public Output<ServiceSupportHours> SupportHours { get; }
Property Value
Type Description
Pulumi.Output<ServiceSupportHours>

Methods

View Source

Get(String, Input<String>, ServiceState, CustomResourceOptions)

Get an existing Service resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Service Get(string name, Input<string> id, ServiceState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Pulumi.Input<System.String> id

The unique provider ID of the resource to lookup.

ServiceState state

Any extra arguments used during the lookup.

Pulumi.CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Service
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.