(&self, hook_type: HookType, raw: Value)
| 145 | } |
| 146 | |
| 147 | fn parse_common(&self, hook_type: HookType, raw: Value) -> AgentResult<CommonInput> { |
| 148 | serde_json::from_value(raw).map_err(|e| AgentError::HookParseFailed { |
| 149 | agent: self.name().to_string(), |
| 150 | hook_type: hook_type.as_str().to_string(), |
| 151 | reason: e.to_string(), |
| 152 | }) |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | impl Default for GrokHook { |
no test coverage detected