code: def metric(self, name, description, data_type, interval, keyed=False):
          
          from .tcex_metrics_v2 import TcExMetricsV2
  
          return TcExMetricsV2(self, name, description, data_type, interval, keyed)
docs: Get instance of the Metrics module.
  
          Args:
              name (string): The name for the metric.
              description (string): The description of the metric.
              data_type (string): The type of metric: Sum, Count, Min, Max, First, Last, and Average.
              interval (string): The metric interval: Hourly, Daily, Weekly, Monthly, and Yearly.
              keyed (boolean): Indicates whether the data will have a keyed value.
  
          Returns:
              (object): An instance of the Metrics Class.