#[non_exhaustive]pub enum Resource {
MonitoredResource(Box<MonitoredResource>),
ResourceGroup(Box<ResourceGroup>),
SyntheticMonitor(Box<SyntheticMonitorTarget>),
}Expand description
The resource the check is checking. Required.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MonitoredResource(Box<MonitoredResource>)
The monitored
resource 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
ResourceGroup(Box<ResourceGroup>)
The group resource associated with the configuration.
SyntheticMonitor(Box<SyntheticMonitorTarget>)
Specifies a Synthetic Monitor to invoke.
Trait Implementations§
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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
Mutably borrows from an owned value. Read more