[
https://issues.apache.org/jira/browse/AMBARI-10194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14378382#comment-14378382
]
Andrii Babiichuk commented on AMBARI-10194:
-------------------------------------------
+1 for the patch
> Better Client Side Validation Of Alert Definition Threshold Data
> ----------------------------------------------------------------
>
> Key: AMBARI-10194
> URL: https://issues.apache.org/jira/browse/AMBARI-10194
> Project: Ambari
> Issue Type: Task
> Components: ambari-web
> Affects Versions: 2.0.0
> Reporter: Antonenko Alexander
> Assignee: Antonenko Alexander
> Fix For: 2.1.0
>
> Attachments: AMBARI-10194.patch
>
>
> When editing the alert definition thresholds, the web client currently allows
> precision that is far beyond what makes sense for the threshold values. For
> example, if you go to edit the thresholds for the seconds that a port alert
> will use, you can set the value up to the micro second: 5.0000001. Values
> beyond this are actually not considered changes and not sent to the backend
> even though the web client indicates that a change was saved.
> In general, there should be smarter precision for the threshold values:
> - AGGREGATE: whole percent values (80%, not 80.0%)
> - PORT: 1/10th of a second: (1.5s, 5.0s)
> - METRIC: Current values are whole numbers and I don't really see the need to
> make this any more precise. Although the nature of metrics dictates that any
> value could be compared, including values less than 1. I'd say allow the same
> as for PORT; down to the 1/10th precision.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)