(
&self,
_vars: &HashMap<String, String>,
pl: &integration::LogEvent,
)
| 144 | } |
| 145 | |
| 146 | async fn log_event( |
| 147 | &self, |
| 148 | _vars: &HashMap<String, String>, |
| 149 | pl: &integration::LogEvent, |
| 150 | ) -> Result<()> { |
| 151 | let b = match self.json { |
| 152 | true => serde_json::to_vec(&pl)?, |
| 153 | false => pl.encode_to_vec(), |
| 154 | }; |
| 155 | |
| 156 | self.post_event("log", b).await |
| 157 | } |
| 158 | |
| 159 | async fn status_event( |
| 160 | &self, |