sift_py.ingestion.config.yaml.spec
¶
Formal specification of the types that sift_py expects when loading a telemetry config from a YAML file.
| CLASS | DESCRIPTION |
|---|---|
FlowYamlSpec |
Formal spec that defines what a flow should look like in YAML. |
TelemetryConfigYamlSpec |
Formal spec that defines what the telemetry config should look like in YAML. |
YamlConfigError |
When the YAML config has missing or invalid properties. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
ChannelBitFieldElementYamlSpec |
|
ChannelConfigYamlSpec |
|
ChannelEnumTypeYamlSpec |
|
NamedExpressionYamlSpec |
|
RuleYamlSpec |
|
ChannelBitFieldElementYamlSpec
module-attribute
¶
ChannelBitFieldElementYamlSpec = (
ChannelBitFieldElementYamlSpec
)
FlowYamlSpec
¶
Bases: TypedDict
Formal spec that defines what a flow should look like in YAML.
| ATTRIBUTE | DESCRIPTION |
|---|---|
channels |
TYPE:
|
name |
TYPE:
|
TelemetryConfigYamlSpec
¶
Bases: TypedDict
Formal spec that defines what the telemetry config should look like in YAML.
asset_name: The name of the asset to telemeter.
ingestion_client_key: Optional user-defined string-key that uniquely identifies this telemetry config.
organization_id: Optional ID of user's organization. Required if user belongs to multiple orgs.
channels: Sensors that send the data.
rules: Rules that, when evaluated to a true, will perform some sort of acction.
flows: A list of named groups of channels that send data together.
| ATTRIBUTE | DESCRIPTION |
|---|---|
asset_name |
TYPE:
|
channels |
TYPE:
|
flows |
TYPE:
|
ingestion_client_key |
TYPE:
|
organization_id |
TYPE:
|
rules |
TYPE:
|