open-nomad/ui/app/models/resources.js
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

12 lines
368 B
JavaScript

import attr from 'ember-data/attr';
import Fragment from 'ember-data-model-fragments/fragment';
import { fragmentArray } from 'ember-data-model-fragments/attributes';
export default Fragment.extend({
cpu: attr('number'),
memory: attr('number'),
disk: attr('number'),
iops: attr('number'),
networks: fragmentArray('network', { defaultValue: () => [] }),
});