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 timestamp to the JSON output #67

Closed
wants to merge 4 commits into from
Closed

Conversation

gnud
Copy link

@gnud gnud commented Oct 27, 2020

  • Updated readme to include batch example
  • The timestamp is only included via json argument and verbose all together, providing ability to monitor the results via some tool

- Updated readme to include batch example
readme.md Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

Can you mention in the readme that the JSON output also includes a timestamp?

@sindresorhus sindresorhus changed the title Added a timestamp to the root node of the json result Add timestamp to the JSON output Oct 28, 2020
gnud and others added 2 commits October 28, 2020 12:54
Added suggested changes

Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Added long argument names as suggested
Copy link
Author

@gnud gnud left a comment

Choose a reason for hiding this comment

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

Added suggested changes, please confirm if they were applied.

@sindresorhus
Copy link
Owner

please confirm if they were applied.

I don't understand what this means. You can confirm yourself.

@sindresorhus
Copy link
Owner

You still need to do #67 (comment)

Describing the new timestamp property in the readme
Copy link
Author

@gnud gnud left a comment

Choose a reason for hiding this comment

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

All done :).

while true; do sleep 30; node cli.js --verbose --json; done >> ~/net.log
```

**Note**: using the **"--verbose"** and **"--json"** will include a timestamp **e.g**: "1603971242534" property generated now in form of a timestamp, good for recording the metrics in some monitoring software.
Copy link
Owner

Choose a reason for hiding this comment

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

This should be documented generally. It's not specific to "batch monitoring".

And I think the text should be slightly better written and formatted.

Base automatically changed from master to main January 23, 2021 19:00
@sindresorhus
Copy link
Owner

@gnud Friendly bump :)

@sindresorhus
Copy link
Owner

Closing for lack of activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants