Skip to content
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

octo: modified api request in cost usage #293

Merged
merged 3 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions api/cover/costforecast.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,14 @@ message AwsCostForecast {
double unblendedCost = 7;
double unblendedLowerBound = 8;
double unblendedUpperBound = 9;
}

message IncludeForecast {
// true if include the forecast
bool include = 1;

string startDate = 2;

string endDate = 3;

}
2 changes: 1 addition & 1 deletion cover/v1/cover.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ message GetCostUsageRequest {
GetCostUsageRequestCustomOptions customOptions = 13;

// Optional. If set to true, include cost forecast for current month
bool includeCostForecast = 9;
api.cover.IncludeForecast includeForecast = 14;
}

message GetCostUsageRequestAwsOptions {
Expand Down
19 changes: 17 additions & 2 deletions openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -14615,6 +14615,21 @@
}
}
},
"coverIncludeForecast": {
"type": "object",
"properties": {
"include": {
"type": "boolean",
"title": "true if include the forecast"
},
"startDate": {
"type": "string"
},
"endDate": {
"type": "string"
}
}
},
"coverLayoutRequests": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -18439,8 +18454,8 @@
"$ref": "#/definitions/v1GetCostUsageRequestCustomOptions",
"description": "Optional. For custom selection when creating cost groups.\nThis field allows custom options for specifying criteria for cost group creation."
},
"includeCostForecast": {
"type": "boolean",
"includeForecast": {
"$ref": "#/definitions/coverIncludeForecast",
"title": "Optional. If set to true, include cost forecast for current month"
}
}
Expand Down
Loading