|
|
|
@ -20,9 +20,7 @@ import "google/api/annotations.proto"; |
|
|
|
|
import "google/api/client.proto"; |
|
|
|
|
import "google/api/field_behavior.proto"; |
|
|
|
|
import "google/api/resource.proto"; |
|
|
|
|
import "google/longrunning/operations.proto"; |
|
|
|
|
import "google/monitoring/v3/uptime.proto"; |
|
|
|
|
import "google/protobuf/duration.proto"; |
|
|
|
|
import "google/protobuf/empty.proto"; |
|
|
|
|
import "google/protobuf/field_mask.proto"; |
|
|
|
|
|
|
|
|
@ -51,7 +49,8 @@ service UptimeCheckService { |
|
|
|
|
|
|
|
|
|
// Lists the existing valid Uptime check configurations for the project |
|
|
|
|
// (leaving out any invalid configurations). |
|
|
|
|
rpc ListUptimeCheckConfigs(ListUptimeCheckConfigsRequest) returns (ListUptimeCheckConfigsResponse) { |
|
|
|
|
rpc ListUptimeCheckConfigs(ListUptimeCheckConfigsRequest) |
|
|
|
|
returns (ListUptimeCheckConfigsResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v3/{parent=projects/*}/uptimeCheckConfigs" |
|
|
|
|
}; |
|
|
|
@ -59,7 +58,8 @@ service UptimeCheckService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Gets a single Uptime check configuration. |
|
|
|
|
rpc GetUptimeCheckConfig(GetUptimeCheckConfigRequest) returns (UptimeCheckConfig) { |
|
|
|
|
rpc GetUptimeCheckConfig(GetUptimeCheckConfigRequest) |
|
|
|
|
returns (UptimeCheckConfig) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v3/{name=projects/*/uptimeCheckConfigs/*}" |
|
|
|
|
}; |
|
|
|
@ -67,7 +67,8 @@ service UptimeCheckService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Creates a new Uptime check configuration. |
|
|
|
|
rpc CreateUptimeCheckConfig(CreateUptimeCheckConfigRequest) returns (UptimeCheckConfig) { |
|
|
|
|
rpc CreateUptimeCheckConfig(CreateUptimeCheckConfigRequest) |
|
|
|
|
returns (UptimeCheckConfig) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v3/{parent=projects/*}/uptimeCheckConfigs" |
|
|
|
|
body: "uptime_check_config" |
|
|
|
@ -79,7 +80,8 @@ service UptimeCheckService { |
|
|
|
|
// configuration with a new one or replace only certain fields in the current |
|
|
|
|
// configuration by specifying the fields to be updated via `updateMask`. |
|
|
|
|
// Returns the updated configuration. |
|
|
|
|
rpc UpdateUptimeCheckConfig(UpdateUptimeCheckConfigRequest) returns (UptimeCheckConfig) { |
|
|
|
|
rpc UpdateUptimeCheckConfig(UpdateUptimeCheckConfigRequest) |
|
|
|
|
returns (UptimeCheckConfig) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
patch: "/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}" |
|
|
|
|
body: "uptime_check_config" |
|
|
|
@ -90,7 +92,8 @@ service UptimeCheckService { |
|
|
|
|
// Deletes an Uptime check configuration. Note that this method will fail |
|
|
|
|
// if the Uptime check configuration is referenced by an alert policy or |
|
|
|
|
// other dependent configs that would be rendered invalid by the deletion. |
|
|
|
|
rpc DeleteUptimeCheckConfig(DeleteUptimeCheckConfigRequest) returns (google.protobuf.Empty) { |
|
|
|
|
rpc DeleteUptimeCheckConfig(DeleteUptimeCheckConfigRequest) |
|
|
|
|
returns (google.protobuf.Empty) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
delete: "/v3/{name=projects/*/uptimeCheckConfigs/*}" |
|
|
|
|
}; |
|
|
|
@ -98,7 +101,8 @@ service UptimeCheckService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Returns the list of IP addresses that checkers run from |
|
|
|
|
rpc ListUptimeCheckIps(ListUptimeCheckIpsRequest) returns (ListUptimeCheckIpsResponse) { |
|
|
|
|
rpc ListUptimeCheckIps(ListUptimeCheckIpsRequest) |
|
|
|
|
returns (ListUptimeCheckIpsResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v3/uptimeCheckIps" |
|
|
|
|
}; |
|
|
|
@ -107,8 +111,9 @@ service UptimeCheckService { |
|
|
|
|
|
|
|
|
|
// The protocol for the `ListUptimeCheckConfigs` request. |
|
|
|
|
message ListUptimeCheckConfigsRequest { |
|
|
|
|
// Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) |
|
|
|
|
// whose Uptime check configurations are listed. The format is: |
|
|
|
|
// Required. The |
|
|
|
|
// [project](https://cloud.google.com/monitoring/api/v3#project_name) whose |
|
|
|
|
// Uptime check configurations are listed. The format is: |
|
|
|
|
// |
|
|
|
|
// projects/[PROJECT_ID_OR_NUMBER] |
|
|
|
|
string parent = 1 [ |
|
|
|
@ -162,8 +167,9 @@ message GetUptimeCheckConfigRequest { |
|
|
|
|
|
|
|
|
|
// The protocol for the `CreateUptimeCheckConfig` request. |
|
|
|
|
message CreateUptimeCheckConfigRequest { |
|
|
|
|
// Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in |
|
|
|
|
// which to create the Uptime check. The format is: |
|
|
|
|
// Required. The |
|
|
|
|
// [project](https://cloud.google.com/monitoring/api/v3#project_name) in which |
|
|
|
|
// to create the Uptime check. The format is: |
|
|
|
|
// |
|
|
|
|
// projects/[PROJECT_ID_OR_NUMBER] |
|
|
|
|
string parent = 1 [ |
|
|
|
@ -174,7 +180,8 @@ message CreateUptimeCheckConfigRequest { |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// Required. The new Uptime check configuration. |
|
|
|
|
UptimeCheckConfig uptime_check_config = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
UptimeCheckConfig uptime_check_config = 2 |
|
|
|
|
[(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The protocol for the `UpdateUptimeCheckConfig` request. |
|
|
|
@ -196,7 +203,8 @@ message UpdateUptimeCheckConfigRequest { |
|
|
|
|
// The following fields can be updated: `display_name`, |
|
|
|
|
// `http_check`, `tcp_check`, `timeout`, `content_matchers`, and |
|
|
|
|
// `selected_regions`. |
|
|
|
|
UptimeCheckConfig uptime_check_config = 3 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
UptimeCheckConfig uptime_check_config = 3 |
|
|
|
|
[(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The protocol for the `DeleteUptimeCheckConfig` request. |
|
|
|
|