-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathEvaluationEvent.cs
More file actions
30 lines (26 loc) · 863 Bytes
/
EvaluationEvent.cs
File metadata and controls
30 lines (26 loc) · 863 Bytes
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
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>
public EvaluationEvent(string name, IDictionary<string, object?> attributes)
{
Name = name;
Attributes = new Dictionary<string, object?>(attributes);
}
/// <summary>
/// Gets the name of the event.
/// </summary>
public string Name { get; }
/// <summary>
/// Gets the attributes of the event.
/// </summary>
public IReadOnlyDictionary<string, object?> Attributes { get; }
}