open-nomad/ui/app/models/resources.js

14 lines
478 B
JavaScript
Raw Normal View History

import { attr } from '@ember-data/model';
2017-09-19 14:47:10 +00:00
import Fragment from 'ember-data-model-fragments/fragment';
import { fragmentArray } from 'ember-data-model-fragments/attributes';
export default class Resources extends Fragment {
@attr('number') cpu;
@attr('number') memory;
@attr('number') memoryMax;
@attr('number') disk;
@attr('number') iops;
@fragmentArray('network', { defaultValue: () => [] }) networks;
@fragmentArray('port', { defaultValue: () => [] }) ports;
}