2023-01-05 11:57:53 +01:00
|
|
|
/**
|
2023-03-15 13:30:07 +01:00
|
|
|
* Generated by Orval
|
2023-01-05 11:57:53 +01:00
|
|
|
* Do not edit manually.
|
2023-03-15 13:30:07 +01:00
|
|
|
* See `gen:api` script in package.json
|
2023-01-05 11:57:53 +01:00
|
|
|
*/
|
2023-07-20 12:59:55 +02:00
|
|
|
import type { EventSchemaType } from './eventSchemaType';
|
2023-01-05 11:57:53 +01:00
|
|
|
import type { EventSchemaData } from './eventSchemaData';
|
|
|
|
import type { EventSchemaPreData } from './eventSchemaPreData';
|
|
|
|
import type { TagSchema } from './tagSchema';
|
|
|
|
|
2023-07-20 12:59:55 +02:00
|
|
|
/**
|
|
|
|
* An event describing something happening in the system
|
|
|
|
*/
|
2023-01-05 11:57:53 +01:00
|
|
|
export interface EventSchema {
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The ID of the event. An increasing natural number. */
|
2023-01-05 11:57:53 +01:00
|
|
|
id: number;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The time the event happened as a RFC 3339-conformant timestamp. */
|
2023-01-05 11:57:53 +01:00
|
|
|
createdAt: string;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** What [type](https://docs.getunleash.io/reference/api/legacy/unleash/admin/events#event-type-description) of event this is */
|
|
|
|
type: EventSchemaType;
|
|
|
|
/** Which user created this event */
|
2023-01-05 11:57:53 +01:00
|
|
|
createdBy: string;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The feature toggle environment the event relates to, if applicable. */
|
2023-01-05 11:57:53 +01:00
|
|
|
environment?: string | null;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The project the event relates to, if applicable. */
|
2023-01-05 11:57:53 +01:00
|
|
|
project?: string | null;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The name of the feature toggle the event relates to, if applicable. */
|
2023-01-05 11:57:53 +01:00
|
|
|
featureName?: string | null;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** Extra associated data related to the event, such as feature toggle state, segment configuration, etc., if applicable. */
|
2023-01-05 11:57:53 +01:00
|
|
|
data?: EventSchemaData;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** Data relating to the previous state of the event's subject. */
|
2023-01-05 11:57:53 +01:00
|
|
|
preData?: EventSchemaPreData;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** Any tags related to the event, if applicable. */
|
2023-01-05 11:57:53 +01:00
|
|
|
tags?: TagSchema[] | null;
|
|
|
|
}
|