datadog-exporter 0.2.4 → 0.2.5
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/datadog_exporter/monitors/import.rb +3 -2
- data/lib/datadog_exporter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6382559bfdfc5253fef3781c39450805a266aa5ef2912b16bd4e4eaba4ea94fc
|
4
|
+
data.tar.gz: 869c9670567a052c6310c126cad2feabc779a1d3197bca5f053458859eed3d3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2631aa925d8577f653a180687c5560296e1087c99fc8899aa5c1f6aa8ab843a8621395d6eb4d09fa71b5e3c4372d7084efeef03a84da9e7215e0b7840379219
|
7
|
+
data.tar.gz: a0970ff4712a47fe56b5f4df0e37f1be7d8164aa1ee006c6aa45dc61445901f2cb658104bd8a3d0f95b72187a00b5f0e0f218a6008c5b4383741165c90bcc419
|
@@ -37,12 +37,13 @@ module DatadogExporter
|
|
37
37
|
# If a tag is provided, it imports only the monitors with that tag.
|
38
38
|
#
|
39
39
|
# @param [Symbol] to The environment (defined in your organizations_config_filename) where the monitors will be imported
|
40
|
+
# @param [Symbol] from (optional) The environment (defined in your organizations_config_filename) where the placeholders are defined
|
40
41
|
# @param [String] tag (optional) A tag defined in the Datadog monitors
|
41
|
-
def import(to:, tag: nil)
|
42
|
+
def import(to:, from: :base, tag: nil)
|
42
43
|
monitors = []
|
43
44
|
|
44
45
|
list(tag: tag) do |monitor|
|
45
|
-
template = @template_manager.create_template(monitor)
|
46
|
+
template = @template_manager.create_template(monitor, environment: from)
|
46
47
|
monitor = @template_manager.create_monitor(template, environment: to)
|
47
48
|
|
48
49
|
if exists?(monitor)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datadog-exporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fran Martinez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: datadog_api_client
|