Skip to content

Commit 4c1c2b1

Browse files
committed
feat: add budget_manager_notification field at BudgetInfo
Signed-off-by: ImMin5 <[email protected]>
1 parent a8a80c2 commit 4c1c2b1

File tree

1 file changed

+49
-43
lines changed

1 file changed

+49
-43
lines changed

proto/spaceone/api/cost_analysis/v1/budget.proto

+49-43
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,14 @@ message PlannedLimit {
7575
}
7676

7777
message BudgetNotificationRecipients {
78+
enum BudgetManagerNotification {
79+
NONE = 0;
80+
ENABLED = 1;
81+
DISABLED = 2;
82+
}
7883
repeated string users = 1;
84+
BudgetManagerNotification budget_manager_notification = 2;
85+
7986

8087
}
8188

@@ -97,12 +104,6 @@ message BudgetNotification {
97104
DISABLED = 2;
98105
}
99106

100-
enum NotificationType {
101-
NOTIFICATION_TYPE_NONE = 0;
102-
CRITICAL = 1;
103-
WARNING = 2;
104-
}
105-
106107
BudgetNotificationState state = 1;
107108
repeated BudgetNotificationPlan plans = 2;
108109
BudgetNotificationRecipients recipients = 3;
@@ -137,7 +138,8 @@ message BudgetNotification {
137138
// }
138139
// ],
139140
// "recipients": {
140-
141+
142+
// "budget_manager_notification": "ENABLED"
141143
// }
142144
// },
143145
// "tags": {},
@@ -193,23 +195,26 @@ message CreateBudgetRequest {
193195
// "budget_id": "budget-d51b6b6a9910",
194196
// "budget_manager_id": "[email protected]",
195197
// "name": "Cloudforet-Budget-test", "limit": 15000.0,
196-
// "planned_limits": [{"date": "2022-01", "limit": 500.0},
197-
// {"date": "2022-02", "limit": 500.0},
198-
// {"date": "2022-03", "limit": 500.0},
199-
// {"date": "2022-04", "limit": 500.0},
200-
// {"date": "2022-05", "limit": 500.0},
201-
// {"date": "2022-06", "limit": 500.0},
202-
// {"date": "2022-07", "limit": 500.0},
203-
// {"date": "2022-08", "limit": 500.0},
204-
// {"date": "2022-09", "limit": 500.0}],
205-
// "start": "2022-01",
206-
// "end": "2022-12",
198+
// "planned_limits": [{"date": "2025-01", "limit": 500.0},
199+
// {"date": "2025-02", "limit": 500.0},
200+
// {"date": "2025-03", "limit": 500.0},
201+
// {"date": "2025-04", "limit": 500.0},
202+
// {"date": "2025-05", "limit": 500.0},
203+
// {"date": "2025-06", "limit": 500.0},
204+
// {"date": "2025-07", "limit": 500.0},
205+
// {"date": "2025-08", "limit": 500.0},
206+
// {"date": "2025-09", "limit": 500.0}],
207+
// "limit": 15000.0,
208+
// "budget_year": "2025",
209+
// "start": "2025-01",
210+
// "end": "2025-12",
207211
// "tags": {}
208212
//}
209213
message UpdateBudgetRequest {
210214
string budget_id = 1;
211215
// +optional
212216
string name = 2;
217+
// Only `TOTAL` time_unit budget can be updated
213218
// +optional
214219
double limit = 3;
215220
// +optional
@@ -240,6 +245,8 @@ message UpdateBudgetRequest {
240245
// "unit": "PERCENT"
241246
// }],
242247
// "recipients": {
248+
// "users": ["[email protected]"],
249+
// "budget_manager_notification": "ENABLED"
243250
// }
244251
// }
245252
//}
@@ -359,7 +366,8 @@ message BudgetQuery {
359366
// }
360367
// ],
361368
// "recipients": {
362-
// "users": ["[email protected]"]
369+
// "users": ["[email protected]"],
370+
// "budget_manager_notification": "ENABLED"
363371
// }
364372
// },
365373
// "utilization_rate": 20.0,
@@ -416,70 +424,68 @@ message BudgetInfo {
416424
// "limit": 18600.0,
417425
// "planned_limits": [
418426
// {
419-
// "date": "2022-01",
427+
// "date": "2025-01",
420428
// "limit": 1000.0
421429
// },
422430
// {
423-
// "date": "2022-02",
431+
// "date": "2025-02",
424432
// "limit": 1100.0
425433
// },
426434
// {
427-
// "date": "2022-03",
435+
// "date": "2025-03",
428436
// "limit": 1200.0
429437
// },
430438
// {
431-
// "date": "2022-04",
439+
// "date": "2025-04",
432440
// "limit": 1300.0
433441
// },
434442
// {
435-
// "date": "2022-05",
443+
// "date": "2025-05",
436444
// "limit": 1400.0
437445
// },
438446
// {
439-
// "date": "2022-06",
447+
// "date": "2025-06",
440448
// "limit": 1500.0
441449
// },
442450
// {
443-
// "date": "2022-07",
451+
// "date": "2025-07",
444452
// "limit": 1600.0
445453
// },
446454
// {
447-
// "date": "2022-08",
455+
// "date": "2025-08",
448456
// "limit": 1700.0
449457
// },
450458
// {
451-
// "date": "2022-09",
459+
// "date": "2025-09",
452460
// "limit": 1800.0
453461
// },
454462
// {
455-
// "date": "2022-10",
463+
// "date": "2025-10",
456464
// "limit": 1900.0
457465
// },
458466
// {
459-
// "date": "2022-11",
467+
// "date": "2025-11",
460468
// "limit": 2000.0
461469
// },
462470
// {
463-
// "date": "2022-12",
471+
// "date": "2025-12",
464472
// "limit": 2100.0
465473
// }
466474
// ],
467475
// "currency": "USD",
468-
// "provider_filter": {
469-
// "state": "ENABLED",
470-
// "providers": [
471-
// "aws",
472-
// "google_cloud"
473-
// ]
474-
// },
475476
// "time_unit": "MONTHLY",
476-
// "start": "2022-01",
477-
// "end": "2022-12",
477+
// "start": "2025-01",
478+
// "end": "2025-12",
478479
// "tags": {},
479-
// "project_group_id": "pg-812c90990877",
480+
// "utilization_rate": 20.0,
481+
// "budget_year": "2025",
482+
// "resource_group": "PROJECT",
483+
// "service_account_id": "sa-1234567890",
484+
// "project_id": "project-1234567890",
485+
// "workspace_id": "workspace-1234567890",
480486
// "domain_id": "domain-58010aa2e451",
481-
// "created_at": "2022-04-12T06:09:56.917Z",
482-
// "updated_at": "2022-04-12T06:09:56.917Z"
487+
// "created_at": "2025-04-12T06:09:56.917Z",
488+
// "updated_at": "2025-04-12T06:09:56.917Z"
483489
// }
484490
// ],
485491
// "total_count": 6

0 commit comments

Comments
 (0)