NOMBRE
gdcloud logging rules create - Crea una regla de registro en el espacio de nombres indicado.
SYNOPSIS
gdcloud logging rules create LOGGING_RULE_NAME [flags]
EJEMPLOS
To create a logging rule using flags, run:
gdcloud logging rules create logging-rule-name \
--namespace=sample_namespace \
--source=audit \
--interval=30s \
--record-rules=/sample/path/record_rules.yaml \
--alert-rules=/sample/path/alert_rules.yaml
To create a logging rule using YAML file, run:
gdcloud logging rules create logging-rule-name --file=/path/to/file.yaml
MARCAS OPCIONALES
--alert-rules string Path to a file containing YAML configuration for log alert rules.
--file string Path to a file containing YAML configuration for logging rules. If this flag is enabled, do not use other flags (--namespace, --source, --interval, --limit, --record-rules, --alert-rules).
--interval string Frequency of alert rule evaluation. Value must have unit of time (s for seconds, m for minutes, h for hour). If the --file flag is not used, this flag is required.
--limit int Limit on the number of alerts (0: no limit). The default value is 0.
--namespace string Namespace of the logs that rules are based on. If the --file flag is not used, this flag is required.
--record-rules string Path to a file containing YAML configuration for recording rules.
--source string Type of log to be referred for alert expression. (default "operational")
GDCLOUD WIDE FLAGS
Estas marcas están disponibles para todos los comandos: --configuration, --format, --help, --project y --quiet.
Para obtener más información, consulta la página Información general sobre la referencia de la CLI de gdcloud.