diff options
-rw-r--r-- | OWNERS | 5 | ||||
-rw-r--r-- | gae/frontend/src/app/menu/device/device.component.html | 6 | ||||
-rw-r--r-- | gae/frontend/src/app/menu/device/device.component.ts | 1 | ||||
-rw-r--r-- | gae/frontend/src/app/model/device.ts | 1 | ||||
-rw-r--r-- | gae/index.yaml | 7 | ||||
-rw-r--r-- | gae/webapp/src/proto/model.py | 1 |
6 files changed, 20 insertions, 1 deletions
@@ -1,2 +1,5 @@ yim@google.com - +dchon@google.com +hyunwooko@google.com +jongmok@google.com +younggyu@google.com diff --git a/gae/frontend/src/app/menu/device/device.component.html b/gae/frontend/src/app/menu/device/device.component.html index 2ff28f4..b36491e 100644 --- a/gae/frontend/src/app/menu/device/device.component.html +++ b/gae/frontend/src/app/menu/device/device.component.html @@ -59,6 +59,12 @@ <mat-cell *matCellDef="let device"> {{device.device_equipment ? device.device_equipment.join(", ") : "None"}} </mat-cell> </ng-container> + <!-- Timestamp Column --> + <ng-container matColumnDef="timestamp"> + <mat-header-cell *matHeaderCellDef>Timestamp</mat-header-cell> + <mat-cell *matCellDef="let device">{{getRelativeTime(device.timestamp)}}</mat-cell> + </ng-container> + <mat-header-row *matHeaderRowDef="columnTitles"></mat-header-row> <mat-row *matRowDef="let row; columns: columnTitles;"></mat-row> </mat-table> diff --git a/gae/frontend/src/app/menu/device/device.component.ts b/gae/frontend/src/app/menu/device/device.component.ts index 2fc9a72..6258aed 100644 --- a/gae/frontend/src/app/menu/device/device.component.ts +++ b/gae/frontend/src/app/menu/device/device.component.ts @@ -41,6 +41,7 @@ export class DeviceComponent extends MenuBaseClass implements OnInit { 'status', 'scheduling_status', 'device_equipment', + 'timestamp', ]; dataSource = new MatTableDataSource<Device>(); pageEvent: PageEvent; diff --git a/gae/frontend/src/app/model/device.ts b/gae/frontend/src/app/model/device.ts index 3a6394b..21fdfb7 100644 --- a/gae/frontend/src/app/model/device.ts +++ b/gae/frontend/src/app/model/device.ts @@ -20,4 +20,5 @@ export class Device { scheduling_status: number = void 0; hostname: string = void 0; device_equipment: string[] = void 0; + timestamp: any = void 0; } diff --git a/gae/index.yaml b/gae/index.yaml index cfd8753..edde291 100644 --- a/gae/index.yaml +++ b/gae/index.yaml @@ -93,6 +93,7 @@ indexes: - name: test_pab_account_id - name: infra_log_url - name: timestamp + direction: desc - name: parent_schedule - name: test_type - name: require_signed_device_build @@ -103,3 +104,9 @@ indexes: - name: report_spreadsheet_id - name: report_persistent_url - name: report_reference_url + +- kind: JobModel + properties: + - name: hostname + - name: timestamp + direction: desc
\ No newline at end of file diff --git a/gae/webapp/src/proto/model.py b/gae/webapp/src/proto/model.py index 7682ca1..1b24154 100644 --- a/gae/webapp/src/proto/model.py +++ b/gae/webapp/src/proto/model.py @@ -238,6 +238,7 @@ class DeviceInfoMessage(messages.Message): scheduling_status = messages.IntegerField(4) hostname = messages.StringField(5) device_equipment = messages.StringField(6, repeated=True) + timestamp = message_types.DateTimeField(7) class HostInfoMessage(messages.Message): |