(&self, hook_type: HookType, raw: Value)
| 174 | } |
| 175 | |
| 176 | fn parse_common(&self, hook_type: HookType, raw: Value) -> AgentResult<CommonInput> { |
| 177 | serde_json::from_value(raw).map_err(|e| AgentError::HookParseFailed { |
| 178 | agent: self.name().to_string(), |
| 179 | hook_type: hook_type.as_str().to_string(), |
| 180 | reason: e.to_string(), |
| 181 | }) |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | impl Default for GrokHook { |
no test coverage detected