Class: AWSCDK::ApplicationSignals::CfnServiceLevelObjective::DependencyConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationSignals::CfnServiceLevelObjective::DependencyConfigProperty
- Defined in:
- application_signals/cfn_service_level_objective.rb
Overview
Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName .
Instance Attribute Summary collapse
-
#dependency_key_attributes ⇒ AWSCDK::IResolvable, Hash{String => String}
readonly
If this SLO is related to a metric collected by Application Signals, you must use this field to specify which dependency the SLO metric is related to.
-
#dependency_operation_name ⇒ String
readonly
When the SLO monitors a specific operation of the dependency, this field specifies the name of that operation in the dependency.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dependency_key_attributes:, dependency_operation_name:) ⇒ DependencyConfigProperty
constructor
A new instance of DependencyConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dependency_key_attributes:, dependency_operation_name:) ⇒ DependencyConfigProperty
Returns a new instance of DependencyConfigProperty.
844 845 846 847 848 849 |
# File 'application_signals/cfn_service_level_objective.rb', line 844 def initialize(dependency_key_attributes:, dependency_operation_name:) @dependency_key_attributes = dependency_key_attributes Jsii::Type.check_type(@dependency_key_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "dependencyKeyAttributes") @dependency_operation_name = dependency_operation_name Jsii::Type.check_type(@dependency_operation_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dependencyOperationName") end |
Instance Attribute Details
#dependency_key_attributes ⇒ AWSCDK::IResolvable, Hash{String => String} (readonly)
If this SLO is related to a metric collected by Application Signals, you must use this field to specify which dependency the SLO metric is related to.
Typedesignates the type of object this is.ResourceTypespecifies the type of the resource. This field is used only when the value of theTypefield isResourceorAWS::Resource.Namespecifies the name of the object. This is used only if the value of theTypefield isService,RemoteService, orAWS::Service.Identifieridentifies the resource objects of this resource. This is used only if the value of theTypefield isResourceorAWS::Resource.Environmentspecifies the location where this object is hosted, or what it belongs to.
861 862 863 |
# File 'application_signals/cfn_service_level_objective.rb', line 861 def dependency_key_attributes @dependency_key_attributes end |
#dependency_operation_name ⇒ String (readonly)
When the SLO monitors a specific operation of the dependency, this field specifies the name of that operation in the dependency.
866 867 868 |
# File 'application_signals/cfn_service_level_objective.rb', line 866 def dependency_operation_name @dependency_operation_name end |
Class Method Details
.jsii_properties ⇒ Object
868 869 870 871 872 873 |
# File 'application_signals/cfn_service_level_objective.rb', line 868 def self.jsii_properties { :dependency_key_attributes => "dependencyKeyAttributes", :dependency_operation_name => "dependencyOperationName", } end |
Instance Method Details
#to_jsii ⇒ Object
875 876 877 878 879 880 881 882 |
# File 'application_signals/cfn_service_level_objective.rb', line 875 def to_jsii result = {} result.merge!({ "dependencyKeyAttributes" => @dependency_key_attributes, "dependencyOperationName" => @dependency_operation_name, }) result.compact end |