Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-7568

Alerts: An Alert Definition On Demand Execution

    Details

      Description

      An alert should be able to be scheduled for immediate execution. This is independent of its interval scheduling. The on-demand execution should not affect any existing job schedules on the agent for the definition.

      Alerts run outside of the realm of the normal request/task workflow. Therefore, in order to trigger an on-demand alert to run, the following command is used:

      POST http://server/api/v1/clusters/{clusterName}/alert_definitions/{alertDefinitionId}?AlertDefinition/run_now=true
      

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/)
          AMBARI-7568 - Alerts: An Alert Definition On Demand Execution (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=054745d06472ef74430f47f09e1c8881f9f9780a)

          • ambari-server/src/main/resources/properties.json
          • ambari-agent/src/main/python/ambari_agent/alerts/collector.py
          • ambari-agent/src/test/python/ambari_agent/TestAlerts.py
          • ambari-server/src/main/java/org/apache/ambari/server/agent/AlertExecutionCommand.java
          • ambari-server/src/test/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostTest.java
          • ambari-agent/src/main/python/ambari_agent/AlertSchedulerHandler.py
          • ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionHash.java
          • ambari-agent/src/main/python/ambari_agent/Controller.py
          • ambari-server/src/main/java/org/apache/ambari/server/agent/AgentCommand.java
          • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatResponse.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java
          • ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertDefinitionHashTest.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/ ) AMBARI-7568 - Alerts: An Alert Definition On Demand Execution (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=054745d06472ef74430f47f09e1c8881f9f9780a ) ambari-server/src/main/resources/properties.json ambari-agent/src/main/python/ambari_agent/alerts/collector.py ambari-agent/src/test/python/ambari_agent/TestAlerts.py ambari-server/src/main/java/org/apache/ambari/server/agent/AlertExecutionCommand.java ambari-server/src/test/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostTest.java ambari-agent/src/main/python/ambari_agent/AlertSchedulerHandler.py ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionHash.java ambari-agent/src/main/python/ambari_agent/Controller.py ambari-server/src/main/java/org/apache/ambari/server/agent/AgentCommand.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatResponse.java ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertDefinitionHashTest.java

            People

            • Assignee:
              jonathan.hurley Jonathan Hurley
              Reporter:
              jonathan.hurley Jonathan Hurley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development