code: public static ID generateMetricInstanceId(String feedId, ID resourceId, MetricType<?> metricType) {
          ID id = new ID(String.format("MI~R~[%s/%s]~MT~%s", feedId, resourceId, metricType.getID()));
          return id;
      }
docs: Generates an ID for an {@link MetricInstance}.
  
  @param resource the resource that owns the MetricInstance
  @param metricType the type of the MetricInstance whose ID is being generated
  
  @return the ID