Class ScraperTargetRequest
ScraperTargetRequest
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class ScraperTargetRequest : IEquatable<ScraperTargetRequest>
Constructors
ScraperTargetRequest(String, Nullable<ScraperTargetRequest.TypeEnum>, String, String, String, Nullable<Boolean>)
Initializes a new instance of the ScraperTargetRequest class.
Declaration
public ScraperTargetRequest(string name = null, ScraperTargetRequest.TypeEnum? type = null, string url = null, string orgID = null, string bucketID = null, bool? allowInsecure)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the scraper target.. |
System.Nullable<ScraperTargetRequest.TypeEnum> | type | The type of the metrics to be parsed.. |
System.String | url | The URL of the metrics endpoint.. |
System.String | orgID | The organization ID.. |
System.String | bucketID | The ID of the bucket to write to.. |
System.Nullable<System.Boolean> | allowInsecure | Skip TLS verification on endpoint. (default to false). |
Properties
AllowInsecure
Skip TLS verification on endpoint.
Declaration
public bool? AllowInsecure { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | Skip TLS verification on endpoint. |
BucketID
The ID of the bucket to write to.
Declaration
public string BucketID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The ID of the bucket to write to. |
Name
The name of the scraper target.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the scraper target. |
OrgID
The organization ID.
Declaration
public string OrgID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The organization ID. |
Type
The type of the metrics to be parsed.
Declaration
public ScraperTargetRequest.TypeEnum? Type { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<ScraperTargetRequest.TypeEnum> | The type of the metrics to be parsed. |
Url
The URL of the metrics endpoint.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String | The URL of the metrics endpoint. |
Methods
Equals(ScraperTargetRequest)
Returns true if ScraperTargetRequest instances are equal
Declaration
public bool Equals(ScraperTargetRequest input)
Parameters
Type | Name | Description |
---|---|---|
ScraperTargetRequest | input | Instance of ScraperTargetRequest 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 |