#[non_exhaustive]pub struct InternalChecker {
pub name: String,
pub display_name: String,
pub network: String,
pub gcp_zone: String,
pub peer_project_id: String,
pub state: State,
/* private fields */
}Expand description
An internal checker allows Uptime checks to run on private/internal GCP resources.
Fields (Non-exhaustive)ยง
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringA unique resource name for this InternalChecker. The format is:
projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID][PROJECT_ID_OR_NUMBER] is the Cloud Monitoring Metrics Scope project for
the Uptime check config associated with the internal checker.
display_name: StringThe checkerโs human-readable name. The display name should be unique within a Cloud Monitoring Metrics Scope in order to make it easier to identify; however, uniqueness is not enforced.
network: StringThe GCP VPC network where the internal resource lives (ex: โdefaultโ).
gcp_zone: StringThe GCP zone the Uptime check should egress from. Only respected for internal Uptime checks, where internal_network is specified.
peer_project_id: StringThe GCP project ID where the internal checker lives. Not necessary the same as the Metrics Scope project.
state: StateThe current operational state of the internal checker.
Implementationsยง
Sourceยงimpl InternalChecker
impl InternalChecker
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sets the value of network.
Sourcepub fn set_gcp_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_gcp_zone<T: Into<String>>(self, v: T) -> Self
Sets the value of gcp_zone.
Sourcepub fn set_peer_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_peer_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of peer_project_id.
Trait Implementationsยง
Sourceยงimpl Clone for InternalChecker
impl Clone for InternalChecker
Sourceยงfn clone(&self) -> InternalChecker
fn clone(&self) -> InternalChecker
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more