Class: Cadenya::Models::OperationMetadata

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/operation_metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, account_id:, created_at:, profile_id:, workspace_id:, external_id: nil, labels: nil) ⇒ Object

Some parameter documentations has been truncated, see Cadenya::Models::OperationMetadata for more details.

Metadata for ephemeral operations and activities (e.g., objectives, executions, runs)

Parameters:

  • id (String)

    Unique identifier for the operation (prefixed ULID, e.g., “obj_01HXK…”)

  • account_id (String)

    Account this operation belongs to for multi-tenant isolation (prefixed ULID)

  • created_at (Time)

    Timestamp when this operation was created

  • profile_id (String)

    ID of the actor (user or service account) that created this operation

  • workspace_id (String)

    Workspace this operation belongs to for organizational grouping (prefixed ULID)

  • external_id (String) (defaults to: nil)

    External ID for the operation (e.g., a workflow ID from an external system)

  • labels (Hash{Symbol=>String}) (defaults to: nil)

    Arbitrary key-value pairs for categorization and filtering



# File 'lib/cadenya/models/operation_metadata.rb', line 52

Instance Attribute Details

#external_idString?

External ID for the operation (e.g., a workflow ID from an external system)

Returns:

  • (String, nil)


10
# File 'lib/cadenya/models/operation_metadata.rb', line 10

optional :external_id, String, api_name: :externalId

#labelsHash{Symbol=>String}?

Arbitrary key-value pairs for categorization and filtering Examples: “high”, “source”: “api”, “workflow”: “onboarding”

Returns:

  • (Hash{Symbol=>String}, nil)


17
# File 'lib/cadenya/models/operation_metadata.rb', line 17

optional :labels, Cadenya::Internal::Type::HashOf[String]