pub struct UptimeCheckConfig {Show 15 fields
pub checker_type: Option<String>,
pub content_matchers: Option<Vec<ContentMatcher>>,
pub display_name: Option<String>,
pub http_check: Option<HttpCheck>,
pub internal_checkers: Option<Vec<InternalChecker>>,
pub is_internal: Option<bool>,
pub monitored_resource: Option<MonitoredResource>,
pub name: Option<String>,
pub period: Option<Duration>,
pub resource_group: Option<ResourceGroup>,
pub selected_regions: Option<Vec<String>>,
pub synthetic_monitor: Option<SyntheticMonitorTarget>,
pub tcp_check: Option<TcpCheck>,
pub timeout: Option<Duration>,
pub user_labels: Option<HashMap<String, String>>,
}
Expand description
This message configures which resources and services to monitor for availability.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- uptime check configs create projects (request|response)
- uptime check configs get projects (response)
- uptime check configs patch projects (request|response)
Fields§
§checker_type: Option<String>
The type of checkers to use to execute the Uptime check.
content_matchers: Option<Vec<ContentMatcher>>
The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.
display_name: Option<String>
A human-friendly name for the Uptime check configuration. The display name should be unique within a Cloud Monitoring Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.
http_check: Option<HttpCheck>
Contains information needed to make an HTTP or HTTPS check.
internal_checkers: Option<Vec<InternalChecker>>
The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.
is_internal: Option<bool>
If this is true, then checks are made only from the ‘internal_checkers’. If it is false, then checks are made only from the ‘selected_regions’. It is an error to provide ‘selected_regions’ when is_internal is true, or to provide ‘internal_checkers’ when is_internal is false.
monitored_resource: Option<MonitoredResource>
The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer k8s_service servicedirectory_service cloud_run_revision
name: Option<String>
Identifier. A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.
period: Option<Duration>
How often, in seconds, the Uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.
resource_group: Option<ResourceGroup>
The group resource associated with the configuration.
selected_regions: Option<Vec<String>>
The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.
synthetic_monitor: Option<SyntheticMonitorTarget>
Specifies a Synthetic Monitor to invoke.
tcp_check: Option<TcpCheck>
Contains information needed to make a TCP check.
timeout: Option<Duration>
The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.
user_labels: Option<HashMap<String, String>>
User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.
Trait Implementations§
Source§impl Clone for UptimeCheckConfig
impl Clone for UptimeCheckConfig
Source§fn clone(&self) -> UptimeCheckConfig
fn clone(&self) -> UptimeCheckConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UptimeCheckConfig
impl Debug for UptimeCheckConfig
Source§impl Default for UptimeCheckConfig
impl Default for UptimeCheckConfig
Source§fn default() -> UptimeCheckConfig
fn default() -> UptimeCheckConfig
Source§impl<'de> Deserialize<'de> for UptimeCheckConfig
impl<'de> Deserialize<'de> for UptimeCheckConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for UptimeCheckConfig
impl Serialize for UptimeCheckConfig
impl RequestValue for UptimeCheckConfig
impl ResponseResult for UptimeCheckConfig
Auto Trait Implementations§
impl Freeze for UptimeCheckConfig
impl RefUnwindSafe for UptimeCheckConfig
impl Send for UptimeCheckConfig
impl Sync for UptimeCheckConfig
impl Unpin for UptimeCheckConfig
impl UnwindSafe for UptimeCheckConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more