dltsTrialJobDetail.ts 723 Bytes
Newer Older
George Cheng's avatar
George Cheng committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import {
  TrialJobDetail,
  TrialJobStatus,
  TrialJobApplicationForm
} from "../../common/trainingService";

export class DLTSTrialJobDetail implements TrialJobDetail {
  public startTime?: number;
  public endTime?: number;
  public tags?: string[];
  public url?: string;
  public isEarlyStopped?: boolean;

  // DLTS staff
  public dltsJobId?: string;
  public dltsPaused: boolean = false;

  public constructor (
    public id: string,
    public status: TrialJobStatus,
    public submitTime: number,
    public workingDirectory: string,
    public form: TrialJobApplicationForm,

    // DLTS staff
    public dltsJobName: string,
  ) {}
}