:py:mod:`abacusai.monitor_alert`
================================

.. py:module:: abacusai.monitor_alert


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   abacusai.monitor_alert.MonitorAlert




.. py:class:: MonitorAlert(client, name=None, monitorAlertId=None, createdAt=None, projectId=None, modelMonitorId=None, conditionConfig=None, actionConfig=None, conditionDescription=None, actionDescription=None, latestMonitorAlertVersion={})

   Bases: :py:obj:`abacusai.return_class.AbstractApiClass`

   A Monitor Alert

   :param client: An authenticated API Client instance
   :type client: ApiClient
   :param name: The user-friendly name for the alert.
   :type name: str
   :param monitorAlertId: The unique identifier of the monitor alert.
   :type monitorAlertId: str
   :param createdAt: Date and time at which the monitor alert was created.
   :type createdAt: str
   :param projectId: The project this alert belongs to.
   :type projectId: str
   :param modelMonitorId: The monitor id that this alert is associated with
   :type modelMonitorId: unique string identifiers
   :param conditionConfig: The condition configuration for this alert.
   :type conditionConfig: dict
   :param actionConfig: The action configuration for this alert.
   :type actionConfig: dict
   :param conditionDescription: User friendly description of the condition
   :type conditionDescription: str
   :param actionDescription: User friendly description of the action
   :type actionDescription: str
   :param latestMonitorAlertVersion: The latest monitor alert version.
   :type latestMonitorAlertVersion: MonitorAlertVersion

   .. py:method:: __repr__()

      Return repr(self).


   .. py:method:: to_dict()

      Get a dict representation of the parameters in this class

      :returns: The dict value representation of the class parameters
      :rtype: dict


   .. py:method:: update(alert_name = None, condition_config = None, action_config = None)

      :param alert_name:
      :type alert_name: str
      :param condition_config:
      :type condition_config: dict
      :param action_config:
      :type action_config: dict

      :returns: None
      :rtype: MonitorAlert


   .. py:method:: refresh()

      Calls describe and refreshes the current object's fields

      :returns: The current object
      :rtype: MonitorAlert


   .. py:method:: describe()

      Describes a given monitor alert id

      :param monitor_alert_id: The unique identifier to a monitor alert
      :type monitor_alert_id: str

      :returns: An object describing the monitor alert
      :rtype: MonitorAlert


   .. py:method:: run()

      Reruns a given monitor alert from latest monitor instance

      :param monitor_alert_id: The unique identifier to a monitor alert
      :type monitor_alert_id: str

      :returns: An object describing the monitor alert
      :rtype: MonitorAlert


   .. py:method:: delete()

      :param monitor_alert_id:
      :type monitor_alert_id: str



