MetricCollector<T> 클래스

정의

또는 ObservableInstrument<T>에서 게시된 측정값을 Instrument<T> 수집합니다.

generic <typename T>
 where T : value classpublic ref class MetricCollector sealed : IDisposable
public sealed class MetricCollector<T> : IDisposable where T : struct
type MetricCollector<'T (requires 'T : struct)> = class
    interface IDisposable
Public NotInheritable Class MetricCollector(Of T)
Implements IDisposable

형식 매개 변수

T

기록되는 메트릭 데이터의 형식입니다.

상속
MetricCollector<T>
구현

생성자

MetricCollector<T>(Instrument<T>, TimeProvider)

MetricCollector<T> 클래스의 새 인스턴스를 초기화합니다.

MetricCollector<T>(Meter, String, TimeProvider)

MetricCollector<T> 클래스의 새 인스턴스를 초기화합니다.

MetricCollector<T>(Object, String, String, TimeProvider)

MetricCollector<T> 클래스의 새 인스턴스를 초기화합니다.

MetricCollector<T>(ObservableInstrument<T>, TimeProvider)

MetricCollector<T> 클래스의 새 인스턴스를 초기화합니다.

속성

Instrument

Instrument 기록 중인 을 가져옵니다.

LastMeasurement

수집된 최신 측정값(있는 경우)을 가져옵니다.

메서드

Clear()

수집기에서 누적된 측정값을 모두 제거합니다.

Dispose()

MetricCollector<T> 삭제하고 측정값 기록을 중지합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetMeasurementSnapshot(Boolean)

이 수집기에서 수집한 측정값의 스냅샷 가져옵니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
RecordObservableInstruments()

등록된 모든 관찰 가능한 계측을 검사합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
WaitForMeasurementsAsync(Int32, CancellationToken)

수집기가 최소 측정값 수를 수집한 경우 완료되는 작업을 반환합니다.

WaitForMeasurementsAsync(Int32, TimeSpan)

수집기가 최소 측정값 수를 수집한 경우 완료되는 작업을 반환합니다.

적용 대상