Class: DatadogAPIClient::V2::AiGatewayRoutingRuleTargetRequest

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

Overview

Model target or reference to another routing rule used to create or replace a rule.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



54
55
56
# File 'lib/datadog_api_client/v2/models/ai_gateway_routing_rule_target_request.rb', line 54

def additional_properties
  @additional_properties
end

#default ⇒ Object

Whether this is the single default classified destination. Omission preserves a saved value; null clears it.



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

def default
  @default
end

#id ⇒ Object

Saved target row ID. On replacement, retain this ID only within its original route and at most once. A stale, foreign, duplicate, or destination-changing ID is rejected. Hidden route targets can be retained using only this parent-local ID and type.



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

def id
  @id
end

#model ⇒ Object

Model name. Omit when retaining a saved target by ID or selecting a concrete target by model_id.



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

def model
  @model
end

#model_id ⇒ Object

Opaque model catalog ID for a concrete model target. New selections require provider View; saved selections can be retained without metadata.



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

def model_id
  @model_id
end

#provider ⇒ Object

Provider slug. weighted_affinity and classified tiers require an explicit provider and do not allow "*".



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

def provider
  @provider
end

#reasoning_level ⇒ Object

Optional reasoning effort preference for this model destination. Must be supported by the selected model and provider. For provider "*", every eligible provider must support the level. An explicit value overrides the request's reasoning setting, subject to model-group policy. Omitted or null preserves request and provider behavior; none is an explicit level, not the default. On update, omission preserves a saved target override; null explicitly clears it. Routing-rule references cannot set this field; each referenced model destination owns its override. If an override cannot be applied at runtime, the gateway keeps the destination and restores the caller's original reasoning settings, or preserves the provider default when omitted. It rechecks all applicable route and model-group policies against those settings before sending. Model-group max_reasoning_level enforces hard limits; the override is not an additional cap. Normal fallback applies if governance denies the resulting request or the destination cannot otherwise serve it. Metrics and span tags record the override outcome and incompatibility reason. When response headers have not already been committed, X-Ai-Gateway-Reasoning-Override reports applied or not_applied for the returned attempt, and X-Ai-Gateway-Reasoning-Override-Reason reports the reason when not applied.



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

def reasoning_level
  @reasoning_level
end

#rubric ⇒ Object

Destination rubric in a classified tier: when the decision model picks this destination. Up to 300 characters after leading and trailing spaces are trimmed, and different for each destination in the tier. Omission preserves a saved value; null clears it. Must be absent on the default destination.



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

def rubric
  @rubric
end

#slug ⇒ Object

Organization-unique routing rule slug. New references require route View. Omit to retain a saved target by its parent-local ID. Allowed only in configured tiers.



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

def slug
  @slug
end

#type ⇒ Object

Type of routing target.



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

def type
  @type
end

#weight ⇒ Object

Relative weight in a weighted_affinity tier. Omission preserves a saved target weight; new targets and explicit null default to 1. Weights need not total 100. Must be omitted or null in configured tiers.



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

def weight
  @weight
end