Share via


TelemetryProvider Class

Definition

Class providing telemetry usage based on the user's data collection settings

public class TelemetryProvider : IDisposable, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,AzurePSQoSEvent>>, System.Collections.Generic.IDictionary<string,AzurePSQoSEvent>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,AzurePSQoSEvent>>
type TelemetryProvider = class
    interface IDictionary<string, AzurePSQoSEvent>
    interface ICollection<KeyValuePair<string, AzurePSQoSEvent>>
    interface seq<KeyValuePair<string, AzurePSQoSEvent>>
    interface IEnumerable
    interface IDisposable
Public Class TelemetryProvider
Implements ICollection(Of KeyValuePair(Of String, AzurePSQoSEvent)), IDictionary(Of String, AzurePSQoSEvent), IDisposable, IEnumerable(Of KeyValuePair(Of String, AzurePSQoSEvent))
Inheritance
TelemetryProvider
Implements

Constructors

TelemetryProvider(AzurePSDataCollectionProfile, MetricHelper, Action<String>, Action<String>)

Properties

Count
IsReadOnly
Item[String]
Keys
ProcessRecordEvents
Values

Methods

Add(KeyValuePair<String,AzurePSQoSEvent>)
Add(String, AzurePSQoSEvent)
Clear()
Contains(KeyValuePair<String,AzurePSQoSEvent>)
ContainsKey(String)
CopyTo(KeyValuePair<String,AzurePSQoSEvent>[], Int32)
Create(Action<String>, Action<String>)

Factory method for TelemetryProvider

Create(Boolean, IEventStore)

Create a telemtry provider, using the given profile settings and event store

Create(IEventListener)

Create a Telemetry Provider using the given event listener

CreateQosEvent(InvocationInfo, String, String, String)

Create a telmetry record

Dispose()
Dispose(Boolean)
Flush()

Flush metrics

GetEnumerator()
LogEvent(String)

Log a telemetry event

Remove(KeyValuePair<String,AzurePSQoSEvent>)
Remove(String)
TryGetValue(String, AzurePSQoSEvent)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Extension Methods

GetProperty<TKey,TValue>(IDictionary<TKey,TValue>, TKey)
EmptyIfNull<T>(IEnumerable<T>)
GetOrNull<TKey,TValue>(IDictionary<TKey,TValue>, TKey)
Batch<TSource>(IEnumerable<TSource>, Int32)

Batches an enumerable into batches of the specified size.

CoalesceEnumerable<TSource>(IEnumerable<TSource>)

Coalesces the enumerable.

Distinct<TSource,TKeyType>(IEnumerable<TSource>, Func<TSource,TKeyType>, IEqualityComparer<TKeyType>)

Returns a distinct collection based on a key.

DistinctArray<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

Returns a distinct array.

SelectArray<TSource,TResult>(IEnumerable<TSource>, Func<TSource,TResult>)

Selects a collection and returns an array.

SelectManyArray<TSource,TResult>(IEnumerable<TSource>, Func<TSource,IEnumerable<TResult>>)

Selects a collection and returns an array.

ToInsensitiveDictionary<TValue>(IEnumerable<TValue>, Func<TValue,String>)

Creates an insensitive dictionary from an enumerable.

ToInsensitiveDictionary<TSource,TValue>(IEnumerable<TSource>, Func<TSource,String>, Func<TSource,TValue>)

Creates an insensitive dictionary from an enumerable.

Coalesce<TSource>(IEnumerable<TSource>)
ForEach<T>(IEnumerable<T>, Action<T>)
GetValueOrDefault<K,V>(IDictionary<K,V>, K, V)
MaxOrDefault<T,TResult>(IEnumerable<T>, Func<T,TResult>, TResult)
NonNull<T>(IEnumerable<T>)

Applies to