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()
Assembly: Pulumi.Pagerduty.dll
public class Service : CustomResource
Constructors
View Source
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
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
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
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
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
Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the "null" string.
Declaration
public Output<string> AutoResolveTimeout { get; }
Property Value
| Type |
Description |
| Pulumi.Output<System.String> |
|
View Source
Declaration
public Output<string> CreatedAt { get; }
Property Value
| Type |
Description |
| Pulumi.Output<System.String> |
|
View Source
Declaration
public Output<string> Description { get; }
Property Value
| Type |
Description |
| Pulumi.Output<System.String> |
|
View Source
The escalation policy used by this service.
Declaration
public Output<string> EscalationPolicy { get; }
Property Value
| Type |
Description |
| Pulumi.Output<System.String> |
|
View Source
Declaration
public Output<string> HtmlUrl { get; }
Property Value
| Type |
Description |
| Pulumi.Output<System.String> |
|
View Source
Declaration
public Output<ServiceIncidentUrgencyRule> IncidentUrgencyRule { get; }
Property Value
View Source
Declaration
public Output<string> LastIncidentTimestamp { get; }
Property Value
| Type |
Description |
| Pulumi.Output<System.String> |
|
View Source
Declaration
public Output<string> Name { get; }
Property Value
| Type |
Description |
| Pulumi.Output<System.String> |
|
View Source
Declaration
public Output<ImmutableArray<ServiceScheduledAction>> ScheduledActions { get; }
Property Value
View Source
Declaration
public Output<string> Status { get; }
Property Value
| Type |
Description |
| Pulumi.Output<System.String> |
|
View Source
Declaration
public Output<ServiceSupportHours> SupportHours { get; }
Property Value
Methods
View Source
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