Class AlertRuleRequest
Alert rule create or update request.
public sealed record AlertRuleRequest : IEquatable<AlertRuleRequest>
- Inheritance
-
AlertRuleRequest
- Implements
- Inherited Members
Properties
Channels
Delivery channels.
[JsonPropertyName("channels")]
public IReadOnlyList<string>? Channels { get; init; }
Property Value
ConditionsJson
Rule conditions serialized as JSON.
[JsonPropertyName("conditionsJson")]
public string ConditionsJson { get; init; }
Property Value
CooldownSeconds
Cooldown in seconds.
[JsonPropertyName("cooldownSeconds")]
public int CooldownSeconds { get; init; }
Property Value
EditionRequired
Required edition: pro or enterprise.
[JsonPropertyName("editionRequired")]
public string EditionRequired { get; init; }
Property Value
IsActive
Whether the rule is active.
[JsonPropertyName("isActive")]
public bool IsActive { get; init; }
Property Value
LayerId
Layer identifier targeted by the rule.
[JsonPropertyName("layerId")]
public int LayerId { get; init; }
Property Value
RuleName
Rule name.
[JsonPropertyName("ruleName")]
public required string RuleName { get; init; }
Property Value
ServiceId
Service identifier targeted by the rule.
[JsonPropertyName("serviceId")]
public required string ServiceId { get; init; }
Property Value
Severity
Severity: info, warning, or critical.
[JsonPropertyName("severity")]
public string Severity { get; init; }
Property Value
TriggerType
Trigger type: enter, exit, dwell, or threshold.
[JsonPropertyName("triggerType")]
public required string TriggerType { get; init; }
Property Value
ZoneId
Optional zone identifier.
[JsonPropertyName("zoneId")]
public long? ZoneId { get; init; }
Property Value
- long?