Table of Contents

Class AlertRuleRequest

Namespace
Honua.Sdk.Admin.Models
Assembly
Honua.Sdk.Admin.dll

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

IReadOnlyList<string>

ConditionsJson

Rule conditions serialized as JSON.

[JsonPropertyName("conditionsJson")]
public string ConditionsJson { get; init; }

Property Value

string

CooldownSeconds

Cooldown in seconds.

[JsonPropertyName("cooldownSeconds")]
public int CooldownSeconds { get; init; }

Property Value

int

EditionRequired

Required edition: pro or enterprise.

[JsonPropertyName("editionRequired")]
public string EditionRequired { get; init; }

Property Value

string

IsActive

Whether the rule is active.

[JsonPropertyName("isActive")]
public bool IsActive { get; init; }

Property Value

bool

LayerId

Layer identifier targeted by the rule.

[JsonPropertyName("layerId")]
public int LayerId { get; init; }

Property Value

int

RuleName

Rule name.

[JsonPropertyName("ruleName")]
public required string RuleName { get; init; }

Property Value

string

ServiceId

Service identifier targeted by the rule.

[JsonPropertyName("serviceId")]
public required string ServiceId { get; init; }

Property Value

string

Severity

Severity: info, warning, or critical.

[JsonPropertyName("severity")]
public string Severity { get; init; }

Property Value

string

TriggerType

Trigger type: enter, exit, dwell, or threshold.

[JsonPropertyName("triggerType")]
public required string TriggerType { get; init; }

Property Value

string

ZoneId

Optional zone identifier.

[JsonPropertyName("zoneId")]
public long? ZoneId { get; init; }

Property Value

long?