...
1# Copyright 2021 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15apiVersion: billingbudgets.cnrm.cloud.google.com/v1beta1
16kind: BillingBudgetsBudget
17metadata:
18 name: billingbudgetsbudget-sample-calendarbudget
19spec:
20 billingAccountRef:
21 # Replace "${BILLING_ACCOUNT_ID_FOR_BILLING_RESOURCES?}" with the numeric ID for your billing account
22 external: "${BILLING_ACCOUNT_ID_FOR_BILLING_RESOURCES?}"
23 displayName: "sample-budget"
24 budgetFilter:
25 projects:
26 - name: "billingbudgetsbudget-dep-calb"
27 creditTypes:
28 - "DISCOUNT"
29 creditTypesTreatment: "INCLUDE_SPECIFIED_CREDITS"
30 services:
31 # This is the service name for the Geolocation API.
32 - "services/0245-C3C9-3864"
33 labels:
34 label-one:
35 values:
36 - "value-one"
37 calendarPeriod: "MONTH"
38 amount:
39 specifiedAmount:
40 currencyCode: "USD"
41 units: 9000000
42 nanos: 0
43 thresholdRules:
44 - thresholdPercent: 0.5
45 spendBasis: "CURRENT_SPEND"
46 allUpdatesRule:
47 pubsubTopicRef:
48 name: "billingbudgetsbudget-dep-calendarbudget"
49 schemaVersion: "1.0"
50 monitoringNotificationChannels:
51 - name: "billingbudgetsbudget-dep-calendarbudget"
52 disableDefaultIamRecipients: false
View as plain text