[][src]Struct tempest::topology::TopologyOptions

pub struct TopologyOptions {
    pub name: String,
    pub metric_flush_interval: Option<u64>,
    pub metric_targets: Vec<MetricTarget>,
    pub graceful_shutdown: Option<u64>,
    // some fields omitted
}

Topology configuration options

Fields

name: String

Name of the topology

metric_flush_interval: Option<u64>

Metric flush interval in milliseconds This value is overridden by Topology.toml configuration.

metric_targets: Vec<MetricTarget>

Define a list of metric targets for sending metrics too. This value is overridden by Topology.toml configuration.

graceful_shutdown: Option<u64>

Graceful shutdown period

Methods

impl TopologyOptions[src]

pub fn name(&mut self, name: &'static str)[src]

The topology name

pub fn failure_policy(&mut self, policy: TopologyFailurePolicy)[src]

Topology failure policy

pub fn msg_timeout(&mut self, ms: usize)[src]

Topology message time out value. This is the maximum amount of time to wait before a source message goes into an error state.

pub fn host_port(&mut self, host_port: String)[src]

This is the host and port value host:port (example: 127.0.0.1:5678)

pub fn agent_host_port(&mut self, host_port: String)[src]

This is the agent host and port value host:port (example: 127.0.0.1:6789)

pub fn graceful_shutdown(&mut self, ms: u64)[src]

The maximum amount of time to wait before a hard shutdown occurs

pub fn metric_flush_interval(&mut self, ms: u64)[src]

The maximum amount of time to wait before a flushing accumulated metrics

pub fn metric_target(&mut self, target: MetricTarget)[src]

Push a metric target onto the vector metric targets

Trait Implementations

impl Default for TopologyOptions[src]

impl Clone for TopologyOptions[src]

impl PartialEq<TopologyOptions> for TopologyOptions[src]

impl Debug for TopologyOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,