open-nomad/ui/app/models/job-plan.js
2019-04-22 16:40:00 -07:00

11 lines
368 B
JavaScript

import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import { fragmentArray } from 'ember-data-model-fragments/attributes';
import { hasMany } from 'ember-data/relationships';
export default Model.extend({
diff: attr(),
failedTGAllocs: fragmentArray('placement-failure', { defaultValue: () => [] }),
preemptions: hasMany('allocation'),
});