// Path: app-desktop/src/main/java/com/google/ce/media/contentuploader/utils/DateUtils.java
// public class DateUtils {
//   private static DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss").withZoneUTC();
// 
//   public static String now() {
//     return formatter.print(System.currentTimeMillis());
//   }
// 
//   public static String time(long millis) {
//     return formatter.print(millis);
//   }
// }


import com.google.ce.media.contentuploader.utils.DateUtils;
import com.google.cloud.storage.BlobInfo;
    this.timeTaken = timeTaken;
  }

  public enum Type {
    TASK,
    TASKLET,
    INTERMEDIATE,
    STATUS,
  }

  public enum Event {
    SINGLE_FILE_START,
    SINGLE_FILE_END,
    COMPOSITE_FILE_START,
    COMPOSITE_FILE_END,
    SEGMENT_START,
    SEGMENT_END,
    STITCH_START,
    STITCH_END,
    INFO,
    LOGIN,
    RETOKEN,
    COMPLETE,
    ERROR,
  }

  public static AnalyticsMessage from(TaskInfo taskInfo, Event event, String comment) {
    AnalyticsMessage message = new AnalyticsMessage();
    message.setGuid(taskInfo.getId());
    message.setType(Type.TASK);
// Path: app-desktop/src/main/java/com/google/ce/media/contentuploader/utils/DateUtils.java
// public class DateUtils {
//   private static DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss").withZoneUTC();
// 
//   public static String now() {
//     return formatter.print(System.currentTimeMillis());
//   }
// 
//   public static String time(long millis) {
//     return formatter.print(millis);
//   }
// }


// Path: app-desktop/src/main/java/com/google/ce/media/contentuploader/message/AnalyticsMessage.java
import com.google.ce.media.contentuploader.utils.DateUtils;
import com.google.cloud.storage.BlobInfo;

    this.timeTaken = timeTaken;
  }

  public enum Type {
    TASK,
    TASKLET,
    INTERMEDIATE,
    STATUS,
  }

  public enum Event {
    SINGLE_FILE_START,
    SINGLE_FILE_END,
    COMPOSITE_FILE_START,
    COMPOSITE_FILE_END,
    SEGMENT_START,
    SEGMENT_END,
    STITCH_START,
    STITCH_END,
    INFO,
    LOGIN,
    RETOKEN,
    COMPLETE,
    ERROR,
  }

  public static AnalyticsMessage from(TaskInfo taskInfo, Event event, String comment) {
    AnalyticsMessage message = new AnalyticsMessage();
    message.setGuid(taskInfo.getId());
    message.setType(Type.TASK);
    message.timestamp = DateUtils.now();