{"request_id":"req_001","timestamp":"2024-01-15T10:00:00Z","api":{"endpoint":"/graphql","queries":[{"operation":"getUsers","filters":{"status":"active","role":{"in":["admin","moderator"]}},"results":{"users":[{"id":1,"name":"alice","permissions":{"read":true,"write":true,"delete":false},"last_login":"2024-01-14T15:30:00Z"},{"id":2,"name":"bob","permissions":{"read":true,"write":false,"delete":false},"last_login":"2024-01-13T09:15:00Z"}],"total":2,"page":1}},{"operation":"getPosts","filters":{"published":true,"tags":["tech","security"]},"results":{"posts":[{"id":101,"title":"Security Best Practices","author_id":1,"tags":["security","authentication"],"metrics":{"views":1523,"likes":89,"comments":[{"user_id":3,"text":"Great post!","sentiment":"positive"},{"user_id":4,"text":"Needs more examples","sentiment":"neutral"}]}},{"id":102,"title":"Tech Trends 2024","author_id":2,"tags":["tech","future"],"metrics":{"views":2341,"likes":156,"comments":[{"user_id":5,"text":"Very insightful","sentiment":"positive"}]}}],"total":2}}]},"response":{"status":200,"duration_ms":245,"cached":false}}
{"request_id":"req_002","timestamp":"2024-01-15T10:00:05Z","api":{"endpoint":"/rest/v2/orders","queries":[{"operation":"listOrders","filters":{"customer":{"region":"us-west","tier":"premium"},"date_range":{"start":"2024-01-01","end":"2024-01-15"}},"results":{"orders":[{"order_id":"ord_501","customer":{"id":1001,"name":"Acme Corp","contacts":[{"type":"primary","email":"orders@acme.com"},{"type":"billing","email":"billing@acme.com"}]},"items":[{"sku":"PROD-A","quantity":50,"unit_price":99.99,"discounts":[{"type":"volume","percent":10},{"type":"loyalty","percent":5}],"final_price":4274.79},{"sku":"PROD-B","quantity":25,"unit_price":149.99,"discounts":[{"type":"volume","percent":10}],"final_price":3374.78}],"totals":{"subtotal":7649.57,"tax":612.36,"shipping":25.00,"grand_total":8286.93},"fulfillment":{"warehouse":"WH-001","status":"shipped","tracking":"TRK12345","estimated_delivery":"2024-01-18"}},{"order_id":"ord_502","customer":{"id":1002,"name":"TechStart Inc","contacts":[{"type":"primary","email":"team@techstart.io"}]},"items":[{"sku":"PROD-C","quantity":100,"unit_price":49.99,"discounts":[],"final_price":4999.00}],"totals":{"subtotal":4999.00,"tax":399.92,"shipping":0.00,"grand_total":5398.92},"fulfillment":{"warehouse":"WH-002","status":"processing","tracking":null,"estimated_delivery":"2024-01-20"}}],"summary":{"total_orders":2,"total_revenue":13685.85,"avg_order_value":6842.93}}}]},"response":{"status":200,"duration_ms":567,"cached":true}}
{"request_id":"req_003","timestamp":"2024-01-15T10:00:10Z","api":{"endpoint":"/analytics/dashboard","queries":[{"operation":"getMetrics","time_range":{"start":"2024-01-15T09:00:00Z","end":"2024-01-15T10:00:00Z","granularity":"5m"},"results":{"timeseries":[{"timestamp":"2024-01-15T09:00:00Z","metrics":{"requests":1523,"errors":12,"latency":{"p50":45,"p95":234,"p99":567},"status_codes":{"2xx":1489,"4xx":22,"5xx":12}}},{"timestamp":"2024-01-15T09:05:00Z","metrics":{"requests":1687,"errors":8,"latency":{"p50":42,"p95":198,"p99":445},"status_codes":{"2xx":1665,"4xx":14,"5xx":8}}},{"timestamp":"2024-01-15T09:10:00Z","metrics":{"requests":1834,"errors":15,"latency":{"p50":48,"p95":267,"p99":623},"status_codes":{"2xx":1801,"4xx":18,"5xx":15}}}],"aggregates":{"total_requests":5044,"total_errors":35,"error_rate":0.69,"avg_latency":45,"peak_requests_per_min":367},"top_endpoints":[{"path":"/api/users","count":1234,"avg_latency":34},{"path":"/api/posts","count":987,"avg_latency":56},{"path":"/api/comments","count":654,"avg_latency":23}]}}]},"response":{"status":200,"duration_ms":1234,"cached":false}}
{"request_id":"req_004","timestamp":"2024-01-15T10:00:15Z","api":{"endpoint":"/ml/predictions","queries":[{"operation":"batchPredict","model":{"name":"fraud_detection","version":"v2.3.1","metadata":{"trained_on":"2024-01-10","accuracy":0.94,"features":["transaction_amount","user_history","device_fingerprint","location","time_of_day"]}},"inputs":[{"transaction_id":"txn_001","amount":1523.50,"user":{"id":5001,"history":{"total_transactions":156,"avg_amount":234.56,"fraud_reports":0}},"context":{"device":"iPhone","location":{"country":"US","city":"Portland","lat":45.5231,"lon":-122.6765},"time":"2024-01-15T09:45:00Z"}},{"transaction_id":"txn_002","amount":9999.99,"user":{"id":5002,"history":{"total_transactions":3,"avg_amount":45.67,"fraud_reports":0}},"context":{"device":"Unknown","location":{"country":"NG","city":"Lagos","lat":6.5244,"lon":3.3792},"time":"2024-01-15T09:50:00Z"}}],"predictions":[{"transaction_id":"txn_001","fraud_score":0.05,"decision":"approve","confidence":0.98,"factors":{"positive":["established_user","normal_location","typical_amount"],"negative":[]}},{"transaction_id":"txn_002","fraud_score":0.87,"decision":"review","confidence":0.91,"factors":{"positive":[],"negative":["new_user","unusual_location","high_amount","unknown_device"]}}]}]},"response":{"status":200,"duration_ms":892,"cached":false}}
{"request_id":"req_005","timestamp":"2024-01-15T10:00:20Z","api":{"endpoint":"/search/advanced","queries":[{"operation":"facetedSearch","query":"kubernetes security","filters":{"content_type":{"in":["article","video","tutorial"]},"publication_date":{"after":"2023-01-01"},"difficulty":{"in":["intermediate","advanced"]}},"facets":{"tags":{"security":234,"kubernetes":456,"devops":189,"containers":345},"authors":{"alice":12,"bob":8,"charlie":15},"years":{"2023":89,"2024":156}},"results":{"items":[{"id":"doc_001","title":"Kubernetes Security Best Practices","type":"article","author":"alice","tags":["kubernetes","security","rbac"],"metadata":{"published":"2024-01-10","updated":"2024-01-12","word_count":2345,"read_time_minutes":12},"relevance_score":0.95},{"id":"doc_002","title":"Securing Container Workloads","type":"video","author":"bob","tags":["security","containers","kubernetes"],"metadata":{"published":"2023-11-15","duration_seconds":1820,"views":5432},"relevance_score":0.89},{"id":"doc_003","title":"Advanced RBAC Configuration","type":"tutorial","author":"charlie","tags":["kubernetes","security","rbac","authorization"],"metadata":{"published":"2024-01-05","steps":15,"difficulty":"advanced","completion_rate":0.67},"relevance_score":0.87}],"pagination":{"total":245,"page":1,"per_page":3,"total_pages":82}}}]},"response":{"status":200,"duration_ms":178,"cached":false}}
