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
|
2020-12-07 09:14:30 +00:00
|
|
|
export default class Proxy extends ServiceInstanceModel {
|
2020-11-09 17:29:12 +00:00
|
|
|
@attr('string') uid;
|
|
|
|
@attr('string') ID;
|
|
|
|
|
|
|
|
@attr('string') Datacenter;
|
|
|
|
@attr('string') Namespace;
|
|
|
|
@attr('string') ServiceName;
|
|
|
|
@attr('string') ServiceID;
|
|
|
|
@attr('string') Node;
|
|
|
|
@attr('number') SyncTime;
|
|
|
|
@attr() ServiceProxy; // {}
|
|
|
|
}
|