You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: airbyte_cdk/sources/declarative/declarative_component_schema.yaml
+54-13Lines changed: 54 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,12 @@ properties:
40
40
"$ref": "#/definitions/Spec"
41
41
concurrency_level:
42
42
"$ref": "#/definitions/ConcurrencyLevel"
43
+
api_budget:
44
+
title: API Budget
45
+
description: Defines how many requests can be made to the API in a given time frame. This field accepts either a generic APIBudget or an HTTP-specific configuration (HTTPAPIBudget) to be applied across all streams.
46
+
anyOf:
47
+
- "$ref": "#/definitions/APIBudget"
48
+
- "$ref": "#/definitions/HTTPAPIBudget"
43
49
metadata:
44
50
type: object
45
51
description: For internal Airbyte use only - DO NOT modify manually. Used by consumers of declarative manifests for storing related metadata.
@@ -794,7 +800,7 @@ definitions:
794
800
description: This option is used to adjust the upper and lower boundaries of each datetime window to beginning and end of the provided target period (day, week, month)
795
801
type: object
796
802
required:
797
-
- target
803
+
- target
798
804
properties:
799
805
target:
800
806
title: Target
@@ -1367,17 +1373,49 @@ definitions:
1367
1373
additional_properties: true
1368
1374
APIBudget:
1369
1375
title: API Budget
1370
-
description: Component that defines how many requests can be made to the API in a given time frame.
1376
+
description: >
1377
+
A generic API budget configuration that defines the policies (rate limiting rules)
1378
+
and the maximum number of attempts to acquire a call credit. This budget does not automatically
1379
+
update itself based on HTTP response headers.
1371
1380
type: object
1372
1381
required:
1373
1382
- type
1383
+
- policies
1374
1384
properties:
1375
1385
type:
1376
1386
type: string
1377
1387
enum: [APIBudget]
1378
1388
policies:
1379
1389
title: Policies
1380
-
description: List of policies that define the rate limits for different types of requests.
1390
+
description: List of call rate policies that define how many calls are allowed.
description="Defines how many requests can be made to the API in a given time frame. This field accepts either a generic APIBudget or an HTTP-specific configuration (HTTPAPIBudget) to be applied across all streams.",
1903
+
title="API Budget",
1904
+
)
1870
1905
metadata: Optional[Dict[str, Any]] =Field(
1871
1906
None,
1872
1907
description="For internal Airbyte use only - DO NOT modify manually. Used by consumers of declarative manifests for storing related metadata.",
description="Defines how many requests can be made to the API in a given time frame. This field accepts either a generic APIBudget or an HTTP-specific configuration (HTTPAPIBudget) to be applied across all streams.",
1934
+
title="API Budget",
1935
+
)
1896
1936
metadata: Optional[Dict[str, Any]] =Field(
1897
1937
None,
1898
1938
description="For internal Airbyte use only - DO NOT modify manually. Used by consumers of declarative manifests for storing related metadata.",
@@ -2104,11 +2144,6 @@ class HttpRequester(BaseModel):
2104
2144
description="Error handler component that defines how to handle errors.",
2105
2145
title="Error Handler",
2106
2146
)
2107
-
api_budget: Optional[APIBudget] =Field(
2108
-
None,
2109
-
description="Component that defines how many requests can be made to the API in a given time frame.",
2110
-
title="API Budget",
2111
-
)
2112
2147
http_method: Optional[HttpMethod] =Field(
2113
2148
HttpMethod.GET,
2114
2149
description="The HTTP method used to fetch data from the source (can be GET or POST).",
0 commit comments