Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1332A17801 for ; Mon, 27 Oct 2014 17:18:35 +0000 (UTC) Received: (qmail 61327 invoked by uid 500); 27 Oct 2014 17:18:35 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 61288 invoked by uid 500); 27 Oct 2014 17:18:34 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 61274 invoked by uid 99); 27 Oct 2014 17:18:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2014 17:18:34 +0000 Date: Mon, 27 Oct 2014 17:18:34 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-7984) Alerts UI: Create models for alert-definitions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-7984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185439#comment-14185439 ] Hudson commented on AMBARI-7984: -------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit #720 (See [https://builds.apache.org/job/Ambari-trunk-Commit/720/]) AMBARI-7984. Alerts UI: Create models for alert-definitions. (akovalenko) (akovalenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=5432949b1362bb74daede665a1334aac18606b4a) * ambari-web/app/models.js * ambari-web/app/models/alertDefinition.js > Alerts UI: Create models for alert-definitions > ---------------------------------------------- > > Key: AMBARI-7984 > URL: https://issues.apache.org/jira/browse/AMBARI-7984 > Project: Ambari > Issue Type: Task > Components: ambari-web > Affects Versions: 2.0.0 > Reporter: Aleksandr Kovalenko > Assignee: Aleksandr Kovalenko > Fix For: 2.0.0 > > Attachments: AMBARI-7984.patch > > > Alerts UI needs to model Alert-Definitions and Alert-Instances as classes. > {{Alert-Definition}} class is: > * id (number) > * name (string) > * label (string) > * serviceName (string) > * componentName (string) > * enabled (boolean) > * scope (string) > * interval (number) > * type (string) // "SCRIPT" | "METRIC" | "AGGREGATE" | "PERCENT" | "PORT" > {{Alert-Report-Definition}} class: > * type (string) - OK, Warning, Critical > * text (string) > * value (number) - may not exist > {{Alert-Metrics-Source-Definition}} class: > * propertyList (string[]) > * value (string) > {{Port-Alert-Definition}} class extends {{Alert-Definition}} class: > * defaultPort (number) > * uri (string) > * reporting (Alert-Report-Definition[]) > {{Metrics-Alert-Definition}} class extends {{Alert-Definition}} class: > // either jmx or ganglia will exist > * jmx (Alert-Metrics-source-Definition) > * ganglia (Alert-Metrics-source-Definition) > * uri (string) > * reporting (Alert-Report-Definition[]) > {{Aggregate-Alert-Definition}} class extends {{Alert-Definition}} class: > * alertName (string) > * reporting (Alert-Report-Definition[]) > {{Script-Alert-Definition}} class extends {{Alert-Definition}} class: > * location (string) //a path > * reporting ({{Alert-Report-Definition}}[]) -- This message was sent by Atlassian JIRA (v6.3.4#6332)