Class: AWSCDK::DevOpsAgent::CfnAssociation::DynatraceConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnAssociation::DynatraceConfigurationProperty
- 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
-
#enable_webhook_updates ⇒ Boolean, ...
readonly
When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.
-
#env_id ⇒ String
readonly
Dynatrace environment id.
-
#resources ⇒ Array<String>?
readonly
List of Dynatrace resources to monitor.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(env_id:, enable_webhook_updates: nil, resources: nil) ⇒ DynatraceConfigurationProperty
constructor
A new instance of DynatraceConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(env_id:, enable_webhook_updates: nil, resources: nil) ⇒ DynatraceConfigurationProperty
Returns a new instance of DynatraceConfigurationProperty.
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_updates ⇒ Boolean, ... (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_id ⇒ String (readonly)
Dynatrace environment id.
736 737 738 |
# File 'dev_ops_agent/cfn_association.rb', line 736 def env_id @env_id end |
#resources ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |