mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
39 lines
1.7 KiB
Nix
39 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
options = {
|
|
warningThresholdSentBytes = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.ints.positive;
|
|
default = null;
|
|
description = "Sent bytes per second threshold for a warning alert to be sent. If null, this threshold is disabled and not checked.";
|
|
};
|
|
criticalThresholdSentBytes = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.ints.positive;
|
|
default = null;
|
|
description = "Sent bytes per second threshold for a critical alert to be sent. If null, this threshold is disabled and not checked.";
|
|
};
|
|
warningThresholdRecvBytes = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.ints.positive;
|
|
default = null;
|
|
description = "Received bytes per second threshold for a warning alert to be sent. If null, this threshold is disabled and not checked.";
|
|
};
|
|
criticalThresholdRecvBytes = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.ints.positive;
|
|
default = null;
|
|
description = "Received bytes per second threshold for a critical alert to be sent. If null, this threshold is disabled and not checked.";
|
|
};
|
|
warningThresholdCombBytes = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.ints.positive;
|
|
default = null;
|
|
description = "Combined (sent + received) bytes per second threshold for a warning alert to be sent. If null, this threshold is disabled and not checked.";
|
|
};
|
|
criticalThresholdCombBytes = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.ints.positive;
|
|
default = null;
|
|
description = "Combined (sent + received) bytes per second threshold for a critical alert to be sent. If null, this threshold is disabled and not checked.";
|
|
};
|
|
};
|
|
}
|