public Config getConfig() {
    return new MapConfig((Map<String, String>) getFromMetricsMessage(GROUP_NAME_FOR_DIAGNOSTICS_MANAGER, CONFIG_METRIC_NAME));
  }
This method gets the config of the job from the MetricsMessage.
@return the config of the job.
samza-core/src/main/scala/org/apache/samza/diagnostics/DiagnosticsStreamMessage.java