Update public client library for Cloud Monitoring to introduce new Uptime check feature.
Uptime HTTP(S) checks can now be GET or POST. PiperOrigin-RevId: 306855444
This commit is contained in:
parent
cdf13efacd
commit
101d31acd7
|
|
@ -28,27 +28,6 @@ option java_package = "com.google.monitoring.v3";
|
|||
option php_namespace = "Google\\Cloud\\Monitoring\\V3";
|
||||
option ruby_package = "Google::Cloud::Monitoring::V3";
|
||||
|
||||
// The regions from which an Uptime check can be run.
|
||||
enum UptimeCheckRegion {
|
||||
// Default value if no region is specified. Will result in Uptime checks
|
||||
// running from all regions.
|
||||
REGION_UNSPECIFIED = 0;
|
||||
|
||||
// Allows checks to run from locations within the United States of America.
|
||||
USA = 1;
|
||||
|
||||
// Allows checks to run from locations within the continent of Europe.
|
||||
EUROPE = 2;
|
||||
|
||||
// Allows checks to run from locations within the continent of South
|
||||
// America.
|
||||
SOUTH_AMERICA = 3;
|
||||
|
||||
// Allows checks to run from locations within the Asia Pacific area (ex:
|
||||
// Singapore).
|
||||
ASIA_PACIFIC = 4;
|
||||
}
|
||||
|
||||
// An internal checker allows Uptime checks to run on private/internal GCP
|
||||
// resources.
|
||||
message InternalChecker {
|
||||
|
|
@ -105,6 +84,27 @@ message InternalChecker {
|
|||
State state = 7;
|
||||
}
|
||||
|
||||
// The regions from which an Uptime check can be run.
|
||||
enum UptimeCheckRegion {
|
||||
// Default value if no region is specified. Will result in Uptime checks
|
||||
// running from all regions.
|
||||
REGION_UNSPECIFIED = 0;
|
||||
|
||||
// Allows checks to run from locations within the United States of America.
|
||||
USA = 1;
|
||||
|
||||
// Allows checks to run from locations within the continent of Europe.
|
||||
EUROPE = 2;
|
||||
|
||||
// Allows checks to run from locations within the continent of South
|
||||
// America.
|
||||
SOUTH_AMERICA = 3;
|
||||
|
||||
// Allows checks to run from locations within the Asia Pacific area (ex:
|
||||
// Singapore).
|
||||
ASIA_PACIFIC = 4;
|
||||
}
|
||||
|
||||
// This message configures which resources and services to monitor for
|
||||
// availability.
|
||||
message UptimeCheckConfig {
|
||||
|
|
@ -142,6 +142,34 @@ message UptimeCheckConfig {
|
|||
string password = 2;
|
||||
}
|
||||
|
||||
// The HTTP request method options.
|
||||
enum RequestMethod {
|
||||
// No request method specified.
|
||||
METHOD_UNSPECIFIED = 0;
|
||||
|
||||
// GET request.
|
||||
GET = 1;
|
||||
|
||||
// POST request.
|
||||
POST = 2;
|
||||
}
|
||||
|
||||
// Header options corresponding to the Content-Type of the body in HTTP
|
||||
// requests. Note that a `Content-Type` header cannot be present in the
|
||||
// `headers` field if this field is specified.
|
||||
enum ContentType {
|
||||
// No content type specified. If the request method is POST, an
|
||||
// unspecified content type results in a check creation rejection.
|
||||
TYPE_UNSPECIFIED = 0;
|
||||
|
||||
// `body` is in URL-encoded form. Equivalent to setting the `Content-Type`
|
||||
// to `application/x-www-form-urlencoded` in the HTTP request.
|
||||
URL_ENCODED = 1;
|
||||
}
|
||||
|
||||
// The HTTP request method to use for the check.
|
||||
RequestMethod request_method = 8;
|
||||
|
||||
// If `true`, use HTTPS instead of HTTP to run the check.
|
||||
bool use_ssl = 1;
|
||||
|
||||
|
|
@ -180,11 +208,21 @@ message UptimeCheckConfig {
|
|||
// The maximum number of headers allowed is 100.
|
||||
map<string, string> headers = 6;
|
||||
|
||||
// The content type to use for the check.
|
||||
ContentType content_type = 9;
|
||||
|
||||
// Boolean specifying whether to include SSL certificate validation as a
|
||||
// part of the Uptime check. Only applies to checks where
|
||||
// `monitored_resource` is set to `uptime_url`. If `use_ssl` is `false`,
|
||||
// setting `validate_ssl` to `true` has no effect.
|
||||
bool validate_ssl = 7;
|
||||
|
||||
// The request body associated with the HTTP request. If `content_type` is
|
||||
// `URL_ENCODED`, the body passed in must be URL-encoded. Users can provide
|
||||
// a `Content-Length` header via the `headers` field or the API will do
|
||||
// so. The maximum byte size is 1 megabyte. Note: As with all `bytes` fields
|
||||
// JSON representations are base64 encoded.
|
||||
bytes body = 10;
|
||||
}
|
||||
|
||||
// Information required for a TCP Uptime check request.
|
||||
|
|
@ -314,23 +352,6 @@ message UptimeCheckConfig {
|
|||
repeated InternalChecker internal_checkers = 14 [deprecated = true];
|
||||
}
|
||||
|
||||
// The supported resource types that can be used as values of
|
||||
// `group_resource.resource_type`.
|
||||
// `INSTANCE` includes `gce_instance` and `aws_ec2_instance` resource types.
|
||||
// The resource types `gae_app` and `uptime_url` are not valid here because
|
||||
// group checks on App Engine modules and URLs are not allowed.
|
||||
enum GroupResourceType {
|
||||
// Default value (not valid).
|
||||
RESOURCE_TYPE_UNSPECIFIED = 0;
|
||||
|
||||
// A group of instances from Google Cloud Platform (GCP) or
|
||||
// Amazon Web Services (AWS).
|
||||
INSTANCE = 1;
|
||||
|
||||
// A group of Amazon ELB load balancers.
|
||||
AWS_ELB_LOAD_BALANCER = 2;
|
||||
}
|
||||
|
||||
// Contains the region, location, and list of IP
|
||||
// addresses where checkers in the location run from.
|
||||
message UptimeCheckIp {
|
||||
|
|
@ -349,3 +370,20 @@ message UptimeCheckIp {
|
|||
// interpreting this field in either IPv4 or IPv6 format.
|
||||
string ip_address = 3;
|
||||
}
|
||||
|
||||
// The supported resource types that can be used as values of
|
||||
// `group_resource.resource_type`.
|
||||
// `INSTANCE` includes `gce_instance` and `aws_ec2_instance` resource types.
|
||||
// The resource types `gae_app` and `uptime_url` are not valid here because
|
||||
// group checks on App Engine modules and URLs are not allowed.
|
||||
enum GroupResourceType {
|
||||
// Default value (not valid).
|
||||
RESOURCE_TYPE_UNSPECIFIED = 0;
|
||||
|
||||
// A group of instances from Google Cloud Platform (GCP) or
|
||||
// Amazon Web Services (AWS).
|
||||
INSTANCE = 1;
|
||||
|
||||
// A group of Amazon ELB load balancers.
|
||||
AWS_ELB_LOAD_BALANCER = 2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue