2020-07-28 04:26:17 +00:00
|
|
|
import { computed } from '@ember/object';
|
2020-07-24 04:39:50 +00:00
|
|
|
import Fragment from 'ember-data-model-fragments/fragment';
|
2021-02-17 21:01:44 +00:00
|
|
|
import { attr } from '@ember-data/model';
|
2020-07-24 04:39:50 +00:00
|
|
|
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;
|
2020-07-28 04:26:17 +00:00
|
|
|
|
2021-02-17 21:01:44 +00:00
|
|
|
@computed.reads('events.length')
|
2020-07-28 04:26:17 +00:00
|
|
|
isVisible;
|
2020-07-24 04:39:50 +00:00
|
|
|
}
|