usage
Type aliases
AggregatedUsageEntity
Ƭ AggregatedUsageEntity: Partial<BillableUsageEntity> & { billableUsage
: number ; count
: number }
BillableUsageEntity
Ƭ BillableUsageEntity: BillableUsageResponseDTO
Variables
PossibleAggregationFields
• Const
PossibleAggregationFields: Set<string>
Functions
aggregateUsage
▸ aggregateUsage(usages
: BillableUsageEntity[], aggregationFields
: Set<string>): AggregatedUsageEntity[]
Parameters:
Name | Type |
---|---|
usages | BillableUsageEntity[] |
aggregationFields | Set<string> |
Returns: AggregatedUsageEntity[]
getUsage
▸ getUsage(take
: number | undefined, skip
: number | undefined, filters
: IFilter[] | undefined, options?
: { account?
: Account }): Promise<BillableUsageEntity[]>
Parameters:
Name | Type |
---|---|
take | number | undefined |
skip | number | undefined |
filters | IFilter[] | undefined |
options? | object |
options.account? | Account |
Returns: Promise<BillableUsageEntity[]>
getUsageFilters
▸ getUsageFilters(filters
: IFilter[] | undefined, fillFilters
: IFilter[], options?
: { account?
: Account }): Promise<IFilter[]>
Parameters:
Name | Type |
---|---|
filters | IFilter[] | undefined |
fillFilters | IFilter[] |
options? | object |
options.account? | Account |
Returns: Promise<IFilter[]>
getUsageForJob
▸ getUsageForJob(jobId
: string, options?
: { account?
: Account }): Promise<BillableUsageEntity[] | undefined>
Parameters:
Name | Type |
---|---|
jobId | string |
options? | object |
options.account? | Account |
Returns: Promise<BillableUsageEntity[] | undefined>