Response payload for a list of global incident handles, including handle data and related resources.
Expand All
フィールド
種類
説明
data [required]
[object]
Array of incident handle data objects returned in a list response.
attributes [required]
object
Incident handle attributes for responses
created_at [required]
date-time
Timestamp when the handle was created
fields [required]
object
Dynamic fields associated with the handle
severity
[string]
Severity levels associated with the handle
modified_at [required]
date-time
Timestamp when the handle was last modified
name [required]
string
The handle name
id [required]
string
The ID of the incident handle
relationships
object
Relationships associated with an incident handle response, including linked users and incident type.
commander_user
object
A single relationship object for an incident handle, wrapping the related resource data.
data [required]
object
Relationship data for an incident handle, containing the ID and type of the related resource.
id [required]
string
The ID of the related resource
type [required]
string
The type of the related resource
created_by_user [required]
object
A single relationship object for an incident handle, wrapping the related resource data.
data [required]
object
Relationship data for an incident handle, containing the ID and type of the related resource.
id [required]
string
The ID of the related resource
type [required]
string
The type of the related resource
incident_type [required]
object
A single relationship object for an incident handle, wrapping the related resource data.
data [required]
object
Relationship data for an incident handle, containing the ID and type of the related resource.
id [required]
string
The ID of the related resource
type [required]
string
The type of the related resource
last_modified_by_user [required]
object
A single relationship object for an incident handle, wrapping the related resource data.
data [required]
object
Relationship data for an incident handle, containing the ID and type of the related resource.
id [required]
string
The ID of the related resource
type [required]
string
The type of the related resource
type [required]
enum
Incident handle resource type
Allowed enum values: incidents_handles
included
[ <oneOf>]
Included related resources
Option 1
object
User object returned by the API.
attributes
object
Attributes of user object returned by the API.
email
string
Email of the user.
handle
string
Handle of the user.
icon
string
URL of the user's icon.
name
string
Name of the user.
uuid
string
UUID of the user.
id
string
ID of the user.
type
enum
Users resource type.
Allowed enum values: users
default: users
Option 2
object
Incident type response data.
attributes
object
Incident type's attributes.
configuration
object
The incident-type-scoped behavior settings. All fields are optional on update. Any field omitted from a PATCH request keeps its current value. This object is read-only on the incident type resource itself and is only mutated through the update (PATCH) endpoint.
allow_incident_deletion
boolean
Whether incidents of this type can be deleted.
allow_workflows
boolean
Whether automation workflows can be triggered for incidents of this type.
default: true
create_message
string
An optional message shown to users when they declare an incident of this type.
editable_timestamps
boolean
Whether responders can edit incident timestamps for incidents of this type.
private_incidents
boolean
Whether responders can create private incidents of this type. This is an opt-in setting, distinct from private_incidents_by_default, which controls whether incidents are created private automatically.
private_incidents_by_default
boolean
Whether incidents of this type are created as private by default.
slug_source
enum
When set to servicenow, incidents will display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID will be displayed.
Allowed enum values: default,servicenow
default: default
test_incidents
boolean
Whether incidents of this type are treated as test incidents.
default: true
createdAt
date-time
Timestamp when the incident type was created.
createdBy
string
A unique identifier that represents the user that created the incident type.
description
string
Text that describes the incident type.
is_default
boolean
If true, this incident type will be used as the default incident type if a type is not specified during the creation of incident resources.
lastModifiedBy
string
A unique identifier that represents the user that last modified the incident type.
modifiedAt
date-time
Timestamp when the incident type was last modified.
name [required]
string
The name of the incident type.
prefix
string
The string that will be prepended to the incident title across the Datadog app.
id [required]
string
The incident type's ID.
relationships
object
The incident type's resource relationships.
created_by_user
object
Relationship to user.
data [required]
object
Relationship to user object.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
google_meet_configuration
object
A reference to a Google Meet Configuration resource.
data [required]
object
The Google Meet configuration relationship data object.
id [required]
string
The unique identifier of the Google Meet configuration.
type [required]
string
The type of the Google Meet configuration.
last_modified_by_user
object
Relationship to user.
data [required]
object
Relationship to user object.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
microsoft_teams_configuration
object
A reference to a Microsoft Teams Configuration resource.
data [required]
object
The Microsoft Teams configuration relationship data object.
id [required]
string
The unique identifier of the Microsoft Teams configuration.
type [required]
string
The type of the Microsoft Teams configuration.
zoom_configuration
object
A reference to a Zoom configuration resource.
data [required]
object
The Zoom configuration relationship data object.
id [required]
string
The unique identifier of the Zoom configuration.
type [required]
string
The type of the Zoom configuration.
type [required]
enum
Incident type resource type.
Allowed enum values: incident_types
"""
List global incident handles returns "OK" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.incidents_apiimportIncidentsApiconfiguration=Configuration()configuration.unstable_operations["list_global_incident_handles"]=TruewithApiClient(configuration)asapi_client:api_instance=IncidentsApi(api_client)response=api_instance.list_global_incident_handles()print(response)
# List global incident handles returns "OK" responserequire"datadog_api_client"DatadogAPIClient.configuredo|config|config.unstable_operations["v2.list_global_incident_handles".to_sym]=trueendapi_instance=DatadogAPIClient::V2::IncidentsAPI.newpapi_instance.list_global_incident_handles()
// List global incident handles returns "OK" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()configuration.SetUnstableOperationEnabled("v2.ListGlobalIncidentHandles",true)apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewIncidentsApi(apiClient)resp,r,err:=api.ListGlobalIncidentHandles(ctx,*datadogV2.NewListGlobalIncidentHandlesOptionalParameters())iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `IncidentsApi.ListGlobalIncidentHandles`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `IncidentsApi.ListGlobalIncidentHandles`:\n%s\n",responseContent)}
// List global incident handles returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_incidents::IncidentsAPI;usedatadog_api_client::datadogV2::api_incidents::ListGlobalIncidentHandlesOptionalParams;#[tokio::main]asyncfnmain(){letmutconfiguration=datadog::Configuration::new();configuration.set_unstable_operation_enabled("v2.ListGlobalIncidentHandles",true);letapi=IncidentsAPI::with_config(configuration);letresp=api.list_global_incident_handles(ListGlobalIncidentHandlesOptionalParams::default()).await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_API_KEY="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* List global incident handles returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();configuration.unstableOperations["v2.listGlobalIncidentHandles"]=true;constapiInstance=newv2.IncidentsApi(configuration);apiInstance.listGlobalIncidentHandles().then((data: v2.IncidentHandlesResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));