Module: Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspaces
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces.rb,
sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces.rbs
Overview
Which of the organization's workspaces a telemetry destination covers.
Several destinations can cover the same workspace. Each of them receives the workspace's spans while it is enabled.
The workspace list of an include or exclude destination isn't part of the
destination object. List the destination's workspaces to read it. Add or remove
one workspace at a time, or replace the whole list with an update. A list holds
at most 1,000 workspaces.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesAll, ...
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesAll, Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesInclude, Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesExclude)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:) ⇒ Anthropic::Beta::Organization::BetaTelemetryDestinationWorkspacesAll .new(type:) ⇒ Anthropic::Beta::Organization::BetaTelemetryDestinationWorkspacesInclude .new(type:) ⇒ Anthropic::Beta::Organization::BetaTelemetryDestinationWorkspacesExclude .new(type:) ⇒ Anthropic::Models::Beta::Organization::beta_telemetry_destination_workspaces
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces.rb', line 53 def self.new(type:, **args) case type.to_sym when :all Anthropic::Beta::Organization::BetaTelemetryDestinationWorkspacesAll.new(**args) when :include Anthropic::Beta::Organization::BetaTelemetryDestinationWorkspacesInclude.new(**args) when :exclude Anthropic::Beta::Organization::BetaTelemetryDestinationWorkspacesExclude.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces.rb', line 37
|
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesAll, Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesInclude, Anthropic::Models::Beta::Organization::BetaTelemetryDestinationWorkspacesExclude)
|
|
# File 'lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces.rb', line 41
|