Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetAlertsOptions"/> class.
 /// </summary>
 /// <param name="startsOn">Filters the result. Only alerts triggered from this point in time, in UTC, will be returned.</param>
 /// <param name="endsOn">Filters the result. Only alerts triggered up to this point in time, in UTC, will be returned.</param>
 /// <param name="timeMode">Specifies to which time property of an <see cref="AnomalyAlert"/> the filters <paramref name="startsOn"/> and <paramref name="endsOn"/> will be applied.</param>
 public GetAlertsOptions(DateTimeOffset startsOn, DateTimeOffset endsOn, AlertQueryTimeMode timeMode)
 {
     StartsOn = startsOn;
     EndsOn   = endsOn;
     TimeMode = timeMode;
 }
 public static string ToSerialString(this AlertQueryTimeMode value) => value switch
 {
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetAlertsOptions"/> class.
 /// </summary>
 /// <param name="startTime">Filters the result. Only alerts triggered from this point in time, in UTC, will be returned.</param>
 /// <param name="endTime">Filters the result. Only alerts triggered up to this point in time, in UTC, will be returned.</param>
 /// <param name="timeMode">Specifies to which time property of an <see cref="AnomalyAlert"/> the filters <paramref name="startTime"/> and <paramref name="endTime"/> will be applied.</param>
 public GetAlertsOptions(DateTimeOffset startTime, DateTimeOffset endTime, AlertQueryTimeMode timeMode)
 {
     StartTime = startTime;
     EndTime   = endTime;
     TimeMode  = timeMode;
 }