1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/services/client-metrics/models.ts
Christopher Kolstad 32399291e0
task: add OpenApi spec to metrics route (#1725)
* task: add OpenApi spec to metrics route
2022-06-21 09:12:40 +02:00

30 lines
641 B
TypeScript

import { IClientInstance } from '../../types/stores/client-instance-store';
export interface IYesNoCount {
yes: number;
no: number;
}
export interface IAppInstance {
appName: string;
instanceId: string;
sdkVersion: string;
clientIp: string;
lastSeen: Date;
createdAt: Date;
}
export interface IApplication {
appName: string;
sdkVersion?: string;
strategies?: string[] | any[];
description?: string;
url?: string;
color?: string;
icon?: string;
createdAt?: Date;
instances?: IClientInstance[];
seenToggles?: Record<string, any>;
links?: Record<string, string>;
}