open-nomad/ui/app/models/job-plan.js
2022-01-20 09:54:56 -05:00

12 lines
383 B
JavaScript

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