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 HTTPNotification
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 HTTPNotification
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. |
url | url (required). |
System. |
username | username. |
System. |
password | password. |
System. |
token | token. |
HTTPNotification |
method | method (required). |
HTTPNotification |
authMethod | authMethod (required). |
System. |
contentTemplate | contentTemplate. |
Dictionary<System. |
headers | Customized headers.. |
System. |
id | |
System. |
orgID | |
System. |
userID | |
System. |
description | |
System. |
name | |
System. |
status | |
List<Label> | labels | |
Notification |
links | |
Notification |
type |
Properties
AuthMethod
Gets or Sets AuthMethod
Declaration
public HTTPNotificationEndpoint.AuthMethodEnum AuthMethod { get; set; }
Property Value
Type | Description |
---|---|
HTTPNotification |
ContentTemplate
Gets or Sets ContentTemplate
Declaration
public string ContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
System. |
Headers
Customized headers.
Declaration
public Dictionary<string, string> Headers { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
Customized headers. |
Method
Gets or Sets Method
Declaration
public HTTPNotificationEndpoint.MethodEnum Method { get; set; }
Property Value
Type | Description |
---|---|
HTTPNotification |
Password
Gets or Sets Password
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System. |
Token
Gets or Sets Token
Declaration
public string Token { get; set; }
Property Value
Type | Description |
---|---|
System. |
Url
Gets or Sets Url
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System. |
Username
Gets or Sets Username
Declaration
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
Equals(HTTPNotificationEndpoint)
Returns true if HTTPNotificationEndpoint instances are equal
Declaration
public bool Equals(HTTPNotificationEndpoint input)
Parameters
Type | Name | Description |
---|---|---|
HTTPNotification |
input | Instance of HTTPNotificationEndpoint 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 |