Documentation ¶
Index ¶
- func InfraAlertCondition_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func InfraAlertCondition_IsConstruct(x interface{}) *bool
- func InfraAlertCondition_IsTerraformElement(x interface{}) *bool
- func InfraAlertCondition_IsTerraformResource(x interface{}) *bool
- func InfraAlertCondition_TfResourceType() *string
- func NewInfraAlertConditionCriticalOutputReference_Override(i InfraAlertConditionCriticalOutputReference, ...)
- func NewInfraAlertConditionWarningOutputReference_Override(i InfraAlertConditionWarningOutputReference, ...)
- func NewInfraAlertCondition_Override(i InfraAlertCondition, scope constructs.Construct, id *string, ...)
- type InfraAlertCondition
- type InfraAlertConditionConfig
- type InfraAlertConditionCritical
- type InfraAlertConditionCriticalOutputReference
- type InfraAlertConditionWarning
- type InfraAlertConditionWarningOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InfraAlertCondition_GenerateConfigForImport ¶
func InfraAlertCondition_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a InfraAlertCondition resource upon running "cdktf plan <stack-name>".
func InfraAlertCondition_IsConstruct ¶
func InfraAlertCondition_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 InfraAlertCondition_IsTerraformElement ¶
func InfraAlertCondition_IsTerraformElement(x interface{}) *bool
Experimental.
func InfraAlertCondition_IsTerraformResource ¶
func InfraAlertCondition_IsTerraformResource(x interface{}) *bool
Experimental.
func InfraAlertCondition_TfResourceType ¶
func InfraAlertCondition_TfResourceType() *string
func NewInfraAlertConditionCriticalOutputReference_Override ¶
func NewInfraAlertConditionCriticalOutputReference_Override(i InfraAlertConditionCriticalOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewInfraAlertConditionWarningOutputReference_Override ¶
func NewInfraAlertConditionWarningOutputReference_Override(i InfraAlertConditionWarningOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewInfraAlertCondition_Override ¶
func NewInfraAlertCondition_Override(i InfraAlertCondition, scope constructs.Construct, id *string, config *InfraAlertConditionConfig)
Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition newrelic_infra_alert_condition} Resource.
Types ¶
type InfraAlertCondition ¶
type InfraAlertCondition interface { cdktf.TerraformResource // Experimental. CdktfStack() cdktf.TerraformStack Comparison() *string SetComparison(val *string) ComparisonInput() *string // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) CreatedAt() *float64 Critical() InfraAlertConditionCriticalOutputReference CriticalInput() *InfraAlertConditionCritical // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) Description() *string SetDescription(val *string) DescriptionInput() *string Enabled() interface{} SetEnabled(val interface{}) EnabledInput() interface{} EntityGuid() *string Event() *string SetEvent(val *string) EventInput() *string // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string IntegrationProvider() *string SetIntegrationProvider(val *string) IntegrationProviderInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Name() *string SetName(val *string) NameInput() *string // The tree node. Node() constructs.Node PolicyId() *float64 SetPolicyId(val *float64) PolicyIdInput() *float64 ProcessWhere() *string SetProcessWhere(val *string) ProcessWhereInput() *string // 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 Select() *string SetSelect(val *string) SelectInput() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Type() *string SetType(val *string) TypeInput() *string UpdatedAt() *float64 ViolationCloseTimer() *float64 SetViolationCloseTimer(val *float64) ViolationCloseTimerInput() *float64 Warning() InfraAlertConditionWarningOutputReference WarningInput() *InfraAlertConditionWarning Where() *string SetWhere(val *string) WhereInput() *string // 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) PutCritical(value *InfraAlertConditionCritical) PutWarning(value *InfraAlertConditionWarning) ResetComparison() ResetCritical() ResetDescription() ResetEnabled() ResetEvent() ResetId() ResetIntegrationProvider() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetProcessWhere() ResetRunbookUrl() ResetSelect() ResetViolationCloseTimer() ResetWarning() ResetWhere() SynthesizeAttributes() *map[string]interface{} SynthesizeHclAttributes() *map[string]interface{} // Experimental. ToHclTerraform() 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.53.0/docs/resources/infra_alert_condition newrelic_infra_alert_condition}.
func NewInfraAlertCondition ¶
func NewInfraAlertCondition(scope constructs.Construct, id *string, config *InfraAlertConditionConfig) InfraAlertCondition
Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition newrelic_infra_alert_condition} Resource.
type InfraAlertConditionConfig ¶
type InfraAlertConditionConfig 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 Infrastructure alert condition's name. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#name InfraAlertCondition#name} Name *string `field:"required" json:"name" yaml:"name"` // The ID of the alert policy where this condition should be used. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#policy_id InfraAlertCondition#policy_id} PolicyId *float64 `field:"required" json:"policyId" yaml:"policyId"` // The type of Infrastructure alert condition. Valid values are infra_process_running, infra_metric, and infra_host_not_reporting. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#type InfraAlertCondition#type} Type *string `field:"required" json:"type" yaml:"type"` // The operator used to evaluate the threshold value. // // Valid values are above, below, and equal. Supported by the infra_metric and infra_process_running condition types. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#comparison InfraAlertCondition#comparison} Comparison *string `field:"optional" json:"comparison" yaml:"comparison"` // critical block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#critical InfraAlertCondition#critical} Critical *InfraAlertConditionCritical `field:"optional" json:"critical" yaml:"critical"` // The description of the Infrastructure alert condition. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#description InfraAlertCondition#description} Description *string `field:"optional" json:"description" yaml:"description"` // Whether the condition is turned on or off. Valid values are true and false. Defaults to true. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#enabled InfraAlertCondition#enabled} Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` // The metric event; for example, SystemSample or StorageSample. Supported by the infra_metric condition type. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#event InfraAlertCondition#event} Event *string `field:"optional" json:"event" yaml:"event"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#id InfraAlertCondition#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"` // For alerts on integrations, use this instead of event. Supported by the infra_metric condition type. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#integration_provider InfraAlertCondition#integration_provider} IntegrationProvider *string `field:"optional" json:"integrationProvider" yaml:"integrationProvider"` // Any filters applied to processes; for example: commandName = 'java'. Supported by the infra_process_running condition type. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#process_where InfraAlertCondition#process_where} ProcessWhere *string `field:"optional" json:"processWhere" yaml:"processWhere"` // Runbook URL to display in notifications. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#runbook_url InfraAlertCondition#runbook_url} RunbookUrl *string `field:"optional" json:"runbookUrl" yaml:"runbookUrl"` // The attribute name to identify the metric being targeted; // // for example, cpuPercent, diskFreePercent, or memoryResidentSizeBytes. The underlying API will automatically populate this value for Infrastructure integrations (for example diskFreePercent), so make sure to explicitly include this value to avoid diff issues. Supported by the infra_metric condition type. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#select InfraAlertCondition#select} Select *string `field:"optional" json:"select" yaml:"select"` // Determines how much time, in hours, will pass before an incident is automatically closed. // // Valid values are 1, 2, 4, 8, 12, 24, 48, or 72 // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#violation_close_timer InfraAlertCondition#violation_close_timer} ViolationCloseTimer *float64 `field:"optional" json:"violationCloseTimer" yaml:"violationCloseTimer"` // warning block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#warning InfraAlertCondition#warning} Warning *InfraAlertConditionWarning `field:"optional" json:"warning" yaml:"warning"` // If applicable, this identifies any Infrastructure host filters used; for example: hostname LIKE '%cassandra%'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#where InfraAlertCondition#where} Where *string `field:"optional" json:"where" yaml:"where"` }
type InfraAlertConditionCritical ¶
type InfraAlertConditionCritical struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#duration InfraAlertCondition#duration}. Duration *float64 `field:"required" json:"duration" yaml:"duration"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#time_function InfraAlertCondition#time_function}. TimeFunction *string `field:"optional" json:"timeFunction" yaml:"timeFunction"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#value InfraAlertCondition#value}. Value *float64 `field:"optional" json:"value" yaml:"value"` }
type InfraAlertConditionCriticalOutputReference ¶
type InfraAlertConditionCriticalOutputReference 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() *InfraAlertConditionCritical SetInternalValue(val *InfraAlertConditionCritical) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) TimeFunction() *string SetTimeFunction(val *string) TimeFunctionInput() *string Value() *float64 SetValue(val *float64) ValueInput() *float64 // 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 ResetTimeFunction() ResetValue() // 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 NewInfraAlertConditionCriticalOutputReference ¶
func NewInfraAlertConditionCriticalOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) InfraAlertConditionCriticalOutputReference
type InfraAlertConditionWarning ¶
type InfraAlertConditionWarning struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#duration InfraAlertCondition#duration}. Duration *float64 `field:"required" json:"duration" yaml:"duration"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#time_function InfraAlertCondition#time_function}. TimeFunction *string `field:"optional" json:"timeFunction" yaml:"timeFunction"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.53.0/docs/resources/infra_alert_condition#value InfraAlertCondition#value}. Value *float64 `field:"optional" json:"value" yaml:"value"` }
type InfraAlertConditionWarningOutputReference ¶
type InfraAlertConditionWarningOutputReference 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() *InfraAlertConditionWarning SetInternalValue(val *InfraAlertConditionWarning) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) TimeFunction() *string SetTimeFunction(val *string) TimeFunctionInput() *string Value() *float64 SetValue(val *float64) ValueInput() *float64 // 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 ResetTimeFunction() ResetValue() // 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 NewInfraAlertConditionWarningOutputReference ¶
func NewInfraAlertConditionWarningOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) InfraAlertConditionWarningOutputReference
Source Files ¶
- InfraAlertCondition.go
- InfraAlertConditionConfig.go
- InfraAlertConditionCritical.go
- InfraAlertConditionCriticalOutputReference.go
- InfraAlertConditionCriticalOutputReference__checks.go
- InfraAlertConditionWarning.go
- InfraAlertConditionWarningOutputReference.go
- InfraAlertConditionWarningOutputReference__checks.go
- InfraAlertCondition__checks.go
- main.go