|
curl -X POST -H "Content-Type: application/json" -d '{
|
|
"id": "mock_api_2",
|
|
"name": "Mock /ping",
|
|
"url": "http://127.0.0.1:8081/ping",
|
|
"method": "GET",
|
|
"type": "gauge",
|
|
"metrics": {
|
|
"response_time": 120.5,
|
|
"status_code": 200
|
|
}
|
|
}' http://localhost:9101/update
|