Analyzer¶
Base class for all dias analyzers.
All dias analyzers should inherit from this class, with functionality added by over-riding setup, run and/or shutdown. In addition, input parameters may be specified by adding class attributes which are instances of config.Property. These will then be read from the task config file when it is initialized. The class attributes will be overridden with instance attributes with the same name but with the values specified in the config file.
-
dias.analyzer.Analyzer.period¶ A time period (e.g. ‘1h’), indicating the schedule for this task
Type: String
-
dias.analyzer.Analyzer.start_time¶ A time (e.g. ‘2018-01-03 17:13:13’) indicating when you want the task to first run. This is mostly used to determine the phase of your task. If this value is in the future, the scheduler won’t run your task until that time arrives. This is optional. If not given, the scheduler will start the task at an arbitrary time within one period of the start of the scheduler.
Type: String
-
dias.analyzer.Analyzer.data_size_max¶ The amount of data this task can write in it’s data directory. dias deletes old files if this is exceeded. This should be a string containing of a number followed by a whitespace and the SI-unit (e.g. ‘1 kB’)
Type: String
-
dias.analyzer.Analyzer.state_size_max¶ the amount of data this task can write in it’s state directory. dias deletes old files if this is exceeded. This should be a string containing of a number followed by a whitespace and the SI-unit (e.g. ‘10 MB’)
Type: String
-
dias.analyzer.Analyzer.__init__()¶
-
dias.analyzer.Analyzer.setup()¶
-
dias.analyzer.Analyzer.run()¶
-
dias.analyzer.Analyzer.finish()¶