(host: &str, operations: serde_json::Value)
| 2176 | } |
| 2177 | |
| 2178 | fn l7_graphql_input(host: &str, operations: serde_json::Value) -> serde_json::Value { |
| 2179 | serde_json::json!({ |
| 2180 | "network": { "host": host, "port": 443 }, |
| 2181 | "exec": { |
| 2182 | "path": "/usr/bin/curl", |
| 2183 | "ancestors": [], |
| 2184 | "cmdline_paths": [] |
| 2185 | }, |
| 2186 | "request": { |
| 2187 | "method": "POST", |
| 2188 | "path": "/graphql", |
| 2189 | "query_params": {}, |
| 2190 | "graphql": { |
| 2191 | "operations": operations |
| 2192 | } |
| 2193 | } |
| 2194 | }) |
| 2195 | } |
| 2196 | |
| 2197 | fn l7_graphql_error_input(host: &str, error: &str) -> serde_json::Value { |
| 2198 | serde_json::json!({ |
no outgoing calls