Class TaskUpdateRequest
TaskUpdateRequest
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class TaskUpdateRequest : IEquatable<TaskUpdateRequest>
Constructors
TaskUpdateRequest(Nullable<TaskStatusType>, String, String, String, String, String, String)
Initializes a new instance of the TaskUpdateRequest class.
Declaration
public TaskUpdateRequest(TaskStatusType? status = null, string flux = null, string name = null, string every = null, string cron = null, string offset = null, string description = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<TaskStatusType> | status | status. |
System.String | flux | The Flux script to run for this task.. |
System.String | name | Override the 'name' option in the flux script.. |
System.String | every | Override the 'every' option in the flux script.. |
System.String | cron | Override the 'cron' option in the flux script.. |
System.String | offset | Override the 'offset' option in the flux script.. |
System.String | description | An optional description of the task.. |
Properties
Cron
Override the 'cron' option in the flux script.
Declaration
public string Cron { get; set; }
Property Value
Type | Description |
---|---|
System.String | Override the 'cron' option in the flux script. |
Description
An optional description of the task.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String | An optional description of the task. |
Every
Override the 'every' option in the flux script.
Declaration
public string Every { get; set; }
Property Value
Type | Description |
---|---|
System.String | Override the 'every' option in the flux script. |
Flux
The Flux script to run for this task.
Declaration
public string Flux { get; set; }
Property Value
Type | Description |
---|---|
System.String | The Flux script to run for this task. |
Name
Override the 'name' option in the flux script.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | Override the 'name' option in the flux script. |
Offset
Override the 'offset' option in the flux script.
Declaration
public string Offset { get; set; }
Property Value
Type | Description |
---|---|
System.String | Override the 'offset' option in the flux script. |
Status
Gets or Sets Status
Declaration
public TaskStatusType? Status { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TaskStatusType> |
Methods
Equals(TaskUpdateRequest)
Returns true if TaskUpdateRequest instances are equal
Declaration
public bool Equals(TaskUpdateRequest input)
Parameters
Type | Name | Description |
---|---|---|
TaskUpdateRequest | input | Instance of TaskUpdateRequest to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |