public void writeMetricToIoTDB(IMetric metric, String name, long time, String... tags) {
    if (!(metric instanceof DoNothingMetric)) {
      Map<String, Object> values = new HashMap<>();
      metric.constructValueMap(values);
      writeMetricToIoTDB(values, IoTDBMetricsUtils.generatePath(name, tags), time);
    }
  }
Write metric into IoTDB.

@param metric the target metric
@param name the name of metric
@param time the target time of metric
@param tags the tags of metric
iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/reporter/iotdb/IoTDBReporter.java