C# Class RSG.Metrics

Class for collecting and emitting metrics messages through an IMetricsEmitter.
Afficher le fichier Open project: Real-Serious-Games/Metrics Class Usage Examples

Méthodes publiques

Свойство Type Description
eventTypeName string
floatTypeName string
incTypeName string
intTypeName string
stringTypeName string

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
QueueMetric ( Metric metric ) : void

Adds a metric to the queue.

Method Details

Entry() public méthode

Add a metrics entry that is a float.
public Entry ( string name, float data ) : void
name string
data float
Résultat void

Entry() public méthode

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

Entry() public méthode

Add a metrics entry string.
public Entry ( string name, string data ) : void
name string
data string
Résultat void

Event() public méthode

Sends an event metric to the emitter.
public Event ( string name ) : void
name string
Résultat void

Flush() public méthode

Flushes all queued metrics.
public Flush ( ) : void
Résultat void

Inc() public méthode

Sends an increment metric to the emitter.
public Inc ( string name ) : void
name string
Résultat void

Metrics() public méthode

public Metrics ( IMetricsEmitter emitter, int batchSize = 1 ) : System
emitter IMetricsEmitter
batchSize int
Résultat System

RemoveProperty() public méthode

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

SetProperty() public méthode

Set a property for all subsequent messages.
public SetProperty ( string name, string property ) : void
name string
property string
Résultat void

Property Details

eventTypeName public_oe static_oe property

public static string eventTypeName
Résultat string

floatTypeName public_oe static_oe property

public static string floatTypeName
Résultat string

incTypeName public_oe static_oe property

public static string incTypeName
Résultat string

intTypeName public_oe static_oe property

public static string intTypeName
Résultat string

stringTypeName public_oe static_oe property

public static string stringTypeName
Résultat string