wavefront-cli 2.11.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc20c9708088b0919282067c07688154bed7f7a2b2b37697eda633c6a9ffa95f
4
- data.tar.gz: fb2c599eba984f008ba7d750b651ccef0b5cf49732e0a427ba50edcb8af4fff8
3
+ metadata.gz: d78c82e2fafc2ac41fd155095a99fbc63b33b377296aa67ee1f0ed1cb3252c46
4
+ data.tar.gz: 2ef97b05806363fd93fc72068af3f662d1eb6c5828a2a319d429844f8e717e6e
5
5
  SHA512:
6
- metadata.gz: 73a3bc9afce21f9b6f3cdac570483f5155b3ba7b3b6b3f84ac3acebe83aeb927c28f1bc00a416a225b64ec8ff8bac42f16c2aef348a88c06a90c83a872383e31
7
- data.tar.gz: 6ef1736948858597ae347aa1cbf9c3d71c4855b317076209fbd7e0a9cca216514df74a31663f2096b735b63693322244a06744e2e8d54b5ecaef68946d88f02e
6
+ metadata.gz: f7646c92517c80068758780b69b01e385ff7de1bf62efb49003240a60a33af4b85a5c3d220a78f1573588bbe53e7d3236d7ef00741b17d3db033dc848f14f0cb
7
+ data.tar.gz: 21566d131e3064522a1583c3ae44b57b38b277b521edb5336d8d58cfed606e673fe3b9f7d4036882a7a314db60a1726f4204aed08c1152dea181c00ac64d5837
data/HISTORY.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.12.0 (26/11/2018)
4
+ * Support SDK's new `unix` writer, which lets you write points to a
5
+ local Unix datagram socket. This requires `-u unix` and `-S
6
+ filename`.
7
+
3
8
  ## 2.11.0 (24/10/2018)
4
9
  * Add `proxy versions` subcommand. Lists proxies and their versions,
5
10
  newest to oldest.
data/README.md CHANGED
@@ -94,12 +94,14 @@ $ wf proxy list
94
94
  926dfb4c-23c6-4fb9-8c8d-833625ab8f6f Agent on shark-wavefront
95
95
  ```
96
96
 
97
- You can get more verbose listings with the `-l` flag.
97
+ You can get more verbose listings with the `-l` flag. Results may be
98
+ paginated. You can progress through pages with the `-L` and `-o`
99
+ options, or user `--all` to get everything in one go.
98
100
 
99
101
  ### Describing Things
100
102
 
101
- Most commands have a `describe` subcommand which will tell you more about the
102
- object.
103
+ Most commands have a `describe` subcommand which will tell you more
104
+ about the object.
103
105
 
104
106
  ```
105
107
  $ wf proxy describe 917102d1-a10e-497b-ba63-95058f98d4fb
@@ -247,7 +249,9 @@ $ while true; do echo $RANDOM; sleep 1; done | wf write file -m cli.demo -Fv -
247
249
  ```
248
250
 
249
251
  If you wish to write points directly via the API, and you have the
250
- "direct ingestion" privilege, just swap `write` for `report`.
252
+ "direct ingestion" privilege, just swap `write` for `report`, or add
253
+ `-u api` to your `write` command. To send points to a proxy over
254
+ HTTP, use `-u http`.
251
255
 
252
256
  Due to limitations in [docopt](https://github.com/docopt/docopt.rb),
253
257
  writing negative values is a bit of a mess.
@@ -255,3 +259,5 @@ writing negative values is a bit of a mess.
255
259
  ```
256
260
  $ wf write point cli.example "\-10"
