Documentation ¶
Index ¶
- func AlertCondition_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func AlertCondition_IsConstruct(x interface{}) *bool
- func AlertCondition_IsTerraformElement(x interface{}) *bool
- func AlertCondition_IsTerraformResource(x interface{}) *bool
- func AlertCondition_TfResourceType() *string
- func NewAlertConditionTermList_Override(a AlertConditionTermList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewAlertConditionTermOutputReference_Override(a AlertConditionTermOutputReference, ...)
- func NewAlertCondition_Override(a AlertCondition, scope constructs.Construct, id *string, ...)
- type AlertCondition
- type AlertConditionConfig
- type AlertConditionTerm
- type AlertConditionTermList
- type AlertConditionTermOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlertCondition_GenerateConfigForImport ¶
func AlertCondition_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a AlertCondition resource upon running "cdktf plan <stack-name>".
func AlertCondition_IsConstruct ¶
func AlertCondition_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func AlertCondition_IsTerraformElement ¶
func AlertCondition_IsTerraformElement(x interface{}) *bool
Experimental.
func AlertCondition_IsTerraformResource ¶
func AlertCondition_IsTerraformResource(x interface{}) *bool
Experimental.
func AlertCondition_TfResourceType ¶
func AlertCondition_TfResourceType() *string
func NewAlertConditionTermList_Override ¶
func NewAlertConditionTermList_Override(a AlertConditionTermList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewAlertConditionTermOutputReference_Override ¶
func NewAlertConditionTermOutputReference_Override(a AlertConditionTermOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewAlertCondition_Override ¶
func NewAlertCondition_Override(a AlertCondition, scope constructs.Construct, id *string, config *AlertConditionConfig)
Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition newrelic_alert_condition} Resource.
Types ¶
type AlertCondition ¶
type AlertCondition interface { cdktf.TerraformResource // Experimental. CdktfStack() cdktf.TerraformStack ConditionScope() *string SetConditionScope(val *string) ConditionScopeInput() *string // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) Enabled() interface{} SetEnabled(val interface{}) EnabledInput() interface{} Entities() *[]*float64 SetEntities(val *[]*float64) EntitiesInput() *[]*float64 EntityGuid() *string // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string GcMetric() *string SetGcMetric(val *string) GcMetricInput() *string Id() *string SetId(val *string) IdInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Metric() *string SetMetric(val *string) MetricInput() *string Name() *string SetName(val *string) NameInput() *string // The tree node. Node() constructs.Node PolicyId() *float64 SetPolicyId(val *float64) PolicyIdInput() *float64 // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} RunbookUrl() *string SetRunbookUrl(val *string) RunbookUrlInput() *string Term() AlertConditionTermList TermInput() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Type() *string SetType(val *string) TypeInput() *string UserDefinedMetric() *string SetUserDefinedMetric(val *string) UserDefinedMetricInput() *string UserDefinedValueFunction() *string SetUserDefinedValueFunction(val *string) UserDefinedValueFunctionInput() *string ViolationCloseTimer() *float64 SetViolationCloseTimer(val *float64) ViolationCloseTimerInput() *float64 // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. HasResourceMove() interface{} // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Move the resource corresponding to "id" to this resource. // // Note that the resource being moved from must be marked as moved using it's instance function. // Experimental. MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. MoveTo(moveTarget *string, index interface{}) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutTerm(value interface{}) ResetConditionScope() ResetEnabled() ResetGcMetric() ResetId() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetRunbookUrl() ResetUserDefinedMetric() ResetUserDefinedValueFunction() ResetViolationCloseTimer() SynthesizeAttributes() *map[string]interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition newrelic_alert_condition}.
func NewAlertCondition ¶
func NewAlertCondition(scope constructs.Construct, id *string, config *AlertConditionConfig) AlertCondition
Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition newrelic_alert_condition} Resource.
type AlertConditionConfig ¶
type AlertConditionConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count interface{} `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // The instance IDs associated with this condition. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#entities AlertCondition#entities} Entities *[]*float64 `field:"required" json:"entities" yaml:"entities"` // The metric field accepts parameters based on the type set. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#metric AlertCondition#metric} Metric *string `field:"required" json:"metric" yaml:"metric"` // The title of the condition. Must be between 1 and 128 characters, inclusive. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#name AlertCondition#name} Name *string `field:"required" json:"name" yaml:"name"` // The ID of the policy where this condition should be used. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#policy_id AlertCondition#policy_id} PolicyId *float64 `field:"required" json:"policyId" yaml:"policyId"` // term block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#term AlertCondition#term} Term interface{} `field:"required" json:"term" yaml:"term"` // The type of condition. One of: (browser_metric, mobile_metric, servers_metric, apm_app_metric, apm_jvm_metric, apm_kt_metric). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#type AlertCondition#type} Type *string `field:"required" json:"type" yaml:"type"` // One of (application, instance). // // Choose application for most scenarios. If you are using the JVM plugin in New Relic, the instance setting allows your condition to trigger for specific app instances. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#condition_scope AlertCondition#condition_scope} ConditionScope *string `field:"optional" json:"conditionScope" yaml:"conditionScope"` // Whether the condition is enabled. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#enabled AlertCondition#enabled} Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` // A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with gc_cpu_time condition type. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#gc_metric AlertCondition#gc_metric} GcMetric *string `field:"optional" json:"gcMetric" yaml:"gcMetric"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#id AlertCondition#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // Runbook URL to display in notifications. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#runbook_url AlertCondition#runbook_url} RunbookUrl *string `field:"optional" json:"runbookUrl" yaml:"runbookUrl"` // A custom metric to be evaluated. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#user_defined_metric AlertCondition#user_defined_metric} UserDefinedMetric *string `field:"optional" json:"userDefinedMetric" yaml:"userDefinedMetric"` // One of: (average, min, max, total, sample_size, percent, rate). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#user_defined_value_function AlertCondition#user_defined_value_function} UserDefinedValueFunction *string `field:"optional" json:"userDefinedValueFunction" yaml:"userDefinedValueFunction"` // Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. // // Must be between 1 and 720 hours. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#violation_close_timer AlertCondition#violation_close_timer} ViolationCloseTimer *float64 `field:"optional" json:"violationCloseTimer" yaml:"violationCloseTimer"` }
type AlertConditionTerm ¶
type AlertConditionTerm struct { // In minutes, must be in the range of 5 to 120, inclusive. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#duration AlertCondition#duration} Duration *float64 `field:"required" json:"duration" yaml:"duration"` // Must be 0 or greater. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#threshold AlertCondition#threshold} Threshold *float64 `field:"required" json:"threshold" yaml:"threshold"` // One of (all, any). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#time_function AlertCondition#time_function} TimeFunction *string `field:"required" json:"timeFunction" yaml:"timeFunction"` // One of (above, below, equal). Defaults to equal. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#operator AlertCondition#operator} Operator *string `field:"optional" json:"operator" yaml:"operator"` // One of (critical, warning). Defaults to critical. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.28.1/docs/resources/alert_condition#priority AlertCondition#priority} Priority *string `field:"optional" json:"priority" yaml:"priority"` }
type AlertConditionTermList ¶
type AlertConditionTermList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) AlertConditionTermOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewAlertConditionTermList ¶
func NewAlertConditionTermList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) AlertConditionTermList
type AlertConditionTermOutputReference ¶
type AlertConditionTermOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Duration() *float64 SetDuration(val *float64) DurationInput() *float64 // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Operator() *string SetOperator(val *string) OperatorInput() *string Priority() *string SetPriority(val *string) PriorityInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Threshold() *float64 SetThreshold(val *float64) ThresholdInput() *float64 TimeFunction() *string SetTimeFunction(val *string) TimeFunctionInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetOperator() ResetPriority() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewAlertConditionTermOutputReference ¶
func NewAlertConditionTermOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) AlertConditionTermOutputReference