github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/app/models/job-plan.js (about) 1 import Model from 'ember-data/model'; 2 import attr from 'ember-data/attr'; 3 import { fragmentArray } from 'ember-data-model-fragments/attributes'; 4 import { hasMany } from 'ember-data/relationships'; 5 6 export default Model.extend({ 7 diff: attr(), 8 failedTGAllocs: fragmentArray('placement-failure', { defaultValue: () => [] }), 9 preemptions: hasMany('allocation'), 10 });