[−][src]Struct appinsights::TelemetryConfig
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]
fn eq(&self, other: &TelemetryConfig) -> bool
[src]
fn ne(&self, other: &TelemetryConfig) -> bool
[src]
impl StructuralPartialEq for TelemetryConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for TelemetryConfig
impl Send for TelemetryConfig
impl Sync for TelemetryConfig
impl Unpin for TelemetryConfig
impl UnwindSafe for TelemetryConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,