FEAT: customer monitoring dashboard

This commit is contained in:
Gabriel Rosa
2024-06-21 09:21:27 -03:00
parent 0c333b476a
commit 8b6cd8a88e
3 changed files with 44 additions and 3 deletions
+40 -1
View File
@@ -490,6 +490,45 @@
]
}
},
"/pipelinesV2/monitoring-dashboard": {
"get": {
"operationId": "PipelinesController_getMonitoringDashboard",
"parameters": [
{
"name": "dadosfera-lang",
"in": "header",
"required": false,
"schema": {
"enum": [
"pt-br",
"en-us"
],
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
},
"tags": [
"PipelinesV2"
],
"security": [
{
"access-token": []
}
]
}
},
"/pipelinesV2": {
"post": {
"operationId": "PipelinesController_create",
@@ -1752,7 +1791,7 @@
}
},
"info": {
"title": "Maestro - feat/generate-token",
"title": "Maestro - feat/new-customer-monitoring",
"description": "This is the Maestro API",
"version": "1.0.0",
"contact": {}
+1 -1
View File
@@ -5137,7 +5137,7 @@
}
},
"info": {
"title": "Maestro - main",
"title": "Maestro - feat/new-customer-monitoring",
"description": "This is the Maestro API",
"version": "1.0.0",
"contact": {}
@@ -74,7 +74,9 @@ export class CustomersController {
}
@Get('monitoring-dashboard')
@RequireAllPermissions(PERMISSIONS_GROUPS.AUTH.permissions.GENERATE_TOKEN)
@RequireAllPermissions(
PERMISSIONS_GROUPS.CUSTOMER.permissions.MONITORING_DASHBOARD,
)
async getCustomerMonitoringDashboard(
@User() user: RequestUser,
): Promise<{ url: string }> {