1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00
unleash.unleash/frontend/src/openapi/models/eventSchema.ts

36 lines
1.4 KiB
TypeScript
Raw Normal View History

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
*/
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';
/**
* An event describing something happening in the system
*/
2023-01-05 11:57:53 +01:00
export interface EventSchema {
/** The ID of the event. An increasing natural number. */
2023-01-05 11:57:53 +01:00
id: number;
/** The time the event happened as a RFC 3339-conformant timestamp. */
2023-01-05 11:57:53 +01:00
createdAt: string;
/** 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;
/** The feature toggle environment the event relates to, if applicable. */
2023-01-05 11:57:53 +01:00
environment?: string | null;
/** The project the event relates to, if applicable. */
2023-01-05 11:57:53 +01:00
project?: string | null;
/** The name of the feature toggle the event relates to, if applicable. */
2023-01-05 11:57:53 +01:00
featureName?: string | null;
/** 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;
/** Data relating to the previous state of the event's subject. */
2023-01-05 11:57:53 +01:00
preData?: EventSchemaPreData;
/** Any tags related to the event, if applicable. */
2023-01-05 11:57:53 +01:00
tags?: TagSchema[] | null;
}