Class: DatadogAPIClient::V2::AiGatewayRateLimitUpdateAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::AiGatewayRateLimitUpdateAttributes
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb
Overview
Attributes used to update an AI Gateway rate limit. Only sent fields are changed.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#cost_microcents_per_minute ⇒ Object
readonly
Spend limit in microcents per rolling minute.
-
#enabled ⇒ Object
Whether this rate limit is active.
-
#input_tokens_per_minute ⇒ Object
readonly
Set to 0 to remove the input token limit.
-
#mode ⇒ Object
Action taken when request rate exceeds the limit.
-
#name ⇒ Object
Rate limit name.
-
#output_tokens_per_minute ⇒ Object
readonly
Set to 0 to remove the output token limit.
-
#requests_per_minute ⇒ Object
readonly
Set to 0 to remove the request limit.
-
#tags ⇒ Object
Replaces all scope tags.
-
#team_id ⇒ Object
Replaces the Team scope.
-
#user_id ⇒ Object
Replaces the user scope.
-
#window_limits ⇒ Object
readonly
Replaces all limits over rolling windows longer than a minute.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
57 58 59 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 57 def additional_properties @additional_properties end |
#cost_microcents_per_minute ⇒ Object
Spend limit in microcents per rolling minute. Set to 0 to remove the cost limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.
25 26 27 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 25 def cost_microcents_per_minute @cost_microcents_per_minute end |
#enabled ⇒ Object
Whether this rate limit is active.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 28 def enabled @enabled end |
#input_tokens_per_minute ⇒ Object
Set to 0 to remove the input token limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.
31 32 33 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 31 def input_tokens_per_minute @input_tokens_per_minute end |
#mode ⇒ Object
Action taken when request rate exceeds the limit.
34 35 36 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 34 def mode @mode end |
#name ⇒ Object
Rate limit name.
37 38 39 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 37 def name @name end |
#output_tokens_per_minute ⇒ Object
Set to 0 to remove the output token limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.
40 41 42 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 40 def output_tokens_per_minute @output_tokens_per_minute end |
#requests_per_minute ⇒ Object
Set to 0 to remove the request limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.
43 44 45 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 43 def requests_per_minute @requests_per_minute end |
#tags ⇒ Object
Replaces all scope tags. An empty object clears them. Null is ignored.
46 47 48 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 46 def @tags end |
#team_id ⇒ Object
Replaces the Team scope. An empty string clears it. Null is ignored.
49 50 51 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 49 def team_id @team_id end |
#user_id ⇒ Object
Replaces the user scope. An empty string clears it. Null is ignored.
52 53 54 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 52 def user_id @user_id end |
#window_limits ⇒ Object
Replaces all limits over rolling windows longer than a minute. If window_limits is null or omitted, the existing limits are unchanged. An empty array removes them all. This field is available only to organizations with the feature enabled. Other organizations receive a 400 Bad Request response for a non-empty list. The same rules as on create apply. A rule can have at most four limits in total, including any per-minute limits that are set. Each metric and window pair can appear only once, and for the same metric, a longer window must have a larger amount. In ENFORCE mode, if the list includes a cost limit, the gateway rejects requests to models with no pricing because their cost can't be counted.
55 56 57 |
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_update_attributes.rb', line 55 def window_limits @window_limits end |