Namespace metricsTemplates
provides access to metric templates
Defined in: rhqapi.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
metricsTemplates.disable(resTypes, filter)
disables metrics
|
<static> |
metricsTemplates.enable(resTypes, filter)
enables metrics
|
<static> |
metricsTemplates.setCollectionInterval(resTypes, interval, filter)
sets collection interval for metrics
|
Method Detail
<static>
metricsTemplates.disable(resTypes, filter)
disables metrics
metricsTemplates.disable(resourceTypes.find({name: "server-b", plugin: "PerfTest"}), metricTemplates.predicates.isCallTime);
metricsTemplates.disable(resourceTypes.find());
- Parameters:
- {ResourceType[]} resTypes
- - resource types, see resourceTypes.find
- filter
- - filter function - see metricsTemplates.predicates
<static>
metricsTemplates.enable(resTypes, filter)
enables metrics
metricsTemplates.enable(resourceTypes.find({name: "server-b", plugin: "PerfTest"}), metricTemplates.predicates.isCallTime);
metricsTemplates.enable(resourceTypes.find());
- Parameters:
- {ResourceType[]} resTypes
- - resource types, see resourceTypes.find
- filter
- - filter function - see metricsTemplates.predicates
<static>
metricsTemplates.setCollectionInterval(resTypes, interval, filter)
sets collection interval for metrics
metricsTemplates.setCollectionInterval(resourceTypes.find({name: "server-b", plugin: "PerfTest"}), 30, metricTemplates.predicates.isCallTime);
- Parameters:
- {ResourceType[]} resTypes
- - resource types, see resourceTypes.find
- interval
- - collection interval in seconds
- filter
- - filter function - see metricsTemplates.predicates