open-nomad/ui/app/models/node-event.js

16 lines
427 B
JavaScript
Raw Normal View History

import { alias } from '@ember/object/computed';
import Fragment from 'ember-data-model-fragments/fragment';
import attr from 'ember-data/attr';
import { fragmentOwner } from 'ember-data-model-fragments/attributes';
export default class NodeEvent extends Fragment {
@fragmentOwner() node;
@attr('string') message;
@attr('string') subsystem;
@attr() details;
@attr('date') time;
@alias('details.driver') driver;
}