stormlog.infer.diagnosis_vocabulary

The closed vocabulary of inference diagnosis findings.

Every finding names one kind, located at one component, and states one cause. The vocabulary is closed: adding a kind is a change to the diagnosis payload’s schema, not a new string a producer may invent. Online triggers, the offline diagnoser and the qualification scorer all read these names from here.

Functions

check_kind(kind)

Return kind if the vocabulary has it.

stormlog.infer.diagnosis_vocabulary.check_kind(kind)[source]

Return kind if the vocabulary has it.

Raises:

ValueError – for a kind outside the closed vocabulary.

Parameters:

kind (str)

Return type:

str