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

feat: change budget fields #121

Merged
merged 1 commit into from
Aug 31, 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
17 changes: 14 additions & 3 deletions proto/spaceone/api/cost_analysis/v1/budget.proto
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ message BudgetNotification {
NotificationType notification_type = 3;
}

message ProviderFilter {
enum State {
STATE_NONE = 0;
ENABLED = 1;
DISABLED = 2;
}

State state = 1;
repeated string providers = 2;
}

//{
// "name": "Cloudforet-Budget",
// "planned_limits": [{"date": "2022-01", "limit": 1000.0},
Expand Down Expand Up @@ -127,7 +138,7 @@ message CreateBudgetRequest {
// +optional
repeated PlannedLimit planned_limits = 3;
// +optional
google.protobuf.Struct cost_types = 4;
ProviderFilter provider_filter = 4;
TimeUnit time_unit = 5;
string start = 6;
string end = 7;
Expand Down Expand Up @@ -167,7 +178,7 @@ message UpdateBudgetRequest {
// +optional
repeated PlannedLimit planned_limits = 4;
// +optional
string end = 5;
ProviderFilter provider_filter = 5;
// +optional
google.protobuf.Struct tags = 6;
string domain_id = 11;
Expand Down Expand Up @@ -315,7 +326,7 @@ message BudgetInfo {
float limit = 3;
repeated PlannedLimit planned_limits = 4;
string currency = 5;
google.protobuf.Struct cost_types = 6;
ProviderFilter provider_filter = 6;
TimeUnit time_unit = 7;
string start = 8;
string end = 9;
Expand Down
1 change: 0 additions & 1 deletion proto/spaceone/api/cost_analysis/v1/budget_usage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ message BudgetUsageInfo {
float cost = 5;
float limit = 6;
string currency = 7;
google.protobuf.Struct cost_types = 8;
string project_id = 11;
string project_group_id = 12;
string data_source_id = 13;
Expand Down
127 changes: 0 additions & 127 deletions proto/spaceone/api/cost_analysis/v1/exchange_rate.proto

This file was deleted.