1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/openapi/models/clientMetricsEnvSchema.ts

29 lines
974 B
TypeScript
Raw Normal View History

2023-03-10 09:36:31 +01:00
/**
2023-03-15 13:30:07 +01:00
* Generated by Orval
2023-03-10 09:36:31 +01:00
* Do not edit manually.
2023-03-15 13:30:07 +01:00
* See `gen:api` script in package.json
2023-03-10 09:36:31 +01:00
*/
import type { DateSchema } from './dateSchema';
import type { ClientMetricsEnvSchemaVariants } from './clientMetricsEnvSchemaVariants';
/**
* Used for reporting feature evaluation results from SDKs
*/
2023-03-10 09:36:31 +01:00
export interface ClientMetricsEnvSchema {
/** Name of the feature checked by the SDK */
2023-03-10 09:36:31 +01:00
featureName: string;
/** The name of the application the SDK is being used in */
2023-03-10 09:36:31 +01:00
appName: string;
/** Which environment the SDK is being used in */
environment: string;
/** The start of the time window these metrics are valid for. The window is 1 hour wide */
2023-03-10 09:36:31 +01:00
timestamp?: DateSchema;
/** How many times the toggle evaluated to true */
2023-03-10 09:36:31 +01:00
yes?: number;
/** How many times the toggle evaluated to false */
2023-03-10 09:36:31 +01:00
no?: number;
/** How many times each variant was returned */
2023-03-10 09:36:31 +01:00
variants?: ClientMetricsEnvSchemaVariants;
[key: string]: any;
}