/*
* 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
{
///
/// ThresholdCheck
///
[DataContract]
public partial class ThresholdCheck : Check, IEquatable
{
///
/// Defines Type
///
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
///
/// Enum Threshold for value: threshold
///
[EnumMember(Value = "threshold")] Threshold = 1
}
///
/// Gets or Sets Type
///
[DataMember(Name = "type", EmitDefaultValue = false)]
public TypeEnum Type { get; set; }
///
/// Initializes a new instance of the class.
///
[JsonConstructorAttribute]
protected ThresholdCheck()
{
}
///
/// Initializes a new instance of the class.
///
/// type (required) (default to TypeEnum.Threshold).
/// thresholds.
/// Check repetition interval..
/// Duration to delay after the schedule, before executing check..
/// List of tags to write to each status..
/// The template used to generate and write a status message..
public ThresholdCheck(TypeEnum type = TypeEnum.Threshold, List thresholds = default,
string every = default, string offset = default, List tags = default,
string statusMessageTemplate = default, string name = default, string orgID = default,
string taskID = default, DashboardQuery query = default, TaskStatusType? status = default,
string description = default, List