google-cloud-logging 1.9.1 → 1.9.2

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: 637733020d63588236a484558e3844ea47ac381485895c5e49f70e24701738ea
4
- data.tar.gz: 0d0506979f4bc277dafde9ce28d4c7609ea76a5bcff3838d29891c077513c40b
3
+ metadata.gz: e4214efb23d43dc1eee9891c787fc9547ce86dfa2edca1bd61f706b83ae90a7d
4
+ data.tar.gz: 6280b6257048d1e95d1a4185709da8e702277bb94e5992367e2d647c8dbb225d
5
5
  SHA512:
6
- metadata.gz: 61c770af54b6fad4c5769eb8211631c3ce89951196515f6ccad96324eb835ee6f933673f308f2d36e53f76a1fd57064d643e77c960419d9cfe0f143ccf9b2a83
7
- data.tar.gz: 86f7038d74497b48543a625f631d80c3fd526a12e00a69cecd122ec36155186a92a64d62565a40c4c15eb9be0f9a4fc2b1acf9d37625cd16b2b930d547b44943
6
+ metadata.gz: 9787cd6307bbcfaae4700df0469b6fbd48163e7e21e63c4b156a0d8378ea2280a074e8a63aa482f2edfa8423ca014608d01ffecd15d8f7e18a3460ec0b4afc40
7
+ data.tar.gz: c31d807d116f77899c81f83aa5e85c58b80aca915f3c8b13d53663f921421109efc98fa74c13cc4ab8fedb7cb722677f46b62f07ca579024eaadb9bdd95baf3d
@@ -1,5 +1,17 @@
1
1
  # Release History
2
2
 
3
+ ### 1.9.2 / 2019-12-18
4
+
5
+ #### Bug Fixes
6
+
7
+ * Fix MonitorMixin usage on Ruby 2.7
8
+ * Ruby 2.7 will error if new_cond is called before super().
9
+ * Make the call to super() be the first call in initialize
10
+
11
+ #### Documentation
12
+
13
+ * Update docs for lower-level API call MetricDescriptorMetadata#unit
14
+
3
15
  ### 1.9.1 / 2019-11-06
4
16
 
5
17
  #### Bug Fixes
@@ -68,6 +68,9 @@ module Google
68
68
  def initialize logging, max_count: 10000, max_bytes: 10000000,
69
69
  max_queue: 100, interval: 5, threads: 10,
70
70
  partial_success: false
71
+ # init MonitorMixin
72
+ super()
73
+
71
74
  @logging = logging
72
75
 
73
76
  @max_count = max_count
@@ -84,9 +87,6 @@ module Google
84
87
 
85
88
  # Make sure all buffered messages are sent when process exits.
86
89
  at_exit { stop }
87
-
88
- # init MonitorMixin
89
- super()
90
90
  end
91
91
 
92
92
  ##
@@ -49,49 +49,22 @@ module Google
49
49
  # Some combinations of `metric_kind` and `value_type` might not be supported.
50
50
  # @!attribute [rw] unit
51
51
  # @return [String]
52
- # The unit in which the metric value is reported. It is only applicable
53
- # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
54
- # supported units are a subset of [The Unified Code for Units of
55
- # Measure](http://unitsofmeasure.org/ucum.html) standard:
56
- #
57
- # **Basic units (UNIT)**
58
- #
59
- # * `bit` bit
60
- # * `By` byte
61
- # * `s` second
62
- # * `min` minute
63
- # * `h` hour
64
- # * `d` day
65
- #
66
- # **Prefixes (PREFIX)**
67
- #
68
- # * `k` kilo (10**3)
69
- # * `M` mega (10**6)
70
- # * `G` giga (10**9)
71
- # * `T` tera (10**12)
72
- # * `P` peta (10**15)
73
- # * `E` exa (10**18)
74
- # * `Z` zetta (10**21)
75
- # * `Y` yotta (10**24)
76
- # * `m` milli (10**-3)
77
- # * `u` micro (10**-6)
78
- # * `n` nano (10**-9)
79
- # * `p` pico (10**-12)
80
- # * `f` femto (10**-15)
81
- # * `a` atto (10**-18)
82
- # * `z` zepto (10**-21)
83
- # * `y` yocto (10**-24)
84
- # * `Ki` kibi (2**10)
85
- # * `Mi` mebi (2**20)
86
- # * `Gi` gibi (2**30)
87
- # * `Ti` tebi (2**40)
52
+ # * `Ki` kibi (2^10)
53
+ # * `Mi` mebi (2^20)
54
+ # * `Gi` gibi (2^30)
55
+ # * `Ti` tebi (2^40)
56
+ # * `Pi` pebi (2^50)
88
57
  #
89
58
  # **Grammar**
90
59
  #
91
60
  # The grammar also includes these connectors:
92
61
  #
93
- # * `/` division (as an infix operator, e.g. `1/s`).
94
- # * `.` multiplication (as an infix operator, e.g. `GBy.d`)
62
+ # * `/` division or ratio (as an infix operator). For examples,
63
+ # `kBy/{email}` or `MiBy/10ms` (although you should almost never
64
+ # have `/s` in a metric `unit`; rates should always be computed at
65
+ # query time from the underlying cumulative or delta value).
66
+ # * `.` multiplication or composition (as an infix operator). For
67
+ # examples, `GBy.d` or `k{watt}.h`.
95
68
  #
96
69
  # The grammar for a unit is as follows:
97
70
  #
@@ -106,14 +79,25 @@ module Google
106
79
  #
107
80
  # Notes:
108
81
  #
109
- # * `Annotation` is just a comment if it follows a `UNIT` and is
110
- # equivalent to `1` if it is used alone. For examples,
111
- # `{requests}/s == 1/s`, `By{transmitted}/s == By/s`.
82
+ # * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
83
+ # is used alone, then the unit is equivalent to `1`. For examples,
84
+ # `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
112
85
  # * `NAME` is a sequence of non-blank printable ASCII characters not
113
- # containing '{' or '}'.
114
- # * `1` represents dimensionless value 1, such as in `1/s`.
115
- # * `%` represents dimensionless value 1/100, and annotates values giving
116
- # a percentage.
86
+ # containing `{` or `}`.
87
+ # * `1` represents a unitary [dimensionless
88
+ # unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
89
+ # as in `1/s`. It is typically used when none of the basic units are
90
+ # appropriate. For example, "new users per day" can be represented as
91
+ # `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
92
+ # users). Alternatively, "thousands of page views per day" would be
93
+ # represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
94
+ # value of `5.3` would mean "5300 page views per day").
95
+ # * `%` represents dimensionless value of 1/100, and annotates values giving
96
+ # a percentage (so the metric values are typically in the range of 0..100,
97
+ # and a metric value `3` means "3 percent").
98
+ # * `10^2.%` indicates a metric contains a ratio, typically in the range
99
+ # 0..1, that will be multiplied by 100 and displayed as a percentage
100
+ # (so a metric value `0.03` means "3 percent").
117
101
  # @!attribute [rw] description
118
102
  # @return [String]
119
103
  # A detailed description of the metric, which can be used in documentation.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Logging
19
- VERSION = "1.9.1".freeze
19
+ VERSION = "1.9.2".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-11-07 00:00:00.000000000 Z
12
+ date: 2019-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core