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 ability to export log as json #20

Open
masukomi opened this issue Jan 13, 2023 · 0 comments
Open

add ability to export log as json #20

masukomi opened this issue Jan 13, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@masukomi
Copy link
Owner

hey log-json <duration>

Basically the same thing as hey log <duration> but it would output a JSON array with containing a denormalized object / Hash for each event that looked like this.

events that had not ended /would/ be included, but would have null in the ended_at field.

{
  "type": "event",
  "id": 12345,
  "created_at": "<ISO-8601 string>",
  "updated_at": "<ISO-8601 string>",
  "started_at": "<ISO-8601 string>",
  "ended_at": "<ISO-8601 string>",
  "total_seconds": 12345,
  "projects": [ "foo", "bar"],
  "tags": ["baz", "beedle"]
}
@masukomi masukomi added enhancement New feature or request good first issue Good for newcomers labels Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant