Skip to content

Fix swagger definition of usage #504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 26 additions & 24 deletions modules/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -999,27 +999,29 @@ definitions:
and it was rolled back.
usage:
description: "usage cost of the aws account from start date to end date"
type: object
properties:
principalId:
type: string
description: >
principalId of the user who owns the lease of the AWS account
accountId:
type: string
description: accountId of the AWS account
startDate:
type: number
description: usage start date as Epoch Timestamp
endDate:
type: number
description: usage end date as Epoch Timestamp
costAmount:
type: number
description: usage cost Amount of AWS account for given period
costCurrency:
type: string
description: usage cost currency
timeToLive:
type: number
description: ttl attribute as Epoch Timestamp
type: array
items:
type: object
properties:
principalId:
type: string
description: >
principalId of the user who owns the lease of the AWS account
accountId:
type: string
description: accountId of the AWS account
startDate:
type: number
description: usage start date as Epoch Timestamp
endDate:
type: number
description: usage end date as Epoch Timestamp
costAmount:
type: number
description: usage cost Amount of AWS account for given period
costCurrency:
type: string
description: usage cost currency
timeToLive:
type: number
description: ttl attribute as Epoch Timestamp