mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-22 01:16:07 +02:00
Provides store method for retrieving traffic usage data based on period parameter, and UI + ui hook with the new chart for displaying traffic usage data spread out over selectable month.  In this PR we copied and adapted a plugin written by DX for highlighting a column in the chart:  There are some minor improvements planned which will come in a separate PR, reversing the order in legend and tooltip so the colors go from light to dark, and adding a month -sum below the legend ## Discussion points - Should any of this be extracted as a separate reusable component? --------- Co-authored-by: Nuno Góis <github@nunogois.com>
17 lines
526 B
TypeScript
17 lines
526 B
TypeScript
/**
|
|
* Generated by Orval
|
|
* Do not edit manually.
|
|
* See `gen:api` script in package.json
|
|
*/
|
|
import type { TrafficUsageApiDataSchema } from './trafficUsageApiDataSchema';
|
|
|
|
/**
|
|
* Contains the recorded data usage for each API path, segmented by day and type of traffic
|
|
*/
|
|
export interface TrafficUsageDataSegmentedSchema {
|
|
/** Contains the recorded daily data usage for each API path */
|
|
apiData: TrafficUsageApiDataSchema[];
|
|
/** The year-month period for which the data usage is counted */
|
|
period: string;
|
|
}
|