Class HTTPNotificationEndpoint
HTTPNotificationEndpoint
Inheritance
Implements
Inherited Members
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class HTTPNotificationEndpoint : NotificationEndpoint, IEquatable<NotificationEndpointDiscriminator>, IEquatable<NotificationEndpoint>, IEquatable<HTTPNotificationEndpoint>
Constructors
HTTPNotificationEndpoint()
Initializes a new instance of the HTTPNotificationEndpoint class.
Declaration
protected HTTPNotificationEndpoint()
HTTPNotificationEndpoint(String, String, String, String, HTTPNotificationEndpoint.MethodEnum, HTTPNotificationEndpoint.AuthMethodEnum, String, Dictionary<String, String>, String, String, String, String, String, Nullable<NotificationEndpointBase.StatusEnum>, List<Label>, NotificationEndpointBaseLinks, NotificationEndpointType)
Initializes a new instance of the HTTPNotificationEndpoint class.
Declaration
public HTTPNotificationEndpoint(string url = null, string username = null, string password = null, string token = null, HTTPNotificationEndpoint.MethodEnum method = (HTTPNotificationEndpoint.MethodEnum)0, HTTPNotificationEndpoint.AuthMethodEnum authMethod = (HTTPNotificationEndpoint.AuthMethodEnum)0, string contentTemplate = null, Dictionary<string, string> headers = null, string id = null, string orgID = null, string userID = null, string description = null, string name = null, NotificationEndpointBase.StatusEnum? status = null, List<Label> labels = null, NotificationEndpointBaseLinks links = null, NotificationEndpointType type = default(NotificationEndpointType))
Parameters
Type | Name | Description |
---|---|---|
System.String | url | url (required). |
System.String | username | username. |
System.String | password | password. |
System.String | token | token. |
HTTPNotificationEndpoint.MethodEnum | method | method (required). |
HTTPNotificationEndpoint.AuthMethodEnum | authMethod | authMethod (required). |
System.String | contentTemplate | contentTemplate. |
Dictionary<System.String, System.String> | headers | Customized headers.. |
System.String | id | |
System.String | orgID | |
System.String | userID | |
System.String | description | |
System.String | name | |
System.Nullable<NotificationEndpointBase.StatusEnum> | status | |
List<Label> | labels | |
NotificationEndpointBaseLinks | links | |
NotificationEndpointType | type |
Properties
AuthMethod
Gets or Sets AuthMethod
Declaration
public HTTPNotificationEndpoint.AuthMethodEnum AuthMethod { get; set; }
Property Value
Type | Description |
---|---|
HTTPNotificationEndpoint.AuthMethodEnum |
ContentTemplate
Gets or Sets ContentTemplate
Declaration
public string ContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Headers
Customized headers.
Declaration
public Dictionary<string, string> Headers { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, System.String> | Customized headers. |
Method
Gets or Sets Method
Declaration
public HTTPNotificationEndpoint.MethodEnum Method { get; set; }
Property Value
Type | Description |
---|---|
HTTPNotificationEndpoint.MethodEnum |
Password
Gets or Sets Password
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Token
Gets or Sets Token
Declaration
public string Token { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Url
Gets or Sets Url
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Username
Gets or Sets Username
Declaration
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(HTTPNotificationEndpoint)
Returns true if HTTPNotificationEndpoint instances are equal
Declaration
public bool Equals(HTTPNotificationEndpoint input)
Parameters
Type | Name | Description |
---|---|---|
HTTPNotificationEndpoint | input | Instance of HTTPNotificationEndpoint 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 |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public override string ToJson()
Returns
Type | Description |
---|---|
System.String | 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 | String presentation of the object |