Class: DatadogAPIClient::V2::AiGatewayRateLimitAttributes

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb

Overview

Attributes of an AI Gateway rate limit.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



87
88
89
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 87

def additional_properties
  @additional_properties
end

#cost_microcents_per_minute ⇒ Object

Maximum priced spend per rolling minute, in microcents of 1e-8 USD each, shared by all matching traffic, or per counter for a template rate limit. Null when this rule does not limit cost.



25
26
27
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 25

def cost_microcents_per_minute
  @cost_microcents_per_minute
end

#created_at ⇒ Object

Creation timestamp.



28
29
30
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 28

def created_at
  @created_at
end

#created_by ⇒ Object

Email of the user who created this rate limit.



31
32
33
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 31

def created_by
  @created_by
end

#enabled ⇒ Object

Whether this rate limit is active.



34
35
36
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 34

def enabled
  @enabled
end

#input_tokens_per_minute ⇒ Object

Maximum input tokens per rolling minute shared by all matching traffic, or per counter for a template rate limit. Null when this rule does not limit input tokens.



37
38
39
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 37

def input_tokens_per_minute
  @input_tokens_per_minute
end

#is_template ⇒ Object

Whether the selector gives each matching value its own allowance, that is, whether it has at least one per_value entry. Returned even when scope_restricted hides the selector.



40
41
42
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 40

def is_template
  @is_template
end

#mode ⇒ Object

Action taken when request rate exceeds the limit.



43
44
45
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 43

def mode
  @mode
end

#monitor_id ⇒ Object

Datadog monitor that alerts on this rule. Null until one is provisioned.



46
47
48
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 46

def monitor_id
  @monitor_id
end

#name ⇒ Object

Rate limit name.



49
50
51
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 49

def name
  @name
end

#output_tokens_per_minute ⇒ Object

Maximum output tokens per rolling minute shared by all matching traffic, or per counter for a template rate limit. Null when this rule does not limit output tokens.



52
53
54
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 52

def output_tokens_per_minute
  @output_tokens_per_minute
end

#requests_per_minute ⇒ Object

Maximum requests per rolling minute shared by all matching traffic, or per counter for a template rate limit. Null when this rule does not limit requests.



55
56
57
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 55

def requests_per_minute
  @requests_per_minute
end

#revision ⇒ Object

Increases on every change to the definition.



58
59
60
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 58

def revision
  @revision
end

#scope_restricted ⇒ Object

Whether provider or model scope metadata was withheld. Omit unchanged scope fields on an unrelated update to preserve their saved values.



61
62
63
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 61

def scope_restricted
  @scope_restricted
end

#selector ⇒ Object

Dimension rules for a template rate limit, which gives each matched user, Team, or value its own allowance with the rule's limits. Can't be combined with user_id, team_id, or tags, and can't be changed after creation. Omit for a rule with one shared allowance.



64
65
66
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 64

def selector
  @selector
end

#tags ⇒ Object

Optional scope tags, such as provider, model, ml_app, or custom dimensions. A request matches when it has all of these tags.



67
68
69
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 67

def tags
  @tags
end

#team_id ⇒ Object

Optional Team UUID. Count only requests attributed to this Datadog Team.



70
71
72
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 70

def team_id
  @team_id
end

#template_split_dims ⇒ Object

Dimensions of the selector's per_value entries, such as user_id or tag:env, each matching value of which gets its own allowance. Empty unless is_template is true. Returned even when scope_restricted hides the selector.



73
74
75
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 73

def template_split_dims
  @template_split_dims
end

#updated_at ⇒ Object

Last modification timestamp.



76
77
78
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 76

def updated_at
  @updated_at
end

#updated_by ⇒ Object

Email of the user who last modified this rate limit.



79
80
81
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 79

def updated_by
  @updated_by
end

#user_id ⇒ Object

Optional user UUID. Count only this user's requests.



82
83
84
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 82

def user_id
  @user_id
end

#window_limits ⇒ Object

Limits over rolling windows longer than a minute. Each limit counts the rule's matching traffic, or each counter of a template rate limit, over its window. Per-minute limits are in the *_per_minute fields. This list is empty when the rule has no window limits.



85
86
87
# File 'lib/datadog_api_client/v2/models/ai_gateway_rate_limit_attributes.rb', line 85

def window_limits
  @window_limits
end