/* * InfluxDB OSS API Service * * The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. * * OpenAPI spec version: 2.0.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using OpenAPIDateConverter = InfluxDB.Client.Api.Client.OpenAPIDateConverter; namespace InfluxDB.Client.Api.Domain { /// /// NotificationRuleBase /// [DataContract] public partial class NotificationRuleBase : IEquatable { /// /// Defines LastRunStatus /// [JsonConverter(typeof(StringEnumConverter))] public enum LastRunStatusEnum { /// /// Enum Failed for value: failed /// [EnumMember(Value = "failed")] Failed = 1, /// /// Enum Success for value: success /// [EnumMember(Value = "success")] Success = 2, /// /// Enum Canceled for value: canceled /// [EnumMember(Value = "canceled")] Canceled = 3 } /// /// Gets or Sets LastRunStatus /// [DataMember(Name = "lastRunStatus", EmitDefaultValue = false)] public LastRunStatusEnum? LastRunStatus { get; set; } /// /// Gets or Sets Status /// [DataMember(Name = "status", EmitDefaultValue = false)] public TaskStatusType Status { get; set; } /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected NotificationRuleBase() { } /// /// Initializes a new instance of the class. /// /// endpointID (required). /// The ID of the organization that owns this notification rule. (required). /// The ID of the task associated with this notification rule.. /// status (required). /// Human-readable name describing the notification rule. (required). /// sleepUntil. /// The notification repetition interval.. /// Duration to delay after the schedule, before executing check.. /// runbookLink. /// Don't notify me more than <limit> times every <limitEvery> seconds. If set, limit cannot be empty.. /// Don't notify me more than <limit> times every <limitEvery> seconds. If set, limitEvery cannot be empty.. /// List of tag rules the notification rule attempts to match.. /// An optional description of the notification rule.. /// List of status rules the notification rule attempts to match. (required). /// labels. /// links. public NotificationRuleBase(string endpointID = default, string orgID = default, string taskID = default, TaskStatusType status = default, string name = default, string sleepUntil = default, string every = default, string offset = default, string runbookLink = default, int? limitEvery = default, int? limit = default, List tagRules = default, string description = default, List statusRules = default, List