ConfigHelper¶
-
class
sitchlib.ConfigHelper(sitch_var_base_dir='/data/sitch/')[source]¶ Manage configuration information for entire SITCH Sensor.
-
classmethod
get_db_schema_translations(filename='/etc/schemas/feed_db_translation.yaml')[source]¶ Get the feed DB schema translations from file.
-
classmethod
get_db_schemas(filename='/etc/schemas/feed_db_schema.yaml')[source]¶ Get the feed DB schemas from file.
-
classmethod
get_filebeat_template(filename='/etc/templates/filebeat.json')[source]¶ Get the filebeat config from template file.
-
classmethod
get_list_from_env(k, optional=False)[source]¶ Get a list from environment variables.
If optional=True, the absence of this var will cause a hard exit.
-
classmethod