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';
|
|
|
|
|
2023-04-18 10:42:32 +02:00
|
|
|
/**
|
|
|
|
* Used for reporting feature evaluation results from SDKs
|
|
|
|
*/
|
2023-03-10 09:36:31 +01:00
|
|
|
export interface ClientMetricsEnvSchema {
|
2023-04-18 10:42:32 +02:00
|
|
|
/** Name of the feature checked by the SDK */
|
2023-03-10 09:36:31 +01:00
|
|
|
featureName: string;
|
2023-04-18 10:42:32 +02:00
|
|
|
/** The name of the application the SDK is being used in */
|
2023-03-10 09:36:31 +01:00
|
|
|
appName: string;
|
2023-04-18 10:42:32 +02:00
|
|
|
/** 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;
|
2023-04-18 10:42:32 +02:00
|
|
|
/** How many times the toggle evaluated to true */
|
2023-03-10 09:36:31 +01:00
|
|
|
yes?: number;
|
2023-04-18 10:42:32 +02:00
|
|
|
/** How many times the toggle evaluated to false */
|
2023-03-10 09:36:31 +01:00
|
|
|
no?: number;
|
2023-04-18 10:42:32 +02:00
|
|
|
/** How many times each variant was returned */
|
2023-03-10 09:36:31 +01:00
|
|
|
variants?: ClientMetricsEnvSchemaVariants;
|
|
|
|
[key: string]: any;
|
|
|
|
}
|