/* * 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 { /// /// TaskType /// [DataContract] public partial class TaskType : IEquatable { /// /// Gets or Sets Status /// [DataMember(Name = "status", EmitDefaultValue = false)] public TaskStatusType? Status { get; set; } /// /// 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; } /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected TaskType() { } /// /// Initializes a new instance of the class. /// /// Type of the task, useful for filtering a task list.. /// ID of the organization that owns the task. (required). /// Name of the organization that owns the task.. /// Name of the task. (required). /// ID of the user who owns this Task.. /// Description of the task.. /// status. /// labels. /// ID of the authorization used when the task communicates with the query engine.. /// Flux script to run for this task. (required). /// Interval at which the task runs. `every` also determines when the task first runs, depending on the specified time. Value is a [duration literal](https://docs.influxdata.com/flux/v0.x/spec/lexical-elements/#duration-literals)).. /// [Cron expression](https://en.wikipedia.org/wiki/Cron#Overview) that defines the schedule on which the task runs. Cron scheduling is based on system time. Value is a [Cron expression](https://en.wikipedia.org/wiki/Cron#Overview).. /// [Duration](https://docs.influxdata.com/flux/v0.x/spec/lexical-elements/#duration-literals) to delay execution of the task after the scheduled time has elapsed. `0` removes the offset. The value is a [duration literal](https://docs.influxdata.com/flux/v0.x/spec/lexical-elements/#duration-literals).. /// links. public TaskType(string type = default, string orgID = default, string org = default, string name = default, string ownerID = default, string description = default, TaskStatusType? status = default, List