Updated readme for two endpoints
This commit is contained in:
1 parent
18df7d8fd5
commit
e793b04918
1 file changed
+59
-32
@@ -695,18 +695,43 @@ curl --request GET \
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"success": true,
|
"success": true,
|
||||||
"msg": "Monitor found",
|
"msg": "Got monitor by Id successfully",
|
||||||
"data": {
|
"data": {
|
||||||
"_id": "664d070786e62625ac612ca1",
|
"_id": "6671eb54f7040ece47892f53",
|
||||||
"userId": "6645079aae0b439371913972",
|
"userId": "666c9146c9bfa20db790b1df",
|
||||||
"name": "My Monitor",
|
"name": "Google Monitor",
|
||||||
"description": "Description",
|
"description": "Google",
|
||||||
"url": "https://monitor0.com",
|
"type": "http",
|
||||||
|
"url": "https://www.google.com/404",
|
||||||
"isActive": true,
|
"isActive": true,
|
||||||
"interval": 60000,
|
"interval": 10000,
|
||||||
"createdAt": "2024-05-21T20:41:43.051Z",
|
"createdAt": "2024-06-18T20:17:24.112Z",
|
||||||
"updatedAt": "2024-05-21T20:45:10.496Z",
|
"updatedAt": "2024-06-18T20:17:24.112Z",
|
||||||
"__v": 0
|
"__v": 0,
|
||||||
|
"checks": [
|
||||||
|
{
|
||||||
|
"_id": "6671eb5af7040ece47892f61",
|
||||||
|
"monitorId": "6671eb54f7040ece47892f53",
|
||||||
|
"status": false,
|
||||||
|
"responseTime": 145,
|
||||||
|
"expiry": "2024-06-18T20:17:30.246Z",
|
||||||
|
"statusCode": 404,
|
||||||
|
"createdAt": "2024-06-18T20:17:30.246Z",
|
||||||
|
"updatedAt": "2024-06-18T20:17:30.246Z",
|
||||||
|
"__v": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "6671eb64f7040ece47892f6b",
|
||||||
|
"monitorId": "6671eb54f7040ece47892f53",
|
||||||
|
"status": false,
|
||||||
|
"responseTime": 170,
|
||||||
|
"expiry": "2024-06-18T20:17:40.209Z",
|
||||||
|
"statusCode": 404,
|
||||||
|
"createdAt": "2024-06-18T20:17:40.210Z",
|
||||||
|
"updatedAt": "2024-06-18T20:17:40.210Z",
|
||||||
|
"__v": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -741,31 +766,33 @@ curl --request GET \
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"success": true,
|
"success": true,
|
||||||
"msg": "Monitors for user 6645079aae0b439371913972 found",
|
"msg": "Got monitor for 666c9146c9bfa20db790b1df successfully\"",
|
||||||
"data": [
|
"data": [
|
||||||
{
|
{
|
||||||
"_id": "664d070786e62625ac612ca1",
|
"_id": "6671eb54f7040ece47892f53",
|
||||||
"userId": "6645079aae0b439371913972",
|
"userId": "666c9146c9bfa20db790b1df",
|
||||||
"name": "Wha3",
|
"name": "Google Monitor",
|
||||||
"description": "Description",
|
"description": "Google",
|
||||||
"url": "https://monitor0.com",
|
"type": "http",
|
||||||
|
"url": "https://www.google.com/404",
|
||||||
"isActive": true,
|
"isActive": true,
|
||||||
"interval": 60000,
|
"interval": 10000,
|
||||||
"createdAt": "2024-05-21T20:41:43.051Z",
|
"createdAt": "2024-06-18T20:17:24.112Z",
|
||||||
"updatedAt": "2024-05-21T20:45:10.496Z",
|
"updatedAt": "2024-06-18T20:17:24.112Z",
|
||||||
"__v": 0
|
"__v": 0,
|
||||||
},
|
"checks": [
|
||||||
{
|
{
|
||||||
"_id": "664e5ccf189c864800debc16",
|
"_id": "6671eb5af7040ece47892f61",
|
||||||
"userId": "6645079aae0b439371913972",
|
"monitorId": "6671eb54f7040ece47892f53",
|
||||||
"name": "Inserting a new Monitor",
|
"status": false,
|
||||||
"description": "Description",
|
"responseTime": 145,
|
||||||
"url": "https://monitor0.com",
|
"expiry": "2024-06-18T20:17:30.246Z",
|
||||||
"isActive": true,
|
"statusCode": 404,
|
||||||
"interval": 60000,
|
"createdAt": "2024-06-18T20:17:30.246Z",
|
||||||
"createdAt": "2024-05-22T20:59:59.295Z",
|
"updatedAt": "2024-06-18T20:17:30.246Z",
|
||||||
"updatedAt": "2024-05-22T20:59:59.295Z",
|
"__v": 0
|
||||||
"__v": 0
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user