Monitoring

Monitoring module.

Models

Monitoring database models.

class asclepias_broker.monitoring.models.ErrorMonitoring(**kwargs)[source]

Error monitoring model.

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

classmethod getFromEvent(event_id)[source]

Dictionary representation of the error.

classmethod getLastWeeksErrors(**kwargs)[source]

Gets all the errors from last week where it has been rerun for at least 2 times all ready

to_dict()[source]

Dictionary representation of the error.

class asclepias_broker.monitoring.models.HarvestMonitoring(**kwargs)[source]

Harvesting monitoring model.

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

classmethod get(id=None, **kwargs)[source]

Get the event from the database.

classmethod getStatsFromLastWeek()[source]

Gets the stats from the last 7 days

classmethod isRecentlyAdded(identifier, scheme, harvester, **kwargs)[source]

Check if the same identifier has been queried for during the last week to avoid duplicates

Return type

Boolean

class asclepias_broker.monitoring.models.HarvestStatus[source]

Event status.

CLI

Tasks