Class TelegramNotificationRuleBase
TelegramNotificationRuleBase
Inheritance
Implements
Inherited Members
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class TelegramNotificationRuleBase : NotificationRule, IEquatable<NotificationRuleDiscriminator>, IEquatable<NotificationRule>, IEquatable<TelegramNotificationRuleBase>
Constructors
TelegramNotificationRuleBase()
Initializes a new instance of the Telegram
Declaration
protected TelegramNotificationRuleBase()
TelegramNotificationRuleBase(TelegramNotificationRuleBase.TypeEnum, String, Nullable<TelegramNotificationRuleBase.ParseModeEnum>, Nullable<Boolean>, 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 Telegram
Declaration
public TelegramNotificationRuleBase(TelegramNotificationRuleBase.TypeEnum type = default(TelegramNotificationRuleBase.TypeEnum), string messageTemplate = null, TelegramNotificationRuleBase.ParseModeEnum? parseMode = null, bool? disableWebPagePreview = 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 |
---|---|---|
Telegram |
type | The discriminator between other types of notification rules is "telegram". (required) (default to TypeEnum.Telegram). |
System. |
messageTemplate | The message template as a flux interpolated string. (required). |
System. |
parseMode | Parse mode of the message text per https://core.telegram.org/bots/api#formatting-options . Defaults to "MarkdownV2" .. |
System. |
disableWebPagePreview | Disables preview of web links in the sent messages when "true". Defaults to "false" .. |
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
DisableWebPagePreview
Disables preview of web links in the sent messages when "true". Defaults to "false" .
Declaration
public bool? DisableWebPagePreview { get; set; }
Property Value
Type | Description |
---|---|
System. |
Disables preview of web links in the sent messages when "true". Defaults to "false" . |
MessageTemplate
The message template as a flux interpolated string.
Declaration
public string MessageTemplate { get; set; }
Property Value
Type | Description |
---|---|
System. |
The message template as a flux interpolated string. |
ParseMode
Parse mode of the message text per https://core.telegram.org/bots/api#formatting-options . Defaults to "MarkdownV2" .
Declaration
public TelegramNotificationRuleBase.ParseModeEnum? ParseMode { get; set; }
Property Value
Type | Description |
---|---|
System. |
Parse mode of the message text per https://core.telegram.org/bots/api#formatting-options . Defaults to "MarkdownV2" . |
Type
The discriminator between other types of notification rules is "telegram".
Declaration
public TelegramNotificationRuleBase.TypeEnum Type { get; set; }
Property Value
Type | Description |
---|---|
Telegram |
The discriminator between other types of notification rules is "telegram". |
Methods
Equals(TelegramNotificationRuleBase)
Returns true if TelegramNotificationRuleBase instances are equal
Declaration
public bool Equals(TelegramNotificationRuleBase input)
Parameters
Type | Name | Description |
---|---|---|
Telegram |
input | Instance of TelegramNotificationRuleBase 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 |