(
&self,
auth_method: &str,
oauth_flow: &str,
error_type: &str,
error_code: Option<String>,
)
| 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 {}))?) |
no test coverage detected