forked from BlueMountainCapital/riemann-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTickEvent.cs
33 lines (30 loc) · 997 Bytes
/
TickEvent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace Riemann {
///
/// <summary>Represents a single event for use with <see cref="Client.Tick" />.</summary>
///
public struct TickEvent {
///
/// <summary>Constructs an event</summary>
/// <param name="state">Current status of the service.</param>
/// <param name="description">Additional details regarding the state of the service.</param>
/// <param name="metricValue">A value which represents the state of the service.</param>
///
public TickEvent(string state, string description, float metricValue) {
State = state;
Description = description;
MetricValue = metricValue;
}
///
/// <summary>This is the current state of the service.</summary>
///
public readonly string State;
///
/// <summary>Additional details regarding the state of the service.</summary>
///
public readonly string Description;
///
/// <summary>A value which represents the state of the service.</summary>
///
public readonly float MetricValue;
}
}