(command: string, durationMs: number)
| 257 | } |
| 258 | |
| 259 | async captureCommandCompleted(command: string, durationMs: number) { |
| 260 | if (!this.enabled || !this.distinctId) { |
| 261 | return |
| 262 | } |
| 263 | |
| 264 | await postEvent('command_completed', this.distinctId, <TelemetryProperties>cleanProperties({ |
| 265 | ...this.baseProperties(), |
| 266 | ...this.commandProperties, |
| 267 | command, |
| 268 | duration_ms: durationMs, |
| 269 | result: 'success', |
| 270 | steps: this.completedSteps.map((step) => ({ |
| 271 | duration_ms: step.durationMs, |
| 272 | id: step.id, |
| 273 | type: step.type, |
| 274 | })), |
| 275 | })) |
| 276 | } |
| 277 | |
| 278 | async captureCommandFailed( |
| 279 | command: string, |
no test coverage detected