Class TaskCreateRequest
TaskCreateRequest
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class TaskCreateRequest : IEquatable<TaskCreateRequest>
Constructors
TaskCreateRequest()
Initializes a new instance of the TaskCreateRequest class.
Declaration
protected TaskCreateRequest()
TaskCreateRequest(String, String, Nullable<TaskStatusType>, String, String)
Initializes a new instance of the TaskCreateRequest class.
Declaration
public TaskCreateRequest(string orgID = null, string org = null, TaskStatusType? status = null, string flux = null, string description = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | orgID | The ID of the organization that owns this Task.. |
System.String | org | The name of the organization that owns this Task.. |
System.Nullable<TaskStatusType> | status | status. |
System.String | flux | The Flux script to run for this task. (required). |
System.String | description | An optional description of the task.. |
Properties
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. |
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. |
Org
The name of the organization that owns this Task.
Declaration
public string Org { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the organization that owns this Task. |
OrgID
The ID of the organization that owns this Task.
Declaration
public string OrgID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The ID of the organization that owns this Task. |
Status
Gets or Sets Status
Declaration
public TaskStatusType? Status { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TaskStatusType> |
Methods
Equals(TaskCreateRequest)
Returns true if TaskCreateRequest instances are equal
Declaration
public bool Equals(TaskCreateRequest input)
Parameters
Type | Name | Description |
---|---|---|
TaskCreateRequest | input | Instance of TaskCreateRequest 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 |