open-nomad/ui/app/models/node-event.js
2018-05-25 11:48:49 -07:00

16 lines
412 B
JavaScript

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 Fragment.extend({
node: fragmentOwner(),
message: attr('string'),
subsystem: attr('string'),
details: attr(),
time: attr('date'),
driver: alias('details.driver'),
});