Rate is an object for representing a custom metric keeping track of the percentage of added values that are non-zero. It is one of the four custom metrics.
|name||string||The name of the custom metric.|
|Rate.add(value, [tags]) ]||Add a value to the rate metric.|
When Rate is used in a threshold expression, the variable must be called rate (lower case). For example:
- rate < 0.1 // less than 10%
- rate >= 0.9 // more or equal to 90%
The value of the rate variable ranges between 0.00 and 1.00.