code: public static void setTableSlaEventMetadata(WorkUnit state, Table table, long updateTime, long lowWatermark,
        long beginGetWorkunitsTime) {
      state.setProp(SlaEventKeys.DATASET_URN_KEY, state.getProp(ConfigurationKeys.DATASET_URN_KEY));
      state.setProp(SlaEventKeys.PARTITION_KEY, table.getCompleteName());
      state.setProp(SlaEventKeys.UPSTREAM_TS_IN_MILLI_SECS_KEY, String.valueOf(updateTime));
  
      // Time when the workunit was created
      state.setProp(SlaEventKeys.ORIGIN_TS_IN_MILLI_SECS_KEY, System.currentTimeMillis());
      state.setProp(EventConstants.WORK_UNIT_CREATE_TIME, state.getProp(SlaEventKeys.ORIGIN_TS_IN_MILLI_SECS_KEY));
      state.setProp(EventConstants.BEGIN_GET_WORKUNITS_TIME, beginGetWorkunitsTime);
      state.setProp(SlaEventKeys.PREVIOUS_PUBLISH_TS_IN_MILLI_SECS_KEY, lowWatermark);
    }
docs: Set SLA event metadata in the workunit. The publisher will use this metadta to publish sla events