open-nomad/ui/app/models/task-event.js
2023-04-10 15:36:59 +00:00

22 lines
489 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Fragment from 'ember-data-model-fragments/fragment';
import { attr } from '@ember-data/model';
import { fragmentOwner } from 'ember-data-model-fragments/attributes';
export default class TaskEvent extends Fragment {
@fragmentOwner() state;
@attr('string') type;
@attr('number') signal;
@attr('number') exitCode;
@attr('date') time;
@attr('number') timeNanos;
@attr('string') message;
}