Class: Cline::Log::Properties
- Defined in:
- lib/cline/log.rb
Overview
Event-specific properties for telemetry entries
Instance Attribute Summary
Attributes inherited from Schema
Public API collapse
-
#agent_id ⇒ String?
Agent identifier.
-
#agent_kind ⇒ String?
Agent kind (e.g. "team_lead").
-
#api_provider ⇒ String?
API provider name (e.g. "cline").
-
#cache_read_tokens ⇒ Integer?
Cache read tokens count.
-
#cache_write_tokens ⇒ Integer?
Cache write tokens count.
-
#cline_type ⇒ String?
Cline type (e.g. "cli").
-
#conversation_id ⇒ String?
Conversation identifier.
-
#distinct_id ⇒ String?
Distinct identifier.
-
#duration_ms ⇒ Integer?
Duration in milliseconds.
-
#enable_agent_teams ⇒ Boolean?
Whether agent teams are enabled.
-
#enable_spawn_agent ⇒ Boolean?
Whether spawn agent is enabled.
-
#enable_tools ⇒ Boolean?
Whether tools are enabled.
-
#event_type ⇒ String?
Event type (e.g. "run-started", "turn-started").
-
#extension_version ⇒ String?
Extension version (e.g. "3.0.7").
-
#feature_flag_enabled ⇒ Boolean?
Whether feature flags are enabled.
-
#has_git ⇒ Boolean?
Whether the workspace has git.
-
#has_mercurial ⇒ Boolean?
Whether the workspace has mercurial.
-
#init_duration_ms ⇒ Float?
Initialization duration in milliseconds.
-
#is_multi_root ⇒ Boolean?
Whether the workspace has multiple roots.
-
#is_subagent ⇒ Boolean?
Whether this is a subagent.
-
#iteration ⇒ Integer?
Iteration number.
-
#lead_agent_id ⇒ String?
Lead agent identifier for teams.
-
#mode ⇒ String?
Mode of operation (e.g. "act").
-
#model ⇒ String?
Model name (e.g. "deepseek/deepseek-v4-flash").
-
#model_id ⇒ String?
Model identifier (e.g. "deepseek/deepseek-v4-flash").
-
#os_type ⇒ String?
Operating system type (e.g. "win32").
-
#os_version ⇒ String?
Operating system version (e.g. "Windows 11 Pro").
-
#platform ⇒ String?
Platform name (e.g. "cline").
-
#platform_version ⇒ String?
Platform version (e.g. "v24.3.0").
-
#provider ⇒ String?
Model provider (e.g. "cline").
-
#provider_id ⇒ String?
Provider identifier.
-
#restored_from_persistence ⇒ String?
Whether the session was restored from persistence.
-
#root_count ⇒ Integer?
Number of workspace roots.
-
#run_id ⇒ String?
Run identifier for agent runs.
-
#session_id ⇒ String?
Session identifier.
-
#source ⇒ String?
Source of the conversation turn (e.g. "user", "assistant").
-
#status ⇒ String?
Status of a run or task (e.g. "running", "completed").
-
#success ⇒ Boolean?
Whether the tool use was successful.
-
#team_id ⇒ String?
Team identifier.
-
#team_name ⇒ String?
Team name.
-
#team_role ⇒ String?
Team role (e.g. "lead").
-
#timestamp ⇒ String?
Timestamp in ISO 8601 format.
-
#tokens_in ⇒ Integer?
Input tokens count.
-
#tokens_out ⇒ Integer?
Output tokens count.
-
#tool ⇒ String?
Tool name used (e.g. "ask_question", "run_commands").
-
#total_cost ⇒ Float?
Total cost of the API call.
-
#ulid ⇒ String?
Unique identifier for tasks and sessions.
-
#vcs_types ⇒ Array<String>?
VCS types (e.g. ["git"]).
Methods inherited from Schema
#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash
Instance Method Details
#agent_id ⇒ String?
Returns Agent identifier.
86 |
# File 'lib/cline/log.rb', line 86 attribute :agent_id, :string |
#agent_kind ⇒ String?
Returns Agent kind (e.g. "team_lead").
89 |
# File 'lib/cline/log.rb', line 89 attribute :agent_kind, :string |
#api_provider ⇒ String?
Returns API provider name (e.g. "cline").
83 |
# File 'lib/cline/log.rb', line 83 attribute :api_provider, :string |
#cache_read_tokens ⇒ Integer?
Returns Cache read tokens count.
161 |
# File 'lib/cline/log.rb', line 161 attribute :cache_read_tokens, :integer |
#cache_write_tokens ⇒ Integer?
Returns Cache write tokens count.
164 |
# File 'lib/cline/log.rb', line 164 attribute :cache_write_tokens, :integer |
#cline_type ⇒ String?
Returns Cline type (e.g. "cli").
205 |
# File 'lib/cline/log.rb', line 205 attribute :cline_type, :string |
#conversation_id ⇒ String?
Returns Conversation identifier.
92 |
# File 'lib/cline/log.rb', line 92 attribute :conversation_id, :string |
#distinct_id ⇒ String?
Returns Distinct identifier.
220 |
# File 'lib/cline/log.rb', line 220 attribute :distinct_id, :string |
#duration_ms ⇒ Integer?
Returns Duration in milliseconds.
173 |
# File 'lib/cline/log.rb', line 173 attribute :duration_ms, :integer |
#enable_agent_teams ⇒ Boolean?
Returns Whether agent teams are enabled.
149 |
# File 'lib/cline/log.rb', line 149 attribute :enable_agent_teams, :boolean |
#enable_spawn_agent ⇒ Boolean?
Returns Whether spawn agent is enabled.
146 |
# File 'lib/cline/log.rb', line 146 attribute :enable_spawn_agent, :boolean |
#enable_tools ⇒ Boolean?
Returns Whether tools are enabled.
143 |
# File 'lib/cline/log.rb', line 143 attribute :enable_tools, :boolean |
#event_type ⇒ String?
Returns Event type (e.g. "run-started", "turn-started").
137 |
# File 'lib/cline/log.rb', line 137 attribute :event_type, :string |
#extension_version ⇒ String?
Returns Extension version (e.g. "3.0.7").
202 |
# File 'lib/cline/log.rb', line 202 attribute :extension_version, :string |
#feature_flag_enabled ⇒ Boolean?
Returns Whether feature flags are enabled.
199 |
# File 'lib/cline/log.rb', line 199 attribute :feature_flag_enabled, :boolean |
#has_git ⇒ Boolean?
Returns Whether the workspace has git.
190 |
# File 'lib/cline/log.rb', line 190 attribute :has_git, :boolean |
#has_mercurial ⇒ Boolean?
Returns Whether the workspace has mercurial.
193 |
# File 'lib/cline/log.rb', line 193 attribute :has_mercurial, :boolean |
#init_duration_ms ⇒ Float?
Returns Initialization duration in milliseconds.
196 |
# File 'lib/cline/log.rb', line 196 attribute :init_duration_ms, :float |
#is_multi_root ⇒ Boolean?
Returns Whether the workspace has multiple roots.
187 |
# File 'lib/cline/log.rb', line 187 attribute :is_multi_root, :boolean |
#is_subagent ⇒ Boolean?
Returns Whether this is a subagent.
95 |
# File 'lib/cline/log.rb', line 95 attribute :is_subagent, :boolean |
#iteration ⇒ Integer?
Returns Iteration number.
134 |
# File 'lib/cline/log.rb', line 134 attribute :iteration, :integer |
#lead_agent_id ⇒ String?
Returns Lead agent identifier for teams.
107 |
# File 'lib/cline/log.rb', line 107 attribute :lead_agent_id, :string |
#mode ⇒ String?
Returns Mode of operation (e.g. "act").
122 |
# File 'lib/cline/log.rb', line 122 attribute :mode, :string |
#model ⇒ String?
Returns Model name (e.g. "deepseek/deepseek-v4-flash").
116 |
# File 'lib/cline/log.rb', line 116 attribute :model, :string |
#model_id ⇒ String?
Returns Model identifier (e.g. "deepseek/deepseek-v4-flash").
113 |
# File 'lib/cline/log.rb', line 113 attribute :model_id, :string |
#os_type ⇒ String?
Returns Operating system type (e.g. "win32").
214 |
# File 'lib/cline/log.rb', line 214 attribute :os_type, :string |
#os_version ⇒ String?
Returns Operating system version (e.g. "Windows 11 Pro").
217 |
# File 'lib/cline/log.rb', line 217 attribute :os_version, :string |
#platform ⇒ String?
Returns Platform name (e.g. "cline").
208 |
# File 'lib/cline/log.rb', line 208 attribute :platform, :string |
#platform_version ⇒ String?
Returns Platform version (e.g. "v24.3.0").
211 |
# File 'lib/cline/log.rb', line 211 attribute :platform_version, :string |
#provider ⇒ String?
Returns Model provider (e.g. "cline").
110 |
# File 'lib/cline/log.rb', line 110 attribute :provider, :string |
#provider_id ⇒ String?
Returns Provider identifier.
176 |
# File 'lib/cline/log.rb', line 176 attribute :provider_id, :string |
#restored_from_persistence ⇒ String?
Returns Whether the session was restored from persistence.
223 |
# File 'lib/cline/log.rb', line 223 attribute :restored_from_persistence, :boolean |
#root_count ⇒ Integer?
Returns Number of workspace roots.
181 |
# File 'lib/cline/log.rb', line 181 attribute :root_count, :integer |
#run_id ⇒ String?
Returns Run identifier for agent runs.
128 |
# File 'lib/cline/log.rb', line 128 attribute :run_id, :string |
#session_id ⇒ String?
Returns Session identifier.
140 |
# File 'lib/cline/log.rb', line 140 attribute :session_id, :string |
#source ⇒ String?
Returns Source of the conversation turn (e.g. "user", "assistant").
119 |
# File 'lib/cline/log.rb', line 119 attribute :source, :string |
#status ⇒ String?
Returns Status of a run or task (e.g. "running", "completed").
131 |
# File 'lib/cline/log.rb', line 131 attribute :status, :string |
#success ⇒ Boolean?
Returns Whether the tool use was successful.
170 |
# File 'lib/cline/log.rb', line 170 attribute :success, :boolean |
#team_id ⇒ String?
Returns Team identifier.
98 |
# File 'lib/cline/log.rb', line 98 attribute :team_id, :string |
#team_name ⇒ String?
Returns Team name.
101 |
# File 'lib/cline/log.rb', line 101 attribute :team_name, :string |
#team_role ⇒ String?
Returns Team role (e.g. "lead").
104 |
# File 'lib/cline/log.rb', line 104 attribute :team_role, :string |
#timestamp ⇒ String?
Returns Timestamp in ISO 8601 format.
125 |
# File 'lib/cline/log.rb', line 125 attribute :timestamp, :string |
#tokens_in ⇒ Integer?
Returns Input tokens count.
152 |
# File 'lib/cline/log.rb', line 152 attribute :tokens_in, :integer |
#tokens_out ⇒ Integer?
Returns Output tokens count.
155 |
# File 'lib/cline/log.rb', line 155 attribute :tokens_out, :integer |
#tool ⇒ String?
Returns Tool name used (e.g. "ask_question", "run_commands").
167 |
# File 'lib/cline/log.rb', line 167 attribute :tool, :string |
#total_cost ⇒ Float?
Returns Total cost of the API call.
158 |
# File 'lib/cline/log.rb', line 158 attribute :total_cost, :float |
#ulid ⇒ String?
Returns Unique identifier for tasks and sessions.
80 |
# File 'lib/cline/log.rb', line 80 attribute :ulid, :string |
#vcs_types ⇒ Array<String>?
Returns VCS types (e.g. ["git"]).
184 |
# File 'lib/cline/log.rb', line 184 attribute :vcs_types, Utils::Schema.collection(:string) |