C# 클래스 RSG.Metrics

Class for collecting and emitting metrics messages through an IMetricsEmitter.
파일 보기 프로젝트 열기: Real-Serious-Games/Metrics 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
eventTypeName string
floatTypeName string
incTypeName string
intTypeName string
stringTypeName string

공개 메소드들

메소드 설명
Entry ( string name, float data ) : void

Add a metrics entry that is a float.

Entry ( string name, int data ) : void

Add a metrics entry that is an integer.

Entry ( string name, string data ) : void

Add a metrics entry string.

Event ( string name ) : void

Sends an event metric to the emitter.

Flush ( ) : void

Flushes all queued metrics.

Inc ( string name ) : void

Sends an increment metric to the emitter.

Metrics ( IMetricsEmitter emitter, int batchSize = 1 ) : System
RemoveProperty ( string name ) : void

Finds the specified property and stops including it in subsequent messages.

SetProperty ( string name, string property ) : void

Set a property for all subsequent messages.

비공개 메소드들

메소드 설명
QueueMetric ( Metric metric ) : void

Adds a metric to the queue.

메소드 상세

Entry() 공개 메소드

Add a metrics entry that is a float.
public Entry ( string name, float data ) : void
name string
data float
리턴 void

Entry() 공개 메소드

Add a metrics entry that is an integer.
public Entry ( string name, int data ) : void
name string
data int
리턴 void

Entry() 공개 메소드

Add a metrics entry string.
public Entry ( string name, string data ) : void
name string
data string
리턴 void

Event() 공개 메소드

Sends an event metric to the emitter.
public Event ( string name ) : void
name string
리턴 void

Flush() 공개 메소드

Flushes all queued metrics.
public Flush ( ) : void
리턴 void

Inc() 공개 메소드

Sends an increment metric to the emitter.
public Inc ( string name ) : void
name string
리턴 void

Metrics() 공개 메소드

public Metrics ( IMetricsEmitter emitter, int batchSize = 1 ) : System
emitter IMetricsEmitter
batchSize int
리턴 System

RemoveProperty() 공개 메소드

Finds the specified property and stops including it in subsequent messages.
public RemoveProperty ( string name ) : void
name string
리턴 void

SetProperty() 공개 메소드

Set a property for all subsequent messages.
public SetProperty ( string name, string property ) : void
name string
property string
리턴 void

프로퍼티 상세

eventTypeName 공개적으로 정적으로 프로퍼티

public static string eventTypeName
리턴 string

floatTypeName 공개적으로 정적으로 프로퍼티

public static string floatTypeName
리턴 string

incTypeName 공개적으로 정적으로 프로퍼티

public static string incTypeName
리턴 string

intTypeName 공개적으로 정적으로 프로퍼티

public static string intTypeName
리턴 string

stringTypeName 공개적으로 정적으로 프로퍼티

public static string stringTypeName
리턴 string