Creating Custom Metric Functions
You can create custom metric functions to add your own aggregation functions. For example, in a TIBCO ActiveMatrix environment, you might want to set the value of a metric function based on the input you get from the fact published by the probe.
- Determine whether your function is a single-valued function or a multivalued function. Based on that, create a custom class that extends one of the following: SingleValueMetricFunction or MultiValueMetricFunction.
- Create a catalog for the metric function.
- Bind the metric function parameters to the fact attributes in the schema file.
- Bundle the classes related to the metric function and the catalog files together in a JAR file and place it in the server classpath.
Copyright © Cloud Software Group, Inc. All rights reserved.