mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
feat(1-3267): fix type, uncomment conversion
This commit is contained in:
parent
26f7eb0ca4
commit
d087749e5b
@ -65,16 +65,14 @@ export type SegmentedSchema = {
|
||||
apiData: [
|
||||
{
|
||||
apiPath: string;
|
||||
dataPoints: {
|
||||
dataPoints: Array<{
|
||||
// other options: period? time? interval? for?
|
||||
when: string; // in API: string formatted as full date or YYYY-MM, depending on monthly/daily
|
||||
trafficTypes: [
|
||||
{
|
||||
group: string; // we could do 'successful-requests', but that might constrain us in the future
|
||||
count: number; // natural number
|
||||
},
|
||||
];
|
||||
}[];
|
||||
trafficTypes: Array<{
|
||||
group: string; // we could do 'successful-requests', but that might constrain us in the future
|
||||
count: number; // natural number
|
||||
}>;
|
||||
}>;
|
||||
},
|
||||
];
|
||||
};
|
||||
@ -94,8 +92,7 @@ export type InstanceTrafficMetricsResponse2 = {
|
||||
export const useInstanceTrafficMetrics2 = (
|
||||
selection: ChartDataSelection,
|
||||
): InstanceTrafficMetricsResponse2 => {
|
||||
// const { from, to } = fromSelection(selection);
|
||||
// console.log('would use these from and to dates', from, to);
|
||||
const { from, to } = fromSelection(selection);
|
||||
|
||||
const apiPath =
|
||||
selection.format === 'daily'
|
||||
|
Loading…
Reference in New Issue
Block a user