:doc:`SageMaker <../../sagemaker>` / Client / list_monitoring_alerts

**********************
list_monitoring_alerts
**********************



.. py:method:: SageMaker.Client.list_monitoring_alerts(**kwargs)

  

  Gets the alerts for a single monitoring schedule.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListMonitoringAlerts>`_  


  **Request Syntax**
  ::

    response = client.list_monitoring_alerts(
        MonitoringScheduleName='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type MonitoringScheduleName: string
  :param MonitoringScheduleName: **[REQUIRED]** 

    The name of a monitoring schedule.

    

  
  :type NextToken: string
  :param NextToken: 

    If the result of the previous ``ListMonitoringAlerts`` request was truncated, the response includes a ``NextToken``. To retrieve the next set of alerts in the history, use the token in the next request.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to display. The default is 100.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'MonitoringAlertSummaries': [
              {
                  'MonitoringAlertName': 'string',
                  'CreationTime': datetime(2015, 1, 1),
                  'LastModifiedTime': datetime(2015, 1, 1),
                  'AlertStatus': 'InAlert'|'OK',
                  'DatapointsToAlert': 123,
                  'EvaluationPeriod': 123,
                  'Actions': {
                      'ModelDashboardIndicator': {
                          'Enabled': True|False
                      }
                  }
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **MonitoringAlertSummaries** *(list) --* 

        A JSON array where each element is a summary for a monitoring alert.

        
        

        - *(dict) --* 

          Provides summary information about a monitor alert.

          
          

          - **MonitoringAlertName** *(string) --* 

            The name of a monitoring alert.

            
          

          - **CreationTime** *(datetime) --* 

            A timestamp that indicates when a monitor alert was created.

            
          

          - **LastModifiedTime** *(datetime) --* 

            A timestamp that indicates when a monitor alert was last updated.

            
          

          - **AlertStatus** *(string) --* 

            The current status of an alert.

            
          

          - **DatapointsToAlert** *(integer) --* 

            Within ``EvaluationPeriod``, how many execution failures will raise an alert.

            
          

          - **EvaluationPeriod** *(integer) --* 

            The number of most recent monitoring executions to consider when evaluating alert status.

            
          

          - **Actions** *(dict) --* 

            A list of alert actions taken in response to an alert going into ``InAlert`` status.

            
            

            - **ModelDashboardIndicator** *(dict) --* 

              An alert action taken to light up an icon on the Model Dashboard when an alert goes into ``InAlert`` status.

              
              

              - **Enabled** *(boolean) --* 

                Indicates whether the alert action is turned on.

                
          
        
      
    
      

      - **NextToken** *(string) --* 

        If the response is truncated, SageMaker returns this token. To retrieve the next set of alerts, use it in the subsequent request.

        
  
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  