Skip to main content

services

Overview

Nameservices
TypeResource
Idpagerduty.services.services

Fields

NameDatatypeDescription
idstring
namestringThe name of the service.
descriptionstringThe user-provided description of the service.
_typestringThe type of object being created.
acknowledgement_timeoutintegerTime in seconds that an incident changes to the Triggered State after being Acknowledged. Value is null if the feature is disabled. Value must not be negative. Setting this field to 0, null (or unset in POST request) will disable the feature.
addonsarrayThe array of Add-ons associated with this service.
alert_creationstringWhether a service creates only incidents, or both alerts and incidents. A service must create alerts in order to enable incident merging.
"create_incidents" - The service will create one incident and zero alerts for each incoming event.
"create_alerts_and_incidents" - The service will create one incident and one associated alert for each incoming event.
alert_groupingstringDefines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. There are three available options:
null - No alert grouping on the service. Each alert will create a separate incident;
"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;
* "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 plans
alert_grouping_parametersobjectDefines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. To turn grouping off set the type to null.
alert_grouping_timeoutintegerThe 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_pause_notifications_parametersobjectDefines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans.
auto_resolve_timeoutintegerTime in seconds that an incident is automatically resolved if left open for that long. Value is null if the feature is disabled. Value must not be negative. Setting this field to 0, null (or unset in POST request) will disable the feature.
created_atstringThe date/time when this service was created
escalation_policyobject
html_urlstringa URL at which the entity is uniquely displayed in the Web app
incident_urgency_ruleobject
integrationsarrayAn array containing Integration objects that belong to this service. If integrations is passed as an argument, these are full objects - otherwise, these are references.
last_incident_timestampstringThe date/time when the most recent incident was created for this service.
response_playobjectResponse plays associated with this service.
scheduled_actionsarrayAn array containing scheduled actions for the service.
selfstringthe API show URL at which the object is accessible
statusstringThe current state of the Service. Valid statuses are:


- active: The service is enabled and has no open incidents. This is the only status a service can be created with.
- warning: The service is enabled and has one or more acknowledged incidents.
- critical: The service is enabled and has one or more triggered incidents.
- maintenance: The service is under maintenance, no new incidents will be triggered during maintenance mode.
- disabled: The service is disabled and will not have any new triggered incidents.
summarystringA short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to name, though it is not intended to be an identifier.
support_hoursobject
teamsarrayThe set of teams associated with this service.
typestringA string that determines the schema of the object. This must be the standard name for the entity, suffixed by _reference if the object is a reference.

Methods

NameAccessible byRequired ParamsDescription
get_serviceSELECTidGet details about an existing service.

A service may represent an application, component, or team you wish to open incidents against.

For more information see the API Concepts Document

Scoped OAuth requires: services.read
list_servicesSELECTList existing Services.

A service may represent an application, component, or team you wish to open incidents against.

For more information see the API Concepts Document

Scoped OAuth requires: services.read
create_serviceINSERTdata__serviceCreate a new service.

If status is included in the request, it must have a value of active when creating a new service. If a different status is required, make a second request to update the service.

A service may represent an application, component, or team you wish to open incidents against.

There is a limit of 25,000 services per account. If the limit is reached, the API will respond with an error. There is also a limit of 100,000 open Incidents per Service. If the limit is reached and auto_resolve_timeout is disabled (set to 0 or null), the auto_resolve_timeout property will automatically be set to 84600 (1 day).

For more information see the API Concepts Document

Scoped OAuth requires: services.write
delete_serviceDELETEidDelete an existing service.

Once the service is deleted, it will not be accessible from the web UI and new incidents won't be able to be created for this service.

A service may represent an application, component, or team you wish to open incidents against.

For more information see the API Concepts Document

Scoped OAuth requires: services.write
_get_serviceEXECidGet details about an existing service.

A service may represent an application, component, or team you wish to open incidents against.

For more information see the API Concepts Document

Scoped OAuth requires: services.read
_list_servicesEXECList existing Services.

A service may represent an application, component, or team you wish to open incidents against.

For more information see the API Concepts Document

Scoped OAuth requires: services.read
update_serviceEXECid, data__serviceUpdate an existing service.

A service may represent an application, component, or team you wish to open incidents against.

There is a limit of 100,000 open Incidents per Service. If the limit is reached and you disable auto_resolve_timeout (set to 0 or null), the API will respond with an error.

For more information see the API Concepts Document

Scoped OAuth requires: services.write