google-cloud-logging 0.20.0 → 0.20.1
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 +4 -4
- data/lib/google/cloud/logging/service.rb +21 -9
- data/lib/google/cloud/logging/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa3ebfa38e22e40778bd4a67a5d0f6373fd094a4
|
|
4
|
+
data.tar.gz: a792bb01d9ba78eb0c728771eb07528280170bf0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f751572455011147d48324f1159fa9d18ce447eb2bfa69bc8a150906386eaad5f033f4b8167da7d7cf84fcc1691bd3af2f04e82fa251abb194ce18e3b94a55b
|
|
7
|
+
data.tar.gz: e8fc4fe86dc494fc4e3f1e2ea951f14fd6941a132394b8c26a1eddf620f6946da00832e1cd7556eed81aa5fe9fbe4f1fc5ab08b8ec34dc4e2cd6c8397731a70a
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
require "google/cloud/errors"
|
|
17
17
|
require "google/cloud/core/grpc_backoff"
|
|
18
|
-
require "google/logging/v2/
|
|
19
|
-
require "google/logging/v2/
|
|
20
|
-
require "google/logging/v2/
|
|
18
|
+
require "google/logging/v2/logging_pb"
|
|
19
|
+
require "google/logging/v2/logging_config_pb"
|
|
20
|
+
require "google/logging/v2/logging_metrics_pb"
|
|
21
21
|
|
|
22
22
|
module Google
|
|
23
23
|
module Cloud
|
|
@@ -46,22 +46,34 @@ module Google
|
|
|
46
46
|
|
|
47
47
|
def logging
|
|
48
48
|
return mocked_logging if mocked_logging
|
|
49
|
-
@logging ||=
|
|
50
|
-
|
|
49
|
+
@logging ||= begin
|
|
50
|
+
require "google/logging/v2/logging_services_pb"
|
|
51
|
+
|
|
52
|
+
Google::Logging::V2::LoggingServiceV2::Stub.new(
|
|
53
|
+
host, creds, timeout: timeout)
|
|
54
|
+
end
|
|
51
55
|
end
|
|
52
56
|
attr_accessor :mocked_logging
|
|
53
57
|
|
|
54
58
|
def sinks
|
|
55
59
|
return mocked_sinks if mocked_sinks
|
|
56
|
-
@sinks ||=
|
|
57
|
-
|
|
60
|
+
@sinks ||= begin
|
|
61
|
+
require "google/logging/v2/logging_config_services_pb"
|
|
62
|
+
|
|
63
|
+
Google::Logging::V2::ConfigServiceV2::Stub.new(
|
|
64
|
+
host, creds, timeout: timeout)
|
|
65
|
+
end
|
|
58
66
|
end
|
|
59
67
|
attr_accessor :mocked_sinks
|
|
60
68
|
|
|
61
69
|
def metrics
|
|
62
70
|
return mocked_metrics if mocked_metrics
|
|
63
|
-
@metrics ||=
|
|
64
|
-
|
|
71
|
+
@metrics ||= begin
|
|
72
|
+
require "google/logging/v2/logging_metrics_services_pb"
|
|
73
|
+
|
|
74
|
+
Google::Logging::V2::MetricsServiceV2::Stub.new(
|
|
75
|
+
host, creds, timeout: timeout)
|
|
76
|
+
end
|
|
65
77
|
end
|
|
66
78
|
attr_accessor :mocked_metrics
|
|
67
79
|
|
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: 0.20.
|
|
4
|
+
version: 0.20.1
|
|
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: 2016-
|
|
12
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: google-cloud-core
|