UnderPressure#

class lsst.ts.watcher.rules.UnderPressure(config, log=None)#

Bases: BaseEssRule

Check for low pressure.

This rule only reads ESS telemetry topics.

Parameters:

Notes

The alarm name is f”UnderPressure.{name}”.

Like most rules based on data from the ESS CSC: this uses FilteredTopicField and its ilk, because a given topic may be output for more than one sensor (e.g. there may be two pressure sensors or two 4-channel pressure sensors connected to the same CSC) where the data is differentiated by the value of the sensorName field.

Methods Summary

get_schema()

Return a jsonschema as a dict, to validate configuration.

Methods Documentation

classmethod get_schema()#

Return a jsonschema as a dict, to validate configuration.

Notes

Please provide default values for all fields for which defaults make sense. This makes watcher configuration files easier to write.

If your rule has no configuration then return None.

We recommend that you write the schema as yaml, for compactness, then use yaml.safe_load to convert it to a dict. For example:

schema_yaml = """
    $schema: http://json-schema.org/draft-07/schema#
    description: Configuration for MyRule
    type: object
    properties:
    ...
    required: [...]
    additionalProperties: false
"""
return yaml.safe_load(schema_yaml)