Repository: ambari Updated Branches: refs/heads/branch-2.5 47a1545ec -> 01df0d5b6
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/01df0d5b Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/01df0d5b Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/01df0d5b Branch: refs/heads/branch-2.5 Commit: 01df0d5b627b26e437853d113e87b75acda0e63e Parents: 47a1545 Author: Tim Thorpe <[email protected]> Authored: Thu Sep 15 10:11:12 2016 -0700 Committer: Tim Thorpe <[email protected]> Committed: Thu Sep 15 10:11:12 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/01df0d5b/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
