lego-monitoring/modules/suboptions/netInterfaceOptions.nix
2025-06-07 15:59:05 +03:00

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.";
};
};
}