MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / send_auth_failed

Method send_auth_failed

crates/chat-cli/src/telemetry/mod.rs:237–250  ·  view source on GitHub ↗
(
        &self,
        auth_method: &str,
        oauth_flow: &str,
        error_type: &str,
        error_code: Option<String>,
    )

Source from the content-addressed store, hash-verified

235 }
236
237 pub fn send_auth_failed(
238 &self,
239 auth_method: &str,
240 oauth_flow: &str,
241 error_type: &str,
242 error_code: Option<String>,
243 ) -> Result<(), TelemetryError> {
244 Ok(self.tx.send(Event::new(EventType::AuthFailed {
245 auth_method: auth_method.to_string(),
246 oauth_flow: oauth_flow.to_string(),
247 error_type: error_type.to_string(),
248 error_code,
249 }))?)
250 }
251
252 pub fn send_daily_heartbeat(&self) -> Result<(), TelemetryError> {
253 Ok(self.tx.send(Event::new(EventType::DailyHeartbeat {}))?)

Callers 2

refresh_tokenMethod · 0.80
poll_create_tokenFunction · 0.80

Calls 2

to_stringMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected