unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
72 lines (71 loc) • 2.78 kB
TypeScript
import { FromSchema } from 'json-schema-to-ts';
export declare const proxyMetricsSchema: {
readonly $id: "#/components/schemas/proxyMetricsSchema";
readonly type: "object";
readonly required: readonly ["appName", "instanceId", "bucket"];
readonly properties: {
readonly appName: {
readonly type: "string";
};
readonly instanceId: {
readonly type: "string";
};
readonly environment: {
readonly type: "string";
};
readonly bucket: {
readonly type: "object";
readonly required: readonly ["start", "stop", "toggles"];
readonly properties: {
readonly start: {
readonly type: "string";
readonly format: "date-time";
};
readonly stop: {
readonly type: "string";
readonly format: "date-time";
};
readonly toggles: {
readonly type: "object";
readonly example: {
readonly myCoolToggle: {
readonly yes: 25;
readonly no: 42;
readonly variants: {
readonly blue: 6;
readonly green: 15;
readonly red: 46;
};
};
readonly myOtherToggle: {
readonly yes: 0;
readonly no: 100;
};
};
readonly additionalProperties: {
readonly type: "object";
readonly properties: {
readonly yes: {
readonly type: "integer";
readonly minimum: 0;
};
readonly no: {
readonly type: "integer";
readonly minimum: 0;
};
readonly variants: {
readonly type: "object";
readonly additionalProperties: {
readonly type: "integer";
readonly minimum: 0;
};
};
};
};
};
};
};
};
readonly components: {};
};
export declare type ProxyMetricsSchema = FromSchema<typeof proxyMetricsSchema>;