Constructor
new IncidentServiceClient(optionsopt)
Construct an instance of IncidentServiceClient.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
The configuration object. See the subsequent parameters for more details. Properties
|
Members
(static) apiEndpoint
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
(static) port
The port for this API service.
(static) scopes
The scopes needed to make gRPC calls for every method defined in this service.
(static) servicePath
The DNS address for this API service.
Methods
annotationPath(project, incident, annotation) → {string}
Return a fully-qualified annotation resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
incident |
string | |
annotation |
string |
artifactPath(project, incident, artifact) → {string}
Return a fully-qualified artifact resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
incident |
string | |
artifact |
string |
cancelIncidentRoleHandover(request, optionsopt) → {Promise}
Cancels a role handover. This will fail if the 'proposed_assignee' field of the IncidentRoleAssignment is not equal to the 'new_assignee' field of the request.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
close()
Terminate the GRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
confirmIncidentRoleHandover(request, optionsopt) → {Promise}
Confirms a role handover. This will fail if the 'proposed_assignee' field of the IncidentRoleAssignment is not equal to the 'new_assignee' field of the request. If the caller is not the new_assignee, ForceIncidentRoleHandover should be used instead.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createAnnotation(request, optionsopt) → {Promise}
Creates an annotation on an existing incident. Only 'text/plain' and 'text/markdown' annotations can be created via this method.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createArtifact(request, optionsopt) → {Promise}
Creates a new artifact.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createIncident(request, optionsopt) → {Promise}
Creates a new incident.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createIncidentRoleAssignment(request, optionsopt) → {Promise}
Creates a role assignment on an existing incident. Normally, the user field will be set when assigning a role to oneself, and the next field will be set when proposing another user as the assignee. Setting the next field directly to a user other than oneself is equivalent to proposing and force-assigning the role to the user.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createSignal(request, optionsopt) → {Promise}
Creates a new signal.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createSubscription(request, optionsopt) → {Promise}
Creates a new subscription. This will fail if: a. there are too many (50) subscriptions in the incident already b. a subscription using the given channel already exists
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createTag(request, optionsopt) → {Promise}
Creates a tag on an existing incident.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
deleteArtifact(request, optionsopt) → {Promise}
Deletes an existing artifact.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
deleteIncidentRoleAssignment(request, optionsopt) → {Promise}
Deletes an existing role assignment.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
deleteSubscription(request, optionsopt) → {Promise}
Deletes an existing subscription.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
deleteTag(request, optionsopt) → {Promise}
Deletes an existing tag.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
escalateIncident(request, optionsopt) → {Promise}
Escalates an incident.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
forceIncidentRoleHandover(request, optionsopt) → {Promise}
Forces a role handover. This will fail if the 'proposed_assignee' field of the IncidentRoleAssignment is not equal to the 'new_assignee' field of the request. If the caller is the new_assignee, ConfirmIncidentRoleHandover should be used instead.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getIncident(request, optionsopt) → {Promise}
Returns an incident by name.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getProjectId(callback)
Return the project ID used by this class.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function |
the callback to be called with the current project Id. |
getSignal(request, optionsopt) → {Promise}
Returns a signal by name.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
incidentPath(project, incident) → {string}
Return a fully-qualified incident resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
incident |
string |
incidentRoleAssignmentPath(project_id_or_number, incident_id, role_id) → {string}
Return a fully-qualified incidentRoleAssignment resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project_id_or_number |
string | |
incident_id |
string | |
role_id |
string |
initialize() → {Promise}
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
listAnnotations(request, optionsopt) → {Promise}
Lists annotations that are part of an incident. No assumptions should be made on the content-type of the annotation returned.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listAnnotationsAsync(request, optionsopt) → {Object}
Equivalent to listAnnotations, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listAnnotationsStream(request, optionsopt) → {Stream}
Equivalent to listAnnotations, but returns a NodeJS Stream object.
This fetches the paged responses for listAnnotations continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listArtifacts(request, optionsopt) → {Promise}
Returns a list of artifacts for an incident.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listArtifactsAsync(request, optionsopt) → {Object}
Equivalent to listArtifacts, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listArtifactsStream(request, optionsopt) → {Stream}
Equivalent to listArtifacts, but returns a NodeJS Stream object.
This fetches the paged responses for listArtifacts continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listIncidentRoleAssignments(request, optionsopt) → {Promise}
Lists role assignments that are part of an incident.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listIncidentRoleAssignmentsAsync(request, optionsopt) → {Object}
Equivalent to listIncidentRoleAssignments, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listIncidentRoleAssignmentsStream(request, optionsopt) → {Stream}
Equivalent to listIncidentRoleAssignments, but returns a NodeJS Stream object.
This fetches the paged responses for listIncidentRoleAssignments continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listSubscriptions(request, optionsopt) → {Promise}
Returns a list of subscriptions for an incident.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listSubscriptionsAsync(request, optionsopt) → {Object}
Equivalent to listSubscriptions, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listSubscriptionsStream(request, optionsopt) → {Stream}
Equivalent to listSubscriptions, but returns a NodeJS Stream object.
This fetches the paged responses for listSubscriptions continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listTags(request, optionsopt) → {Promise}
Lists tags that are part of an incident.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listTagsAsync(request, optionsopt) → {Object}
Equivalent to listTags, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listTagsStream(request, optionsopt) → {Stream}
Equivalent to listTags, but returns a NodeJS Stream object.
This fetches the paged responses for listTags continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
lookupSignal(request, optionsopt) → {Promise}
Finds a signal by other unique IDs.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
matchAnnotationFromAnnotationName(annotationName) → {string}
Parse the annotation from Annotation resource.
Parameters:
Name | Type | Description |
---|---|---|
annotationName |
string |
A fully-qualified path representing Annotation resource. |
matchArtifactFromArtifactName(artifactName) → {string}
Parse the artifact from Artifact resource.
Parameters:
Name | Type | Description |
---|---|---|
artifactName |
string |
A fully-qualified path representing Artifact resource. |
matchIncidentFromAnnotationName(annotationName) → {string}
Parse the incident from Annotation resource.
Parameters:
Name | Type | Description |
---|---|---|
annotationName |
string |
A fully-qualified path representing Annotation resource. |
matchIncidentFromArtifactName(artifactName) → {string}
Parse the incident from Artifact resource.
Parameters:
Name | Type | Description |
---|---|---|
artifactName |
string |
A fully-qualified path representing Artifact resource. |
matchIncidentFromIncidentName(incidentName) → {string}
Parse the incident from Incident resource.
Parameters:
Name | Type | Description |
---|---|---|
incidentName |
string |
A fully-qualified path representing Incident resource. |
matchIncidentFromSubscriptionName(subscriptionName) → {string}
Parse the incident from Subscription resource.
Parameters:
Name | Type | Description |
---|---|---|
subscriptionName |
string |
A fully-qualified path representing Subscription resource. |
matchIncidentFromTagName(tagName) → {string}
Parse the incident from Tag resource.
Parameters:
Name | Type | Description |
---|---|---|
tagName |
string |
A fully-qualified path representing Tag resource. |
matchIncidentIdFromIncidentRoleAssignmentName(incidentRoleAssignmentName) → {string}
Parse the incident_id from IncidentRoleAssignment resource.
Parameters:
Name | Type | Description |
---|---|---|
incidentRoleAssignmentName |
string |
A fully-qualified path representing IncidentRoleAssignment resource. |
matchProjectFromAnnotationName(annotationName) → {string}
Parse the project from Annotation resource.
Parameters:
Name | Type | Description |
---|---|---|
annotationName |
string |
A fully-qualified path representing Annotation resource. |
matchProjectFromArtifactName(artifactName) → {string}
Parse the project from Artifact resource.
Parameters:
Name | Type | Description |
---|---|---|
artifactName |
string |
A fully-qualified path representing Artifact resource. |
matchProjectFromIncidentName(incidentName) → {string}
Parse the project from Incident resource.
Parameters:
Name | Type | Description |
---|---|---|
incidentName |
string |
A fully-qualified path representing Incident resource. |
matchProjectFromProjectName(projectName) → {string}
Parse the project from Project resource.
Parameters:
Name | Type | Description |
---|---|---|
projectName |
string |
A fully-qualified path representing Project resource. |
matchProjectFromSignalName(signalName) → {string}
Parse the project from Signal resource.
Parameters:
Name | Type | Description |
---|---|---|
signalName |
string |
A fully-qualified path representing Signal resource. |
matchProjectFromSubscriptionName(subscriptionName) → {string}
Parse the project from Subscription resource.
Parameters:
Name | Type | Description |
---|---|---|
subscriptionName |
string |
A fully-qualified path representing Subscription resource. |
matchProjectFromTagName(tagName) → {string}
Parse the project from Tag resource.
Parameters:
Name | Type | Description |
---|---|---|
tagName |
string |
A fully-qualified path representing Tag resource. |
matchProjectIdOrNumberFromIncidentRoleAssignmentName(incidentRoleAssignmentName) → {string}
Parse the project_id_or_number from IncidentRoleAssignment resource.
Parameters:
Name | Type | Description |
---|---|---|
incidentRoleAssignmentName |
string |
A fully-qualified path representing IncidentRoleAssignment resource. |
matchRoleIdFromIncidentRoleAssignmentName(incidentRoleAssignmentName) → {string}
Parse the role_id from IncidentRoleAssignment resource.
Parameters:
Name | Type | Description |
---|---|---|
incidentRoleAssignmentName |
string |
A fully-qualified path representing IncidentRoleAssignment resource. |
matchSignalFromSignalName(signalName) → {string}
Parse the signal from Signal resource.
Parameters:
Name | Type | Description |
---|---|---|
signalName |
string |
A fully-qualified path representing Signal resource. |
matchSubscriptionFromSubscriptionName(subscriptionName) → {string}
Parse the subscription from Subscription resource.
Parameters:
Name | Type | Description |
---|---|---|
subscriptionName |
string |
A fully-qualified path representing Subscription resource. |
matchTagFromTagName(tagName) → {string}
Parse the tag from Tag resource.
Parameters:
Name | Type | Description |
---|---|---|
tagName |
string |
A fully-qualified path representing Tag resource. |
projectPath(project) → {string}
Return a fully-qualified project resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string |
requestIncidentRoleHandover(request, optionsopt) → {Promise}
Starts a role handover. The proposed assignee will receive an email notifying them of the assignment. This will fail if a role handover is already pending. Handover to an oncall ladder is not permitted. Use CreateIncidentRoleAssignment instead.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
searchIncidents(request, optionsopt) → {Promise}
Returns a list of incidents. Incidents are ordered by start time, with the most recent incidents first.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
searchIncidentsAsync(request, optionsopt) → {Object}
Equivalent to searchIncidents, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
searchIncidentsStream(request, optionsopt) → {Stream}
Equivalent to searchIncidents, but returns a NodeJS Stream object.
This fetches the paged responses for searchIncidents continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
searchSignals(request, optionsopt) → {Promise}
Lists signals that are part of an incident. Signals are returned in reverse chronological order. Note that search should not be relied on for critical functionality. It has lower availability guarantees and might fail to return valid results. Returned results might include stale or extraneous entries.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
searchSignalsAsync(request, optionsopt) → {Object}
Equivalent to searchSignals, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
searchSignalsStream(request, optionsopt) → {Stream}
Equivalent to searchSignals, but returns a NodeJS Stream object.
This fetches the paged responses for searchSignals continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
searchSimilarIncidents(request, optionsopt) → {Promise}
Returns a list of incidents that are "similar" to the specified incident or signal. This functionality is provided on a best-effort basis and the definition of "similar" is subject to change.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
searchSimilarIncidentsAsync(request, optionsopt) → {Object}
Equivalent to searchSimilarIncidents, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
searchSimilarIncidentsStream(request, optionsopt) → {Stream}
Equivalent to searchSimilarIncidents, but returns a NodeJS Stream object.
This fetches the paged responses for searchSimilarIncidents continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
sendShiftHandoff(request, optionsopt) → {Promise}
Sends a summary of the shift for oncall handoff.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
signalPath(project, signal) → {string}
Return a fully-qualified signal resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
signal |
string |
subscriptionPath(project, incident, subscription) → {string}
Return a fully-qualified subscription resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
incident |
string | |
subscription |
string |
tagPath(project, incident, tag) → {string}
Return a fully-qualified tag resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
incident |
string | |
tag |
string |
updateArtifact(request, optionsopt) → {Promise}
Updates an existing artifact.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
updateIncident(request, optionsopt) → {Promise}
Updates an existing incident.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
updateSignal(request, optionsopt) → {Promise}
Updates an existing signal (for example, to assign/unassign it to an incident).
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
updateSubscription(request, optionsopt) → {Promise}
Updates a subscription.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |