Repository: ambari Updated Branches: refs/heads/trunk 3c06ca3b6 -> 513965f58
AMBARI-18402 - Alert definition should include AGGREGATE source type Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/513965f5 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/513965f5 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/513965f5 Branch: refs/heads/trunk Commit: 513965f5850e4d3d900eb63d6b429d841498d529 Parents: 3c06ca3 Author: Tim Thorpe <[email protected]> Authored: Thu Sep 15 09:19:40 2016 -0700 Committer: Tim Thorpe <[email protected]> Committed: Thu Sep 15 09:19:40 2016 -0700 ---------------------------------------------------------------------- ambari-server/docs/api/v1/alert-definitions.md | 25 ++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/513965f5/ambari-server/docs/api/v1/alert-definitions.md ---------------------------------------------------------------------- diff --git a/ambari-server/docs/api/v1/alert-definitions.md b/ambari-server/docs/api/v1/alert-definitions.md index fae356a..9785379 100644 --- a/ambari-server/docs/api/v1/alert-definitions.md +++ b/ambari-server/docs/api/v1/alert-definitions.md @@ -136,6 +136,29 @@ PORT definitions are used to check TCP connectivity to a remote endpoint. } } +###### AGGREGATE +AGGREGATE definitions are used to combine the results of another alert definition from different nodes. The `source/alert_name` field must match the `name` field of another alert definition. + + "source": { + "type": "AGGREGATE", + "alert_name": "datanode_process", + "reporting": { + "ok": { + "text": "affected: [{1}], total: [{0}]" + }, + "warning": { + "text": "affected: [{1}], total: [{0}]", + "value": 10 + }, + "critical": { + "text": "affected: [{1}], total: [{0}]", + "value": 30 + }, + "units" : "%", + "type": "PERCENT" + } + } + #### Structures & Concepts - `uri` Definition types that contain a URI can depend on any number of valid subproperties. In some cases, the URI may be very simple and only include a single port. In other scenarios, the URI may be more complex and include properties for plaintext, SSL, and secure endpoints protected by Kerberos. @@ -309,4 +332,4 @@ Using the `run_now` directive, a definition can be scheduled to run immediately PUT http://<server>/api/v1/clusters/<cluster>/alert_definitions/<definition-id>?run_now=true ###### Response - HTTP 200 OK \ No newline at end of file + HTTP 200 OK
