chore: remove IRM API protos/configs from googleapis
PiperOrigin-RevId: 327475078
This commit is contained in:
parent
4c5071b615
commit
9aa47074ab
|
|
@ -1 +0,0 @@
|
|||
exports_files(glob(["*.yaml"]))
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
type: google.api.Service
|
||||
config_version: 3
|
||||
name: irm.googleapis.com
|
||||
title: Stackdriver Incident Response & Management API
|
||||
|
||||
apis:
|
||||
- name: google.cloud.irm.v1alpha2.IncidentService
|
||||
|
||||
documentation:
|
||||
overview: |-
|
||||
The Stackdriver Incident Response & Management API allows users of
|
||||
Stackdriver to retrieve their signals, group signals into incidents,
|
||||
retrieve and modify existing incidents, and manage user roles. It also
|
||||
provides access to functionality related to the incident management
|
||||
process such as escalating incidents and performing handoffs at the end of
|
||||
an oncall shift.
|
||||
|
||||
authentication:
|
||||
rules:
|
||||
- selector: 'google.cloud.irm.v1alpha2.IncidentService.*'
|
||||
oauth:
|
||||
canonical_scopes: |-
|
||||
https://www.googleapis.com/auth/cloud-platform
|
||||
|
|
@ -1,364 +0,0 @@
|
|||
# This file was automatically generated by BuildFileGenerator
|
||||
|
||||
# This is an API workspace, having public visibility by default makes perfect sense.
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
##############################################################################
|
||||
# Common
|
||||
##############################################################################
|
||||
load("@rules_proto//proto:defs.bzl", "proto_library")
|
||||
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
|
||||
|
||||
proto_library(
|
||||
name = "irm_proto",
|
||||
srcs = [
|
||||
"incidents.proto",
|
||||
"incidents_service.proto",
|
||||
],
|
||||
deps = [
|
||||
"//google/api:annotations_proto",
|
||||
"//google/api:client_proto",
|
||||
"//google/api:field_behavior_proto",
|
||||
"//google/api:resource_proto",
|
||||
"@com_google_protobuf//:empty_proto",
|
||||
"@com_google_protobuf//:field_mask_proto",
|
||||
"@com_google_protobuf//:timestamp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
proto_library_with_info(
|
||||
name = "irm_proto_with_info",
|
||||
deps = [
|
||||
":irm_proto",
|
||||
"//google/cloud:common_resources_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Java
|
||||
##############################################################################
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"java_gapic_assembly_gradle_pkg",
|
||||
"java_gapic_library",
|
||||
"java_gapic_test",
|
||||
"java_grpc_library",
|
||||
"java_proto_library",
|
||||
)
|
||||
|
||||
java_proto_library(
|
||||
name = "irm_java_proto",
|
||||
deps = [":irm_proto"],
|
||||
)
|
||||
|
||||
java_grpc_library(
|
||||
name = "irm_java_grpc",
|
||||
srcs = [":irm_proto"],
|
||||
deps = [":irm_java_proto"],
|
||||
)
|
||||
|
||||
java_gapic_library(
|
||||
name = "irm_java_gapic",
|
||||
src = ":irm_proto_with_info",
|
||||
gapic_yaml = "irm_gapic.yaml",
|
||||
package = "google.cloud.irm.v1alpha2",
|
||||
service_yaml = "//google/cloud/irm:irm_v1alpha2.yaml",
|
||||
test_deps = [
|
||||
":irm_java_grpc",
|
||||
],
|
||||
deps = [
|
||||
":irm_java_proto",
|
||||
],
|
||||
)
|
||||
|
||||
java_gapic_test(
|
||||
name = "irm_java_gapic_test_suite",
|
||||
test_classes = [
|
||||
"com.google.cloud.irm.v1alpha2.IncidentServiceClientTest",
|
||||
],
|
||||
runtime_deps = [":irm_java_gapic_test"],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
java_gapic_assembly_gradle_pkg(
|
||||
name = "google-cloud-irm-v1alpha2-java",
|
||||
deps = [
|
||||
":irm_java_gapic",
|
||||
":irm_java_grpc",
|
||||
":irm_java_proto",
|
||||
":irm_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Go
|
||||
##############################################################################
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"go_gapic_assembly_pkg",
|
||||
"go_gapic_library",
|
||||
"go_proto_library",
|
||||
"go_test",
|
||||
)
|
||||
|
||||
go_proto_library(
|
||||
name = "irm_go_proto",
|
||||
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
|
||||
importpath = "google.golang.org/genproto/googleapis/cloud/irm/v1alpha2",
|
||||
protos = [":irm_proto"],
|
||||
deps = [
|
||||
"//google/api:annotations_go_proto",
|
||||
],
|
||||
)
|
||||
|
||||
go_gapic_library(
|
||||
name = "irm_go_gapic",
|
||||
srcs = [":irm_proto_with_info"],
|
||||
grpc_service_config = "irm_grpc_service_config.json",
|
||||
importpath = "cloud.google.com/go/irm/apiv1alpha2;irm",
|
||||
service_yaml = "//google/cloud/irm:irm_v1alpha2.yaml",
|
||||
deps = [
|
||||
":irm_go_proto",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "irm_go_gapic_test",
|
||||
srcs = [":irm_go_gapic_srcjar_test"],
|
||||
embed = [":irm_go_gapic"],
|
||||
importpath = "cloud.google.com/go/irm/apiv1alpha2",
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
go_gapic_assembly_pkg(
|
||||
name = "gapi-cloud-irm-v1alpha2-go",
|
||||
deps = [
|
||||
":irm_go_gapic",
|
||||
":irm_go_gapic_srcjar-test.srcjar",
|
||||
":irm_go_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Python
|
||||
##############################################################################
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"moved_proto_library",
|
||||
"py_gapic_assembly_pkg",
|
||||
"py_gapic_library",
|
||||
"py_grpc_library",
|
||||
"py_proto_library",
|
||||
)
|
||||
|
||||
moved_proto_library(
|
||||
name = "irm_moved_proto",
|
||||
srcs = [":irm_proto"],
|
||||
deps = [
|
||||
"//google/api:annotations_proto",
|
||||
"//google/api:client_proto",
|
||||
"//google/api:field_behavior_proto",
|
||||
"//google/api:resource_proto",
|
||||
"@com_google_protobuf//:empty_proto",
|
||||
"@com_google_protobuf//:field_mask_proto",
|
||||
"@com_google_protobuf//:timestamp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
py_proto_library(
|
||||
name = "irm_py_proto",
|
||||
plugin = "@protoc_docs_plugin//:docs_plugin",
|
||||
deps = [":irm_moved_proto"],
|
||||
)
|
||||
|
||||
py_grpc_library(
|
||||
name = "irm_py_grpc",
|
||||
srcs = [":irm_moved_proto"],
|
||||
deps = [":irm_py_proto"],
|
||||
)
|
||||
|
||||
py_gapic_library(
|
||||
name = "irm_py_gapic",
|
||||
src = ":irm_proto_with_info",
|
||||
gapic_yaml = "irm_gapic.yaml",
|
||||
package = "google.cloud.irm.v1alpha2",
|
||||
service_yaml = "//google/cloud/irm:irm_v1alpha2.yaml",
|
||||
deps = [
|
||||
":irm_py_grpc",
|
||||
":irm_py_proto",
|
||||
],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
py_gapic_assembly_pkg(
|
||||
name = "irm-v1alpha2-py",
|
||||
deps = [
|
||||
":irm_py_gapic",
|
||||
":irm_py_grpc",
|
||||
":irm_py_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# PHP
|
||||
##############################################################################
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"php_gapic_assembly_pkg",
|
||||
"php_gapic_library",
|
||||
"php_grpc_library",
|
||||
"php_proto_library",
|
||||
)
|
||||
|
||||
php_proto_library(
|
||||
name = "irm_php_proto",
|
||||
deps = [":irm_proto"],
|
||||
)
|
||||
|
||||
php_grpc_library(
|
||||
name = "irm_php_grpc",
|
||||
srcs = [":irm_proto"],
|
||||
deps = [":irm_php_proto"],
|
||||
)
|
||||
|
||||
php_gapic_library(
|
||||
name = "irm_php_gapic",
|
||||
src = ":irm_proto_with_info",
|
||||
gapic_yaml = "irm_gapic.yaml",
|
||||
package = "google.cloud.irm.v1alpha2",
|
||||
service_yaml = "//google/cloud/irm:irm_v1alpha2.yaml",
|
||||
deps = [
|
||||
":irm_php_grpc",
|
||||
":irm_php_proto",
|
||||
],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
php_gapic_assembly_pkg(
|
||||
name = "google-cloud-irm-v1alpha2-php",
|
||||
deps = [
|
||||
":irm_php_gapic",
|
||||
":irm_php_grpc",
|
||||
":irm_php_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Node.js
|
||||
##############################################################################
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"nodejs_gapic_assembly_pkg",
|
||||
"nodejs_gapic_library",
|
||||
)
|
||||
|
||||
nodejs_gapic_library(
|
||||
name = "irm_nodejs_gapic",
|
||||
package_name = "@google-cloud/irm",
|
||||
src = ":irm_proto_with_info",
|
||||
grpc_service_config = "irm_grpc_service_config.json",
|
||||
package = "google.cloud.irm.v1alpha2",
|
||||
service_yaml = "//google/cloud/irm:irm_v1alpha2.yaml",
|
||||
deps = [],
|
||||
)
|
||||
|
||||
nodejs_gapic_assembly_pkg(
|
||||
name = "irm-v1alpha2-nodejs",
|
||||
deps = [
|
||||
":irm_nodejs_gapic",
|
||||
":irm_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Ruby
|
||||
##############################################################################
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"ruby_gapic_assembly_pkg",
|
||||
"ruby_gapic_library",
|
||||
"ruby_grpc_library",
|
||||
"ruby_proto_library",
|
||||
)
|
||||
|
||||
ruby_proto_library(
|
||||
name = "irm_ruby_proto",
|
||||
deps = [":irm_proto"],
|
||||
)
|
||||
|
||||
ruby_grpc_library(
|
||||
name = "irm_ruby_grpc",
|
||||
srcs = [":irm_proto"],
|
||||
deps = [":irm_ruby_proto"],
|
||||
)
|
||||
|
||||
ruby_gapic_library(
|
||||
name = "irm_ruby_gapic",
|
||||
src = ":irm_proto_with_info",
|
||||
gapic_yaml = "irm_gapic.yaml",
|
||||
package = "google.cloud.irm.v1alpha2",
|
||||
service_yaml = "//google/cloud/irm:irm_v1alpha2.yaml",
|
||||
deps = [
|
||||
":irm_ruby_grpc",
|
||||
":irm_ruby_proto",
|
||||
],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
ruby_gapic_assembly_pkg(
|
||||
name = "google-cloud-irm-v1alpha2-ruby",
|
||||
deps = [
|
||||
":irm_ruby_gapic",
|
||||
":irm_ruby_grpc",
|
||||
":irm_ruby_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# C#
|
||||
##############################################################################
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"csharp_gapic_assembly_pkg",
|
||||
"csharp_gapic_library",
|
||||
"csharp_grpc_library",
|
||||
"csharp_proto_library",
|
||||
)
|
||||
|
||||
csharp_proto_library(
|
||||
name = "irm_csharp_proto",
|
||||
deps = [":irm_proto"],
|
||||
)
|
||||
|
||||
csharp_grpc_library(
|
||||
name = "irm_csharp_grpc",
|
||||
srcs = [":irm_proto"],
|
||||
deps = [":irm_csharp_proto"],
|
||||
)
|
||||
|
||||
csharp_gapic_library(
|
||||
name = "irm_csharp_gapic",
|
||||
src = ":irm_proto_with_info",
|
||||
gapic_yaml = "irm_gapic.yaml",
|
||||
package = "google.cloud.irm.v1alpha2",
|
||||
service_yaml = "//google/cloud/irm:irm_v1alpha2.yaml",
|
||||
deps = [
|
||||
":irm_csharp_grpc",
|
||||
":irm_csharp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
csharp_gapic_assembly_pkg(
|
||||
name = "google-cloud-irm-v1alpha2-csharp",
|
||||
deps = [
|
||||
":irm_csharp_gapic",
|
||||
":irm_csharp_grpc",
|
||||
":irm_csharp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# C++
|
||||
##############################################################################
|
||||
# Put your C++ rules here
|
||||
|
|
@ -1,528 +0,0 @@
|
|||
// Copyright 2019 Google LLC.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.irm.v1alpha2;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/field_behavior.proto";
|
||||
import "google/api/resource.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/irm/v1alpha2;irm";
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.google.irm.service.v1alpha2.api";
|
||||
|
||||
// A user of the IRM app.
|
||||
message User {
|
||||
// One of several ways to uniquely identify a user.
|
||||
oneof user {
|
||||
// Output only. User id that will allow to get additional information from
|
||||
// People API. This field will be populated implicitly if the caller creates
|
||||
// or edits a resource (for example, posts an annotation).
|
||||
string user_id = 1;
|
||||
|
||||
// Email address of the user. This must be associated with a Google account.
|
||||
// This field will be set if the user is explicitly identified (verbatim) by
|
||||
// email address in an API request (potentially sometime in the past). It
|
||||
// will not be populated based on the credentials of a caller of the API.
|
||||
string email = 2;
|
||||
}
|
||||
}
|
||||
|
||||
// A signal is a message calling attention to a (potential) incident. An example
|
||||
// is a page based on a Stackdriver Alerting policy.
|
||||
message Signal {
|
||||
option (google.api.resource) = {
|
||||
type: "irm.googleapis.com/Signal"
|
||||
pattern: "projects/{project}/signals/{signal}"
|
||||
};
|
||||
|
||||
// An artifact associated with the Signal.
|
||||
message SignalArtifact {
|
||||
// The type of resource linked to
|
||||
oneof artifact_type {
|
||||
// A custom user type
|
||||
string user_type = 2;
|
||||
}
|
||||
|
||||
// The URI for the artifact.
|
||||
string uri = 3;
|
||||
}
|
||||
|
||||
// Describes whether the alerting condition is still firing.
|
||||
enum State {
|
||||
// Unspecified
|
||||
STATE_UNSPECIFIED = 0;
|
||||
|
||||
// Firing
|
||||
STATE_OPEN = 1;
|
||||
|
||||
// Non-firing
|
||||
STATE_CLOSED = 2;
|
||||
}
|
||||
|
||||
// Resource name of the signal, for example,
|
||||
// "projects/{project_id_or_number}/signals/{signal_id}".
|
||||
string name = 1;
|
||||
|
||||
// Etag to validate the object is unchanged for a read-modify-write operation.
|
||||
// An empty etag will overwrite other changes.
|
||||
string etag = 2;
|
||||
|
||||
// Resource name of the incident this signal is currently assigned to.
|
||||
// May be empty if signal is unassigned.
|
||||
string incident = 3;
|
||||
|
||||
// Output only. Time this signal was created.
|
||||
google.protobuf.Timestamp create_time = 4;
|
||||
|
||||
// Output only. Time this signal was closed. This field is not populated
|
||||
// while the signal is still firing.
|
||||
google.protobuf.Timestamp close_time = 10;
|
||||
|
||||
// The time this Signal was first detected. This is identical to create_time
|
||||
// for Signals created by Stackdriver Alerting.
|
||||
google.protobuf.Timestamp detect_time = 15;
|
||||
|
||||
// Output only. The user that created this signal for manually created
|
||||
// signals. Empty if this signal was generated by a system (for example,
|
||||
// Stackdriver Alerting).
|
||||
User creator = 5;
|
||||
|
||||
// One-line summary of the signal.
|
||||
// Immutable.
|
||||
string title = 6;
|
||||
|
||||
// Content type string. 'text/plain' is currently the only supported content
|
||||
// type for Signals created via the API. Signals created by Stackdriver
|
||||
// Alerting support 'text/html' as well. Immutable for Signals created by
|
||||
// Stackdriver Alerting.
|
||||
string content_type = 7;
|
||||
|
||||
// Full message of the signal.
|
||||
// Immutable for Signals created by Stackdriver Alerting.
|
||||
string content = 8;
|
||||
|
||||
// The state of this signal.
|
||||
// For Signals created by Stackdriver Alerting this field is output only.
|
||||
State signal_state = 9;
|
||||
|
||||
// A set of artifacts to additional resources for this Signal. For example, a
|
||||
// link to Stackdriver logging for the Signal.
|
||||
// Immutable for Signals created by Stackdriver Alerting.
|
||||
repeated SignalArtifact signal_artifacts = 16;
|
||||
}
|
||||
|
||||
// A text annotation by a user.
|
||||
message Annotation {
|
||||
option (google.api.resource) = {
|
||||
type: "irm.googleapis.com/Annotation"
|
||||
pattern: "projects/{project}/incidents/{incident}/annotations/{annotation}"
|
||||
};
|
||||
|
||||
// Resource name of the annotation, for example,
|
||||
// "projects/{project_id_or_number}/incidents/{incident_id}/annotations/{annotation_id}".
|
||||
string name = 1;
|
||||
|
||||
// Output only. Author of the annotation.
|
||||
User author = 2;
|
||||
|
||||
// Output only. Time the annotation was created.
|
||||
google.protobuf.Timestamp create_time = 3;
|
||||
|
||||
// Content of the annotation.
|
||||
string content = 4;
|
||||
|
||||
// Content type of the annotation, for example, 'text/plain'
|
||||
// or 'text/markdown'.
|
||||
string content_type = 5;
|
||||
}
|
||||
|
||||
// A tag by a user.
|
||||
message Tag {
|
||||
option (google.api.resource) = {
|
||||
type: "irm.googleapis.com/Tag"
|
||||
pattern: "projects/{project}/incidents/{incident}/tags/{tag}"
|
||||
};
|
||||
|
||||
// Resource name of a tag, for example,
|
||||
// "projects/{project_id_or_number}/incidents/{incident_id}/tags/{tag_id}"
|
||||
string name = 1;
|
||||
|
||||
// Display name of the resource (for example, "cause:rollout"). Immutable.
|
||||
string display_name = 2;
|
||||
}
|
||||
|
||||
// Synopsis is a summary of an incident and it contains a textual content,
|
||||
// an author and a last updated timestamp.
|
||||
message Synopsis {
|
||||
// Content type string, for example, 'text/plain' or 'text/markdown'.
|
||||
string content_type = 1;
|
||||
|
||||
// Textual content of the synopsis. It can be plain text or markdown as
|
||||
// indicated by the content_type.
|
||||
string content = 2;
|
||||
|
||||
// Last updated timestamp.
|
||||
google.protobuf.Timestamp update_time = 3;
|
||||
|
||||
// Author of the synopsis.
|
||||
User author = 4;
|
||||
}
|
||||
|
||||
// Representation of an incident.
|
||||
message Incident {
|
||||
option (google.api.resource) = {
|
||||
type: "irm.googleapis.com/Incident"
|
||||
pattern: "projects/{project}/incidents/{incident}"
|
||||
};
|
||||
|
||||
// CommunicationVenue is a record of where conversations about an incident
|
||||
// are happening.
|
||||
message CommunicationVenue {
|
||||
// The type of channel/venue for incident communications.
|
||||
enum ChannelType {
|
||||
// An unspecified communication channel.
|
||||
CHANNEL_TYPE_UNSPECIFIED = 0;
|
||||
|
||||
// A communication channel that is represented by a generic URI.
|
||||
CHANNEL_TYPE_URI = 1;
|
||||
|
||||
// A communication channel that represents a Slack channel.
|
||||
CHANNEL_TYPE_SLACK = 5;
|
||||
}
|
||||
|
||||
// A URI to the web interface of the channel.
|
||||
string uri = 1;
|
||||
|
||||
// A name representing the channel in IRM UI.
|
||||
string display_name = 2;
|
||||
|
||||
// The type of channel/venue for incident communications.
|
||||
ChannelType channel_type = 3;
|
||||
}
|
||||
|
||||
// Specifies the escalation level of this incident, within the IRM protocol
|
||||
// for handling incidents.
|
||||
enum EscalationLevel {
|
||||
// The incident has not been escalated. This is the value used by all new
|
||||
// and legacy incidents.
|
||||
ESCALATION_LEVEL_UNSPECIFIED = 0;
|
||||
|
||||
// The incident has been escalated to the organizational level.
|
||||
ESCALATION_LEVEL_ORGANIZATION = 1;
|
||||
}
|
||||
|
||||
// Severity of an incident.
|
||||
enum Severity {
|
||||
// Severity is not specified.
|
||||
SEVERITY_UNSPECIFIED = 0;
|
||||
|
||||
// Huge incident.
|
||||
SEVERITY_HUGE = 1;
|
||||
|
||||
// Major incident.
|
||||
SEVERITY_MAJOR = 2;
|
||||
|
||||
// Medium incident.
|
||||
SEVERITY_MEDIUM = 3;
|
||||
|
||||
// Minor incident.
|
||||
SEVERITY_MINOR = 4;
|
||||
|
||||
// Negligible incident.
|
||||
SEVERITY_NEGLIGIBLE = 5;
|
||||
}
|
||||
|
||||
// Stage of an incident.
|
||||
enum Stage {
|
||||
// This is the default value if no stage has been specified.
|
||||
// Note: The caller of the API should set the stage to DETECTED.
|
||||
STAGE_UNSPECIFIED = 0;
|
||||
|
||||
// The incident has been detected. This is the initial stage of a new
|
||||
// incident.
|
||||
// Note: The caller still has to set the stage manually.
|
||||
STAGE_DETECTED = 4;
|
||||
|
||||
// This incident has been formally characterized.
|
||||
STAGE_TRIAGED = 1;
|
||||
|
||||
// This incident has been mitigated, i.e. does not affect the service level
|
||||
// anymore.
|
||||
STAGE_MITIGATED = 2;
|
||||
|
||||
// This incident has been fully resolved, i.e. there are no immediate
|
||||
// follow-up tasks.
|
||||
STAGE_RESOLVED = 3;
|
||||
|
||||
// Postmortem for the incident was written.
|
||||
STAGE_DOCUMENTED = 5;
|
||||
|
||||
// Stage for an incident with `duplicate_incident`. This incident is not
|
||||
// authoritative anymore and the `duplicate_incident` should be used to
|
||||
// determine the stage.
|
||||
STAGE_DUPLICATE = 6;
|
||||
}
|
||||
|
||||
// Output only. Resource name of the incident, for example,
|
||||
// "projects/{project_id_or_number}/incidents/{incident_id}".
|
||||
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
|
||||
|
||||
// One-line summary of the incident.
|
||||
string title = 2;
|
||||
|
||||
// Escalation level of the incident.
|
||||
EscalationLevel escalation_level = 3;
|
||||
|
||||
// Etag to validate the object is unchanged for a read-modify-write operation.
|
||||
// An empty etag will overwrite other changes.
|
||||
string etag = 4;
|
||||
|
||||
// Severity of the incident.
|
||||
Severity severity = 5;
|
||||
|
||||
// Stage of the incident.
|
||||
Stage stage = 6;
|
||||
|
||||
// Resource name of the incident this incident is a duplicate of. Empty if
|
||||
// this incident is not a duplicate.
|
||||
// An incident can only be a duplicate of an incident that is not marked as a
|
||||
// duplicate already. Setting this to a non-empty value must also set the
|
||||
// stage to `STAGE_DUPLICATE`. Unsetting this value value must also update
|
||||
// `stage` to a value other than `STAGE_DUPLICATE`.
|
||||
string duplicate_incident = 9;
|
||||
|
||||
// Output only. Time this incident started. Used to measure the 'elapsed
|
||||
// time'. Start time of an incident is the earliest creation time of any of
|
||||
// its Signals or the create time of the incident if no Signals are assigned.
|
||||
google.protobuf.Timestamp start_time = 7;
|
||||
|
||||
// Output only. Synopsis of this incident.
|
||||
Synopsis synopsis = 8;
|
||||
|
||||
// Location of communications for this incident. This is informational
|
||||
// only; IRM does not use this to send messages.
|
||||
CommunicationVenue communication_venue = 10;
|
||||
}
|
||||
|
||||
// Describes a role that can be assigned to an incident.
|
||||
message IncidentRole {
|
||||
// List of possible roles.
|
||||
enum Type {
|
||||
// The role is unspecified.
|
||||
TYPE_UNSPECIFIED = 0;
|
||||
|
||||
// Incident Commander: Manages response plan, near-term and long-term
|
||||
// objectives, establishes priorities, and delegates tasks as needed.
|
||||
TYPE_INCIDENT_COMMANDER = 1;
|
||||
|
||||
// Communications Lead: Keeps everybody outside and within the response team
|
||||
// informed.
|
||||
TYPE_COMMUNICATIONS_LEAD = 2;
|
||||
|
||||
// Operations Lead: Figures out what to do, and gets it done.
|
||||
TYPE_OPERATIONS_LEAD = 3;
|
||||
|
||||
// External Customer Communications Lead: Responsible for communicating
|
||||
// incident details to customers/public.
|
||||
TYPE_EXTERNAL_CUSTOMER_COMMUNICATIONS_LEAD = 4;
|
||||
|
||||
// Primary Oncall: Responds to the initial page and handles all
|
||||
// responsibilities for pre-escalated incidents.
|
||||
TYPE_PRIMARY_ONCALL = 5;
|
||||
|
||||
// Secondary Oncall: Helps the primary oncall if necessary; mostly useful
|
||||
// for pre-escalated incidents.
|
||||
TYPE_SECONDARY_ONCALL = 6;
|
||||
|
||||
// User-specified roles. One example is a Planning Lead, who keeps track of
|
||||
// the incident. Another is an assistant Incident Commander.
|
||||
TYPE_OTHER = 7;
|
||||
}
|
||||
|
||||
// The type of role. The role type is immutable in role assignments. Each role
|
||||
// type can only be used once per incident, except for TYPE_OTHER.
|
||||
Type type = 1;
|
||||
|
||||
// Output only and empty unless TYPE_OTHER is used. Title of the role. For
|
||||
// TYPE_OTHER, must be unique within an incident.
|
||||
string title = 2;
|
||||
|
||||
// Output only and empty unless TYPE_OTHER is used. Description of the role.
|
||||
string description = 3;
|
||||
}
|
||||
|
||||
// Stores the assignee of a role as well as the proposed next assignee.
|
||||
message IncidentRoleAssignment {
|
||||
option (google.api.resource) = {
|
||||
type: "irm.googleapis.com/IncidentRoleAssignment"
|
||||
pattern: "projects/{project_id_or_number}/incidents/{incident_id}/role_assignments/{role_id}"
|
||||
};
|
||||
|
||||
// Output only. Resource name such as
|
||||
// "projects/{project_id_or_number}/incidents/{incident_id}/role_assignments/{role_id}".
|
||||
string name = 1;
|
||||
|
||||
// Output only. Etag for this version of the resource. Must be specified in
|
||||
// update requests and match the current version in storage. Must not be
|
||||
// modified by the client.
|
||||
string etag = 2;
|
||||
|
||||
// The role that is or will be assigned.
|
||||
IncidentRole role = 3;
|
||||
|
||||
// The user this role is assigned to. This field can only be directly set
|
||||
// during creation request. Subsequent updates are done via the
|
||||
// IncidentRoleHandover methods.
|
||||
User assignee = 4;
|
||||
|
||||
// The recipient of a requested role handoff. This field can only be directly
|
||||
// set during creation request. Subsequent updates are done via the
|
||||
// IncidentRoleHandover methods.
|
||||
//
|
||||
// `assignee` is always the current role-holder, and `proposed_assignee` is
|
||||
// used to track unfinished assignments and handoffs. Let's say Bob assigns
|
||||
// Alice to a role. Then the fields are:
|
||||
// `assignee`: nil, `proposed_assignee`: Alice
|
||||
// If Alice accepts, then the fields are:
|
||||
// `assignee`: Alice, `proposed_assignee`: nil
|
||||
// If she cancels, then the RoleAssignment is deleted.
|
||||
// Let's say Alice has the role. Then the fields are:
|
||||
// `assignee`: Alice, `proposed_assignee`: nil
|
||||
// If Alice becomes incapacitated and Bob requests Carol to take over, then
|
||||
// the fields are:
|
||||
// `assignee`: Alice, `proposed_assignee`: Carol
|
||||
// After Carol accepts the handover, the fields are:
|
||||
// `assignee`: Carol, `proposed_assignee`: nil
|
||||
// Or if Carol refuses the handover, the fields are:
|
||||
// `assignee`: Alice, `proposed_assignee`: nil
|
||||
User proposed_assignee = 5;
|
||||
}
|
||||
|
||||
// External artifact associated to an incident.
|
||||
message Artifact {
|
||||
option (google.api.resource) = {
|
||||
type: "irm.googleapis.com/Artifact"
|
||||
pattern: "projects/{project}/incidents/{incident}/artifacts/{artifact}"
|
||||
};
|
||||
|
||||
// Possible types of an artifact.
|
||||
enum Type {
|
||||
// External type is unspecified.
|
||||
TYPE_UNSPECIFIED = 0;
|
||||
|
||||
// URL.
|
||||
TYPE_URL = 1;
|
||||
|
||||
// A JIRA issue.
|
||||
TYPE_JIRA_ISSUE = 4;
|
||||
}
|
||||
|
||||
// Output only. Resource name such as
|
||||
// "projects/{project_id_or_number}/incidents/{incident_id}/artifacts/{artifact_id}".
|
||||
string name = 1;
|
||||
|
||||
// User provided name of an artifact.
|
||||
string display_name = 2;
|
||||
|
||||
// Output only. Etag for this version of the resource. Must be specified in
|
||||
// update requests and match the current version in storage. Must not be
|
||||
// modified by the client.
|
||||
string etag = 3;
|
||||
|
||||
// URL to access the artifact.
|
||||
string url = 4;
|
||||
|
||||
// Type of this artifact.
|
||||
Type type = 5;
|
||||
}
|
||||
|
||||
// Communication Channels are mechanisms used to receive notifications
|
||||
// about changes to incidents.
|
||||
message CommunicationChannel {
|
||||
// A communication channel that delivers messages to an email address.
|
||||
message Email {
|
||||
// The email address, for example, "user@example.com".
|
||||
string address = 1;
|
||||
}
|
||||
|
||||
// A communication channel that delivers messages to a Stackdriver
|
||||
// notification channel.
|
||||
message NotificationChannel {
|
||||
// Stackdriver notification channel name.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// An endpoint describes how messages will be delivered.
|
||||
oneof endpoint {
|
||||
// Messages will be delivered via email.
|
||||
Email email = 1;
|
||||
|
||||
// Messages will be delivered via a Stackdriver notification channel.
|
||||
NotificationChannel notification_channel = 2;
|
||||
}
|
||||
}
|
||||
|
||||
// A subscription allows users to get notifications about changes to
|
||||
// an incident.
|
||||
message Subscription {
|
||||
option (google.api.resource) = {
|
||||
type: "irm.googleapis.com/Subscription"
|
||||
pattern: "projects/{project}/incidents/{incident}/subscriptions/{subscription}"
|
||||
};
|
||||
|
||||
// Types of changes that users can subscribe to in an incident.
|
||||
enum EventType {
|
||||
// An event_type that's not specified is an error.
|
||||
EVENT_TYPE_UNSPECIFIED = 0;
|
||||
|
||||
// The incident's title has changed.
|
||||
EVENT_TYPE_TITLE_CHANGE = 1;
|
||||
|
||||
// The incident's synopsis has changed.
|
||||
EVENT_TYPE_SYNOPSIS_CHANGE = 2;
|
||||
|
||||
// The incident's stage has changed.
|
||||
EVENT_TYPE_STAGE_CHANGE = 3;
|
||||
|
||||
// The incident's severity has changed.
|
||||
EVENT_TYPE_SEVERITY_CHANGE = 4;
|
||||
|
||||
// A new annotation has been added to the incident.
|
||||
EVENT_TYPE_ANNOTATION_ADD = 5;
|
||||
|
||||
// An annotation has been modified.
|
||||
EVENT_TYPE_ANNOTATION_CHANGE = 6;
|
||||
}
|
||||
|
||||
// Output only. Resource name such as
|
||||
// "projects/{project_id_or_number}/incidents/{incident_id}/subscriptions/{subscription_id}".
|
||||
string name = 1;
|
||||
|
||||
// Output only. Etag for this version of the resource. Must be specified in
|
||||
// update requests and match the current version in storage. Must not be
|
||||
// modified by the client.
|
||||
string etag = 2;
|
||||
|
||||
// A communications channel to send subscription messages to.
|
||||
CommunicationChannel subscription_channel = 3;
|
||||
|
||||
// Types of events this subscription receives notifications for.
|
||||
repeated EventType event_types = 4;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,723 +0,0 @@
|
|||
type: com.google.api.codegen.ConfigProto
|
||||
config_schema_version: 1.0.0
|
||||
# The settings of generated code in a specific language.
|
||||
language_settings:
|
||||
java:
|
||||
package_name: com.google.cloud.irm.v1alpha2
|
||||
python:
|
||||
package_name: google.cloud.irm_v1alpha2.gapic
|
||||
go:
|
||||
package_name: cloud.google.com/go/irm/apiv1alpha2
|
||||
csharp:
|
||||
package_name: Google.Cloud.Irm.V1Alpha2
|
||||
ruby:
|
||||
package_name: Google::Cloud::Irm::V1alpha2
|
||||
php:
|
||||
package_name: Google\Cloud\Irm\V1alpha2
|
||||
nodejs:
|
||||
package_name: irm.v1alpha2
|
||||
domain_layer_location: google-cloud
|
||||
# A list of API interface configurations.
|
||||
interfaces:
|
||||
# The fully qualified name of the API interface.
|
||||
- name: google.cloud.irm.v1alpha2.IncidentService
|
||||
# A list of resource collection configurations.
|
||||
# Consists of a name_pattern and an entity_name.
|
||||
# The name_pattern is a pattern to describe the names of the resources of this
|
||||
# collection, using the platform's conventions for URI patterns. A generator
|
||||
# may use this to generate methods to compose and decompose such names. The
|
||||
# pattern should use named placeholders as in `shelves/{shelf}/books/{book}`;
|
||||
# those will be taken as hints for the parameter names of the generated
|
||||
# methods. If empty, no name methods are generated.
|
||||
# The entity_name is the name to be used as a basis for generated methods and
|
||||
# classes.
|
||||
collections:
|
||||
- name_pattern: projects/{project}
|
||||
entity_name: project
|
||||
language_overrides:
|
||||
- language: csharp
|
||||
common_resource_name: Google.Api.Gax.ResourceNames.ProjectName
|
||||
- name_pattern: projects/{project}/incidents/{incident}
|
||||
entity_name: incident
|
||||
- name_pattern: projects/{project}/incidents/{incident}/annotations/{annotation}
|
||||
entity_name: annotation
|
||||
- name_pattern: projects/{project}/incidents/{incident}/artifacts/{artifact}
|
||||
entity_name: artifact
|
||||
- name_pattern: projects/{project}/incidents/{incident}/roleAssignments/{role_assignment}
|
||||
entity_name: role_assignment
|
||||
- name_pattern: projects/{project}/incidents/{incident}/subscriptions/{subscription}
|
||||
entity_name: subscription
|
||||
- name_pattern: projects/{project}/incidents/{incident}/tags/{tag}
|
||||
entity_name: tag
|
||||
- name_pattern: projects/{project}/signals/{signal}
|
||||
entity_name: signal
|
||||
# Definition for retryable codes.
|
||||
retry_codes_def:
|
||||
- name: idempotent
|
||||
retry_codes:
|
||||
- DEADLINE_EXCEEDED
|
||||
- UNAVAILABLE
|
||||
- name: non_idempotent
|
||||
retry_codes: []
|
||||
# Definition for retry/backoff parameters.
|
||||
retry_params_def:
|
||||
- name: default
|
||||
initial_retry_delay_millis: 100
|
||||
retry_delay_multiplier: 1.3
|
||||
max_retry_delay_millis: 60000
|
||||
initial_rpc_timeout_millis: 20000
|
||||
rpc_timeout_multiplier: 1
|
||||
max_rpc_timeout_millis: 20000
|
||||
total_timeout_millis: 600000
|
||||
# A list of method configurations.
|
||||
# Common properties:
|
||||
#
|
||||
# name - The simple name of the method.
|
||||
#
|
||||
# flattening - Specifies the configuration for parameter flattening.
|
||||
# Describes the parameter groups for which a generator should produce method
|
||||
# overloads which allow a client to directly pass request message fields as
|
||||
# method parameters. This information may or may not be used, depending on
|
||||
# the target language.
|
||||
# Consists of groups, which each represent a list of parameters to be
|
||||
# flattened. Each parameter listed must be a field of the request message.
|
||||
#
|
||||
# required_fields - Fields that are always required for a request to be
|
||||
# valid.
|
||||
#
|
||||
# resource_name_treatment - An enum that specifies how to treat the resource
|
||||
# name formats defined in the field_name_patterns and
|
||||
# response_field_name_patterns fields.
|
||||
# UNSET: default value
|
||||
# NONE: the collection configs will not be used by the generated code.
|
||||
# VALIDATE: string fields will be validated by the client against the
|
||||
# specified resource name formats.
|
||||
# STATIC_TYPES: the client will use generated types for resource names.
|
||||
#
|
||||
# page_streaming - Specifies the configuration for paging.
|
||||
# Describes information for generating a method which transforms a paging
|
||||
# list RPC into a stream of resources.
|
||||
# Consists of a request and a response.
|
||||
# The request specifies request information of the list method. It defines
|
||||
# which fields match the paging pattern in the request. The request consists
|
||||
# of a page_size_field and a token_field. The page_size_field is the name of
|
||||
# the optional field specifying the maximum number of elements to be
|
||||
# returned in the response. The token_field is the name of the field in the
|
||||
# request containing the page token.
|
||||
# The response specifies response information of the list method. It defines
|
||||
# which fields match the paging pattern in the response. The response
|
||||
# consists of a token_field and a resources_field. The token_field is the
|
||||
# name of the field in the response containing the next page token. The
|
||||
# resources_field is the name of the field in the response containing the
|
||||
# list of resources belonging to the page.
|
||||
#
|
||||
# retry_codes_name - Specifies the configuration for retryable codes. The
|
||||
# name must be defined in interfaces.retry_codes_def.
|
||||
#
|
||||
# retry_params_name - Specifies the configuration for retry/backoff
|
||||
# parameters. The name must be defined in interfaces.retry_params_def.
|
||||
#
|
||||
# field_name_patterns - Maps the field name of the request type to
|
||||
# entity_name of interfaces.collections.
|
||||
# Specifies the string pattern that the field must follow.
|
||||
#
|
||||
# timeout_millis - Specifies the default timeout for a non-retrying call. If
|
||||
# the call is retrying, refer to retry_params_name instead.
|
||||
methods:
|
||||
- name: CreateIncident
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- incident
|
||||
- parent
|
||||
required_fields:
|
||||
- incident
|
||||
- parent
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: project
|
||||
timeout_millis: 60000
|
||||
- name: GetIncident
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: incident
|
||||
timeout_millis: 60000
|
||||
- name: SearchIncidents
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
- query
|
||||
- time_zone
|
||||
required_fields:
|
||||
- parent
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: incidents
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: project
|
||||
timeout_millis: 60000
|
||||
- name: UpdateIncident
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- incident
|
||||
- update_mask
|
||||
required_fields:
|
||||
- incident
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
incident.name: incident
|
||||
timeout_millis: 60000
|
||||
- name: SearchSimilarIncidents
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: results
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: incident
|
||||
timeout_millis: 60000
|
||||
- name: CreateAnnotation
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
- annotation
|
||||
required_fields:
|
||||
- parent
|
||||
- annotation
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: incident
|
||||
timeout_millis: 60000
|
||||
- name: ListAnnotations
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
required_fields:
|
||||
- parent
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: annotations
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: incident
|
||||
timeout_millis: 60000
|
||||
- name: CreateTag
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
- tag
|
||||
required_fields:
|
||||
- parent
|
||||
- tag
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: incident
|
||||
timeout_millis: 60000
|
||||
- name: DeleteTag
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: tag
|
||||
timeout_millis: 60000
|
||||
- name: ListTags
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
required_fields:
|
||||
- parent
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: tags
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: incident
|
||||
timeout_millis: 60000
|
||||
- name: CreateSignal
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
- signal
|
||||
required_fields:
|
||||
- parent
|
||||
- signal
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: project
|
||||
timeout_millis: 60000
|
||||
- name: SearchSignals
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
- query
|
||||
required_fields:
|
||||
- parent
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: signals
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: project
|
||||
timeout_millis: 60000
|
||||
- name: GetSignal
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: signal
|
||||
timeout_millis: 60000
|
||||
- name: LookupSignal
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
timeout_millis: 60000
|
||||
- name: UpdateSignal
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- signal
|
||||
- update_mask
|
||||
required_fields:
|
||||
- signal
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
signal.name: signal
|
||||
timeout_millis: 60000
|
||||
- name: EscalateIncident
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
required_fields:
|
||||
- incident
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
incident.name: incident
|
||||
timeout_millis: 60000
|
||||
- name: CreateArtifact
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
- artifact
|
||||
required_fields:
|
||||
- parent
|
||||
- artifact
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: incident
|
||||
timeout_millis: 60000
|
||||
- name: ListArtifacts
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
required_fields:
|
||||
- parent
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: artifacts
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: incident
|
||||
timeout_millis: 60000
|
||||
- name: UpdateArtifact
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- artifact
|
||||
- update_mask
|
||||
required_fields:
|
||||
- artifact
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
artifact.name: artifact
|
||||
timeout_millis: 60000
|
||||
- name: DeleteArtifact
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: artifact
|
||||
timeout_millis: 60000
|
||||
- name: SendShiftHandoff
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
required_fields:
|
||||
- parent
|
||||
- recipients
|
||||
- subject
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: project
|
||||
timeout_millis: 60000
|
||||
- name: CreateSubscription
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
- subscription
|
||||
required_fields:
|
||||
- parent
|
||||
- subscription
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: incident
|
||||
timeout_millis: 60000
|
||||
- name: UpdateSubscription
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- subscription
|
||||
- update_mask
|
||||
required_fields:
|
||||
- subscription
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
subscription.name: subscription
|
||||
timeout_millis: 60000
|
||||
- name: ListSubscriptions
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
required_fields:
|
||||
- parent
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: subscriptions
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: incident
|
||||
timeout_millis: 60000
|
||||
- name: DeleteSubscription
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: subscription
|
||||
timeout_millis: 60000
|
||||
- name: CreateIncidentRoleAssignment
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
- incident_role_assignment
|
||||
required_fields:
|
||||
- parent
|
||||
- incident_role_assignment
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: incident
|
||||
timeout_millis: 60000
|
||||
- name: DeleteIncidentRoleAssignment
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: role_assignment
|
||||
timeout_millis: 60000
|
||||
- name: ListIncidentRoleAssignments
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
required_fields:
|
||||
- parent
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: incident_role_assignments
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: incident
|
||||
timeout_millis: 60000
|
||||
- name: RequestIncidentRoleHandover
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
- new_assignee
|
||||
required_fields:
|
||||
- name
|
||||
- new_assignee
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: role_assignment
|
||||
timeout_millis: 60000
|
||||
- name: ConfirmIncidentRoleHandover
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
- new_assignee
|
||||
required_fields:
|
||||
- name
|
||||
- new_assignee
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: role_assignment
|
||||
timeout_millis: 60000
|
||||
- name: ForceIncidentRoleHandover
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
- new_assignee
|
||||
required_fields:
|
||||
- name
|
||||
- new_assignee
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: role_assignment
|
||||
timeout_millis: 60000
|
||||
- name: CancelIncidentRoleHandover
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
- new_assignee
|
||||
required_fields:
|
||||
- name
|
||||
- new_assignee
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: role_assignment
|
||||
timeout_millis: 60000
|
||||
resource_name_generation:
|
||||
- message_name: Annotation
|
||||
field_entity_map:
|
||||
name: annotation
|
||||
- message_name: Artifact
|
||||
field_entity_map:
|
||||
name: artifact
|
||||
- message_name: Incident
|
||||
field_entity_map:
|
||||
name: incident
|
||||
- message_name: IncidentRoleAssignment
|
||||
field_entity_map:
|
||||
name: role_assignment
|
||||
- message_name: Signal
|
||||
field_entity_map:
|
||||
name: signal
|
||||
- message_name: Subscription
|
||||
field_entity_map:
|
||||
name: subscription
|
||||
- message_name: Tag
|
||||
field_entity_map:
|
||||
name: tag
|
||||
- message_name: CreateIncidentRequest
|
||||
field_entity_map:
|
||||
parent: project
|
||||
- message_name: GetIncidentRequest
|
||||
field_entity_map:
|
||||
name: incident
|
||||
- message_name: SearchIncidentsRequest
|
||||
field_entity_map:
|
||||
parent: project
|
||||
- message_name: UpdateIncidentRequest
|
||||
field_entity_map:
|
||||
incident.name: incident
|
||||
- message_name: EscalateIncidentRequest
|
||||
field_entity_map:
|
||||
incident.name: incident
|
||||
- message_name: CreateSignalRequest
|
||||
field_entity_map:
|
||||
parent: project
|
||||
- message_name: GetSignalRequest
|
||||
field_entity_map:
|
||||
name: signal
|
||||
- message_name: SearchSignalsRequest
|
||||
field_entity_map:
|
||||
parent: project
|
||||
- message_name: UpdateSignalRequest
|
||||
field_entity_map:
|
||||
signal.name: signal
|
||||
- message_name: CreateArtifactRequest
|
||||
field_entity_map:
|
||||
parent: incident
|
||||
- message_name: ListArtifactsRequest
|
||||
field_entity_map:
|
||||
parent: incident
|
||||
- message_name: UpdateArtifactRequest
|
||||
field_entity_map:
|
||||
artifact.name: artifact
|
||||
- message_name: DeleteArtifactRequest
|
||||
field_entity_map:
|
||||
name: artifact
|
||||
- message_name: CreateIncidentRoleAssignmentRequest
|
||||
field_entity_map:
|
||||
parent: incident
|
||||
- message_name: ListIncidentRoleAssignmentsRequest
|
||||
field_entity_map:
|
||||
parent: incident
|
||||
- message_name: DeleteIncidentRoleAssignmentRequest
|
||||
field_entity_map:
|
||||
name: role_assignment
|
||||
- message_name: RequestIncidentRoleHandoverRequest
|
||||
field_entity_map:
|
||||
name: role_assignment
|
||||
- message_name: ConfirmIncidentRoleHandoverRequest
|
||||
field_entity_map:
|
||||
name: role_assignment
|
||||
- message_name: ForceIncidentRoleHandoverRequest
|
||||
field_entity_map:
|
||||
name: role_assignment
|
||||
- message_name: CancelIncidentRoleHandoverRequest
|
||||
field_entity_map:
|
||||
name: role_assignment
|
||||
- message_name: CreateSubscriptionRequest
|
||||
field_entity_map:
|
||||
parent: incident
|
||||
- message_name: ListSubscriptionsRequest
|
||||
field_entity_map:
|
||||
parent: incident
|
||||
- message_name: UpdateSubscriptionRequest
|
||||
field_entity_map:
|
||||
subscription.name: subscription
|
||||
- message_name: DeleteSubscriptionRequest
|
||||
field_entity_map:
|
||||
name: subscription
|
||||
- message_name: CreateTagRequest
|
||||
field_entity_map:
|
||||
parent: incident
|
||||
- message_name: ListTagsRequest
|
||||
field_entity_map:
|
||||
parent: incident
|
||||
- message_name: DeleteTagRequest
|
||||
field_entity_map:
|
||||
name: tag
|
||||
- message_name: CreateAnnotationRequest
|
||||
field_entity_map:
|
||||
parent: incident
|
||||
- message_name: ListAnnotationsRequest
|
||||
field_entity_map:
|
||||
parent: incident
|
||||
- message_name: SendShiftHandoffRequest
|
||||
field_entity_map:
|
||||
parent: project
|
||||
|
|
@ -1,86 +0,0 @@
|
|||
type: com.google.api.codegen.ConfigProto
|
||||
config_schema_version: 2.0.0
|
||||
# The settings of generated code in a specific language.
|
||||
language_settings:
|
||||
java:
|
||||
package_name: com.google.cloud.irm.v1alpha2
|
||||
python:
|
||||
package_name: google.cloud.irm_v1alpha2.gapic
|
||||
go:
|
||||
package_name: cloud.google.com/go/irm/apiv1alpha2
|
||||
csharp:
|
||||
package_name: Google.Cloud.Irm.V1Alpha2
|
||||
ruby:
|
||||
package_name: Google::Cloud::Irm::V1alpha2
|
||||
php:
|
||||
package_name: Google\Cloud\Irm\V1alpha2
|
||||
nodejs:
|
||||
package_name: irm.v1alpha2
|
||||
domain_layer_location: google-cloud
|
||||
# A list of API interface configurations.
|
||||
interfaces:
|
||||
# The fully qualified name of the API interface.
|
||||
- name: google.cloud.irm.v1alpha2.IncidentService
|
||||
# A list of method configurations.
|
||||
# Common properties:
|
||||
#
|
||||
# name - The simple name of the method.
|
||||
#
|
||||
# flattening - Specifies the configuration for parameter flattening.
|
||||
# Describes the parameter groups for which a generator should produce method
|
||||
# overloads which allow a client to directly pass request message fields as
|
||||
# method parameters. This information may or may not be used, depending on
|
||||
# the target language.
|
||||
# Consists of groups, which each represent a list of parameters to be
|
||||
# flattened. Each parameter listed must be a field of the request message.
|
||||
#
|
||||
# required_fields - Fields that are always required for a request to be
|
||||
# valid.
|
||||
#
|
||||
# resource_name_treatment - An enum that specifies how to treat the resource
|
||||
# name formats defined in the field_name_patterns and
|
||||
# response_field_name_patterns fields.
|
||||
# UNSET: default value
|
||||
# NONE: the collection configs will not be used by the generated code.
|
||||
# VALIDATE: string fields will be validated by the client against the
|
||||
# specified resource name formats.
|
||||
# STATIC_TYPES: the client will use generated types for resource names.
|
||||
#
|
||||
# page_streaming - Specifies the configuration for paging.
|
||||
# Describes information for generating a method which transforms a paging
|
||||
# list RPC into a stream of resources.
|
||||
# Consists of a request and a response.
|
||||
# The request specifies request information of the list method. It defines
|
||||
# which fields match the paging pattern in the request. The request consists
|
||||
# of a page_size_field and a token_field. The page_size_field is the name of
|
||||
# the optional field specifying the maximum number of elements to be
|
||||
# returned in the response. The token_field is the name of the field in the
|
||||
# request containing the page token.
|
||||
# The response specifies response information of the list method. It defines
|
||||
# which fields match the paging pattern in the response. The response
|
||||
# consists of a token_field and a resources_field. The token_field is the
|
||||
# name of the field in the response containing the next page token. The
|
||||
# resources_field is the name of the field in the response containing the
|
||||
# list of resources belonging to the page.
|
||||
#
|
||||
# retry_codes_name - Specifies the configuration for retryable codes. The
|
||||
# name must be defined in interfaces.retry_codes_def.
|
||||
#
|
||||
# retry_params_name - Specifies the configuration for retry/backoff
|
||||
# parameters. The name must be defined in interfaces.retry_params_def.
|
||||
#
|
||||
# field_name_patterns - Maps the field name of the request type to
|
||||
# entity_name of interfaces.collections.
|
||||
# Specifies the string pattern that the field must follow.
|
||||
#
|
||||
# timeout_millis - Specifies the default timeout for a non-retrying call. If
|
||||
# the call is retrying, refer to retry_params_name instead.
|
||||
methods:
|
||||
- name: DeleteArtifact
|
||||
retry_codes_name: idempotent
|
||||
- name: RequestIncidentRoleHandover
|
||||
retry_codes_name: non_idempotent
|
||||
- name: ConfirmIncidentRoleHandover
|
||||
retry_codes_name: non_idempotent
|
||||
- name: ForceIncidentRoleHandover
|
||||
retry_codes_name: non_idempotent
|
||||
|
|
@ -1,151 +0,0 @@
|
|||
{
|
||||
"methodConfig": [
|
||||
{
|
||||
"name": [
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "CreateIncident"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "UpdateIncident"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "CreateAnnotation"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "CreateTag"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "CreateSignal"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "UpdateSignal"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "EscalateIncident"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "CreateArtifact"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "UpdateArtifact"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "SendShiftHandoff"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "CreateSubscription"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "UpdateSubscription"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "CreateIncidentRoleAssignment"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "RequestIncidentRoleHandover"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "ConfirmIncidentRoleHandover"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "ForceIncidentRoleHandover"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "CancelIncidentRoleHandover"
|
||||
}
|
||||
],
|
||||
"timeout": "600s"
|
||||
},
|
||||
{
|
||||
"name": [
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "GetIncident"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "SearchIncidents"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "SearchSimilarIncidents"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "ListAnnotations"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "DeleteTag"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "ListTags"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "SearchSignals"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "GetSignal"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "LookupSignal"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "ListArtifacts"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "DeleteArtifact"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "ListSubscriptions"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "DeleteSubscription"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "DeleteIncidentRoleAssignment"
|
||||
},
|
||||
{
|
||||
"service": "google.cloud.irm.v1alpha2.IncidentService",
|
||||
"method": "ListIncidentRoleAssignments"
|
||||
}
|
||||
],
|
||||
"timeout": "600s",
|
||||
"retryPolicy": {
|
||||
"initialBackoff": "0.100s",
|
||||
"maxBackoff": "60s",
|
||||
"backoffMultiplier": 1.3,
|
||||
"retryableStatusCodes": [
|
||||
"DEADLINE_EXCEEDED",
|
||||
"UNAVAILABLE"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
type: google.api.Service
|
||||
config_version: 3
|
||||
name: irm.googleapis.com
|
||||
title: Stackdriver Incident Response & Management API
|
||||
|
||||
apis:
|
||||
- name: google.cloud.irm.v1alpha2.IncidentService
|
||||
|
||||
documentation:
|
||||
overview: |-
|
||||
The Stackdriver Incident Response & Management API allows users of
|
||||
Stackdriver to retrieve their signals, group signals into incidents,
|
||||
retrieve and modify existing incidents, and manage user roles. It also
|
||||
provides access to functionality related to the incident management
|
||||
process such as escalating incidents and performing handoffs at the end of
|
||||
an oncall shift.
|
||||
|
||||
authentication:
|
||||
rules:
|
||||
- selector: 'google.cloud.irm.v1alpha2.IncidentService.*'
|
||||
oauth:
|
||||
canonical_scopes: |-
|
||||
https://www.googleapis.com/auth/cloud-platform
|
||||
Loading…
Reference in New Issue