257
261
  ```
262
+
263
+ You can write delta metrics with `-i` (for increment),
@@ -9,12 +9,14 @@ class WavefrontCommandWrite < WavefrontCommandBase
9
9
 
10
10
  def _commands
11
11
  ['point [-DnViq] [-c file] [-P profile] [-E proxy] [-t time] ' \
12
- '[-p port] [-H host] [-T tag...] [-u method] <metric> <value>',
12
+ '[-p port] [-H host] [-T tag...] [-u method] [-S socket] <metric> ' \
13
+ '<value>',
13
14
  'distribution [-DnViq] [-c file] [-P profile] [-E proxy] [-H host] ' \
14
- '[-p port] [-T tag...] [-u method] [-I interval] <metric> <val>...',
15
+ '[-p port] [-T tag...] [-u method] [-S socket] [-I interval] ' \
16
+ '<metric> <val>...',
15
17
  'file [-DnViq] [-c file] [-P profile] [-E proxy] [-H host] ' \
16
18
  '[-p port] [-F infileformat] [-m metric] [-T tag...] [-I interval] ' \
17
- '[-u method] <file>']
19
+ '[-u method] [-S socket] <file>']
18
20
  end
19
21
 
20
22
  def _options
@@ -31,6 +33,7 @@ class WavefrontCommandWrite < WavefrontCommandBase
31
33
  '-i, --delta increment metric by given value',
32
34
  "-I, --interval=INTERVAL interval of distribution (default 'm')",
33
35
  '-u, --using=METHOD method by which to send points',
36
+ '-S, --socket=FILE Unix datagram socket',
34
37
  "-q, --quiet don't report the points sent summary " \
35
38
  '(unless there were errors)']
36
39
  end
@@ -1 +1 @@
1
- WF_CLI_VERSION = '2.11.0'.freeze
1
+ WF_CLI_VERSION = '2.12.0'.freeze
@@ -50,6 +50,7 @@ module WavefrontCli
50
50
  def mk_creds
51
51
  { proxy: options[:proxy],
52
52
  port: options[:port] || default_port,
53
+ socket: options[:socket],
53
54
  endpoint: options[:endpoint],
54
55
  token: options[:token] }
55
56
  end
@@ -61,6 +62,11 @@ module WavefrontCli
61
62
  def validate_opts
62
63
  validate_opts_file if options[:file]
63
64
 
65
+ if options[:using] == 'unix'
66
+ return true if options[:socket]
67
+ raise(WavefrontCli::Exception::CredentialError, 'No socket path.')
68
+ end
69
+
64
70
  return true if options[:proxy]
65
71
  raise(WavefrontCli::Exception::CredentialError, 'No proxy address.')
66
72
  end
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
23
23
  gem.require_paths = %w[lib]
24
24
 
25
25
  gem.add_runtime_dependency 'docopt', '~> 0.6.0'
26
- gem.add_runtime_dependency 'wavefront-sdk', '~> 2.0', '>= 2.0.3'
26
+ gem.add_runtime_dependency 'wavefront-sdk', '~> 2.1', '>= 2.1.0'
27
27
 
28
28
  gem.add_development_dependency 'bundler', '~> 1.3'
29
29
  gem.add_development_dependency 'minitest', '~> 5.11', '>= 5.11.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefront-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.0
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-25 00:00:00.000000000 Z
11
+ date: 2018-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt
@@ -28,22 +28,22 @@ dependencies:
28
28
  name: wavefront-sdk
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.0'
34
31
  - - ">="
35
32
  - !ruby/object:Gem::Version
36
- version: 2.0.3
33
+ version: 2.1.0
34
+ - - "~>"
35
+ - !ruby/object:Gem::Version
36
+ version: '2.1'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "~>"
42
- - !ruby/object:Gem::Version
43
- version: '2.0'
44
41
  - - ">="
45
42
  - !ruby/object:Gem::Version
46
- version: 2.0.3
43
+ version: 2.1.0
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.1'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -62,22 +62,22 @@ dependencies:
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '5.11'
68
65
  - - ">="
69
66
  - !ruby/object:Gem::Version
70
67
  version: 5.11.0
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '5.11'
71
71
  type: :development
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '5.11'
78
75
  - - ">="
79
76
  - !ruby/object:Gem::Version
80
77
  version: 5.11.0
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '5.11'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: rake
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  version: '0'
327
327
  requirements: []
328
328
  rubyforge_project:
329
- rubygems_version: 2.7.7
329
+ rubygems_version: 2.7.8
330
330
  signing_key:
331
331
  specification_version: 4
332
332
  summary: CLI for Wavefront API v2