Interface DerivedMetricSource


  • public interface DerivedMetricSource
    Interface implemented by any class which can derive new metrics from other metrics. Derived metrics are not stored on the server and are not known about by AIE nodes themselves.
    • Method Detail

      • validate

        void validate()
        throws IllegalStateException if the parameters for the source are not valid
      • createMetricInstances

        java.util.List<MetricInstance> createMetricInstances()
        Returns:
        the list of metrics this source provides
      • getDataByMetricInstance

        MetricData getDataByMetricInstance​(java.util.Date start,
                                           java.util.Date end,
                                           long period,
                                           long id)
        Returns:
        the derived metrics over the time period indicated
      • getLastDataByMetricInstance

        MetricData getLastDataByMetricInstance​(long id)
        Returns:
        compute and return the last data point in this derived metric
      • setMonitoringApi

        void setMonitoringApi​(MonitoringApi monitoringApi)
        set the api that is used to fetch source metrics
      • setMetricTemplate

        void setMetricTemplate​(Metric template)
        template for the derived metric