Skip to content

configuration

RuntimeConfiguration

Configuration of a monitoring model.

Use the get method to retrieve the current configuration of a model, and the set method to update it. Use the default method to get the default configuration for a given schema and chunking.

default staticmethod

default(chunking: Chunking, schema: ModelSchema, has_analysis_targets: bool, nr_of_rows: Optional[int] = None) -> dict[str, Any]

Get the default runtime configuration for a given schema and chunking.

Parameters:

Name Type Description Default
chunking Chunking

The chunking to use.

required
schema ModelSchema

The schema of the model.

required
has_analysis_targets bool

Whether the schema has analysis targets.

required
nr_of_rows Optional[int]

The number of rows to use if chunking is 'NUMBER_OF_ROWS'.

None

get staticmethod

get(model_id: int) -> _RuntimeConfiguration

Get the runtime configuration of a model.

Parameters:

Name Type Description Default
model_id int

The ID of the model.

required

set staticmethod

set(model_id: int, config: _RuntimeConfiguration)

Set the runtime configuration of a model.

This method will send the updated configuration back to the server.

Parameters:

Name Type Description Default
model_id int

The ID of the model.

required
config _RuntimeConfiguration

The new runtime configuration

required