-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathEvaluationEvent.cs
37 lines (32 loc) · 1.09 KB
/
EvaluationEvent.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
34
35
36
37
using System.Collections.Generic;
namespace OpenFeature.Telemetry;
/// <summary>
/// Represents an evaluation event for feature flags.
/// </summary>
public class EvaluationEvent
{
/// <summary>
/// Initializes a new instance of the <see cref="EvaluationEvent"/> class.
/// </summary>
/// <param name="name">The name of the event.</param>
/// <param name="attributes">The attributes of the event.</param>
/// <param name="body">The body of the event.</param>
public EvaluationEvent(string name, Dictionary<string, object?> attributes, Dictionary<string, object> body)
{
this.Name = name;
this.Attributes = attributes;
this.Body = body;
}
/// <summary>
/// Gets or sets the name of the event.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Gets or sets the attributes of the event.
/// </summary>
public Dictionary<string, object?> Attributes { get; set; }
/// <summary>
/// Gets or sets the body of the event.
/// </summary>
public Dictionary<string, object> Body { get; set; }
}