abacusai.monitor_alert
Classes
An abstract class for alert action configs |
|
An abstract class for alert condition configs |
|
A monitor alert version |
|
A Monitor Alert |
Module Contents
- class abacusai.monitor_alert.AlertActionConfig
Bases:
abacusai.api_class.abstract.ApiClassAn abstract class for alert action configs
- action_type: abacusai.api_class.enums.AlertActionType
- classmethod _get_builder()
- class abacusai.monitor_alert.AlertConditionConfig
Bases:
abacusai.api_class.abstract.ApiClassAn abstract class for alert condition configs
- alert_type: abacusai.api_class.enums.MonitorAlertType
- classmethod _get_builder()
- class abacusai.monitor_alert.MonitorAlertVersion(client, name=None, monitorAlertVersion=None, monitorAlertId=None, status=None, createdAt=None, alertingStartedAt=None, alertingCompletedAt=None, error=None, modelMonitorVersion=None, conditionConfig=None, actionConfig=None, alertResult=None, actionStatus=None, actionError=None, actionStartedAt=None, actionCompletedAt=None, conditionDescription=None, actionDescription=None, alertType=None)
Bases:
abacusai.return_class.AbstractApiClassA monitor alert version
- Parameters:
client (ApiClient) – An authenticated API Client instance
name (str) – The user-friendly name for the monitor alert.
monitorAlertVersion (str) – The identifier for the alert version.
monitorAlertId (str) – The identifier for the alert.
status (str) – The current status of the monitor alert.
createdAt (str) – Date and time at which the monitor alert was created.
alertingStartedAt (str) – The start time and date of the monitor alerting process.
alertingCompletedAt (str) – The end time and date of the monitor alerting process.
error (str) – Relevant error if the status is FAILED.
modelMonitorVersion (str) – The model monitor version associated with the monitor alert version.
conditionConfig (dict) – The condition configuration for this alert.
actionConfig (dict) – The action configuration for this alert.
alertResult (str) – The current result of the alert
actionStatus (str) – The current status of the action as a result of the monitor alert.
actionError (str) – Relevant error if the action status is FAILED.
actionStartedAt (str) – The start time and date of the actionfor the alerting process.
actionCompletedAt (str) – The end time and date of the actionfor the alerting process.
conditionDescription (str) – User friendly description of the condition
actionDescription (str) – User friendly description of the action
alertType (str) – The type of the alert
- __repr__()
Return repr(self).
- to_dict()
Get a dict representation of the parameters in this class
- Returns:
The dict value representation of the class parameters
- Return type:
- refresh()
Calls describe and refreshes the current object’s fields
- Returns:
The current object
- Return type:
- describe()
Describes a given monitor alert version id
- Parameters:
monitor_alert_version (str) – Unique string identifier for the monitor alert.
- Returns:
An object describing the monitor alert version.
- Return type:
- class abacusai.monitor_alert.AbstractApiClass(client, id)
- __eq__(other)
Return self==value.
- _get_attribute_as_dict(attribute)
- class abacusai.monitor_alert.MonitorAlert(client, name=None, monitorAlertId=None, createdAt=None, projectId=None, modelMonitorId=None, realtimeMonitorId=None, conditionConfig=None, actionConfig=None, conditionDescription=None, actionDescription=None, alertType=None, deploymentId=None, latestMonitorAlertVersion={})
Bases:
abacusai.return_class.AbstractApiClassA Monitor Alert
- Parameters:
client (ApiClient) – An authenticated API Client instance
name (str) – The user-friendly name for the alert.
monitorAlertId (str) – The unique identifier of the monitor alert.
createdAt (str) – Date and time at which the monitor alert was created.
projectId (str) – The project this alert belongs to.
modelMonitorId (str) – The monitor id that this alert is associated with
realtimeMonitorId (str) – The realtime monitor id that this alert is associated with
conditionConfig (dict) – The condition configuration for this alert.
actionConfig (dict) – The action configuration for this alert.
conditionDescription (str) – User friendly description of the condition
actionDescription (str) – User friendly description of the action
alertType (str) – The type of the alert
deploymentId (str) – The deployment ID this alert is associated with
latestMonitorAlertVersion (MonitorAlertVersion) – The latest monitor alert version.
- __repr__()
Return repr(self).
- to_dict()
Get a dict representation of the parameters in this class
- Returns:
The dict value representation of the class parameters
- Return type:
- update(alert_name=None, condition_config=None, action_config=None)
Update monitor alert
- Parameters:
alert_name (str) – Name of the alert.
condition_config (AlertConditionConfig) – Condition to run the actions for the alert.
action_config (AlertActionConfig) – Configuration for the action of the alert.
- Returns:
Object describing the monitor alert.
- Return type:
- refresh()
Calls describe and refreshes the current object’s fields
- Returns:
The current object
- Return type:
- describe()
Describes a given monitor alert id
- Parameters:
monitor_alert_id (str) – Unique identifier of the monitor alert.
- Returns:
Object containing information about the monitor alert.
- Return type: