Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once the normalization process is complete, a single time series sampled at a uniform interval is given.

SimpleMetrics

Simple metrics form the 'base' of the Metrics system. They are defined on a specific Type and reference timeseries data stored within.
Essentially, the Simple metric defines:

  1. How to find the timeseries data on the Type
  2. Configuration of the Normalization engine


CompoundMetrics

Evaluating Metrics

Not all SimpleMetrics are defined on all types. Types on which you can evaluate a metric mixin the Type 'MetricEvaluatable' (C3 Docs here: https://developer.c3.ai/docs/7.12.0/type/MetricEvaluatable)
This bestows the function 'listMetrics' to that type, so if you're unsure what kind of metrics are available for a given type, execute that function to get a list, for example:

Code Block
languagejs
var metrics = SmartBulb.listMetrics()
c3Grid(metrics)


Code Block
languagepy
pd.DataFrame(c3.SmartBulb.listMetrics().toJson())

Once you have the metric you want to evaluate in mind, you

Conclusion

To get started quickly, focus on 'CompoundMetrics'. They're the easiest to use, and for most cases, the 'AVG' treatment works well.

...

Review and Next Steps


Principals from this Primer are