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.



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

def additional_properties
  @additional_properties
end

#created_at ⇒ Object

Creation timestamp.



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

def created_at
  @created_at
end

#created_by ⇒ Object

Email of the user who created this rate limit.



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

def created_by
  @created_by
end

#enabled ⇒ Object

Whether this rate limit is active.



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

def enabled
  @enabled
end

#input_tokens_per_minute ⇒ Object

Maximum input tokens per rolling minute shared by all matching traffic. Null when this rule does not limit input tokens.



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

def input_tokens_per_minute
  @input_tokens_per_minute
end

#mode ⇒ Object

Action taken when request rate exceeds the limit.



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

def mode
  @mode
end

#monitor_id ⇒ Object

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



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

def monitor_id
  @monitor_id
end

#name ⇒ Object

Rate limit name.



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

def name
  @name
end

#output_tokens_per_minute ⇒ Object

Maximum output tokens per rolling minute shared by all matching traffic. Null when this rule does not limit output tokens.



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

def output_tokens_per_minute
  @output_tokens_per_minute
end

#requests_per_minute ⇒ Object

Maximum requests per rolling minute shared by all matching traffic. Null when this rule does not limit requests.



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

def requests_per_minute
  @requests_per_minute
end

#revision ⇒ Object

Increases on every change to the definition.



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

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.



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

def scope_restricted
  @scope_restricted
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.



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

def tags
  @tags
end

#team_id ⇒ Object

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



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

def team_id
  @team_id
end

#updated_at ⇒ Object

Last modification timestamp.



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

def updated_at
  @updated_at
end

#updated_by ⇒ Object

Email of the user who last modified this rate limit.



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

def updated_by
  @updated_by
end

#user_id ⇒ Object

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



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

def user_id
  @user_id
end