[][src]Struct appinsights::TelemetryConfig

pub struct TelemetryConfig { /* fields omitted */ }

Configuration data used to initialize a new TelemetryClient with.

Examples

Creating a telemetry client configuration with default settings

let config = TelemetryConfig::new("<instrumentation key>".to_string());

Creating a telemetry client configuration with custom settings

let config = TelemetryConfig::builder()
    .i_key("<instrumentation key>")
    .interval(Duration::from_secs(5))
    .build();

Methods

impl TelemetryConfig[src]

pub fn new(i_key: String) -> Self[src]

Creates a new telemetry configuration with specified instrumentation key and default values.

pub fn builder() -> DefaultTelemetryConfigBuilder[src]

Creates a new telemetry configuration builder with default parameters.

pub fn i_key(&self) -> &str[src]

Returns an instrumentation key for the client.

pub fn endpoint(&self) -> &str[src]

Returns endpoint URL where data will be sent.

pub fn interval(&self) -> Duration[src]

Returns maximum time to wait until send a batch of telemetry.

Trait Implementations

impl Debug for TelemetryConfig[src]

impl PartialEq<TelemetryConfig> for TelemetryConfig[src]

impl StructuralPartialEq for TelemetryConfig[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,