Struct google_api_proto::google::monitoring::v3::UptimeCheckIp
source · pub struct UptimeCheckIp {
pub region: i32,
pub location: String,
pub ip_address: String,
}
Expand description
Contains the region, location, and list of IP addresses where checkers in the location run from.
Fields§
§region: i32
A broad region category in which the IP address is located.
location: String
A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.
ip_address: String
The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.
Implementations§
source§impl UptimeCheckIp
impl UptimeCheckIp
sourcepub fn region(&self) -> UptimeCheckRegion
pub fn region(&self) -> UptimeCheckRegion
Returns the enum value of region
, or the default if the field is set to an invalid enum value.
sourcepub fn set_region(&mut self, value: UptimeCheckRegion)
pub fn set_region(&mut self, value: UptimeCheckRegion)
Sets region
to the provided enum value.
Trait Implementations§
source§impl Clone for UptimeCheckIp
impl Clone for UptimeCheckIp
source§fn clone(&self) -> UptimeCheckIp
fn clone(&self) -> UptimeCheckIp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UptimeCheckIp
impl Debug for UptimeCheckIp
source§impl Default for UptimeCheckIp
impl Default for UptimeCheckIp
source§impl Message for UptimeCheckIp
impl Message for UptimeCheckIp
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UptimeCheckIp
impl PartialEq for UptimeCheckIp
source§fn eq(&self, other: &UptimeCheckIp) -> bool
fn eq(&self, other: &UptimeCheckIp) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UptimeCheckIp
Auto Trait Implementations§
impl Freeze for UptimeCheckIp
impl RefUnwindSafe for UptimeCheckIp
impl Send for UptimeCheckIp
impl Sync for UptimeCheckIp
impl Unpin for UptimeCheckIp
impl UnwindSafe for UptimeCheckIp
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request