Class SMTPNotificationRuleBase
SMTPNotificationRuleBase
Inheritance
System.Object
SMTPNotificationRuleBase
Implements
IEquatable<NotificationRuleDiscriminator >
IEquatable<NotificationRule >
IEquatable<SMTPNotificationRuleBase >
Inherited Members
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class SMTPNotificationRuleBase : NotificationRule, IEquatable<NotificationRuleDiscriminator>, IEquatable<NotificationRule>, IEquatable<SMTPNotificationRuleBase>
Constructors
SMTPNotificationRuleBase()
Initializes a new instance of the SMTPNotification
Declaration
protected SMTPNotificationRuleBase()
SMTPNotificationRuleBase(SMTPNotificationRuleBase.TypeEnum, String, String, String, String, String, String, TaskStatusType, String, String, String, String, String, Nullable<Int32>, Nullable<Int32>, List<TagRule>, String, List<StatusRule>, List<Label>, NotificationRuleBaseLinks)
Initializes a new instance of the SMTPNotification
Declaration
public SMTPNotificationRuleBase(SMTPNotificationRuleBase.TypeEnum type = default(SMTPNotificationRuleBase.TypeEnum), string subjectTemplate = null, string bodyTemplate = null, string to = null, string endpointID = null, string orgID = null, string taskID = null, TaskStatusType status = (TaskStatusType)0, string name = null, string sleepUntil = null, string every = null, string offset = null, string runbookLink = null, int? limitEvery = null, int? limit = null, List<TagRule> tagRules = null, string description = null, List<StatusRule> statusRules = null, List<Label> labels = null, NotificationRuleBaseLinks links = null)
Parameters
Type | Name | Description |
---|---|---|
SMTPNotification |
type | type (required) (default to TypeEnum.Smtp). |
System. |
subjectTemplate | subjectTemplate (required). |
System. |
bodyTemplate | bodyTemplate. |
System. |
to | to (required). |
System. |
endpointID | |
System. |
orgID | |
System. |
taskID | |
Task |
status | |
System. |
name | |
System. |
sleepUntil | |
System. |
every | |
System. |
offset | |
System. |
runbookLink | |
System. |
limitEvery | |
System. |
limit | |
List<Tag |
tagRules | |
System. |
description | |
List<Status |
statusRules | |
List<Label> | labels | |
Notification |
links |
Properties
BodyTemplate
Gets or Sets BodyTemplate
Declaration
public string BodyTemplate { get; set; }
Property Value
Type | Description |
---|---|
System. |
SubjectTemplate
Gets or Sets SubjectTemplate
Declaration
public string SubjectTemplate { get; set; }
Property Value
Type | Description |
---|---|
System. |
To
Gets or Sets To
Declaration
public string To { get; set; }
Property Value
Type | Description |
---|---|
System. |
Type
Gets or Sets Type
Declaration
public SMTPNotificationRuleBase.TypeEnum Type { get; set; }
Property Value
Type | Description |
---|---|
SMTPNotification |
Methods
Equals(SMTPNotificationRuleBase)
Returns true if SMTPNotificationRuleBase instances are equal
Declaration
public bool Equals(SMTPNotificationRuleBase input)
Parameters
Type | Name | Description |
---|---|---|
SMTPNotification |
input | Instance of SMTPNotificationRuleBase 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 |
Overrides
Implements
IEquatable<>
IEquatable<>
IEquatable<>