Skip to content
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 HiveMQ export command for client details #151

Merged
merged 50 commits into from
Aug 6, 2020
Merged

Add HiveMQ export command for client details #151

merged 50 commits into from
Aug 6, 2020

Conversation

gitseti
Copy link
Contributor

@gitseti gitseti commented Jul 30, 2020

Motivation

  • The HiveMQ broker will be offering a rest api endpoint with its upcoming 4.4 release
  • This PR adds an export command to fetch all client details from a HiveMQ deployment

Changes

  • Add a new command line mqtt hivemq (entry point for HiveMQ specific commands)
  • Add a new command line to the hivemq command line mqtt hivemq export (entry point for HiveMQ api export commands)
  • Add a new subcommand to the export command mqtt hivemq export clients:
Export HiveMQ client details
 -url=<url>           The url of the HiveMQ API endpoint (default http://localhost:8888)
  -f, --file=<file>        The file to write the output to (defaults to a timestamped file in the current working directory)
  -r, --rate=<rateLimit>   The rate limit of the rest calls to the HiveMQ API endpoint in requests per second (default 1500 rps)
      --format=<format>    The export output format (default csv)
      --csvLineSeparator=<csvLineSeparator>
                           An own defined line separator for the csv writing (default ,)
      --csvQuoteChar=<csvQuoteCharacter>
                           An own defined quote character for the csv writing (default ")
      --csvEscChar=<csvEscapeChar>
                           An own defined escape character for the csv writing (default ")
      --csvLineEndChar=<csvLineEndCharacter>
                           An own defined line end character for the csv writing (default \n)

@gitseti gitseti requested review from sauroter and schaebo July 30, 2020 09:57
@gitseti gitseti mentioned this pull request Jul 30, 2020
build.gradle Outdated Show resolved Hide resolved
@gitseti gitseti requested a review from sauroter August 3, 2020 15:48
Copy link
Contributor Author

@gitseti gitseti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix logging statements

Copy link
Member

@sauroter sauroter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small change.

@gitseti gitseti merged commit b6772dc into develop Aug 6, 2020
@gitseti gitseti deleted the hivemq/rest branch August 6, 2020 12:27
@gitseti gitseti mentioned this pull request Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants