Class: AWSCDK::DevOpsAgent::CfnAssociation::DynatraceConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_agent/cfn_association.rb

Overview

Configuration for Dynatrace monitoring integration.

Defines the Dynatrace environment ID, list of resources to monitor, and webhook update settings required for the Agent Space to access metrics, traces, and logs from Dynatrace.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env_id:, enable_webhook_updates: nil, resources: nil) ⇒ DynatraceConfigurationProperty

Returns a new instance of DynatraceConfigurationProperty.

Parameters:

  • env_id (String)

    Dynatrace environment id.

  • enable_webhook_updates (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.

  • resources (Array<String>, nil) (defaults to: nil)

    List of Dynatrace resources to monitor.



723
724
725
726
727
728
729
730
# File 'dev_ops_agent/cfn_association.rb', line 723

def initialize(env_id:, enable_webhook_updates: nil, resources: nil)
  @env_id = env_id
  Jsii::Type.check_type(@env_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "envId")
  @enable_webhook_updates = enable_webhook_updates
  Jsii::Type.check_type(@enable_webhook_updates, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableWebhookUpdates") unless @enable_webhook_updates.nil?
  @resources = resources
  Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "resources") unless @resources.nil?
end

Instance Attribute Details

#enable_webhook_updatesBoolean, ... (readonly)

When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.



741
742
743
# File 'dev_ops_agent/cfn_association.rb', line 741

def enable_webhook_updates
  @enable_webhook_updates
end

#env_idString (readonly)

Dynatrace environment id.



736
737
738
# File 'dev_ops_agent/cfn_association.rb', line 736

def env_id
  @env_id
end

#resourcesArray<String>? (readonly)

List of Dynatrace resources to monitor.



746
747
748
# File 'dev_ops_agent/cfn_association.rb', line 746

def resources
  @resources
end

Class Method Details

.jsii_propertiesObject



748
749
750
751
752
753
754
# File 'dev_ops_agent/cfn_association.rb', line 748

def self.jsii_properties
  {
    :env_id => "envId",
    :enable_webhook_updates => "enableWebhookUpdates",
    :resources => "resources",
  }
end

Instance Method Details

#to_jsiiObject



756
757
758
759
760
761
762
763
764
# File 'dev_ops_agent/cfn_association.rb', line 756

def to_jsii
  result = {}
  result.merge!({
    "envId" => @env_id,
    "enableWebhookUpdates" => @enable_webhook_updates,
    "resources" => @resources,
  })
  result.compact
end