Class ThresholdCheck
ThresholdCheck
Inherited Members
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class ThresholdCheck : Check, IEquatable<CheckDiscriminator>, IEquatable<Check>, IEquatable<ThresholdCheck>
Constructors
ThresholdCheck()
Initializes a new instance of the Threshold
Declaration
protected ThresholdCheck()
ThresholdCheck(ThresholdCheck.TypeEnum, List<Threshold>, String, String, List<ThresholdCheckTags>, String, String, String, String, DashboardQuery, Nullable<TaskStatusType>, String, List<Label>, CheckBaseLinks)
Initializes a new instance of the Threshold
Declaration
public ThresholdCheck(ThresholdCheck.TypeEnum type = default(ThresholdCheck.TypeEnum), List<Threshold> thresholds = null, string every = null, string offset = null, List<ThresholdCheckTags> tags = null, string statusMessageTemplate = null, string name = null, string orgID = null, string taskID = null, DashboardQuery query = null, TaskStatusType? status = null, string description = null, List<Label> labels = null, CheckBaseLinks links = null)
Parameters
Type | Name | Description |
---|---|---|
Threshold |
type | type (required) (default to TypeEnum.Threshold). |
List<Threshold> | thresholds | thresholds. |
System. |
every | Check repetition interval.. |
System. |
offset | Duration to delay after the schedule, before executing check.. |
List<Threshold |
tags | List of tags to write to each status.. |
System. |
statusMessageTemplate | The template used to generate and write a status message.. |
System. |
name | |
System. |
orgID | |
System. |
taskID | |
Dashboard |
query | |
System. |
status | |
System. |
description | |
List<Label> | labels | |
Check |
links |
Properties
Every
Check repetition interval.
Declaration
public string Every { get; set; }
Property Value
Type | Description |
---|---|
System. |
Check repetition interval. |
Offset
Duration to delay after the schedule, before executing check.
Declaration
public string Offset { get; set; }
Property Value
Type | Description |
---|---|
System. |
Duration to delay after the schedule, before executing check. |
StatusMessageTemplate
The template used to generate and write a status message.
Declaration
public string StatusMessageTemplate { get; set; }
Property Value
Type | Description |
---|---|
System. |
The template used to generate and write a status message. |
Tags
List of tags to write to each status.
Declaration
public List<ThresholdCheckTags> Tags { get; set; }
Property Value
Type | Description |
---|---|
List<Threshold |
List of tags to write to each status. |
Thresholds
Gets or Sets Thresholds
Declaration
public List<Threshold> Thresholds { get; set; }
Property Value
Type | Description |
---|---|
List<Threshold> |
Type
Gets or Sets Type
Declaration
public ThresholdCheck.TypeEnum Type { get; set; }
Property Value
Type | Description |
---|---|
Threshold |
Methods
Equals(ThresholdCheck)
Returns true if ThresholdCheck instances are equal
Declaration
public bool Equals(ThresholdCheck input)
Parameters
Type | Name | Description |
---|---|---|
Threshold |
input | Instance of ThresholdCheck to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System. |
input | Object to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public override string ToJson()
Returns
Type | Description |
---|---|
System. |
JSON string presentation of the object |
Overrides
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
String presentation of the object |