Ametista
Collector
Controller
@RestController
@RequestMapping(value = "BASE_EQUINOX_ENDPOINT + APPLICATIONS_KEY + "/{" + APPLICATION_IDENTIFIER_KEY + "}""
)
The AmetistaCollectorController
class
is useful to manage all the collection operations requested by the Ametista-Engine
Author
N7ghtm4r3 - Tecknobit
See also
EquinoxController
Properties
Link copied to clipboard
collectorHelper
helper to
manage the collection operations
Link copied to clipboard
private val DEBUG_OPERATION_EXECUTED_SUCCESSFULLY: String = "debug_operation_executed_successfully_key"
DEBUG_OPERATION_EXECUTED_SUCCESSFULLY
message sent when the collection request has been completed
successfully
Link copied to clipboard
IS_DEBUG_MODE
whether the
analytics sent by the Ametista-Engine must be counted
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
PLATFORM_ALREADY_CONNECTED
error message used when the platform requested to connect is
already connected
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
@PutMapping(path = ""/" + PERFORMANCE_ANALYTICS_KEY",
params = [],
headers = []
)
Method to collect an analytics for the
application
Link copied to clipboard
@PutMapping(path = ""/" + ISSUES_KEY",
params = [],
headers = []
)
Method to collect a new issue for the
application
Link copied to clipboard
@PutMapping(params = [],
headers = []
)
Method to connect a new platform for the
application
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Method to send the debug request response
Link copied to clipboard
Link copied to clipboard
private open fun validateCollectorRequest(applicationId: String, serverSecret: String): AmetistaApplication
Method to validate the collector request
checking the server secret and the identifier of the
application sent