Variable postAlertDefinitionForServiceTypeResponseSchemaConst
postAlertDefinitionForServiceTypeResponseSchema: ZodObject<
{
alert_channels: ZodArray<
ZodObject<
{
id: ZodInt;
label: ZodString;
type: ZodEnum<{ email: "email" }>;
url: ZodString;
},
$strip,
>,
>;
class: ZodEnum<{ dedicated: "dedicated"; shared: "shared" }>;
created: ZodISODateTime;
created_by: ZodString;
description: ZodString;
entity_ids: ZodArray<ZodString>;
has_more_resources: ZodBoolean;
id: ZodInt;
label: ZodString;
rule_criteria: ZodObject<
{
rules: ZodArray<
ZodObject<
{
aggregate_function: ZodEnum<
{ avg: "avg"; max: "max"; min: "min"; sum: "sum" },
>;
dimension_filters: ZodArray<
ZodObject<
{
dimension_label: ZodString;
label: ZodString;
operator: ZodEnum<(...)>;
value: ZodString;
},
$strip,
>,
>;
label: ZodString;
metric: ZodString;
operator: ZodEnum<
{ eq: "eq"; gt: "gt"; gte: "gte"; lt: "lt"; lte: "lte" },
>;
threshold: ZodNumber;
unit: ZodEnum<
{
bit_per_second: "bit_per_second";
byte: "byte";
GB: "GB";
KB: "KB";
MB: "MB";
millisecond: "millisecond";
number: "number";
percent: "percent";
second: "second";
},
>;
},
$strip,
>,
>;
},
$strip,
>;
service_type: ZodString;
severity: ZodUnion<
readonly [ZodLiteral<0>, ZodLiteral<1>, ZodLiteral<2>, ZodLiteral<3>],
>;
status: ZodEnum<
{
disabled: "disabled";
enabled: "enabled";
failed: "failed";
"in progress": "in progress";
},
>;
trigger_conditions: ZodObject<
{
criteria_condition: ZodEnum<{ ALL: "ALL" }>;
evaluation_period_seconds: ZodInt;
polling_interval_seconds: ZodInt;
trigger_occurrences: ZodInt;
},
$strip,
>;
type: ZodEnum<{ system: "system"; user: "user" }>;
updated: ZodISODateTime;
updated_by: ZodString;
},
$strip,
> = ...
The alert definition is created.