Class SlackNotificationEndpoint
SlackNotificationEndpoint
Inheritance
Implements
Inherited Members
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class SlackNotificationEndpoint : NotificationEndpoint, IEquatable<NotificationEndpointDiscriminator>, IEquatable<NotificationEndpoint>, IEquatable<SlackNotificationEndpoint>
Constructors
SlackNotificationEndpoint()
Initializes a new instance of the SlackNotificationEndpoint class.
Declaration
protected SlackNotificationEndpoint()
SlackNotificationEndpoint(String, String, String, String, String, String, String, Nullable<NotificationEndpointBase.StatusEnum>, List<Label>, NotificationEndpointBaseLinks, NotificationEndpointType)
Initializes a new instance of the SlackNotificationEndpoint class.
Declaration
public SlackNotificationEndpoint(string url = null, string token = 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 | Specifies the URL of the Slack endpoint. Specify either |
System.String | token | Specifies the API token string. Specify either |
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
Token
Specifies the API token string. Specify either URL
or Token
.
Declaration
public string Token { get; set; }
Property Value
Type | Description |
---|---|
System.String | Specifies the API token string. Specify either |
Url
Specifies the URL of the Slack endpoint. Specify either URL
or Token
.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String | Specifies the URL of the Slack endpoint. Specify either |
Methods
Equals(SlackNotificationEndpoint)
Returns true if SlackNotificationEndpoint instances are equal
Declaration
public bool Equals(SlackNotificationEndpoint input)
Parameters
Type | Name | Description |
---|---|---|
SlackNotificationEndpoint | input | Instance of SlackNotificationEndpoint 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 |