New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add devOps api function to get a list of all configured connections #605
Comments
I suggest to name this command "connectivity.commands:retrieveConnections" to match the name of RetrieveThings for example. Regarding the content of the response I'd either put only connectionIds in the response or the full JSON of all connections. The latter would result in a big message, which could be a problem because of the maximum message size in the ditto cluster. Put these selected fields in the response seems a bit randomly chosen to me. Would it be enough for your use case to get a list of all connection IDs which you could then retrieve one by one? |
I am fine with the name of the command :) good point to reuse the naming scheme. And I am pretty sure returning the complete connections details during Returning just the |
@Yannic92 I'm not sure if So maybe intentionally choosing another term like
|
@thjaeckle Valid point. RetrieveAttributes, RetrieveFeatures, RetrieveThings are all commands that receive something based on a given information. |
When implementing this, getting all "connection IDs" should be queried by using the Akka persistene read journal The new |
Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
…ds of all connections Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
…th one bd query from connection-snap collection Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
…r, add necessary config, add actor test, add unit for new retrieve command/response Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch.io>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
…ds of all connections Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
…th one bd query from connection-snap collection Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
…r, add necessary config, add actor test, add unit for new retrieve command/response Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch.io>
Signed-off-by: Vadim Guenther <vadim.guenther@bosch.io>
[#605] Add devOps api function to get a list of all configured connections
According to @thjaeckle there´s currently no way to use the API to list all the configured connections. The only way to get an overview is querying the connectivity mongodb.
I think, adding a new devOps command to list all configured connections would make the whole connectiviy-api more feature complete and makes ditto connections management a lot easier.
Maybe something like this...
The response could contain an array of elements with the following properties:
That is probably enough to identify the configured connections at the moment.
The text was updated successfully, but these errors were encountered: