datadog-exporter 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b142d610fdbc5f67a849a2d5e81f3cbb19c8f33e2803e5255a76928150985264
4
- data.tar.gz: 109da7c30bddba8f4cc5af9a041d2b0af610806cf92ebc3d4af3854bd36f8a85
3
+ metadata.gz: 6382559bfdfc5253fef3781c39450805a266aa5ef2912b16bd4e4eaba4ea94fc
4
+ data.tar.gz: 869c9670567a052c6310c126cad2feabc779a1d3197bca5f053458859eed3d3f
5
5
  SHA512:
6
- metadata.gz: ebeb609535f2c6728369fcde5be278fef901d4caaa3a5bb5e2f5a0bec8c5a838e6e38a76abf8252fb9141324586e158a655b55e92969d24895e85cfca3b59507
7
- data.tar.gz: addb52c745f314d88dd4dafec06d068b92cde6ae6a6bec0a05ecad8771018e910af31e5dc00b861e040464d89d2a10a86fc51677e324d20f3569a90310c885f7
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)
@@ -1,3 +1,3 @@
1
1
  module DatadogExporter
2
- VERSION = "0.2.4".freeze
2
+ VERSION = "0.2.5".freeze
3
3
  end
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
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: 2024-12-31 00:00:00.000000000 Z
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