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 AlertDefinition body VCF Operations expects — the same shape returned by alerts_get(). Returns the persisted definition (typically with a server-assigned id).

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 AlertDefinition replacement body (the alertdefinitions endpoint 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 SymptomDefinition body VCF Operations expects — the same shape returned by symptoms_get(). Returns the persisted definition (typically with a server-assigned id).

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.

saltext.vcf.clients.vcfops_alert.symptoms_delete(opts, symptom_id, profile=None)[source]

Delete the symptom definition identified by symptom_id.

Returns {} on success.

saltext.vcf.clients.vcfops_alert.active_list(opts, page=0, page_size=1000, params=None)[source]

List active (open) alerts.

Extra params are merged in for server-side filtering — e.g. {"activeOnly": True, "resourceId": "<uuid>"}.