public static final class IncidentServiceGrpc.IncidentServiceStub extends io.grpc.stub.AbstractStub<IncidentServiceGrpc.IncidentServiceStub>
The Incident API for Incident Response & Management.
| Modifier and Type | Method and Description |
|---|---|
protected IncidentServiceGrpc.IncidentServiceStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
cancelIncidentRoleHandover(CancelIncidentRoleHandoverRequest request,
io.grpc.stub.StreamObserver<IncidentRoleAssignment> responseObserver)
Cancels a role handover.
|
void |
confirmIncidentRoleHandover(ConfirmIncidentRoleHandoverRequest request,
io.grpc.stub.StreamObserver<IncidentRoleAssignment> responseObserver)
Confirms a role handover.
|
void |
createAnnotation(CreateAnnotationRequest request,
io.grpc.stub.StreamObserver<Annotation> responseObserver)
Creates an annotation on an existing incident.
|
void |
createArtifact(CreateArtifactRequest request,
io.grpc.stub.StreamObserver<Artifact> responseObserver)
Creates a new artifact.
|
void |
createIncident(CreateIncidentRequest request,
io.grpc.stub.StreamObserver<Incident> responseObserver)
Creates a new incident.
|
void |
createIncidentRoleAssignment(CreateIncidentRoleAssignmentRequest request,
io.grpc.stub.StreamObserver<IncidentRoleAssignment> responseObserver)
Creates a role assignment on an existing incident.
|
void |
createSignal(CreateSignalRequest request,
io.grpc.stub.StreamObserver<Signal> responseObserver)
Creates a new signal.
|
void |
createSubscription(CreateSubscriptionRequest request,
io.grpc.stub.StreamObserver<Subscription> responseObserver)
Creates a new subscription.
|
void |
createTag(CreateTagRequest request,
io.grpc.stub.StreamObserver<Tag> responseObserver)
Creates a tag on an existing incident.
|
void |
deleteArtifact(DeleteArtifactRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing artifact.
|
void |
deleteIncidentRoleAssignment(DeleteIncidentRoleAssignmentRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing role assignment.
|
void |
deleteSubscription(DeleteSubscriptionRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing subscription.
|
void |
deleteTag(DeleteTagRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing tag.
|
void |
escalateIncident(EscalateIncidentRequest request,
io.grpc.stub.StreamObserver<EscalateIncidentResponse> responseObserver)
Escalates an incident.
|
void |
forceIncidentRoleHandover(ForceIncidentRoleHandoverRequest request,
io.grpc.stub.StreamObserver<IncidentRoleAssignment> responseObserver)
Forces a role handover.
|
void |
getIncident(GetIncidentRequest request,
io.grpc.stub.StreamObserver<Incident> responseObserver)
Returns an incident by name.
|
void |
getSignal(GetSignalRequest request,
io.grpc.stub.StreamObserver<Signal> responseObserver)
Returns a signal by name.
|
void |
listAnnotations(ListAnnotationsRequest request,
io.grpc.stub.StreamObserver<ListAnnotationsResponse> responseObserver)
Lists annotations that are part of an incident.
|
void |
listArtifacts(ListArtifactsRequest request,
io.grpc.stub.StreamObserver<ListArtifactsResponse> responseObserver)
Returns a list of artifacts for an incident.
|
void |
listIncidentRoleAssignments(ListIncidentRoleAssignmentsRequest request,
io.grpc.stub.StreamObserver<ListIncidentRoleAssignmentsResponse> responseObserver)
Lists role assignments that are part of an incident.
|
void |
listSubscriptions(ListSubscriptionsRequest request,
io.grpc.stub.StreamObserver<ListSubscriptionsResponse> responseObserver)
Returns a list of subscriptions for an incident.
|
void |
listTags(ListTagsRequest request,
io.grpc.stub.StreamObserver<ListTagsResponse> responseObserver)
Lists tags that are part of an incident.
|
void |
lookupSignal(LookupSignalRequest request,
io.grpc.stub.StreamObserver<Signal> responseObserver)
Finds a signal by other unique IDs.
|
void |
requestIncidentRoleHandover(RequestIncidentRoleHandoverRequest request,
io.grpc.stub.StreamObserver<IncidentRoleAssignment> responseObserver)
Starts a role handover.
|
void |
searchIncidents(SearchIncidentsRequest request,
io.grpc.stub.StreamObserver<SearchIncidentsResponse> responseObserver)
Returns a list of incidents.
|
void |
searchSignals(SearchSignalsRequest request,
io.grpc.stub.StreamObserver<SearchSignalsResponse> responseObserver)
Lists signals that are part of an incident.
|
void |
searchSimilarIncidents(SearchSimilarIncidentsRequest request,
io.grpc.stub.StreamObserver<SearchSimilarIncidentsResponse> responseObserver)
Returns a list of incidents that are "similar" to the specified incident
or signal.
|
void |
sendShiftHandoff(SendShiftHandoffRequest request,
io.grpc.stub.StreamObserver<SendShiftHandoffResponse> responseObserver)
Sends a summary of the shift for oncall handoff.
|
void |
updateArtifact(UpdateArtifactRequest request,
io.grpc.stub.StreamObserver<Artifact> responseObserver)
Updates an existing artifact.
|
void |
updateIncident(UpdateIncidentRequest request,
io.grpc.stub.StreamObserver<Incident> responseObserver)
Updates an existing incident.
|
void |
updateSignal(UpdateSignalRequest request,
io.grpc.stub.StreamObserver<Signal> responseObserver)
Updates an existing signal (for example, to assign/unassign it to an
incident).
|
void |
updateSubscription(UpdateSubscriptionRequest request,
io.grpc.stub.StreamObserver<Subscription> responseObserver)
Updates a subscription.
|
getCallOptions, getChannel, newStub, newStub, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReadyprotected IncidentServiceGrpc.IncidentServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<IncidentServiceGrpc.IncidentServiceStub>public void createIncident(CreateIncidentRequest request, io.grpc.stub.StreamObserver<Incident> responseObserver)
Creates a new incident.
public void getIncident(GetIncidentRequest request, io.grpc.stub.StreamObserver<Incident> responseObserver)
Returns an incident by name.
public void searchIncidents(SearchIncidentsRequest request, io.grpc.stub.StreamObserver<SearchIncidentsResponse> responseObserver)
Returns a list of incidents. Incidents are ordered by start time, with the most recent incidents first.
public void updateIncident(UpdateIncidentRequest request, io.grpc.stub.StreamObserver<Incident> responseObserver)
Updates an existing incident.
public void searchSimilarIncidents(SearchSimilarIncidentsRequest request, io.grpc.stub.StreamObserver<SearchSimilarIncidentsResponse> responseObserver)
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.
public void createAnnotation(CreateAnnotationRequest request, io.grpc.stub.StreamObserver<Annotation> responseObserver)
Creates an annotation on an existing incident. Only 'text/plain' and 'text/markdown' annotations can be created via this method.
public void listAnnotations(ListAnnotationsRequest request, io.grpc.stub.StreamObserver<ListAnnotationsResponse> responseObserver)
Lists annotations that are part of an incident. No assumptions should be made on the content-type of the annotation returned.
public void createTag(CreateTagRequest request, io.grpc.stub.StreamObserver<Tag> responseObserver)
Creates a tag on an existing incident.
public void deleteTag(DeleteTagRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing tag.
public void listTags(ListTagsRequest request, io.grpc.stub.StreamObserver<ListTagsResponse> responseObserver)
Lists tags that are part of an incident.
public void createSignal(CreateSignalRequest request, io.grpc.stub.StreamObserver<Signal> responseObserver)
Creates a new signal.
public void searchSignals(SearchSignalsRequest request, io.grpc.stub.StreamObserver<SearchSignalsResponse> responseObserver)
Lists signals that are part of an incident. Signals are returned in reverse chronological order.
public void lookupSignal(LookupSignalRequest request, io.grpc.stub.StreamObserver<Signal> responseObserver)
Finds a signal by other unique IDs.
public void getSignal(GetSignalRequest request, io.grpc.stub.StreamObserver<Signal> responseObserver)
Returns a signal by name.
public void updateSignal(UpdateSignalRequest request, io.grpc.stub.StreamObserver<Signal> responseObserver)
Updates an existing signal (for example, to assign/unassign it to an incident).
public void escalateIncident(EscalateIncidentRequest request, io.grpc.stub.StreamObserver<EscalateIncidentResponse> responseObserver)
Escalates an incident.
public void createArtifact(CreateArtifactRequest request, io.grpc.stub.StreamObserver<Artifact> responseObserver)
Creates a new artifact.
public void listArtifacts(ListArtifactsRequest request, io.grpc.stub.StreamObserver<ListArtifactsResponse> responseObserver)
Returns a list of artifacts for an incident.
public void updateArtifact(UpdateArtifactRequest request, io.grpc.stub.StreamObserver<Artifact> responseObserver)
Updates an existing artifact.
public void deleteArtifact(DeleteArtifactRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing artifact.
public void sendShiftHandoff(SendShiftHandoffRequest request, io.grpc.stub.StreamObserver<SendShiftHandoffResponse> responseObserver)
Sends a summary of the shift for oncall handoff.
public void createSubscription(CreateSubscriptionRequest request, io.grpc.stub.StreamObserver<Subscription> responseObserver)
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
public void updateSubscription(UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver<Subscription> responseObserver)
Updates a subscription.
public void listSubscriptions(ListSubscriptionsRequest request, io.grpc.stub.StreamObserver<ListSubscriptionsResponse> responseObserver)
Returns a list of subscriptions for an incident.
public void deleteSubscription(DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing subscription.
public void createIncidentRoleAssignment(CreateIncidentRoleAssignmentRequest request, io.grpc.stub.StreamObserver<IncidentRoleAssignment> responseObserver)
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.
public void deleteIncidentRoleAssignment(DeleteIncidentRoleAssignmentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing role assignment.
public void listIncidentRoleAssignments(ListIncidentRoleAssignmentsRequest request, io.grpc.stub.StreamObserver<ListIncidentRoleAssignmentsResponse> responseObserver)
Lists role assignments that are part of an incident.
public void requestIncidentRoleHandover(RequestIncidentRoleHandoverRequest request, io.grpc.stub.StreamObserver<IncidentRoleAssignment> responseObserver)
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.
public void confirmIncidentRoleHandover(ConfirmIncidentRoleHandoverRequest request, io.grpc.stub.StreamObserver<IncidentRoleAssignment> responseObserver)
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.
public void forceIncidentRoleHandover(ForceIncidentRoleHandoverRequest request, io.grpc.stub.StreamObserver<IncidentRoleAssignment> responseObserver)
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.
public void cancelIncidentRoleHandover(CancelIncidentRoleHandoverRequest request, io.grpc.stub.StreamObserver<IncidentRoleAssignment> responseObserver)
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.
Copyright © 2020 Google LLC. All rights reserved.