AIOps#

ConfigGenerator#

AIOps application typically relies on a decision system with one or multiple AI models.

The ConfigGenerator provides a easy-to-use builder for an AIOps decision system with the usage of Trigger.

class bigdl.chronos.aiops.config_generator.config_generator.ConfigGenerator[source]#

Bases: object

Users could customize their own config generator by define a class inherited from ConfigGenerator.

Example

>>> class MyConfigGenerator(ConfigGenerator):
>>>     def __init__(self, ...):
>>>         super().__init__()  # <-- This super class initialization must be called
>>>         ...
>>>     def genConfig(self, ...):  # <-- (recommeneded), generate a best config
>>>         ...

Users could also add some trigger decorator imported from bigdl.chronos.aiops.trigger More details about trigger please refer to correspond apis

Example

>>> class MyConfigGenerator(ConfigGenerator):
>>>     ...
>>>     @triggerbyfile(...)
>>>     def update_status(self, ...)  # <-- this will be exec once trigger activated
>>>         ...
abstract genConfig(*args, **kwargs)[source]#

This function should be implemented for final config generation

bigdl.chronos.aiops.config_generator.trigger.triggerbyfile(filename)[source]#

File trigger, will be activated once the file is modified.

Parameters

filename – the path to the file to be modified.

bigdl.chronos.aiops.config_generator.trigger.triggerbyclock(seconds=1)[source]#

Clock trigger, will be activated every fixed seconds

Parameters

seconds – the time interval(in seconds) to activate the trigger.