mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-10 01:16:39 +02:00
This PR adds stale flag count to the project status payload. This is useful for the project status page to show the number of stale flags in the project.
31 lines
1.3 KiB
TypeScript
31 lines
1.3 KiB
TypeScript
/**
|
||
* Generated by Orval
|
||
* Do not edit manually.
|
||
* See `gen:api` script in package.json
|
||
*/
|
||
import type { ProjectActivitySchema } from './projectActivitySchema';
|
||
import type { ProjectStatusSchemaLifecycleSummary } from './projectStatusSchemaLifecycleSummary';
|
||
import type { ProjectStatusSchemaResources } from './projectStatusSchemaResources';
|
||
|
||
/**
|
||
* Schema representing the overall status of a project, including an array of activity records. Each record in the activity array contains a date and a count, providing a snapshot of the project’s activity level over time.
|
||
*/
|
||
export interface ProjectStatusSchema {
|
||
/** Array of activity records with date and count, representing the project’s daily activity statistics. */
|
||
activityCountByDate: ProjectActivitySchema;
|
||
/**
|
||
* The average health score over the last 4 weeks, indicating whether features are stale or active.
|
||
* @minimum 0
|
||
*/
|
||
averageHealth: number;
|
||
/** Feature flag lifecycle statistics for this project. */
|
||
lifecycleSummary: ProjectStatusSchemaLifecycleSummary;
|
||
/** Key resources within the project */
|
||
resources: ProjectStatusSchemaResources;
|
||
/** Information on stale and potentially stale flags in this project. */
|
||
staleFlags: {
|
||
/** The total number of flags in this project that are stale or potentially stale. */
|
||
total: number;
|
||
};
|
||
}
|