2020-12-14 15:28:35 +00:00
|
|
|
import { attr } from '@ember-data/model';
|
2020-12-07 09:14:30 +00:00
|
|
|
import ServiceInstanceModel from './service-instance';
|
2019-02-21 13:10:53 +00:00
|
|
|
|
|
|
|
export const PRIMARY_KEY = 'uid';
|
2020-08-11 16:53:45 +00:00
|
|
|
export const SLUG_KEY = 'Node,ServiceID';
|
2020-11-09 17:29:12 +00:00
|
|
|
|
|
|
|
// TODO: This should be changed to ProxyInstance
|
2022-01-07 19:16:21 +00:00
|
|
|
export default class ProxyServiceInstance extends ServiceInstanceModel {
|
2020-11-09 17:29:12 +00:00
|
|
|
@attr('string') uid;
|
|
|
|
@attr('string') ID;
|
|
|
|
|
|
|
|
@attr('string') Datacenter;
|
|
|
|
@attr('string') Namespace;
|
2021-10-19 11:31:30 +00:00
|
|
|
@attr('string') Partition;
|
|
|
|
|
2020-11-09 17:29:12 +00:00
|
|
|
@attr('string') ServiceName;
|
|
|
|
@attr('string') ServiceID;
|
2021-01-12 14:53:21 +00:00
|
|
|
@attr('string') NodeName;
|
2020-11-09 17:29:12 +00:00
|
|
|
@attr('number') SyncTime;
|
|
|
|
@attr() ServiceProxy; // {}
|
|
|
|
}
|