@harnessio/react-ccm-service-client 0.4.1 → 0.4.3
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/useAttachRecommendationJiraMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useAttachRecommendationJiraMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useAwsaccountconnectiondetailQuery.d.ts +21 -0
- package/dist/ccm-service/src/services/hooks/useAwsaccountconnectiondetailQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useAzureappclientidQuery.d.ts +15 -0
- package/dist/ccm-service/src/services/hooks/useAzureappclientidQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useDetachJiraFromRecommendationMutation.d.ts +22 -0
- package/dist/ccm-service/src/services/hooks/useDetachJiraFromRecommendationMutation.js +14 -0
- package/dist/ccm-service/src/services/hooks/useGcpserviceaccountQuery.d.ts +19 -0
- package/dist/ccm-service/src/services/hooks/useGcpserviceaccountQuery.js +14 -0
- package/dist/ccm-service/src/services/hooks/useGetRecommendationJiraTransitionsQuery.d.ts +20 -0
- package/dist/ccm-service/src/services/hooks/useGetRecommendationJiraTransitionsQuery.js +14 -0
- 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 +35 -0
- package/dist/ccm-service/src/services/index.js +9 -0
- package/dist/ccm-service/src/services/schemas/AwsAccountConnectionDetail.d.ts +6 -0
- package/dist/ccm-service/src/services/schemas/AwsAccountConnectionDetail.js +4 -0
- package/dist/ccm-service/src/services/schemas/CcmJiraAttachDto.d.ts +5 -0
- package/dist/ccm-service/src/services/schemas/CcmJiraAttachDto.js +4 -0
- package/dist/ccm-service/src/services/schemas/CcmJiraDetachDto.d.ts +4 -0
- package/dist/ccm-service/src/services/schemas/CcmJiraDetachDto.js +4 -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/JiraIssueTransitionNg.d.ts +12 -0
- package/dist/ccm-service/src/services/schemas/JiraIssueTransitionNg.js +1 -0
- package/dist/ccm-service/src/services/schemas/JiraStatusCategoryNg.d.ts +8 -0
- package/dist/ccm-service/src/services/schemas/JiraStatusCategoryNg.js +4 -0
- package/dist/ccm-service/src/services/schemas/JiraStatusNg.d.ts +6 -0
- package/dist/ccm-service/src/services/schemas/JiraStatusNg.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/ResponseDtoAwsAccountConnectionDetail.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoAwsAccountConnectionDetail.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/ResponseDtoListJiraIssueTransitionNg.d.ts +9 -0
- package/dist/ccm-service/src/services/schemas/ResponseDtoListJiraIssueTransitionNg.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 { ResponseDtoccmJiraDetails } from '../schemas/ResponseDtoccmJiraDetails';
|
|
5
|
+
import type { CcmJiraAttachDto } from '../schemas/CcmJiraAttachDto';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface AttachRecommendationJiraMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type AttachRecommendationJiraRequestBody = CcmJiraAttachDto;
|
|
12
|
+
export type AttachRecommendationJiraOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type AttachRecommendationJiraErrorResponse = Failure | Error | ResponseDtoccmJiraDetails;
|
|
14
|
+
export interface AttachRecommendationJiraProps extends Omit<FetcherOptions<AttachRecommendationJiraMutationQueryParams, AttachRecommendationJiraRequestBody>, 'url'> {
|
|
15
|
+
queryParams: AttachRecommendationJiraMutationQueryParams;
|
|
16
|
+
body: AttachRecommendationJiraRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function attachRecommendationJira(props: AttachRecommendationJiraProps): Promise<AttachRecommendationJiraOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Attach an existing Jira ticket to a recommendation
|
|
21
|
+
*/
|
|
22
|
+
export declare function useAttachRecommendationJiraMutation(options?: Omit<UseMutationOptions<AttachRecommendationJiraOkResponse, AttachRecommendationJiraErrorResponse, AttachRecommendationJiraProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AttachRecommendationJiraOkResponse, AttachRecommendationJiraErrorResponse, AttachRecommendationJiraProps, 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 attachRecommendationJira(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/recommendation/jira/attach`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Attach an existing Jira ticket to a recommendation
|
|
11
|
+
*/
|
|
12
|
+
export function useAttachRecommendationJiraMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => attachRecommendationJira(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoAwsAccountConnectionDetail } from '../schemas/ResponseDtoAwsAccountConnectionDetail';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface AwsaccountconnectiondetailQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
is_gov?: boolean;
|
|
10
|
+
isOidc?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type AwsaccountconnectiondetailOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type AwsaccountconnectiondetailErrorResponse = Failure | Error | ResponseDtoAwsAccountConnectionDetail;
|
|
14
|
+
export interface AwsaccountconnectiondetailProps extends Omit<FetcherOptions<AwsaccountconnectiondetailQueryQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: AwsaccountconnectiondetailQueryQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function awsaccountconnectiondetail(props: AwsaccountconnectiondetailProps): Promise<AwsaccountconnectiondetailOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Fetch AWS account connection details required for CCM connector setup, including external Id, Harness AWS account Id, CloudFormation template link, and stack launch template link.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useAwsaccountconnectiondetailQuery(props: AwsaccountconnectiondetailProps, options?: Omit<UseQueryOptions<AwsaccountconnectiondetailOkResponse, AwsaccountconnectiondetailErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AwsaccountconnectiondetailOkResponse, AwsaccountconnectiondetailErrorResponse>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function awsaccountconnectiondetail(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/connector/awsaccountconnectiondetail`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch AWS account connection details required for CCM connector setup, including external Id, Harness AWS account Id, CloudFormation template link, and stack launch template link.
|
|
11
|
+
*/
|
|
12
|
+
export function useAwsaccountconnectiondetailQuery(props, options) {
|
|
13
|
+
return useQuery(['awsaccountconnectiondetail', props.queryParams], ({ signal }) => awsaccountconnectiondetail(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoString } from '../schemas/ResponseDtoString';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export type AzureappclientidOkResponse = ResponseWithPagination<unknown>;
|
|
8
|
+
export type AzureappclientidErrorResponse = Failure | Error | ResponseDtoString;
|
|
9
|
+
export interface AzureappclientidProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
10
|
+
}
|
|
11
|
+
export declare function azureappclientid(props: AzureappclientidProps): Promise<AzureappclientidOkResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Fetch the Azure application client Id used for CCM connector setup.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useAzureappclientidQuery(props: AzureappclientidProps, options?: Omit<UseQueryOptions<AzureappclientidOkResponse, AzureappclientidErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AzureappclientidOkResponse, AzureappclientidErrorResponse>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function azureappclientid(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/connector/azureappclientid`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch the Azure application client Id used for CCM connector setup.
|
|
11
|
+
*/
|
|
12
|
+
export function useAzureappclientidQuery(props, options) {
|
|
13
|
+
return useQuery(['azureappclientid'], ({ signal }) => azureappclientid(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -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 { ResponseDtoBoolean } from '../schemas/ResponseDtoBoolean';
|
|
5
|
+
import type { CcmJiraDetachDto } from '../schemas/CcmJiraDetachDto';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface DetachJiraFromRecommendationMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type DetachJiraFromRecommendationRequestBody = CcmJiraDetachDto;
|
|
12
|
+
export type DetachJiraFromRecommendationOkResponse = ResponseWithPagination<unknown>;
|
|
13
|
+
export type DetachJiraFromRecommendationErrorResponse = Failure | Error | ResponseDtoBoolean;
|
|
14
|
+
export interface DetachJiraFromRecommendationProps extends Omit<FetcherOptions<DetachJiraFromRecommendationMutationQueryParams, DetachJiraFromRecommendationRequestBody>, 'url'> {
|
|
15
|
+
queryParams: DetachJiraFromRecommendationMutationQueryParams;
|
|
16
|
+
body: DetachJiraFromRecommendationRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function detachJiraFromRecommendation(props: DetachJiraFromRecommendationProps): Promise<DetachJiraFromRecommendationOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Detach Jira details from a recommendation
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDetachJiraFromRecommendationMutation(options?: Omit<UseMutationOptions<DetachJiraFromRecommendationOkResponse, DetachJiraFromRecommendationErrorResponse, DetachJiraFromRecommendationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DetachJiraFromRecommendationOkResponse, DetachJiraFromRecommendationErrorResponse, DetachJiraFromRecommendationProps, 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 detachJiraFromRecommendation(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/recommendation/jira/detach`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Detach Jira details from a recommendation
|
|
11
|
+
*/
|
|
12
|
+
export function useDetachJiraFromRecommendationMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => detachJiraFromRecommendation(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoString } from '../schemas/ResponseDtoString';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GcpserviceaccountQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type GcpserviceaccountOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type GcpserviceaccountErrorResponse = Failure | Error | ResponseDtoString;
|
|
12
|
+
export interface GcpserviceaccountProps extends Omit<FetcherOptions<GcpserviceaccountQueryQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: GcpserviceaccountQueryQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export declare function gcpserviceaccount(props: GcpserviceaccountProps): Promise<GcpserviceaccountOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Provision (if needed) and return the GCP service account email used for CCM connector setup.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGcpserviceaccountQuery(props: GcpserviceaccountProps, options?: Omit<UseQueryOptions<GcpserviceaccountOkResponse, GcpserviceaccountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GcpserviceaccountOkResponse, GcpserviceaccountErrorResponse>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function gcpserviceaccount(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/connector/gcpserviceaccount`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Provision (if needed) and return the GCP service account email used for CCM connector setup.
|
|
11
|
+
*/
|
|
12
|
+
export function useGcpserviceaccountQuery(props, options) {
|
|
13
|
+
return useQuery(['gcpserviceaccount', props.queryParams], ({ signal }) => gcpserviceaccount(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Failure } from '../schemas/Failure';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseDtoListJiraIssueTransitionNg } from '../schemas/ResponseDtoListJiraIssueTransitionNg';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetRecommendationJiraTransitionsQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
recommendationId: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetRecommendationJiraTransitionsOkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type GetRecommendationJiraTransitionsErrorResponse = Failure | Error | ResponseDtoListJiraIssueTransitionNg;
|
|
13
|
+
export interface GetRecommendationJiraTransitionsProps extends Omit<FetcherOptions<GetRecommendationJiraTransitionsQueryQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: GetRecommendationJiraTransitionsQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function getRecommendationJiraTransitions(props: GetRecommendationJiraTransitionsProps): Promise<GetRecommendationJiraTransitionsOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get valid Jira transitions for the ticket linked to a recommendation
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetRecommendationJiraTransitionsQuery(props: GetRecommendationJiraTransitionsProps, options?: Omit<UseQueryOptions<GetRecommendationJiraTransitionsOkResponse, GetRecommendationJiraTransitionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRecommendationJiraTransitionsOkResponse, GetRecommendationJiraTransitionsErrorResponse>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getRecommendationJiraTransitions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/recommendation/jira/transitions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get valid Jira transitions for the ticket linked to a recommendation
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRecommendationJiraTransitionsQuery(props, options) {
|
|
13
|
+
return useQuery(['getRecommendationJiraTransitions', props.queryParams], ({ signal }) => getRecommendationJiraTransitions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -15,8 +15,14 @@ export type { AnomalyFilterValuesErrorResponse, AnomalyFilterValuesMutationQuery
|
|
|
15
15
|
export { anomalyFilterValues, useAnomalyFilterValuesMutation, } from './hooks/useAnomalyFilterValuesMutation';
|
|
16
16
|
export type { AppliedRecommendationResourceStatsErrorResponse, AppliedRecommendationResourceStatsMutationQueryParams, AppliedRecommendationResourceStatsOkResponse, AppliedRecommendationResourceStatsProps, AppliedRecommendationResourceStatsRequestBody, } from './hooks/useAppliedRecommendationResourceStatsMutation';
|
|
17
17
|
export { appliedRecommendationResourceStats, useAppliedRecommendationResourceStatsMutation, } from './hooks/useAppliedRecommendationResourceStatsMutation';
|
|
18
|
+
export type { AttachRecommendationJiraErrorResponse, AttachRecommendationJiraMutationQueryParams, AttachRecommendationJiraOkResponse, AttachRecommendationJiraProps, AttachRecommendationJiraRequestBody, } from './hooks/useAttachRecommendationJiraMutation';
|
|
19
|
+
export { attachRecommendationJira, useAttachRecommendationJiraMutation, } from './hooks/useAttachRecommendationJiraMutation';
|
|
20
|
+
export type { AwsaccountconnectiondetailErrorResponse, AwsaccountconnectiondetailOkResponse, AwsaccountconnectiondetailProps, AwsaccountconnectiondetailQueryQueryParams, } from './hooks/useAwsaccountconnectiondetailQuery';
|
|
21
|
+
export { awsaccountconnectiondetail, useAwsaccountconnectiondetailQuery, } from './hooks/useAwsaccountconnectiondetailQuery';
|
|
18
22
|
export type { AzureVmRecommendationDetailErrorResponse, AzureVmRecommendationDetailOkResponse, AzureVmRecommendationDetailProps, AzureVmRecommendationDetailQueryQueryParams, } from './hooks/useAzureVmRecommendationDetailQuery';
|
|
19
23
|
export { azureVmRecommendationDetail, useAzureVmRecommendationDetailQuery, } from './hooks/useAzureVmRecommendationDetailQuery';
|
|
24
|
+
export type { AzureappclientidErrorResponse, AzureappclientidOkResponse, AzureappclientidProps, } from './hooks/useAzureappclientidQuery';
|
|
25
|
+
export { azureappclientid, useAzureappclientidQuery } from './hooks/useAzureappclientidQuery';
|
|
20
26
|
export type { BudgetFilterValuesErrorResponse, BudgetFilterValuesMutationQueryParams, BudgetFilterValuesOkResponse, BudgetFilterValuesProps, BudgetFilterValuesRequestBody, } from './hooks/useBudgetFilterValuesMutation';
|
|
21
27
|
export { budgetFilterValues, useBudgetFilterValuesMutation, } from './hooks/useBudgetFilterValuesMutation';
|
|
22
28
|
export type { BulkSyncCostCategoryJiraMappingsErrorResponse, BulkSyncCostCategoryJiraMappingsMutationQueryParams, BulkSyncCostCategoryJiraMappingsOkResponse, BulkSyncCostCategoryJiraMappingsProps, BulkSyncCostCategoryJiraMappingsRequestBody, } from './hooks/useBulkSyncCostCategoryJiraMappingsMutation';
|
|
@@ -129,6 +135,8 @@ export type { DeleteRuleSetErrorResponse, DeleteRuleSetMutationPathParams, Delet
|
|
|
129
135
|
export { deleteRuleSet, useDeleteRuleSetMutation } from './hooks/useDeleteRuleSetMutation';
|
|
130
136
|
export type { DeleteUnitMetricErrorResponse, DeleteUnitMetricMutationQueryParams, DeleteUnitMetricOkResponse, DeleteUnitMetricProps, } from './hooks/useDeleteUnitMetricMutation';
|
|
131
137
|
export { deleteUnitMetric, useDeleteUnitMetricMutation } from './hooks/useDeleteUnitMetricMutation';
|
|
138
|
+
export type { DetachJiraFromRecommendationErrorResponse, DetachJiraFromRecommendationMutationQueryParams, DetachJiraFromRecommendationOkResponse, DetachJiraFromRecommendationProps, DetachJiraFromRecommendationRequestBody, } from './hooks/useDetachJiraFromRecommendationMutation';
|
|
139
|
+
export { detachJiraFromRecommendation, useDetachJiraFromRecommendationMutation, } from './hooks/useDetachJiraFromRecommendationMutation';
|
|
132
140
|
export type { DismissEnforcementRecommendationsErrorResponse, DismissEnforcementRecommendationsMutationQueryParams, DismissEnforcementRecommendationsOkResponse, DismissEnforcementRecommendationsProps, } from './hooks/useDismissEnforcementRecommendationsMutation';
|
|
133
141
|
export { dismissEnforcementRecommendations, useDismissEnforcementRecommendationsMutation, } from './hooks/useDismissEnforcementRecommendationsMutation';
|
|
134
142
|
export type { Ec2RecommendationDetailErrorResponse, Ec2RecommendationDetailOkResponse, Ec2RecommendationDetailProps, Ec2RecommendationDetailQueryQueryParams, } from './hooks/useEc2RecommendationDetailQuery';
|
|
@@ -145,6 +153,8 @@ export type { EnqueueGovernanceJobErrorResponse, EnqueueGovernanceJobMutationQue
|
|
|
145
153
|
export { enqueueGovernanceJob, useEnqueueGovernanceJobMutation, } from './hooks/useEnqueueGovernanceJobMutation';
|
|
146
154
|
export type { ExportEvaluationsErrorResponse, ExportEvaluationsMutationQueryParams, ExportEvaluationsOkResponse, ExportEvaluationsProps, ExportEvaluationsRequestBody, } from './hooks/useExportEvaluationsMutation';
|
|
147
155
|
export { exportEvaluations, useExportEvaluationsMutation, } from './hooks/useExportEvaluationsMutation';
|
|
156
|
+
export type { GcpserviceaccountErrorResponse, GcpserviceaccountOkResponse, GcpserviceaccountProps, GcpserviceaccountQueryQueryParams, } from './hooks/useGcpserviceaccountQuery';
|
|
157
|
+
export { gcpserviceaccount, useGcpserviceaccountQuery } from './hooks/useGcpserviceaccountQuery';
|
|
148
158
|
export type { GetAccessibleBudgetGroupSummariesErrorResponse, GetAccessibleBudgetGroupSummariesMutationQueryParams, GetAccessibleBudgetGroupSummariesOkResponse, GetAccessibleBudgetGroupSummariesProps, GetAccessibleBudgetGroupSummariesRequestBody, } from './hooks/useGetAccessibleBudgetGroupSummariesMutation';
|
|
149
159
|
export { getAccessibleBudgetGroupSummaries, useGetAccessibleBudgetGroupSummariesMutation, } from './hooks/useGetAccessibleBudgetGroupSummariesMutation';
|
|
150
160
|
export type { GetAccessibleBudgetSummariesErrorResponse, GetAccessibleBudgetSummariesMutationQueryParams, GetAccessibleBudgetSummariesOkResponse, GetAccessibleBudgetSummariesProps, GetAccessibleBudgetSummariesRequestBody, } from './hooks/useGetAccessibleBudgetSummariesMutation';
|
|
@@ -261,6 +271,8 @@ export type { GetProvidersErrorResponse, GetProvidersMutationQueryParams, GetPro
|
|
|
261
271
|
export { getProviders, useGetProvidersMutation } from './hooks/useGetProvidersMutation';
|
|
262
272
|
export type { GetRecommendationCostSettingsErrorResponse, GetRecommendationCostSettingsOkResponse, GetRecommendationCostSettingsProps, GetRecommendationCostSettingsQueryQueryParams, } from './hooks/useGetRecommendationCostSettingsQuery';
|
|
263
273
|
export { getRecommendationCostSettings, useGetRecommendationCostSettingsQuery, } from './hooks/useGetRecommendationCostSettingsQuery';
|
|
274
|
+
export type { GetRecommendationJiraTransitionsErrorResponse, GetRecommendationJiraTransitionsOkResponse, GetRecommendationJiraTransitionsProps, GetRecommendationJiraTransitionsQueryQueryParams, } from './hooks/useGetRecommendationJiraTransitionsQuery';
|
|
275
|
+
export { getRecommendationJiraTransitions, useGetRecommendationJiraTransitionsQuery, } from './hooks/useGetRecommendationJiraTransitionsQuery';
|
|
264
276
|
export type { GetRecommendationPreferencesErrorResponse, GetRecommendationPreferencesOkResponse, GetRecommendationPreferencesProps, GetRecommendationPreferencesQueryQueryParams, } from './hooks/useGetRecommendationPreferencesQuery';
|
|
265
277
|
export { getRecommendationPreferences, useGetRecommendationPreferencesQuery, } from './hooks/useGetRecommendationPreferencesQuery';
|
|
266
278
|
export type { GetRecommendationPresetsErrorResponse, GetRecommendationPresetsOkResponse, GetRecommendationPresetsProps, GetRecommendationPresetsQueryQueryParams, } from './hooks/useGetRecommendationPresetsQuery';
|
|
@@ -391,6 +403,8 @@ export type { RecommendationFilterValuesErrorResponse, RecommendationFilterValue
|
|
|
391
403
|
export { recommendationFilterValues, useRecommendationFilterValuesMutation, } from './hooks/useRecommendationFilterValuesMutation';
|
|
392
404
|
export type { RecommendationHealthErrorResponse, RecommendationHealthOkResponse, RecommendationHealthProps, RecommendationHealthQueryQueryParams, } from './hooks/useRecommendationHealthQuery';
|
|
393
405
|
export { recommendationHealth, useRecommendationHealthQuery, } from './hooks/useRecommendationHealthQuery';
|
|
406
|
+
export type { RecommendationLifecycleStatsErrorResponse, RecommendationLifecycleStatsMutationQueryParams, RecommendationLifecycleStatsOkResponse, RecommendationLifecycleStatsProps, RecommendationLifecycleStatsRequestBody, } from './hooks/useRecommendationLifecycleStatsMutation';
|
|
407
|
+
export { recommendationLifecycleStats, useRecommendationLifecycleStatsMutation, } from './hooks/useRecommendationLifecycleStatsMutation';
|
|
394
408
|
export type { RecommendationResourceTypeStatsErrorResponse, RecommendationResourceTypeStatsMutationQueryParams, RecommendationResourceTypeStatsOkResponse, RecommendationResourceTypeStatsProps, RecommendationResourceTypeStatsRequestBody, } from './hooks/useRecommendationResourceTypeStatsMutation';
|
|
395
409
|
export { recommendationResourceTypeStats, useRecommendationResourceTypeStatsMutation, } from './hooks/useRecommendationResourceTypeStatsMutation';
|
|
396
410
|
export type { RecommendationStatsErrorResponse, RecommendationStatsMutationQueryParams, RecommendationStatsOkResponse, RecommendationStatsProps, RecommendationStatsRequestBody, } from './hooks/useRecommendationStatsMutation';
|
|
@@ -421,6 +435,8 @@ export type { ToggleForRecommendationErrorResponse, ToggleForRecommendationMutat
|
|
|
421
435
|
export { toggleForRecommendation, useToggleForRecommendationMutation, } from './hooks/useToggleForRecommendationMutation';
|
|
422
436
|
export type { ToggleGovernanceAlertRuleErrorResponse, ToggleGovernanceAlertRuleMutationQueryParams, ToggleGovernanceAlertRuleOkResponse, ToggleGovernanceAlertRuleProps, } from './hooks/useToggleGovernanceAlertRuleMutation';
|
|
423
437
|
export { toggleGovernanceAlertRule, useToggleGovernanceAlertRuleMutation, } from './hooks/useToggleGovernanceAlertRuleMutation';
|
|
438
|
+
export type { TopCloudAccountGovernanceSavingsErrorResponse, TopCloudAccountGovernanceSavingsMutationQueryParams, TopCloudAccountGovernanceSavingsOkResponse, TopCloudAccountGovernanceSavingsProps, TopCloudAccountGovernanceSavingsRequestBody, } from './hooks/useTopCloudAccountGovernanceSavingsMutation';
|
|
439
|
+
export { topCloudAccountGovernanceSavings, useTopCloudAccountGovernanceSavingsMutation, } from './hooks/useTopCloudAccountGovernanceSavingsMutation';
|
|
424
440
|
export type { TotalActiveEnforcementsErrorResponse, TotalActiveEnforcementsOkResponse, TotalActiveEnforcementsProps, TotalActiveEnforcementsQueryQueryParams, } from './hooks/useTotalActiveEnforcementsQuery';
|
|
425
441
|
export { totalActiveEnforcements, useTotalActiveEnforcementsQuery, } from './hooks/useTotalActiveEnforcementsQuery';
|
|
426
442
|
export type { TotalEvaluationsErrorResponse, TotalEvaluationsOkResponse, TotalEvaluationsProps, TotalEvaluationsQueryQueryParams, } from './hooks/useTotalEvaluationsQuery';
|
|
@@ -429,6 +445,8 @@ export type { TotalNewEnforcementRecommendationsErrorResponse, TotalNewEnforceme
|
|
|
429
445
|
export { totalNewEnforcementRecommendations, useTotalNewEnforcementRecommendationsQuery, } from './hooks/useTotalNewEnforcementRecommendationsQuery';
|
|
430
446
|
export type { TotalRealisedSavingsGroupedErrorResponse, TotalRealisedSavingsGroupedOkResponse, TotalRealisedSavingsGroupedProps, TotalRealisedSavingsGroupedQueryQueryParams, } from './hooks/useTotalRealisedSavingsGroupedQuery';
|
|
431
447
|
export { totalRealisedSavingsGrouped, useTotalRealisedSavingsGroupedQuery, } from './hooks/useTotalRealisedSavingsGroupedQuery';
|
|
448
|
+
export type { TotalRealisedSavingsTimeSeriesErrorResponse, TotalRealisedSavingsTimeSeriesMutationQueryParams, TotalRealisedSavingsTimeSeriesOkResponse, TotalRealisedSavingsTimeSeriesProps, TotalRealisedSavingsTimeSeriesRequestBody, } from './hooks/useTotalRealisedSavingsTimeSeriesMutation';
|
|
449
|
+
export { totalRealisedSavingsTimeSeries, useTotalRealisedSavingsTimeSeriesMutation, } from './hooks/useTotalRealisedSavingsTimeSeriesMutation';
|
|
432
450
|
export type { TotalRealisedSavingsV2ErrorResponse, TotalRealisedSavingsV2MutationQueryParams, TotalRealisedSavingsV2OkResponse, TotalRealisedSavingsV2Props, TotalRealisedSavingsV2RequestBody, } from './hooks/useTotalRealisedSavingsV2Mutation';
|
|
433
451
|
export { totalRealisedSavingsV2, useTotalRealisedSavingsV2Mutation, } from './hooks/useTotalRealisedSavingsV2Mutation';
|
|
434
452
|
export type { TriggerDataIngestionErrorResponse, TriggerDataIngestionMutationQueryParams, TriggerDataIngestionOkResponse, TriggerDataIngestionProps, TriggerDataIngestionRequestBody, } from './hooks/useTriggerDataIngestionMutation';
|
|
@@ -510,6 +528,7 @@ export type { AnomalyRequestDto } from './schemas/AnomalyRequestDto';
|
|
|
510
528
|
export type { AnomalyResourceCostTimeSeries } from './schemas/AnomalyResourceCostTimeSeries';
|
|
511
529
|
export type { AnomalySummary } from './schemas/AnomalySummary';
|
|
512
530
|
export type { AppliedRecommendationResourceStatsDto } from './schemas/AppliedRecommendationResourceStatsDto';
|
|
531
|
+
export type { AwsAccountConnectionDetail } from './schemas/AwsAccountConnectionDetail';
|
|
513
532
|
export type { AwsAccountPreference } from './schemas/AwsAccountPreference';
|
|
514
533
|
export type { AwsNodepoolPreferences } from './schemas/AwsNodepoolPreferences';
|
|
515
534
|
export type { AwsPreferences } from './schemas/AwsPreferences';
|
|
@@ -544,7 +563,9 @@ export type { CcmCostCategoryCostBucketsDto } from './schemas/CcmCostCategoryCos
|
|
|
544
563
|
export type { CcmCostCategoryDto } from './schemas/CcmCostCategoryDto';
|
|
545
564
|
export type { CcmEcsEntity } from './schemas/CcmEcsEntity';
|
|
546
565
|
export type { CcmGroupBy } from './schemas/CcmGroupBy';
|
|
566
|
+
export type { CcmJiraAttachDto } from './schemas/CcmJiraAttachDto';
|
|
547
567
|
export type { CcmJiraCreateDto } from './schemas/CcmJiraCreateDto';
|
|
568
|
+
export type { CcmJiraDetachDto } from './schemas/CcmJiraDetachDto';
|
|
548
569
|
export type { CcmJiraDetails } from './schemas/CcmJiraDetails';
|
|
549
570
|
export type { CcmJiraFieldDto } from './schemas/CcmJiraFieldDto';
|
|
550
571
|
export type { CcmJiraFieldsRequestDto } from './schemas/CcmJiraFieldsRequestDto';
|
|
@@ -568,6 +589,7 @@ export type { CeViewFolder } from './schemas/CeViewFolder';
|
|
|
568
589
|
export type { ChangeRecommendationInferenceStatusDto } from './schemas/ChangeRecommendationInferenceStatusDto';
|
|
569
590
|
export type { CloneBudgetRequest } from './schemas/CloneBudgetRequest';
|
|
570
591
|
export type { CloneRuleDto } from './schemas/CloneRuleDto';
|
|
592
|
+
export type { CloudAccountGovernanceSavingsDto } from './schemas/CloudAccountGovernanceSavingsDto';
|
|
571
593
|
export type { CloudProviderPreferenceOverviewDto } from './schemas/CloudProviderPreferenceOverviewDto';
|
|
572
594
|
export type { CloudProviderRecommendationPreference } from './schemas/CloudProviderRecommendationPreference';
|
|
573
595
|
export type { CloudProviderRecommendationPreferenceDto } from './schemas/CloudProviderRecommendationPreferenceDto';
|
|
@@ -647,6 +669,7 @@ export type { GovernanceJobEnqueueDto } from './schemas/GovernanceJobEnqueueDto'
|
|
|
647
669
|
export type { GovernanceNotification } from './schemas/GovernanceNotification';
|
|
648
670
|
export type { GovernancePromptRule } from './schemas/GovernancePromptRule';
|
|
649
671
|
export type { GovernanceRecommendationFilterProperties } from './schemas/GovernanceRecommendationFilterProperties';
|
|
672
|
+
export type { GovernanceSavingsTimeSeriesDto } from './schemas/GovernanceSavingsTimeSeriesDto';
|
|
650
673
|
export type { HistogramExp } from './schemas/HistogramExp';
|
|
651
674
|
export type { IacmCostResource } from './schemas/IacmCostResource';
|
|
652
675
|
export type { IacmResource } from './schemas/IacmResource';
|
|
@@ -663,12 +686,16 @@ export type { InvoicePeriodStatus } from './schemas/InvoicePeriodStatus';
|
|
|
663
686
|
export type { JiraFieldMappingRequestDto } from './schemas/JiraFieldMappingRequestDto';
|
|
664
687
|
export type { JiraFieldMappingValue } from './schemas/JiraFieldMappingValue';
|
|
665
688
|
export type { JiraIssueNg } from './schemas/JiraIssueNg';
|
|
689
|
+
export type { JiraIssueTransitionNg } from './schemas/JiraIssueTransitionNg';
|
|
666
690
|
export type { JiraProjectDetails } from './schemas/JiraProjectDetails';
|
|
691
|
+
export type { JiraStatusCategoryNg } from './schemas/JiraStatusCategoryNg';
|
|
692
|
+
export type { JiraStatusNg } from './schemas/JiraStatusNg';
|
|
667
693
|
export type { JobBreakdownDto } from './schemas/JobBreakdownDto';
|
|
668
694
|
export type { JobState } from './schemas/JobState';
|
|
669
695
|
export type { K8sLabel } from './schemas/K8sLabel';
|
|
670
696
|
export type { K8sRecommendationFilterProperties } from './schemas/K8sRecommendationFilterProperties';
|
|
671
697
|
export type { LicenseUsage } from './schemas/LicenseUsage';
|
|
698
|
+
export type { LifecycleBucketStats } from './schemas/LifecycleBucketStats';
|
|
672
699
|
export type { LinkedEnforcements } from './schemas/LinkedEnforcements';
|
|
673
700
|
export type { ListDto } from './schemas/ListDto';
|
|
674
701
|
export type { LookBackPeriod } from './schemas/LookBackPeriod';
|
|
@@ -711,6 +738,7 @@ export type { RecommendationEc2InstanceId } from './schemas/RecommendationEc2Ins
|
|
|
711
738
|
export type { RecommendationEcsServiceId } from './schemas/RecommendationEcsServiceId';
|
|
712
739
|
export type { RecommendationGovernanceRuleId } from './schemas/RecommendationGovernanceRuleId';
|
|
713
740
|
export type { RecommendationItem } from './schemas/RecommendationItem';
|
|
741
|
+
export type { RecommendationLifecycleStatsDto } from './schemas/RecommendationLifecycleStatsDto';
|
|
714
742
|
export type { RecommendationNodepoolId } from './schemas/RecommendationNodepoolId';
|
|
715
743
|
export type { RecommendationOverviewStats } from './schemas/RecommendationOverviewStats';
|
|
716
744
|
export type { RecommendationPreference } from './schemas/RecommendationPreference';
|
|
@@ -734,6 +762,7 @@ export type { ResponseDtoAnomaliesWhitelistRule } from './schemas/ResponseDtoAno
|
|
|
734
762
|
export type { ResponseDtoAnomalyData } from './schemas/ResponseDtoAnomalyData';
|
|
735
763
|
export type { ResponseDtoAnomalyMetrics } from './schemas/ResponseDtoAnomalyMetrics';
|
|
736
764
|
export type { ResponseDtoAnomalyOverview } from './schemas/ResponseDtoAnomalyOverview';
|
|
765
|
+
export type { ResponseDtoAwsAccountConnectionDetail } from './schemas/ResponseDtoAwsAccountConnectionDetail';
|
|
737
766
|
export type { ResponseDtoAzureVmRecommendation } from './schemas/ResponseDtoAzureVmRecommendation';
|
|
738
767
|
export type { ResponseDtoBoolean } from './schemas/ResponseDtoBoolean';
|
|
739
768
|
export type { ResponseDtoBudget } from './schemas/ResponseDtoBudget';
|
|
@@ -758,6 +787,7 @@ export type { ResponseDtoGenAiTraceListResponse } from './schemas/ResponseDtoGen
|
|
|
758
787
|
export type { ResponseDtoGovernanceCostSettings } from './schemas/ResponseDtoGovernanceCostSettings';
|
|
759
788
|
export type { ResponseDtoGovernanceEnqueueResponseDto } from './schemas/ResponseDtoGovernanceEnqueueResponseDto';
|
|
760
789
|
export type { ResponseDtoGovernanceNotification } from './schemas/ResponseDtoGovernanceNotification';
|
|
790
|
+
export type { ResponseDtoGovernanceSavingsTimeSeriesDto } from './schemas/ResponseDtoGovernanceSavingsTimeSeriesDto';
|
|
761
791
|
export type { ResponseDtoIacmResourceCosts } from './schemas/ResponseDtoIacmResourceCosts';
|
|
762
792
|
export type { ResponseDtoIacmResourceRecommendations } from './schemas/ResponseDtoIacmResourceRecommendations';
|
|
763
793
|
export type { ResponseDtoInteger } from './schemas/ResponseDtoInteger';
|
|
@@ -790,6 +820,7 @@ export type { ResponseDtoListGenAiServiceDto } from './schemas/ResponseDtoListGe
|
|
|
790
820
|
export type { ResponseDtoListGenAiTraceSpanDto } from './schemas/ResponseDtoListGenAiTraceSpanDto';
|
|
791
821
|
export type { ResponseDtoListGovernanceNotification } from './schemas/ResponseDtoListGovernanceNotification';
|
|
792
822
|
export type { ResponseDtoListGovernancePromptRule } from './schemas/ResponseDtoListGovernancePromptRule';
|
|
823
|
+
export type { ResponseDtoListJiraIssueTransitionNg } from './schemas/ResponseDtoListJiraIssueTransitionNg';
|
|
793
824
|
export type { ResponseDtoListJiraProjectDetails } from './schemas/ResponseDtoListJiraProjectDetails';
|
|
794
825
|
export type { ResponseDtoListJobKind } from './schemas/ResponseDtoListJobKind';
|
|
795
826
|
export type { ResponseDtoListJobStatus } from './schemas/ResponseDtoListJobStatus';
|
|
@@ -818,6 +849,7 @@ export type { ResponseDtoPerspectiveEntityStatsData } from './schemas/ResponseDt
|
|
|
818
849
|
export type { ResponseDtoPerspectiveTimeSeriesData } from './schemas/ResponseDtoPerspectiveTimeSeriesData';
|
|
819
850
|
export type { ResponseDtoRecommendationCostSettings } from './schemas/ResponseDtoRecommendationCostSettings';
|
|
820
851
|
export type { ResponseDtoRecommendationDetailsDto } from './schemas/ResponseDtoRecommendationDetailsDto';
|
|
852
|
+
export type { ResponseDtoRecommendationLifecycleStatsDto } from './schemas/ResponseDtoRecommendationLifecycleStatsDto';
|
|
821
853
|
export type { ResponseDtoRecommendationOverviewStats } from './schemas/ResponseDtoRecommendationOverviewStats';
|
|
822
854
|
export type { ResponseDtoRecommendationPreferenceDto } from './schemas/ResponseDtoRecommendationPreferenceDto';
|
|
823
855
|
export type { ResponseDtoRecommendationTagDto } from './schemas/ResponseDtoRecommendationTagDto';
|
|
@@ -838,6 +870,7 @@ export type { ResponseDtoRuleSet } from './schemas/ResponseDtoRuleSet';
|
|
|
838
870
|
export type { ResponseDtoRuleSetList } from './schemas/ResponseDtoRuleSetList';
|
|
839
871
|
export type { ResponseDtoSetString } from './schemas/ResponseDtoSetString';
|
|
840
872
|
export type { ResponseDtoString } from './schemas/ResponseDtoString';
|
|
873
|
+
export type { ResponseDtoTopCloudAccountGovernanceSavingsDto } from './schemas/ResponseDtoTopCloudAccountGovernanceSavingsDto';
|
|
841
874
|
export type { ResponseDtoTreeMapLongAnomalyOverview } from './schemas/ResponseDtoTreeMapLongAnomalyOverview';
|
|
842
875
|
export type { ResponseDtoUnitMetricListResponseDto } from './schemas/ResponseDtoUnitMetricListResponseDto';
|
|
843
876
|
export type { ResponseDtoUnitMetricResponseDto } from './schemas/ResponseDtoUnitMetricResponseDto';
|
|
@@ -887,8 +920,10 @@ export type { SharedCostSplit } from './schemas/SharedCostSplit';
|
|
|
887
920
|
export type { SubRuleExecutionDetails } from './schemas/SubRuleExecutionDetails';
|
|
888
921
|
export type { SubRulePolicyDetails } from './schemas/SubRulePolicyDetails';
|
|
889
922
|
export type { SubRuleResponseDetails } from './schemas/SubRuleResponseDetails';
|
|
923
|
+
export type { TimeBucketSavingsDto } from './schemas/TimeBucketSavingsDto';
|
|
890
924
|
export type { TimeSeriesDataPoints } from './schemas/TimeSeriesDataPoints';
|
|
891
925
|
export type { ToggleForRecommendationRequest } from './schemas/ToggleForRecommendationRequest';
|
|
926
|
+
export type { TopCloudAccountGovernanceSavingsDto } from './schemas/TopCloudAccountGovernanceSavingsDto';
|
|
892
927
|
export type { TotalResourceUsage } from './schemas/TotalResourceUsage';
|
|
893
928
|
export type { UnallocatedCost } from './schemas/UnallocatedCost';
|
|
894
929
|
export type { UnitCostAnomalyData } from './schemas/UnitCostAnomalyData';
|
|
@@ -6,7 +6,10 @@ export { addRuleSet, useAddRuleSetMutation } from './hooks/useAddRuleSetMutation
|
|
|
6
6
|
export { adjustBudgetAmountOperation, useAdjustBudgetAmountOperationMutation, } from './hooks/useAdjustBudgetAmountOperationMutation';
|
|
7
7
|
export { anomalyFilterValues, useAnomalyFilterValuesMutation, } from './hooks/useAnomalyFilterValuesMutation';
|
|
8
8
|
export { appliedRecommendationResourceStats, useAppliedRecommendationResourceStatsMutation, } from './hooks/useAppliedRecommendationResourceStatsMutation';
|
|
9
|
+
export { attachRecommendationJira, useAttachRecommendationJiraMutation, } from './hooks/useAttachRecommendationJiraMutation';
|
|
10
|
+
export { awsaccountconnectiondetail, useAwsaccountconnectiondetailQuery, } from './hooks/useAwsaccountconnectiondetailQuery';
|
|
9
11
|
export { azureVmRecommendationDetail, useAzureVmRecommendationDetailQuery, } from './hooks/useAzureVmRecommendationDetailQuery';
|
|
12
|
+
export { azureappclientid, useAzureappclientidQuery } from './hooks/useAzureappclientidQuery';
|
|
10
13
|
export { budgetFilterValues, useBudgetFilterValuesMutation, } from './hooks/useBudgetFilterValuesMutation';
|
|
11
14
|
export { bulkSyncCostCategoryJiraMappings, useBulkSyncCostCategoryJiraMappingsMutation, } from './hooks/useBulkSyncCostCategoryJiraMappingsMutation';
|
|
12
15
|
export { ccmK8sMeta, useCcmK8sMetaMutation } from './hooks/useCcmK8sMetaMutation';
|
|
@@ -63,6 +66,7 @@ export { deleteRuleEnforcement, useDeleteRuleEnforcementMutation, } from './hook
|
|
|
63
66
|
export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
|
|
64
67
|
export { deleteRuleSet, useDeleteRuleSetMutation } from './hooks/useDeleteRuleSetMutation';
|
|
65
68
|
export { deleteUnitMetric, useDeleteUnitMetricMutation } from './hooks/useDeleteUnitMetricMutation';
|
|
69
|
+
export { detachJiraFromRecommendation, useDetachJiraFromRecommendationMutation, } from './hooks/useDetachJiraFromRecommendationMutation';
|
|
66
70
|
export { dismissEnforcementRecommendations, useDismissEnforcementRecommendationsMutation, } from './hooks/useDismissEnforcementRecommendationsMutation';
|
|
67
71
|
export { ec2RecommendationDetail, useEc2RecommendationDetailQuery, } from './hooks/useEc2RecommendationDetailQuery';
|
|
68
72
|
export { ecsRecommendationDetail, useEcsRecommendationDetailQuery, } from './hooks/useEcsRecommendationDetailQuery';
|
|
@@ -71,6 +75,7 @@ export { enforcementRecommendationDetails, useEnforcementRecommendationDetailsQu
|
|
|
71
75
|
export { enforcementSavings, useEnforcementSavingsMutation, } from './hooks/useEnforcementSavingsMutation';
|
|
72
76
|
export { enqueueGovernanceJob, useEnqueueGovernanceJobMutation, } from './hooks/useEnqueueGovernanceJobMutation';
|
|
73
77
|
export { exportEvaluations, useExportEvaluationsMutation, } from './hooks/useExportEvaluationsMutation';
|
|
78
|
+
export { gcpserviceaccount, useGcpserviceaccountQuery } from './hooks/useGcpserviceaccountQuery';
|
|
74
79
|
export { getAccessibleBudgetGroupSummaries, useGetAccessibleBudgetGroupSummariesMutation, } from './hooks/useGetAccessibleBudgetGroupSummariesMutation';
|
|
75
80
|
export { getAccessibleBudgetSummaries, useGetAccessibleBudgetSummariesMutation, } from './hooks/useGetAccessibleBudgetSummariesMutation';
|
|
76
81
|
export { getAllFolderPerspectives, useGetAllFolderPerspectivesQuery, } from './hooks/useGetAllFolderPerspectivesQuery';
|
|
@@ -129,6 +134,7 @@ export { getPromptResources, useGetPromptResourcesQuery } from './hooks/useGetPr
|
|
|
129
134
|
export { getPromptRules, useGetPromptRulesQuery } from './hooks/useGetPromptRulesQuery';
|
|
130
135
|
export { getProviders, useGetProvidersMutation } from './hooks/useGetProvidersMutation';
|
|
131
136
|
export { getRecommendationCostSettings, useGetRecommendationCostSettingsQuery, } from './hooks/useGetRecommendationCostSettingsQuery';
|
|
137
|
+
export { getRecommendationJiraTransitions, useGetRecommendationJiraTransitionsQuery, } from './hooks/useGetRecommendationJiraTransitionsQuery';
|
|
132
138
|
export { getRecommendationPreferences, useGetRecommendationPreferencesQuery, } from './hooks/useGetRecommendationPreferencesQuery';
|
|
133
139
|
export { getRecommendationPresets, useGetRecommendationPresetsQuery, } from './hooks/useGetRecommendationPresetsQuery';
|
|
134
140
|
export { getRecommendationTags, useGetRecommendationTagsQuery, } from './hooks/useGetRecommendationTagsQuery';
|
|
@@ -194,6 +200,7 @@ export { postFilter, usePostFilterMutation } from './hooks/usePostFilterMutation
|
|
|
194
200
|
export { realizedSavingsTimeSeries, useRealizedSavingsTimeSeriesMutation, } from './hooks/useRealizedSavingsTimeSeriesMutation';
|
|
195
201
|
export { recommendationFilterValues, useRecommendationFilterValuesMutation, } from './hooks/useRecommendationFilterValuesMutation';
|
|
196
202
|
export { recommendationHealth, useRecommendationHealthQuery, } from './hooks/useRecommendationHealthQuery';
|
|
203
|
+
export { recommendationLifecycleStats, useRecommendationLifecycleStatsMutation, } from './hooks/useRecommendationLifecycleStatsMutation';
|
|
197
204
|
export { recommendationResourceTypeStats, useRecommendationResourceTypeStatsMutation, } from './hooks/useRecommendationResourceTypeStatsMutation';
|
|
198
205
|
export { recommendationStats, useRecommendationStatsMutation, } from './hooks/useRecommendationStatsMutation';
|
|
199
206
|
export { recommendationsCount, useRecommendationsCountMutation, } from './hooks/useRecommendationsCountMutation';
|
|
@@ -209,10 +216,12 @@ export { toggleAnomaliesIgnorelistRule, useToggleAnomaliesIgnorelistRuleMutation
|
|
|
209
216
|
export { toggleEnforcement, useToggleEnforcementMutation, } from './hooks/useToggleEnforcementMutation';
|
|
210
217
|
export { toggleForRecommendation, useToggleForRecommendationMutation, } from './hooks/useToggleForRecommendationMutation';
|
|
211
218
|
export { toggleGovernanceAlertRule, useToggleGovernanceAlertRuleMutation, } from './hooks/useToggleGovernanceAlertRuleMutation';
|
|
219
|
+
export { topCloudAccountGovernanceSavings, useTopCloudAccountGovernanceSavingsMutation, } from './hooks/useTopCloudAccountGovernanceSavingsMutation';
|
|
212
220
|
export { totalActiveEnforcements, useTotalActiveEnforcementsQuery, } from './hooks/useTotalActiveEnforcementsQuery';
|
|
213
221
|
export { totalEvaluations, useTotalEvaluationsQuery } from './hooks/useTotalEvaluationsQuery';
|
|
214
222
|
export { totalNewEnforcementRecommendations, useTotalNewEnforcementRecommendationsQuery, } from './hooks/useTotalNewEnforcementRecommendationsQuery';
|
|
215
223
|
export { totalRealisedSavingsGrouped, useTotalRealisedSavingsGroupedQuery, } from './hooks/useTotalRealisedSavingsGroupedQuery';
|
|
224
|
+
export { totalRealisedSavingsTimeSeries, useTotalRealisedSavingsTimeSeriesMutation, } from './hooks/useTotalRealisedSavingsTimeSeriesMutation';
|
|
216
225
|
export { totalRealisedSavingsV2, useTotalRealisedSavingsV2Mutation, } from './hooks/useTotalRealisedSavingsV2Mutation';
|
|
217
226
|
export { triggerDataIngestion, useTriggerDataIngestionMutation, } from './hooks/useTriggerDataIngestionMutation';
|
|
218
227
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 { AwsAccountConnectionDetail } from '../schemas/AwsAccountConnectionDetail';
|
|
2
|
+
export interface ResponseDtoAwsAccountConnectionDetail {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: AwsAccountConnectionDetail;
|
|
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 { 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 { JiraIssueTransitionNg } from '../schemas/JiraIssueTransitionNg';
|
|
2
|
+
export interface ResponseDtoListJiraIssueTransitionNg {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: JiraIssueTransitionNg[];
|
|
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
|
*/
|