Skip to content

[dogshell] add hostname by default to event/metric posts#122

Merged
yannmh merged 2 commits intomasterfrom
yann/dogshell-hostname-detection
Mar 10, 2016
Merged

[dogshell] add hostname by default to event/metric posts#122
yannmh merged 2 commits intomasterfrom
yann/dogshell-hostname-detection

Conversation

@yannmh
Copy link
Copy Markdown

@yannmh yannmh commented Mar 9, 2016

[dogshell] add hostname by default to event posts

By default, dogshell event posts (dog event post command) are now
automatically associated with the local host.
The --host and --no-host (new) options allow to override this value
with a given host, or no host.

 # Event is associated with the local host
 dog event post "title" "content"

 # Event is associated with `foo.bar` host
 dog event post --host "foo.bar" "title" "content"

 # Event is not associated with any host
 dog event post --no-host "title" "content"

[dogshell] add hostname by default to metric posts

By default, dogshell event posts (dog metric post command) are now
automatically associated with the local host.
The --host and --no-host (new) options allow to override this value
with a given host, or no host.
The --localhostname option is deprecated, as made default when no
--host is set.

 # Metric is associated with the local host
 dog metric post "metric.example" 1

 # Metric is associated with `foo.bar` host
 dog metric post --host "foo.bar" "metric.example" 1

 # Metric is not associated with any host
 dog metric post --no-host "metric.example" 1

Fix #115

Yann MAHE added 2 commits March 9, 2016 17:38
By default, `dogshell` event posts (`dog event post` command) are now
automatically associated with the local host.
The `--host` and `--no-host` (new) options allow to override this value
with a given host, or no host.

 ```python
 # Event is associated with the local host
 dog event post "title" "content"

 # Event is associated with `foo.bar` host
 dog event post --host "foo.bar" "title" "content"

 # Event is not associated with any host
 dog event post --no-host "title" "content"
 ```
By default, `dogshell` event posts (`dog metric post` command) are now
automatically associated with the local host.
The `--host` and `--no-host` (new) options allow to override this value
with a given host, or no host.
The `--localhostname` option is deprecated, as made default when no
`--host` is set.

 ```python
 # Metric is associated with the local host
 dog metric post "metric.example" 1

 # Metric is associated with `foo.bar` host
 dog metric post --host "foo.bar" "metric.example" 1

 # Metric is not associated with any host
 dog metric post --no-host "metric.example" 1
 ```
@yannmh
Copy link
Copy Markdown
Author

yannmh commented Mar 10, 2016

@JohnLZeller can you take a pass at it please ?

@JohnLZeller
Copy link
Copy Markdown

Looks good! 👍

yannmh pushed a commit that referenced this pull request Mar 10, 2016
[dogshell] add hostname by default to event/metric posts
@yannmh yannmh merged commit 032759e into master Mar 10, 2016
@yannmh yannmh deleted the yann/dogshell-hostname-detection branch March 10, 2016 23:38
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.

2 participants