pub struct AutoscalingFailover {
pub enabled: bool,
pub metrics: Vec<String>,
}Expand description
Autoscaling failover, shared by checks, DogStatsD, and OTLP.
Fields§
§enabled: boolWhether metrics designated for autoscaling failover are forwarded to the Cluster Agent.
Defaults to false. Also needs cluster_agent.enabled, cluster_agent.auth_token, a resolvable Cluster Agent
endpoint, and a non-empty metrics; otherwise the branch is not built and primary forwarding continues.
metrics: Vec<String>Names of the metrics designated for autoscaling failover.
Defaults to container.memory.usage and container.cpu.usage. An empty list turns the failover branch off even
when enabled is set, because there is nothing left to forward. Set this when autoscaling reads metrics other
than the two defaults.
Trait Implementations§
Source§impl Clone for AutoscalingFailover
impl Clone for AutoscalingFailover
Source§fn clone(&self) -> AutoscalingFailover
fn clone(&self) -> AutoscalingFailover
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutoscalingFailover
impl Debug for AutoscalingFailover
Source§impl Default for AutoscalingFailover
impl Default for AutoscalingFailover
Source§fn default() -> AutoscalingFailover
fn default() -> AutoscalingFailover
Returns the “default value” for a type. Read more
Source§impl PartialEq for AutoscalingFailover
impl PartialEq for AutoscalingFailover
Source§impl Serialize for AutoscalingFailover
impl Serialize for AutoscalingFailover
impl StructuralPartialEq for AutoscalingFailover
Auto Trait Implementations§
impl Freeze for AutoscalingFailover
impl RefUnwindSafe for AutoscalingFailover
impl Send for AutoscalingFailover
impl Sync for AutoscalingFailover
impl Unpin for AutoscalingFailover
impl UnwindSafe for AutoscalingFailover
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