@harnessio/react-ccm-service-client 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ccm-service/src/services/hooks/useRecommendationLifecycleStatsMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useRecommendationLifecycleStatsMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useTopCloudAccountGovernanceSavingsMutation.d.ts +23 -0
- package/dist/ccm-service/src/services/hooks/useTopCloudAccountGovernanceSavingsMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useTotalRealisedSavingsTimeSeriesMutation.d.ts +23 -0
- package/dist/ccm-service/src/services/hooks/useTotalRealisedSavingsTimeSeriesMutation.js +14 -0
- package/dist/ccm-service/src/services/index.d.ts +15 -0
- package/dist/ccm-service/src/services/index.js +3 -0
- package/dist/ccm-service/src/services/schemas/CloudAccountGovernanceSavingsDto.d.ts +28 -0
- package/dist/ccm-service/src/services/schemas/CloudAccountGovernanceSavingsDto.js +4 -0
- package/dist/ccm-service/src/services/schemas/GovernanceAwsSettings.d.ts +1 -1
- package/dist/ccm-service/src/services/schemas/GovernanceAzureSettings.d.ts +1 -1
- package/dist/ccm-service/src/services/schemas/GovernanceGcpSettings.d.ts +1 -0
- package/dist/ccm-service/src/services/schemas/GovernanceSavingsTimeSeriesDto.d.ts +14 -0
- package/dist/ccm-service/src/services/schemas/GovernanceSavingsTimeSeriesDto.js +1 -0
- package/dist/ccm-service/src/services/schemas/LifecycleBucketStats.d.ts +10 -0
- package/dist/ccm-service/src/services/schemas/LifecycleBucketStats.js +4 -0
- package/dist/ccm-service/src/services/schemas/RecommendationLifecycleStatsDto.d.ts +11 -0
- package/dist/ccm-service/src/services/schemas/RecommendationLifecycleStatsDto.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoGovernanceSavingsTimeSeriesDto.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoGovernanceSavingsTimeSeriesDto.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoRecommendationLifecycleStatsDto.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoRecommendationLifecycleStatsDto.js +1 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoTopCloudAccountGovernanceSavingsDto.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoTopCloudAccountGovernanceSavingsDto.js +1 -0
- package/dist/ccm-service/src/services/schemas/TimeBucketSavingsDto.d.ts +15 -0
- package/dist/ccm-service/src/services/schemas/TimeBucketSavingsDto.js +4 -0
- package/dist/ccm-service/src/services/schemas/TopCloudAccountGovernanceSavingsDto.d.ts +10 -0
- package/dist/ccm-service/src/services/schemas/TopCloudAccountGovernanceSavingsDto.js +1 -0
- package/dist/ccm-service/src/services/schemas/UnitMetricListDto.d.ts +2 -2
- package/dist/ccm-service/src/services/schemas/UnitMetricRequestDto.d.ts +2 -2
- package/dist/ccm-service/src/services/schemas/UnitMetricResponseDto.d.ts +2 -2
- package/dist/ccm-service/src/services/schemas/ViewParams.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoRecommendationLifecycleStatsDto } from '../schemas/ResponseDtoRecommendationLifecycleStatsDto';
|
|
5
|
+
import type { CcmRecommendationFilterProperties } from '../schemas/CcmRecommendationFilterProperties';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface RecommendationLifecycleStatsMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type RecommendationLifecycleStatsRequestBody = CcmRecommendationFilterProperties;
|
|
12
|
+
export type RecommendationLifecycleStatsOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type RecommendationLifecycleStatsErrorResponse = Failure | Error | ResponseDtoRecommendationLifecycleStatsDto;
|
|
14
|
+
export interface RecommendationLifecycleStatsProps extends Omit<FetcherOptions<RecommendationLifecycleStatsMutationQueryParams, RecommendationLifecycleStatsRequestBody>, 'url'> {
|
|
15
|
+
queryParams: RecommendationLifecycleStatsMutationQueryParams;
|
|
16
|
+
body: RecommendationLifecycleStatsRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function recommendationLifecycleStats(props: RecommendationLifecycleStatsProps): Promise<RecommendationLifecycleStatsOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns lifecycle & adoption statistics (generated, applied, inferred and ignored buckets plus conversion rate) for the recommendations matching the specified filters.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useRecommendationLifecycleStatsMutation(options?: Omit<UseMutationOptions<RecommendationLifecycleStatsOkResponse, RecommendationLifecycleStatsErrorResponse, RecommendationLifecycleStatsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RecommendationLifecycleStatsOkResponse, RecommendationLifecycleStatsErrorResponse, RecommendationLifecycleStatsProps, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function recommendationLifecycleStats(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/recommendations/v2/lifecycle-stats`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns lifecycle & adoption statistics (generated, applied, inferred and ignored buckets plus conversion rate) for the recommendations matching the specified filters.
|
|
11
|
+
*/
|
|
12
|
+
export function useRecommendationLifecycleStatsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => recommendationLifecycleStats(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoTopCloudAccountGovernanceSavingsDto } from '../schemas/ResponseDtoTopCloudAccountGovernanceSavingsDto';
|
|
5
|
+
import type { CcmTimeFilter } from '../schemas/CcmTimeFilter';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface TopCloudAccountGovernanceSavingsMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
cloudProvider?: Array<'AWS' | 'AZURE' | 'GCP'>;
|
|
11
|
+
}
|
|
12
|
+
export type TopCloudAccountGovernanceSavingsRequestBody = CcmTimeFilter[];
|
|
13
|
+
export type TopCloudAccountGovernanceSavingsOkResponse = ResponseWithPagination<unknown>;
|
|
14
|
+
export type TopCloudAccountGovernanceSavingsErrorResponse = Failure | Error | ResponseDtoTopCloudAccountGovernanceSavingsDto;
|
|
15
|
+
export interface TopCloudAccountGovernanceSavingsProps extends Omit<FetcherOptions<TopCloudAccountGovernanceSavingsMutationQueryParams, TopCloudAccountGovernanceSavingsRequestBody>, 'url'> {
|
|
16
|
+
queryParams: TopCloudAccountGovernanceSavingsMutationQueryParams;
|
|
17
|
+
body: TopCloudAccountGovernanceSavingsRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function topCloudAccountGovernanceSavings(props: TopCloudAccountGovernanceSavingsProps): Promise<TopCloudAccountGovernanceSavingsOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Return top cloud accounts by combined governance recommendation savings.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useTopCloudAccountGovernanceSavingsMutation(options?: Omit<UseMutationOptions<TopCloudAccountGovernanceSavingsOkResponse, TopCloudAccountGovernanceSavingsErrorResponse, TopCloudAccountGovernanceSavingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TopCloudAccountGovernanceSavingsOkResponse, TopCloudAccountGovernanceSavingsErrorResponse, TopCloudAccountGovernanceSavingsProps, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function topCloudAccountGovernanceSavings(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/governance/overview/topCloudAccountGovernanceSavings`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Return top cloud accounts by combined governance recommendation savings.
|
|
11
|
+
*/
|
|
12
|
+
export function useTopCloudAccountGovernanceSavingsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => topCloudAccountGovernanceSavings(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoGovernanceSavingsTimeSeriesDto } from '../schemas/ResponseDtoGovernanceSavingsTimeSeriesDto';
|
|
5
|
+
import type { CcmTimeFilter } from '../schemas/CcmTimeFilter';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface TotalRealisedSavingsTimeSeriesMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
cloudProvider?: Array<'AWS' | 'AZURE' | 'GCP'>;
|
|
11
|
+
}
|
|
12
|
+
export type TotalRealisedSavingsTimeSeriesRequestBody = CcmTimeFilter[];
|
|
13
|
+
export type TotalRealisedSavingsTimeSeriesOkResponse = ResponseWithPagination<unknown>;
|
|
14
|
+
export type TotalRealisedSavingsTimeSeriesErrorResponse = Failure | Error | ResponseDtoGovernanceSavingsTimeSeriesDto;
|
|
15
|
+
export interface TotalRealisedSavingsTimeSeriesProps extends Omit<FetcherOptions<TotalRealisedSavingsTimeSeriesMutationQueryParams, TotalRealisedSavingsTimeSeriesRequestBody>, 'url'> {
|
|
16
|
+
queryParams: TotalRealisedSavingsTimeSeriesMutationQueryParams;
|
|
17
|
+
body: TotalRealisedSavingsTimeSeriesRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function totalRealisedSavingsTimeSeries(props: TotalRealisedSavingsTimeSeriesProps): Promise<TotalRealisedSavingsTimeSeriesOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Return total realised savings time series, bucketed by day/week/month.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useTotalRealisedSavingsTimeSeriesMutation(options?: Omit<UseMutationOptions<TotalRealisedSavingsTimeSeriesOkResponse, TotalRealisedSavingsTimeSeriesErrorResponse, TotalRealisedSavingsTimeSeriesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TotalRealisedSavingsTimeSeriesOkResponse, TotalRealisedSavingsTimeSeriesErrorResponse, TotalRealisedSavingsTimeSeriesProps, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function totalRealisedSavingsTimeSeries(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/governance/overview/totalRealisedSavingsTimeSeries`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Return total realised savings time series, bucketed by day/week/month.
|
|
11
|
+
*/
|
|
12
|
+
export function useTotalRealisedSavingsTimeSeriesMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => totalRealisedSavingsTimeSeries(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -391,6 +391,8 @@ export type { RecommendationFilterValuesErrorResponse, RecommendationFilterValue
|
|
|
391
391
|
export { recommendationFilterValues, useRecommendationFilterValuesMutation, } from './hooks/useRecommendationFilterValuesMutation';
|
|
392
392
|
export type { RecommendationHealthErrorResponse, RecommendationHealthOkResponse, RecommendationHealthProps, RecommendationHealthQueryQueryParams, } from './hooks/useRecommendationHealthQuery';
|
|
393
393
|
export { recommendationHealth, useRecommendationHealthQuery, } from './hooks/useRecommendationHealthQuery';
|
|
394
|
+
export type { RecommendationLifecycleStatsErrorResponse, RecommendationLifecycleStatsMutationQueryParams, RecommendationLifecycleStatsOkResponse, RecommendationLifecycleStatsProps, RecommendationLifecycleStatsRequestBody, } from './hooks/useRecommendationLifecycleStatsMutation';
|
|
395
|
+
export { recommendationLifecycleStats, useRecommendationLifecycleStatsMutation, } from './hooks/useRecommendationLifecycleStatsMutation';
|
|
394
396
|
export type { RecommendationResourceTypeStatsErrorResponse, RecommendationResourceTypeStatsMutationQueryParams, RecommendationResourceTypeStatsOkResponse, RecommendationResourceTypeStatsProps, RecommendationResourceTypeStatsRequestBody, } from './hooks/useRecommendationResourceTypeStatsMutation';
|
|
395
397
|
export { recommendationResourceTypeStats, useRecommendationResourceTypeStatsMutation, } from './hooks/useRecommendationResourceTypeStatsMutation';
|
|
396
398
|
export type { RecommendationStatsErrorResponse, RecommendationStatsMutationQueryParams, RecommendationStatsOkResponse, RecommendationStatsProps, RecommendationStatsRequestBody, } from './hooks/useRecommendationStatsMutation';
|
|
@@ -421,6 +423,8 @@ export type { ToggleForRecommendationErrorResponse, ToggleForRecommendationMutat
|
|
|
421
423
|
export { toggleForRecommendation, useToggleForRecommendationMutation, } from './hooks/useToggleForRecommendationMutation';
|
|
422
424
|
export type { ToggleGovernanceAlertRuleErrorResponse, ToggleGovernanceAlertRuleMutationQueryParams, ToggleGovernanceAlertRuleOkResponse, ToggleGovernanceAlertRuleProps, } from './hooks/useToggleGovernanceAlertRuleMutation';
|
|
423
425
|
export { toggleGovernanceAlertRule, useToggleGovernanceAlertRuleMutation, } from './hooks/useToggleGovernanceAlertRuleMutation';
|
|
426
|
+
export type { TopCloudAccountGovernanceSavingsErrorResponse, TopCloudAccountGovernanceSavingsMutationQueryParams, TopCloudAccountGovernanceSavingsOkResponse, TopCloudAccountGovernanceSavingsProps, TopCloudAccountGovernanceSavingsRequestBody, } from './hooks/useTopCloudAccountGovernanceSavingsMutation';
|
|
427
|
+
export { topCloudAccountGovernanceSavings, useTopCloudAccountGovernanceSavingsMutation, } from './hooks/useTopCloudAccountGovernanceSavingsMutation';
|
|
424
428
|
export type { TotalActiveEnforcementsErrorResponse, TotalActiveEnforcementsOkResponse, TotalActiveEnforcementsProps, TotalActiveEnforcementsQueryQueryParams, } from './hooks/useTotalActiveEnforcementsQuery';
|
|
425
429
|
export { totalActiveEnforcements, useTotalActiveEnforcementsQuery, } from './hooks/useTotalActiveEnforcementsQuery';
|
|
426
430
|
export type { TotalEvaluationsErrorResponse, TotalEvaluationsOkResponse, TotalEvaluationsProps, TotalEvaluationsQueryQueryParams, } from './hooks/useTotalEvaluationsQuery';
|
|
@@ -429,6 +433,8 @@ export type { TotalNewEnforcementRecommendationsErrorResponse, TotalNewEnforceme
|
|
|
429
433
|
export { totalNewEnforcementRecommendations, useTotalNewEnforcementRecommendationsQuery, } from './hooks/useTotalNewEnforcementRecommendationsQuery';
|
|
430
434
|
export type { TotalRealisedSavingsGroupedErrorResponse, TotalRealisedSavingsGroupedOkResponse, TotalRealisedSavingsGroupedProps, TotalRealisedSavingsGroupedQueryQueryParams, } from './hooks/useTotalRealisedSavingsGroupedQuery';
|
|
431
435
|
export { totalRealisedSavingsGrouped, useTotalRealisedSavingsGroupedQuery, } from './hooks/useTotalRealisedSavingsGroupedQuery';
|
|
436
|
+
export type { TotalRealisedSavingsTimeSeriesErrorResponse, TotalRealisedSavingsTimeSeriesMutationQueryParams, TotalRealisedSavingsTimeSeriesOkResponse, TotalRealisedSavingsTimeSeriesProps, TotalRealisedSavingsTimeSeriesRequestBody, } from './hooks/useTotalRealisedSavingsTimeSeriesMutation';
|
|
437
|
+
export { totalRealisedSavingsTimeSeries, useTotalRealisedSavingsTimeSeriesMutation, } from './hooks/useTotalRealisedSavingsTimeSeriesMutation';
|
|
432
438
|
export type { TotalRealisedSavingsV2ErrorResponse, TotalRealisedSavingsV2MutationQueryParams, TotalRealisedSavingsV2OkResponse, TotalRealisedSavingsV2Props, TotalRealisedSavingsV2RequestBody, } from './hooks/useTotalRealisedSavingsV2Mutation';
|
|
433
439
|
export { totalRealisedSavingsV2, useTotalRealisedSavingsV2Mutation, } from './hooks/useTotalRealisedSavingsV2Mutation';
|
|
434
440
|
export type { TriggerDataIngestionErrorResponse, TriggerDataIngestionMutationQueryParams, TriggerDataIngestionOkResponse, TriggerDataIngestionProps, TriggerDataIngestionRequestBody, } from './hooks/useTriggerDataIngestionMutation';
|
|
@@ -568,6 +574,7 @@ export type { CeViewFolder } from './schemas/CeViewFolder';
|
|
|
568
574
|
export type { ChangeRecommendationInferenceStatusDto } from './schemas/ChangeRecommendationInferenceStatusDto';
|
|
569
575
|
export type { CloneBudgetRequest } from './schemas/CloneBudgetRequest';
|
|
570
576
|
export type { CloneRuleDto } from './schemas/CloneRuleDto';
|
|
577
|
+
export type { CloudAccountGovernanceSavingsDto } from './schemas/CloudAccountGovernanceSavingsDto';
|
|
571
578
|
export type { CloudProviderPreferenceOverviewDto } from './schemas/CloudProviderPreferenceOverviewDto';
|
|
572
579
|
export type { CloudProviderRecommendationPreference } from './schemas/CloudProviderRecommendationPreference';
|
|
573
580
|
export type { CloudProviderRecommendationPreferenceDto } from './schemas/CloudProviderRecommendationPreferenceDto';
|
|
@@ -647,6 +654,7 @@ export type { GovernanceJobEnqueueDto } from './schemas/GovernanceJobEnqueueDto'
|
|
|
647
654
|
export type { GovernanceNotification } from './schemas/GovernanceNotification';
|
|
648
655
|
export type { GovernancePromptRule } from './schemas/GovernancePromptRule';
|
|
649
656
|
export type { GovernanceRecommendationFilterProperties } from './schemas/GovernanceRecommendationFilterProperties';
|
|
657
|
+
export type { GovernanceSavingsTimeSeriesDto } from './schemas/GovernanceSavingsTimeSeriesDto';
|
|
650
658
|
export type { HistogramExp } from './schemas/HistogramExp';
|
|
651
659
|
export type { IacmCostResource } from './schemas/IacmCostResource';
|
|
652
660
|
export type { IacmResource } from './schemas/IacmResource';
|
|
@@ -669,6 +677,7 @@ export type { JobState } from './schemas/JobState';
|
|
|
669
677
|
export type { K8sLabel } from './schemas/K8sLabel';
|
|
670
678
|
export type { K8sRecommendationFilterProperties } from './schemas/K8sRecommendationFilterProperties';
|
|
671
679
|
export type { LicenseUsage } from './schemas/LicenseUsage';
|
|
680
|
+
export type { LifecycleBucketStats } from './schemas/LifecycleBucketStats';
|
|
672
681
|
export type { LinkedEnforcements } from './schemas/LinkedEnforcements';
|
|
673
682
|
export type { ListDto } from './schemas/ListDto';
|
|
674
683
|
export type { LookBackPeriod } from './schemas/LookBackPeriod';
|
|
@@ -711,6 +720,7 @@ export type { RecommendationEc2InstanceId } from './schemas/RecommendationEc2Ins
|
|
|
711
720
|
export type { RecommendationEcsServiceId } from './schemas/RecommendationEcsServiceId';
|
|
712
721
|
export type { RecommendationGovernanceRuleId } from './schemas/RecommendationGovernanceRuleId';
|
|
713
722
|
export type { RecommendationItem } from './schemas/RecommendationItem';
|
|
723
|
+
export type { RecommendationLifecycleStatsDto } from './schemas/RecommendationLifecycleStatsDto';
|
|
714
724
|
export type { RecommendationNodepoolId } from './schemas/RecommendationNodepoolId';
|
|
715
725
|
export type { RecommendationOverviewStats } from './schemas/RecommendationOverviewStats';
|
|
716
726
|
export type { RecommendationPreference } from './schemas/RecommendationPreference';
|
|
@@ -758,6 +768,7 @@ export type { ResponseDtoGenAiTraceListResponse } from './schemas/ResponseDtoGen
|
|
|
758
768
|
export type { ResponseDtoGovernanceCostSettings } from './schemas/ResponseDtoGovernanceCostSettings';
|
|
759
769
|
export type { ResponseDtoGovernanceEnqueueResponseDto } from './schemas/ResponseDtoGovernanceEnqueueResponseDto';
|
|
760
770
|
export type { ResponseDtoGovernanceNotification } from './schemas/ResponseDtoGovernanceNotification';
|
|
771
|
+
export type { ResponseDtoGovernanceSavingsTimeSeriesDto } from './schemas/ResponseDtoGovernanceSavingsTimeSeriesDto';
|
|
761
772
|
export type { ResponseDtoIacmResourceCosts } from './schemas/ResponseDtoIacmResourceCosts';
|
|
762
773
|
export type { ResponseDtoIacmResourceRecommendations } from './schemas/ResponseDtoIacmResourceRecommendations';
|
|
763
774
|
export type { ResponseDtoInteger } from './schemas/ResponseDtoInteger';
|
|
@@ -818,6 +829,7 @@ export type { ResponseDtoPerspectiveEntityStatsData } from './schemas/ResponseDt
|
|
|
818
829
|
export type { ResponseDtoPerspectiveTimeSeriesData } from './schemas/ResponseDtoPerspectiveTimeSeriesData';
|
|
819
830
|
export type { ResponseDtoRecommendationCostSettings } from './schemas/ResponseDtoRecommendationCostSettings';
|
|
820
831
|
export type { ResponseDtoRecommendationDetailsDto } from './schemas/ResponseDtoRecommendationDetailsDto';
|
|
832
|
+
export type { ResponseDtoRecommendationLifecycleStatsDto } from './schemas/ResponseDtoRecommendationLifecycleStatsDto';
|
|
821
833
|
export type { ResponseDtoRecommendationOverviewStats } from './schemas/ResponseDtoRecommendationOverviewStats';
|
|
822
834
|
export type { ResponseDtoRecommendationPreferenceDto } from './schemas/ResponseDtoRecommendationPreferenceDto';
|
|
823
835
|
export type { ResponseDtoRecommendationTagDto } from './schemas/ResponseDtoRecommendationTagDto';
|
|
@@ -838,6 +850,7 @@ export type { ResponseDtoRuleSet } from './schemas/ResponseDtoRuleSet';
|
|
|
838
850
|
export type { ResponseDtoRuleSetList } from './schemas/ResponseDtoRuleSetList';
|
|
839
851
|
export type { ResponseDtoSetString } from './schemas/ResponseDtoSetString';
|
|
840
852
|
export type { ResponseDtoString } from './schemas/ResponseDtoString';
|
|
853
|
+
export type { ResponseDtoTopCloudAccountGovernanceSavingsDto } from './schemas/ResponseDtoTopCloudAccountGovernanceSavingsDto';
|
|
841
854
|
export type { ResponseDtoTreeMapLongAnomalyOverview } from './schemas/ResponseDtoTreeMapLongAnomalyOverview';
|
|
842
855
|
export type { ResponseDtoUnitMetricListResponseDto } from './schemas/ResponseDtoUnitMetricListResponseDto';
|
|
843
856
|
export type { ResponseDtoUnitMetricResponseDto } from './schemas/ResponseDtoUnitMetricResponseDto';
|
|
@@ -887,8 +900,10 @@ export type { SharedCostSplit } from './schemas/SharedCostSplit';
|
|
|
887
900
|
export type { SubRuleExecutionDetails } from './schemas/SubRuleExecutionDetails';
|
|
888
901
|
export type { SubRulePolicyDetails } from './schemas/SubRulePolicyDetails';
|
|
889
902
|
export type { SubRuleResponseDetails } from './schemas/SubRuleResponseDetails';
|
|
903
|
+
export type { TimeBucketSavingsDto } from './schemas/TimeBucketSavingsDto';
|
|
890
904
|
export type { TimeSeriesDataPoints } from './schemas/TimeSeriesDataPoints';
|
|
891
905
|
export type { ToggleForRecommendationRequest } from './schemas/ToggleForRecommendationRequest';
|
|
906
|
+
export type { TopCloudAccountGovernanceSavingsDto } from './schemas/TopCloudAccountGovernanceSavingsDto';
|
|
892
907
|
export type { TotalResourceUsage } from './schemas/TotalResourceUsage';
|
|
893
908
|
export type { UnallocatedCost } from './schemas/UnallocatedCost';
|
|
894
909
|
export type { UnitCostAnomalyData } from './schemas/UnitCostAnomalyData';
|
|
@@ -194,6 +194,7 @@ export { postFilter, usePostFilterMutation } from './hooks/usePostFilterMutation
|
|
|
194
194
|
export { realizedSavingsTimeSeries, useRealizedSavingsTimeSeriesMutation, } from './hooks/useRealizedSavingsTimeSeriesMutation';
|
|
195
195
|
export { recommendationFilterValues, useRecommendationFilterValuesMutation, } from './hooks/useRecommendationFilterValuesMutation';
|
|
196
196
|
export { recommendationHealth, useRecommendationHealthQuery, } from './hooks/useRecommendationHealthQuery';
|
|
197
|
+
export { recommendationLifecycleStats, useRecommendationLifecycleStatsMutation, } from './hooks/useRecommendationLifecycleStatsMutation';
|
|
197
198
|
export { recommendationResourceTypeStats, useRecommendationResourceTypeStatsMutation, } from './hooks/useRecommendationResourceTypeStatsMutation';
|
|
198
199
|
export { recommendationStats, useRecommendationStatsMutation, } from './hooks/useRecommendationStatsMutation';
|
|
199
200
|
export { recommendationsCount, useRecommendationsCountMutation, } from './hooks/useRecommendationsCountMutation';
|
|
@@ -209,10 +210,12 @@ export { toggleAnomaliesIgnorelistRule, useToggleAnomaliesIgnorelistRuleMutation
|
|
|
209
210
|
export { toggleEnforcement, useToggleEnforcementMutation, } from './hooks/useToggleEnforcementMutation';
|
|
210
211
|
export { toggleForRecommendation, useToggleForRecommendationMutation, } from './hooks/useToggleForRecommendationMutation';
|
|
211
212
|
export { toggleGovernanceAlertRule, useToggleGovernanceAlertRuleMutation, } from './hooks/useToggleGovernanceAlertRuleMutation';
|
|
213
|
+
export { topCloudAccountGovernanceSavings, useTopCloudAccountGovernanceSavingsMutation, } from './hooks/useTopCloudAccountGovernanceSavingsMutation';
|
|
212
214
|
export { totalActiveEnforcements, useTotalActiveEnforcementsQuery, } from './hooks/useTotalActiveEnforcementsQuery';
|
|
213
215
|
export { totalEvaluations, useTotalEvaluationsQuery } from './hooks/useTotalEvaluationsQuery';
|
|
214
216
|
export { totalNewEnforcementRecommendations, useTotalNewEnforcementRecommendationsQuery, } from './hooks/useTotalNewEnforcementRecommendationsQuery';
|
|
215
217
|
export { totalRealisedSavingsGrouped, useTotalRealisedSavingsGroupedQuery, } from './hooks/useTotalRealisedSavingsGroupedQuery';
|
|
218
|
+
export { totalRealisedSavingsTimeSeries, useTotalRealisedSavingsTimeSeriesMutation, } from './hooks/useTotalRealisedSavingsTimeSeriesMutation';
|
|
216
219
|
export { totalRealisedSavingsV2, useTotalRealisedSavingsV2Mutation, } from './hooks/useTotalRealisedSavingsV2Mutation';
|
|
217
220
|
export { triggerDataIngestion, useTriggerDataIngestionMutation, } from './hooks/useTriggerDataIngestionMutation';
|
|
218
221
|
export { updateAnomaliesIgnorelistRule, useUpdateAnomaliesIgnorelistRuleMutation, } from './hooks/useUpdateAnomaliesIgnorelistRuleMutation';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Governance recommendation savings for a single cloud account, with comparison
|
|
3
|
+
*/
|
|
4
|
+
export interface CloudAccountGovernanceSavingsDto {
|
|
5
|
+
/**
|
|
6
|
+
* Cloud account ID
|
|
7
|
+
*/
|
|
8
|
+
cloudAccountId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Cloud account name
|
|
11
|
+
*/
|
|
12
|
+
cloudAccountName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Governance recommendation savings as of the current time filter
|
|
15
|
+
* @format double
|
|
16
|
+
*/
|
|
17
|
+
currentSavings?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Percentage change in savings, current vs previous. Null means the change is undefined because previous savings were zero (e.g. a new account) while current savings are positive
|
|
20
|
+
* @format double
|
|
21
|
+
*/
|
|
22
|
+
percentageChange?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Governance recommendation savings as of the comparison time filter
|
|
25
|
+
* @format double
|
|
26
|
+
*/
|
|
27
|
+
previousSavings?: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TimeBucketSavingsDto } from '../schemas/TimeBucketSavingsDto';
|
|
2
|
+
/**
|
|
3
|
+
* Total realised savings time series, bucketed by day/week/month
|
|
4
|
+
*/
|
|
5
|
+
export interface GovernanceSavingsTimeSeriesDto {
|
|
6
|
+
/**
|
|
7
|
+
* Granularity used to bucket the time series
|
|
8
|
+
*/
|
|
9
|
+
granularity?: 'DAY' | 'HOUR' | 'MONTH' | 'QUARTER' | 'WEEK' | 'YEAR';
|
|
10
|
+
/**
|
|
11
|
+
* Per-bucket total realised savings, ordered by time ascending
|
|
12
|
+
*/
|
|
13
|
+
timeSeriesData?: TimeBucketSavingsDto[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LifecycleBucketStats } from '../schemas/LifecycleBucketStats';
|
|
2
|
+
export interface RecommendationLifecycleStatsDto {
|
|
3
|
+
applied?: LifecycleBucketStats;
|
|
4
|
+
/**
|
|
5
|
+
* @format double
|
|
6
|
+
*/
|
|
7
|
+
conversionRate?: number;
|
|
8
|
+
generated?: LifecycleBucketStats;
|
|
9
|
+
ignored?: LifecycleBucketStats;
|
|
10
|
+
inferred?: LifecycleBucketStats;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GovernanceSavingsTimeSeriesDto } from '../schemas/GovernanceSavingsTimeSeriesDto';
|
|
2
|
+
export interface ResponseDtoGovernanceSavingsTimeSeriesDto {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: GovernanceSavingsTimeSeriesDto;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RecommendationLifecycleStatsDto } from '../schemas/RecommendationLifecycleStatsDto';
|
|
2
|
+
export interface ResponseDtoRecommendationLifecycleStatsDto {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: RecommendationLifecycleStatsDto;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ccm-service/src/services/schemas/ResponseDtoTopCloudAccountGovernanceSavingsDto.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TopCloudAccountGovernanceSavingsDto } from '../schemas/TopCloudAccountGovernanceSavingsDto';
|
|
2
|
+
export interface ResponseDtoTopCloudAccountGovernanceSavingsDto {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: TopCloudAccountGovernanceSavingsDto;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
package/dist/ccm-service/src/services/schemas/ResponseDtoTopCloudAccountGovernanceSavingsDto.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Total realised savings for a single time bucket
|
|
3
|
+
*/
|
|
4
|
+
export interface TimeBucketSavingsDto {
|
|
5
|
+
/**
|
|
6
|
+
* Start of the bucket, epoch millis (UTC)
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
time?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Total realised savings within the bucket
|
|
12
|
+
* @format double
|
|
13
|
+
*/
|
|
14
|
+
totalRealisedSavings?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CloudAccountGovernanceSavingsDto } from '../schemas/CloudAccountGovernanceSavingsDto';
|
|
2
|
+
/**
|
|
3
|
+
* Top cloud accounts by combined governance recommendation savings, with comparison
|
|
4
|
+
*/
|
|
5
|
+
export interface TopCloudAccountGovernanceSavingsDto {
|
|
6
|
+
/**
|
|
7
|
+
* Top cloud accounts, ordered by current savings descending
|
|
8
|
+
*/
|
|
9
|
+
cloudAccounts?: CloudAccountGovernanceSavingsDto[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,9 +16,9 @@ export interface UnitMetricListDto {
|
|
|
16
16
|
*/
|
|
17
17
|
createdAt?: number;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Data source to query for COLUMN-type unit metrics. Each source declares its query backend (BigQuery or UDP), the physical table/entity to read, and the timestamp column used for time bucketing.
|
|
20
20
|
*/
|
|
21
|
-
dataSource?: 'BILLING' | 'LLM_TRACES';
|
|
21
|
+
dataSource?: 'BILLING' | 'LLM_TRACES' | 'UDP_TEMPLATE';
|
|
22
22
|
/**
|
|
23
23
|
* Aggregation applied to unit cost metric values per time bucket in BigQuery. Supported: AVG (default when omitted or null), MIN, MAX, SUM.
|
|
24
24
|
*/
|
|
@@ -8,9 +8,9 @@ export interface UnitMetricRequestDto {
|
|
|
8
8
|
*/
|
|
9
9
|
columnAggregation?: 'AVG' | 'COUNT' | 'COUNT_DISTINCT' | 'MAX' | 'MIN' | 'SUM';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Data source to query for COLUMN-type unit metrics. Each source declares its query backend (BigQuery or UDP), the physical table/entity to read, and the timestamp column used for time bucketing.
|
|
12
12
|
*/
|
|
13
|
-
dataSource?: 'BILLING' | 'LLM_TRACES';
|
|
13
|
+
dataSource?: 'BILLING' | 'LLM_TRACES' | 'UDP_TEMPLATE';
|
|
14
14
|
/**
|
|
15
15
|
* Aggregation applied to unit cost metric values per time bucket in BigQuery. Supported: AVG (default when omitted or null), MIN, MAX, SUM.
|
|
16
16
|
*/
|
|
@@ -17,9 +17,9 @@ export interface UnitMetricResponseDto {
|
|
|
17
17
|
*/
|
|
18
18
|
createdAt?: number;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Data source to query for COLUMN-type unit metrics. Each source declares its query backend (BigQuery or UDP), the physical table/entity to read, and the timestamp column used for time bucketing.
|
|
21
21
|
*/
|
|
22
|
-
dataSource?: 'BILLING' | 'LLM_TRACES';
|
|
22
|
+
dataSource?: 'BILLING' | 'LLM_TRACES' | 'UDP_TEMPLATE';
|
|
23
23
|
/**
|
|
24
24
|
* Aggregation applied to unit cost metric values per time bucket in BigQuery. Supported: AVG (default when omitted or null), MIN, MAX, SUM.
|
|
25
25
|
*/
|
|
@@ -6,6 +6,10 @@ export interface ViewParams {
|
|
|
6
6
|
* When true, forces the query to use the AI Trace table (genai_aggregate_metrics).
|
|
7
7
|
*/
|
|
8
8
|
isAITraceQuery?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* When true, skips the additional previous-period cost trend query fired for the grid.
|
|
11
|
+
*/
|
|
12
|
+
skipCostTrend?: boolean;
|
|
9
13
|
/**
|
|
10
14
|
* Granularity of Perspective timeseries data
|
|
11
15
|
*/
|