Skip to content

Commit e3e1940

Browse files
feat(api): api update
1 parent d7de81f commit e3e1940

126 files changed

Lines changed: 6395 additions & 5076 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1794
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bf6dcd562e592c1c6d992e04b39d5b372e2a7cb4d3fdcad23e483e21389bd3aa.yml
3-
openapi_spec_hash: 8b8da2355d909906fe7af3bc6f507487
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-30efa40691b98103286847b205833ad21710167803bc3208a0f7e57a5299b0d0.yml
3+
openapi_spec_hash: e8b320d3cfc4a0677dd17d3bbe0ef380
44
config_hash: 14ab8e50e701fb810517a2ab075abfa4

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3005,7 +3005,6 @@ from cloudflare.types.rulesets import (
30053005
ManagedChallengeRule,
30063006
RedirectRule,
30073007
RewriteRule,
3008-
RewriteURIPart,
30093008
RouteRule,
30103009
RulesetRule,
30113010
ScoreRule,

src/cloudflare/resources/radar/ai/timeseries_groups.py

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def with_streaming_response(self) -> TimeseriesGroupsResourceWithStreamingRespon
5757

5858
def summary(
5959
self,
60-
dimension: Literal["USER_AGENT", "CRAWL_PURPOSE"],
60+
dimension: Literal["USER_AGENT", "CRAWL_PURPOSE", "INDUSTRY", "VERTICAL"],
6161
*,
6262
asn: List[str] | NotGiven = NOT_GIVEN,
6363
continent: List[str] | NotGiven = NOT_GIVEN,
@@ -66,9 +66,11 @@ def summary(
6666
date_range: List[str] | NotGiven = NOT_GIVEN,
6767
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
6868
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
69+
industry: List[str] | NotGiven = NOT_GIVEN,
6970
limit_per_group: int | NotGiven = NOT_GIVEN,
7071
location: List[str] | NotGiven = NOT_GIVEN,
7172
name: List[str] | NotGiven = NOT_GIVEN,
73+
vertical: List[str] | NotGiven = NOT_GIVEN,
7274
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7375
# The extra values given here take precedence over values defined on the client or passed to this method.
7476
extra_headers: Headers | None = None,
@@ -104,6 +106,8 @@ def summary(
104106
105107
format: Format in which results will be returned.
106108
109+
industry: Filters results by industry.
110+
107111
limit_per_group: Limits the number of objects per group to the top items within the specified
108112
time range. When item count exceeds the limit, extra items appear grouped under
109113
an "other" category.
@@ -114,6 +118,8 @@ def summary(
114118
115119
name: Array of names used to label the series in the response.
116120
121+
vertical: Filters results by vertical.
122+
117123
extra_headers: Send extra headers
118124
119125
extra_query: Add additional query parameters to the request
@@ -140,9 +146,11 @@ def summary(
140146
"date_range": date_range,
141147
"date_start": date_start,
142148
"format": format,
149+
"industry": industry,
143150
"limit_per_group": limit_per_group,
144151
"location": location,
145152
"name": name,
153+
"vertical": vertical,
146154
},
147155
timeseries_group_summary_params.TimeseriesGroupSummaryParams,
148156
),
@@ -162,10 +170,12 @@ def timeseries(
162170
date_range: List[str] | NotGiven = NOT_GIVEN,
163171
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
164172
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
173+
industry: List[str] | NotGiven = NOT_GIVEN,
165174
limit_per_group: int | NotGiven = NOT_GIVEN,
166175
location: List[str] | NotGiven = NOT_GIVEN,
167176
name: List[str] | NotGiven = NOT_GIVEN,
168177
user_agent: List[str] | NotGiven = NOT_GIVEN,
178+
vertical: List[str] | NotGiven = NOT_GIVEN,
169179
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
170180
# The extra values given here take precedence over values defined on the client or passed to this method.
171181
extra_headers: Headers | None = None,
@@ -202,6 +212,8 @@ def timeseries(
202212
203213
format: Format in which results will be returned.
204214
215+
industry: Filters results by industry.
216+
205217
limit_per_group: Limits the number of objects per group to the top items within the specified
206218
time range. When item count exceeds the limit, extra items appear grouped under
207219
an "other" category.
@@ -214,6 +226,8 @@ def timeseries(
214226
215227
user_agent: Filters results by user agent.
216228
229+
vertical: Filters results by vertical.
230+
217231
extra_headers: Send extra headers
218232
219233
extra_query: Add additional query parameters to the request
@@ -239,10 +253,12 @@ def timeseries(
239253
"date_range": date_range,
240254
"date_start": date_start,
241255
"format": format,
256+
"industry": industry,
242257
"limit_per_group": limit_per_group,
243258
"location": location,
244259
"name": name,
245260
"user_agent": user_agent,
261+
"vertical": vertical,
246262
},
247263
timeseries_group_timeseries_params.TimeseriesGroupTimeseriesParams,
248264
),
@@ -253,7 +269,7 @@ def timeseries(
253269

254270
def timeseries_groups(
255271
self,
256-
dimension: Literal["USER_AGENT", "CRAWL_PURPOSE"],
272+
dimension: Literal["USER_AGENT", "CRAWL_PURPOSE", "INDUSTRY", "VERTICAL"],
257273
*,
258274
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
259275
asn: List[str] | NotGiven = NOT_GIVEN,
@@ -263,10 +279,12 @@ def timeseries_groups(
263279
date_range: List[str] | NotGiven = NOT_GIVEN,
264280
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
265281
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
282+
industry: List[str] | NotGiven = NOT_GIVEN,
266283
limit_per_group: int | NotGiven = NOT_GIVEN,
267284
location: List[str] | NotGiven = NOT_GIVEN,
268285
name: List[str] | NotGiven = NOT_GIVEN,
269286
normalization: Literal["PERCENTAGE_CHANGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN,
287+
vertical: List[str] | NotGiven = NOT_GIVEN,
270288
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
271289
# The extra values given here take precedence over values defined on the client or passed to this method.
272290
extra_headers: Headers | None = None,
@@ -306,6 +324,8 @@ def timeseries_groups(
306324
307325
format: Format in which results will be returned.
308326
327+
industry: Filters results by industry.
328+
309329
limit_per_group: Limits the number of objects per group to the top items within the specified
310330
time range. When item count exceeds the limit, extra items appear grouped under
311331
an "other" category.
@@ -319,6 +339,8 @@ def timeseries_groups(
319339
normalization: Normalization method applied to the results. Refer to
320340
[Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
321341
342+
vertical: Filters results by vertical.
343+
322344
extra_headers: Send extra headers
323345
324346
extra_query: Add additional query parameters to the request
@@ -346,10 +368,12 @@ def timeseries_groups(
346368
"date_range": date_range,
347369
"date_start": date_start,
348370
"format": format,
371+
"industry": industry,
349372
"limit_per_group": limit_per_group,
350373
"location": location,
351374
"name": name,
352375
"normalization": normalization,
376+
"vertical": vertical,
353377
},
354378
timeseries_group_timeseries_groups_params.TimeseriesGroupTimeseriesGroupsParams,
355379
),
@@ -476,7 +500,7 @@ def with_streaming_response(self) -> AsyncTimeseriesGroupsResourceWithStreamingR
476500

477501
async def summary(
478502
self,
479-
dimension: Literal["USER_AGENT", "CRAWL_PURPOSE"],
503+
dimension: Literal["USER_AGENT", "CRAWL_PURPOSE", "INDUSTRY", "VERTICAL"],
480504
*,
481505
asn: List[str] | NotGiven = NOT_GIVEN,
482506
continent: List[str] | NotGiven = NOT_GIVEN,
@@ -485,9 +509,11 @@ async def summary(
485509
date_range: List[str] | NotGiven = NOT_GIVEN,
486510
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
487511
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
512+
industry: List[str] | NotGiven = NOT_GIVEN,
488513
limit_per_group: int | NotGiven = NOT_GIVEN,
489514
location: List[str] | NotGiven = NOT_GIVEN,
490515
name: List[str] | NotGiven = NOT_GIVEN,
516+
vertical: List[str] | NotGiven = NOT_GIVEN,
491517
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
492518
# The extra values given here take precedence over values defined on the client or passed to this method.
493519
extra_headers: Headers | None = None,
@@ -523,6 +549,8 @@ async def summary(
523549
524550
format: Format in which results will be returned.
525551
552+
industry: Filters results by industry.
553+
526554
limit_per_group: Limits the number of objects per group to the top items within the specified
527555
time range. When item count exceeds the limit, extra items appear grouped under
528556
an "other" category.
@@ -533,6 +561,8 @@ async def summary(
533561
534562
name: Array of names used to label the series in the response.
535563
564+
vertical: Filters results by vertical.
565+
536566
extra_headers: Send extra headers
537567
538568
extra_query: Add additional query parameters to the request
@@ -559,9 +589,11 @@ async def summary(
559589
"date_range": date_range,
560590
"date_start": date_start,
561591
"format": format,
592+
"industry": industry,
562593
"limit_per_group": limit_per_group,
563594
"location": location,
564595
"name": name,
596+
"vertical": vertical,
565597
},
566598
timeseries_group_summary_params.TimeseriesGroupSummaryParams,
567599
),
@@ -581,10 +613,12 @@ async def timeseries(
581613
date_range: List[str] | NotGiven = NOT_GIVEN,
582614
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
583615
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
616+
industry: List[str] | NotGiven = NOT_GIVEN,
584617
limit_per_group: int | NotGiven = NOT_GIVEN,
585618
location: List[str] | NotGiven = NOT_GIVEN,
586619
name: List[str] | NotGiven = NOT_GIVEN,
587620
user_agent: List[str] | NotGiven = NOT_GIVEN,
621+
vertical: List[str] | NotGiven = NOT_GIVEN,
588622
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
589623
# The extra values given here take precedence over values defined on the client or passed to this method.
590624
extra_headers: Headers | None = None,
@@ -621,6 +655,8 @@ async def timeseries(
621655
622656
format: Format in which results will be returned.
623657
658+
industry: Filters results by industry.
659+
624660
limit_per_group: Limits the number of objects per group to the top items within the specified
625661
time range. When item count exceeds the limit, extra items appear grouped under
626662
an "other" category.
@@ -633,6 +669,8 @@ async def timeseries(
633669
634670
user_agent: Filters results by user agent.
635671
672+
vertical: Filters results by vertical.
673+
636674
extra_headers: Send extra headers
637675
638676
extra_query: Add additional query parameters to the request
@@ -658,10 +696,12 @@ async def timeseries(
658696
"date_range": date_range,
659697
"date_start": date_start,
660698
"format": format,
699+
"industry": industry,
661700
"limit_per_group": limit_per_group,
662701
"location": location,
663702
"name": name,
664703
"user_agent": user_agent,
704+
"vertical": vertical,
665705
},
666706
timeseries_group_timeseries_params.TimeseriesGroupTimeseriesParams,
667707
),
@@ -672,7 +712,7 @@ async def timeseries(
672712

673713
async def timeseries_groups(
674714
self,
675-
dimension: Literal["USER_AGENT", "CRAWL_PURPOSE"],
715+
dimension: Literal["USER_AGENT", "CRAWL_PURPOSE", "INDUSTRY", "VERTICAL"],
676716
*,
677717
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
678718
asn: List[str] | NotGiven = NOT_GIVEN,
@@ -682,10 +722,12 @@ async def timeseries_groups(
682722
date_range: List[str] | NotGiven = NOT_GIVEN,
683723
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
684724
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
725+
industry: List[str] | NotGiven = NOT_GIVEN,
685726
limit_per_group: int | NotGiven = NOT_GIVEN,
686727
location: List[str] | NotGiven = NOT_GIVEN,
687728
name: List[str] | NotGiven = NOT_GIVEN,
688729
normalization: Literal["PERCENTAGE_CHANGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN,
730+
vertical: List[str] | NotGiven = NOT_GIVEN,
689731
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
690732
# The extra values given here take precedence over values defined on the client or passed to this method.
691733
extra_headers: Headers | None = None,
@@ -725,6 +767,8 @@ async def timeseries_groups(
725767
726768
format: Format in which results will be returned.
727769
770+
industry: Filters results by industry.
771+
728772
limit_per_group: Limits the number of objects per group to the top items within the specified
729773
time range. When item count exceeds the limit, extra items appear grouped under
730774
an "other" category.
@@ -738,6 +782,8 @@ async def timeseries_groups(
738782
normalization: Normalization method applied to the results. Refer to
739783
[Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
740784
785+
vertical: Filters results by vertical.
786+
741787
extra_headers: Send extra headers
742788
743789
extra_query: Add additional query parameters to the request
@@ -765,10 +811,12 @@ async def timeseries_groups(
765811
"date_range": date_range,
766812
"date_start": date_start,
767813
"format": format,
814+
"industry": industry,
768815
"limit_per_group": limit_per_group,
769816
"location": location,
770817
"name": name,
771818
"normalization": normalization,
819+
"vertical": vertical,
772820
},
773821
timeseries_group_timeseries_groups_params.TimeseriesGroupTimeseriesGroupsParams,
774822
),

0 commit comments

Comments
 (0)