mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
4230fc98ed
* New metric tab if environment flag is active * Prepare new metrics tab - need styling help!!
65 lines
1.2 KiB
TypeScript
65 lines
1.2 KiB
TypeScript
import { IFeatureStrategy } from './strategy';
|
|
|
|
export interface IFeatureToggleListItem {
|
|
type: string;
|
|
name: string;
|
|
environments: IEnvironments[];
|
|
}
|
|
|
|
export interface IEnvironments {
|
|
name: string;
|
|
enabled: boolean;
|
|
}
|
|
|
|
export interface IFeatureToggle {
|
|
stale: boolean;
|
|
archived: boolean;
|
|
createdAt: string;
|
|
lastSeenAt: Date;
|
|
description: string;
|
|
environments: IFeatureEnvironment[];
|
|
name: string;
|
|
project: string;
|
|
type: string;
|
|
variants: IFeatureVariant[];
|
|
}
|
|
|
|
export interface IFeatureEnvironment {
|
|
name: string;
|
|
enabled: boolean;
|
|
strategies: IFeatureStrategy[];
|
|
}
|
|
|
|
export interface IFeatureVariant {
|
|
name: string;
|
|
stickiness: string;
|
|
weight: number;
|
|
weightType: string;
|
|
overrides: IOverride[];
|
|
payload?: IPayload;
|
|
}
|
|
|
|
export interface IOverride {
|
|
contextName: string;
|
|
values: string[];
|
|
}
|
|
|
|
export interface IPayload {
|
|
name: string;
|
|
value: string;
|
|
}
|
|
|
|
export interface IFeatureEnvironmentMetrics {
|
|
environment: string;
|
|
timestamp: string;
|
|
yes: number;
|
|
no: number;
|
|
}
|
|
|
|
export interface IFeatureMetrics {
|
|
version: number;
|
|
maturity: string;
|
|
lastHourUsage: IFeatureEnvironmentMetrics[],
|
|
seenApplications: string[]
|
|
}
|