Breezz Metrics


Breezz Metrics is a Breezz feature allowing for monitoring various gauges, statistics and every possible limit on your org. Breezz Metrics comes with a number of predefined Metrics, such as Daily Api Requests or Permission Sets used allowing you to monitor org limits from the start. But Breezz Metrics also comes with more complex monitoring tools not only to monitor itself but also your future activity within Breezz Framework.


Breezz Metrics Configuration

In this is the Breezz Setup tab, we allow you to configure basic information about Breezz Metric Functionality.

To do that simply go to Breezz SetupMetricsMetric Setup.

Metrics Setup Metrics Setup

Field Details :

  • Enable Metrics - Yes / No, respectively enables and disables system of metrics
  • Metrics Lifespan - Value in days, describes the amount of time that matrics will last in the system. After a selected amount of days, the record will be removed.
  • Breezz Metric Clean-Up Job Interval - Value in hours, describes amount of time that Clean-Up job will be executed on metric records. Can be disabled.
  • Number of Records in Metric Clean-Up Job - determines number of records to be processed by the clean-up job.

To configure custom metric head to Breezz SetupMetricsNew

Metrics New Metrics New

Field Details:

  • Metrics Calculation Type - determines calculation type for the metric.
    • Custom - Class that implements Metrics.MetricCalculator.
    • Count SOQL Query - counts custom SOQL query.
    • Count Package Async Future Usage - Breezz async future callouts.
    • Count Package Async Queueable Usage - Breezz async queueable.
    • Count Package Async Batches Usage - Breezz async batches.
    • Count Package Licenses Usage - User Licenses from packages.
    • Check Package Expiration - Expiration date for managed packeges.
    • Count User Licenses Usage - Licenses used by users.
    • Count Permission Set Licenses Usage - Licenses for Permission sets used.
    • Platform Limits Usage - All platform limits.
    • Async Job Stats - Statistics for selected async Job.
  • Metric API Name - Metric developer name.
  • Enable Measurement - Turns on / off metric after deployment.
  • Execution Interval - Determines metric calculation time interval.
  • Metrics Calculator Class Name ( Custom and SOQL Query type only ) - Class that implements Metrics.MetricsCalculator interface.
  • Group Name ( Custom and SOQL Query type only ) - Determines the group associated with new metric.
  • Parameters ( Custom type only ) - Additional parameters to be assed
  • Warning Threshold - Number of warnings before limit is reached.
  • Error Treshold - Number of error before limit is reached.
  • Default Limit - Default value that can be used during metric calculation to check for current state of custom limit.

To turn off metric that does not interest you simply head to Metrics search for the metric using search bar on any of the filtering options. Then simply choose a specific metric and from the multi menu button select Disable. Disable Metrics Disable Metrics


Breezz Metrics Calculator

Just as every other functionality in Breezz, Metrics also can be customized. For starters all custom solutions must include its own calculator, a class that extends the MetricsCalculator class. Breezz offers a template generator for purposes of your custom implementation. You can check it out in MetricsGenerate Metrics Calculator Code on the top right corner.

Metrics Calculator Metrics Calculator


Breezz Metrics Example

Metrics can be used to measure almost everything that is, will be or was related to your organization. Can be used as broadly or as specific as you might want. A simple example of that is measuring how many leads are created daily in your org. To accomplish this go to MetricsNew.

CountSOQLQuery Example CountSOQLQuery Example

New metric will have the type of Count SOQL Query and the interval value will be set to 12 hours. As for Metric Calculator Class we want to make sure it is set to forvendi.Metrics.CountQueryMetricsCalculator and create some recognizable group name that can be future proof. Query that we want to use is just count every lead record with createddate equal to today’s date. You can save it and make sure it’s deployed properly by searching it or using a filter on the type field.

Metrics Filter Metrics Filter