Interface RateLimitService
-
- All Implemented Interfaces:
public interface RateLimitService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRateLimitService.WithRawResponseA view of RateLimitService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract RateLimitService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract RateLimitServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. BetaWorkspaceRateLimitupdate(String rateLimitId, RateLimitUpdateParams params)Set or clear rate-limit overrides for one rate-limit group in a workspace. BetaWorkspaceRateLimitupdate(String rateLimitId, RateLimitUpdateParams params, RequestOptions requestOptions)BetaWorkspaceRateLimitupdate(RateLimitUpdateParams params)abstract BetaWorkspaceRateLimitupdate(RateLimitUpdateParams params, RequestOptions requestOptions)RateLimitListPagelist(String workspaceId)List a workspace's rate limits. RateLimitListPagelist(String workspaceId, RateLimitListParams params, RequestOptions requestOptions)RateLimitListPagelist(String workspaceId, RateLimitListParams params)abstract RateLimitListPagelist(RateLimitListParams params, RequestOptions requestOptions)RateLimitListPagelist(RateLimitListParams params)RateLimitListPagelist(String workspaceId, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract RateLimitService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract RateLimitService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
update
BetaWorkspaceRateLimit update(String rateLimitId, RateLimitUpdateParams params)
Set or clear rate-limit overrides for one rate-limit group in a workspace.
Only the limiter types named in
limitschange: an integervaluesets that type's override andnullclears it. Types not named keep their current value. A value above the organization's own limit is stored, but the organization limit still applies, so the lower of the two is enforced.Returns the targeted group's entry with this request applied, in the shape
GET /v1/organizations/workspaces/{workspace_id}/rate_limitsreturns. Changes take effect within about an hour.
-
update
BetaWorkspaceRateLimit update(String rateLimitId, RateLimitUpdateParams params, RequestOptions requestOptions)
-
update
BetaWorkspaceRateLimit update(RateLimitUpdateParams params)
-
update
abstract BetaWorkspaceRateLimit update(RateLimitUpdateParams params, RequestOptions requestOptions)
-
list
RateLimitListPage list(String workspaceId)
List a workspace's rate limits.
By default, returns only the groups and limiter types that have a workspace-level override. With
include_inherited=true, returns every group with organization-level limits the workspace can see, listing for each the values it inherits from the organization as well as its own overrides. Each value'ssourcesays which it is.When
limitis omitted, every matching entry is returned in a single page; whenlimittruncates the result, follownext_pageto fetch the remaining entries.
-
list
RateLimitListPage list(String workspaceId, RateLimitListParams params, RequestOptions requestOptions)
-
list
RateLimitListPage list(String workspaceId, RateLimitListParams params)
-
list
abstract RateLimitListPage list(RateLimitListParams params, RequestOptions requestOptions)
-
list
RateLimitListPage list(RateLimitListParams params)
-
list
RateLimitListPage list(String workspaceId, RequestOptions requestOptions)
-
-
-
-