25 lines
574 B
JavaScript
25 lines
574 B
JavaScript
import { computed } from '@ember/object';
|
|
import Fragment from 'ember-data-model-fragments/fragment';
|
|
import { attr } from '@ember-data/model';
|
|
import {
|
|
fragmentOwner,
|
|
fragmentArray,
|
|
} from 'ember-data-model-fragments/attributes';
|
|
|
|
export default class TaskGroupScale extends Fragment {
|
|
@fragmentOwner() jobScale;
|
|
|
|
@attr('string') name;
|
|
|
|
@attr('number') desired;
|
|
@attr('number') placed;
|
|
@attr('number') running;
|
|
@attr('number') healthy;
|
|
@attr('number') unhealthy;
|
|
|
|
@fragmentArray('scale-event') events;
|
|
|
|
@computed.reads('events.length')
|
|
isVisible;
|
|
}
|