123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- syntax = "proto3";
- package google.monitoring.v3;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/monitoring/v3/alert.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- option csharp_namespace = "Google.Cloud.Monitoring.V3";
- option go_package = "google.golang.org/genproto/googleapis/monitoring/v3;monitoring";
- option java_multiple_files = true;
- option java_outer_classname = "AlertServiceProto";
- option java_package = "com.google.monitoring.v3";
- option php_namespace = "Google\\Cloud\\Monitoring\\V3";
- option ruby_package = "Google::Cloud::Monitoring::V3";
- service AlertPolicyService {
- option (google.api.default_host) = "monitoring.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform,"
- "https://www.googleapis.com/auth/monitoring,"
- "https://www.googleapis.com/auth/monitoring.read";
-
- rpc ListAlertPolicies(ListAlertPoliciesRequest) returns (ListAlertPoliciesResponse) {
- option (google.api.http) = {
- get: "/v3/{name=projects/*}/alertPolicies"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc GetAlertPolicy(GetAlertPolicyRequest) returns (AlertPolicy) {
- option (google.api.http) = {
- get: "/v3/{name=projects/*/alertPolicies/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateAlertPolicy(CreateAlertPolicyRequest) returns (AlertPolicy) {
- option (google.api.http) = {
- post: "/v3/{name=projects/*}/alertPolicies"
- body: "alert_policy"
- };
- option (google.api.method_signature) = "name,alert_policy";
- }
-
- rpc DeleteAlertPolicy(DeleteAlertPolicyRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v3/{name=projects/*/alertPolicies/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
-
- rpc UpdateAlertPolicy(UpdateAlertPolicyRequest) returns (AlertPolicy) {
- option (google.api.http) = {
- patch: "/v3/{alert_policy.name=projects/*/alertPolicies/*}"
- body: "alert_policy"
- };
- option (google.api.method_signature) = "update_mask,alert_policy";
- }
- }
- message CreateAlertPolicyRequest {
-
-
-
-
-
-
-
-
-
-
-
-
- string name = 3 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "monitoring.googleapis.com/AlertPolicy"
- }
- ];
-
-
-
- AlertPolicy alert_policy = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message GetAlertPolicyRequest {
-
-
-
- string name = 3 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "monitoring.googleapis.com/AlertPolicy"
- }
- ];
- }
- message ListAlertPoliciesRequest {
-
-
-
-
-
-
-
-
-
-
- string name = 4 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "monitoring.googleapis.com/AlertPolicy"
- }
- ];
-
-
-
-
-
- string filter = 5;
-
-
-
-
-
-
- string order_by = 6;
-
- int32 page_size = 2;
-
-
-
- string page_token = 3;
- }
- message ListAlertPoliciesResponse {
-
- repeated AlertPolicy alert_policies = 3;
-
-
-
- string next_page_token = 2;
-
-
- int32 total_size = 4;
- }
- message UpdateAlertPolicyRequest {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- google.protobuf.FieldMask update_mask = 2;
-
-
-
-
- AlertPolicy alert_policy = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message DeleteAlertPolicyRequest {
-
-
-
-
-
- string name = 3 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "monitoring.googleapis.com/AlertPolicy"
- }
- ];
- }
|