vcfops_alert¶
VCF Operations — alert and symptom definitions, plus active alerts.
Three distinct concepts:
alertdefinitions(catalog) — the configurable templates that say if X then alert.symptomdefinitions(catalog) — the conditions alerts compose from.alerts(instances) — open/active alerts firing right now against monitored resources.
- saltext.vcf.clients.vcfops_alert.alerts_create(opts, spec, profile=None)[source]¶
Create a new alert definition.
spec is the
AlertDefinitionbody VCF Operations expects — the same shape returned byalerts_get(). Returns the persisted definition (typically with a server-assignedid).
- saltext.vcf.clients.vcfops_alert.alerts_update(opts, alert_id, spec, profile=None)[source]¶
Update the alert definition identified by alert_id.
spec is the full
AlertDefinitionreplacement body (thealertdefinitionsendpoint is PUT-shaped, not PATCH). Returns the persisted definition.
- saltext.vcf.clients.vcfops_alert.alerts_delete(opts, alert_id, profile=None)[source]¶
Delete the alert definition identified by alert_id.
Returns
{}on success.
- saltext.vcf.clients.vcfops_alert.symptoms_create(opts, spec, profile=None)[source]¶
Create a new symptom definition.
spec is the
SymptomDefinitionbody VCF Operations expects — the same shape returned bysymptoms_get(). Returns the persisted definition (typically with a server-assignedid).
- saltext.vcf.clients.vcfops_alert.symptoms_update(opts, symptom_id, spec, profile=None)[source]¶
Update the symptom definition identified by symptom_id.
spec is the full replacement body. Returns the persisted definition.