src/cost/dto/update-cost-endpoint.dto.ts
Data Transfer Object to update Cost Endpoints in Turo
Properties |
| Optional config |
Type : KubecostConfig | AWSConfig | AzureConfig
|
Decorators :
@ApiProperty()
|
|
Defined in src/cost/dto/update-cost-endpoint.dto.ts:32
|
| Optional endpointType |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/cost/dto/update-cost-endpoint.dto.ts:40
|
|
Endpoint type eg: kubecost |
| Optional label |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/cost/dto/update-cost-endpoint.dto.ts:50
|
|
Label to be used by endpoint's internal query API to fetch raw data eg: app:traefik |
| Optional name |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/cost/dto/update-cost-endpoint.dto.ts:19
|
| Optional projectID |
Type : number
|
Decorators :
@ApiProperty()
|
|
Defined in src/cost/dto/update-cost-endpoint.dto.ts:27
|
|
Project ID |
| Optional syncState |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/cost/dto/update-cost-endpoint.dto.ts:58
|
|
Sync state of the endpoint |
import { AWSConfig } from "../../providers/aws/aws.types";
import { KubecostConfig } from "../../providers/kubecost/kubecost.types";
import { ApiProperty } from "@nestjs/swagger";
import {
IsNumber,
IsOptional,
IsString,
ValidateNested,
} from "class-validator";
import { AzureConfig } from "../../providers/azure/azure.types";
/**
* Data Transfer Object to update Cost Endpoints in Turo
*/
export class UpdateCostEndpointDto {
@ApiProperty()
@IsString()
@IsOptional()
name?: string;
/**
* Project ID
*/
@ApiProperty()
@IsNumber()
@IsOptional()
projectID?: number;
@ApiProperty()
@ValidateNested({ each: true })
@IsOptional()
config?: KubecostConfig | AWSConfig | AzureConfig;
/**
* Endpoint type eg: kubecost
*/
@ApiProperty()
@IsString()
@IsOptional()
endpointType?: string;
/**
* Label to be used by endpoint's
* internal query API to fetch raw data
* eg: app:traefik
*/
@ApiProperty()
@IsString()
@IsOptional()
label?: string;
/**
* Sync state of the endpoint
*/
@ApiProperty()
@IsString()
@IsOptional()
syncState?: string;
}