Documentation ¶
Index ¶
- func NewNrqlAlertConditionCriticalOutputReference_Override(n NrqlAlertConditionCriticalOutputReference, ...)
- func NewNrqlAlertConditionNrqlOutputReference_Override(n NrqlAlertConditionNrqlOutputReference, ...)
- func NewNrqlAlertConditionTermList_Override(n NrqlAlertConditionTermList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewNrqlAlertConditionTermOutputReference_Override(n NrqlAlertConditionTermOutputReference, ...)
- func NewNrqlAlertConditionTimeoutsOutputReference_Override(n NrqlAlertConditionTimeoutsOutputReference, ...)
- func NewNrqlAlertConditionWarningOutputReference_Override(n NrqlAlertConditionWarningOutputReference, ...)
- func NewNrqlAlertCondition_Override(n NrqlAlertCondition, scope constructs.Construct, id *string, ...)
- func NrqlAlertCondition_IsConstruct(x interface{}) *bool
- func NrqlAlertCondition_IsTerraformElement(x interface{}) *bool
- func NrqlAlertCondition_IsTerraformResource(x interface{}) *bool
- func NrqlAlertCondition_TfResourceType() *string
- type NrqlAlertCondition
- type NrqlAlertConditionConfig
- type NrqlAlertConditionCritical
- type NrqlAlertConditionCriticalOutputReference
- type NrqlAlertConditionNrql
- type NrqlAlertConditionNrqlOutputReference
- type NrqlAlertConditionTerm
- type NrqlAlertConditionTermList
- type NrqlAlertConditionTermOutputReference
- type NrqlAlertConditionTimeouts
- type NrqlAlertConditionTimeoutsOutputReference
- type NrqlAlertConditionWarning
- type NrqlAlertConditionWarningOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNrqlAlertConditionCriticalOutputReference_Override ¶
func NewNrqlAlertConditionCriticalOutputReference_Override(n NrqlAlertConditionCriticalOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNrqlAlertConditionNrqlOutputReference_Override ¶
func NewNrqlAlertConditionNrqlOutputReference_Override(n NrqlAlertConditionNrqlOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNrqlAlertConditionTermList_Override ¶
func NewNrqlAlertConditionTermList_Override(n NrqlAlertConditionTermList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewNrqlAlertConditionTermOutputReference_Override ¶
func NewNrqlAlertConditionTermOutputReference_Override(n NrqlAlertConditionTermOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewNrqlAlertConditionTimeoutsOutputReference_Override ¶
func NewNrqlAlertConditionTimeoutsOutputReference_Override(n NrqlAlertConditionTimeoutsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNrqlAlertConditionWarningOutputReference_Override ¶
func NewNrqlAlertConditionWarningOutputReference_Override(n NrqlAlertConditionWarningOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNrqlAlertCondition_Override ¶
func NewNrqlAlertCondition_Override(n NrqlAlertCondition, scope constructs.Construct, id *string, config *NrqlAlertConditionConfig)
Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition newrelic_nrql_alert_condition} Resource.
func NrqlAlertCondition_IsConstruct ¶
func NrqlAlertCondition_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 NrqlAlertCondition_IsTerraformElement ¶
func NrqlAlertCondition_IsTerraformElement(x interface{}) *bool
Experimental.
func NrqlAlertCondition_IsTerraformResource ¶
func NrqlAlertCondition_IsTerraformResource(x interface{}) *bool
Experimental.
func NrqlAlertCondition_TfResourceType ¶
func NrqlAlertCondition_TfResourceType() *string
Types ¶
type NrqlAlertCondition ¶
type NrqlAlertCondition interface { cdktf.TerraformResource AccountId() *float64 SetAccountId(val *float64) AccountIdInput() *float64 AggregationDelay() *string SetAggregationDelay(val *string) AggregationDelayInput() *string AggregationMethod() *string SetAggregationMethod(val *string) AggregationMethodInput() *string AggregationTimer() *string SetAggregationTimer(val *string) AggregationTimerInput() *string AggregationWindow() *float64 SetAggregationWindow(val *float64) AggregationWindowInput() *float64 BaselineDirection() *string SetBaselineDirection(val *string) BaselineDirectionInput() *string // Experimental. CdktfStack() cdktf.TerraformStack CloseViolationsOnExpiration() interface{} SetCloseViolationsOnExpiration(val interface{}) CloseViolationsOnExpirationInput() interface{} // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) Critical() NrqlAlertConditionCriticalOutputReference CriticalInput() *NrqlAlertConditionCritical // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) Description() *string SetDescription(val *string) DescriptionInput() *string Enabled() interface{} SetEnabled(val interface{}) EnabledInput() interface{} EntityGuid() *string EvaluationDelay() *float64 SetEvaluationDelay(val *float64) EvaluationDelayInput() *float64 ExpirationDuration() *float64 SetExpirationDuration(val *float64) ExpirationDurationInput() *float64 FillOption() *string SetFillOption(val *string) FillOptionInput() *string FillValue() *float64 SetFillValue(val *float64) FillValueInput() *float64 // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Name() *string SetName(val *string) NameInput() *string // The tree node. Node() constructs.Node Nrql() NrqlAlertConditionNrqlOutputReference NrqlInput() *NrqlAlertConditionNrql OpenViolationOnExpiration() interface{} SetOpenViolationOnExpiration(val interface{}) OpenViolationOnExpirationInput() interface{} 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 SlideBy() *float64 SetSlideBy(val *float64) SlideByInput() *float64 Term() NrqlAlertConditionTermList TermInput() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Timeouts() NrqlAlertConditionTimeoutsOutputReference TimeoutsInput() interface{} Type() *string SetType(val *string) TypeInput() *string ViolationTimeLimit() *string SetViolationTimeLimit(val *string) ViolationTimeLimitInput() *string ViolationTimeLimitSeconds() *float64 SetViolationTimeLimitSeconds(val *float64) ViolationTimeLimitSecondsInput() *float64 Warning() NrqlAlertConditionWarningOutputReference WarningInput() *NrqlAlertConditionWarning // 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. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutCritical(value *NrqlAlertConditionCritical) PutNrql(value *NrqlAlertConditionNrql) PutTerm(value interface{}) PutTimeouts(value *NrqlAlertConditionTimeouts) PutWarning(value *NrqlAlertConditionWarning) ResetAccountId() ResetAggregationDelay() ResetAggregationMethod() ResetAggregationTimer() ResetAggregationWindow() ResetBaselineDirection() ResetCloseViolationsOnExpiration() ResetCritical() ResetDescription() ResetEnabled() ResetEvaluationDelay() ResetExpirationDuration() ResetFillOption() ResetFillValue() ResetId() ResetOpenViolationOnExpiration() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetRunbookUrl() ResetSlideBy() ResetTerm() ResetTimeouts() ResetType() ResetViolationTimeLimit() ResetViolationTimeLimitSeconds() ResetWarning() 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.27.2/docs/resources/nrql_alert_condition newrelic_nrql_alert_condition}.
func NewNrqlAlertCondition ¶
func NewNrqlAlertCondition(scope constructs.Construct, id *string, config *NrqlAlertConditionConfig) NrqlAlertCondition
Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition newrelic_nrql_alert_condition} Resource.
type NrqlAlertConditionConfig ¶
type NrqlAlertConditionConfig 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 title of the condition. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#name NrqlAlertCondition#name} Name *string `field:"required" json:"name" yaml:"name"` // nrql block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#nrql NrqlAlertCondition#nrql} Nrql *NrqlAlertConditionNrql `field:"required" json:"nrql" yaml:"nrql"` // The ID of the policy where this condition should be used. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#policy_id NrqlAlertCondition#policy_id} PolicyId *float64 `field:"required" json:"policyId" yaml:"policyId"` // The New Relic account ID for managing your NRQL alert conditions. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#account_id NrqlAlertCondition#account_id} AccountId *float64 `field:"optional" json:"accountId" yaml:"accountId"` // How long we wait for data that belongs in each aggregation window. // // Depending on your data, a longer delay may increase accuracy but delay notifications. Use aggregationDelay with the EVENT_FLOW and CADENCE aggregation methods. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#aggregation_delay NrqlAlertCondition#aggregation_delay} AggregationDelay *string `field:"optional" json:"aggregationDelay" yaml:"aggregationDelay"` // The method that determines when we consider an aggregation window to be complete so that we can evaluate the signal for incidents. // // Default is EVENT_FLOW. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#aggregation_method NrqlAlertCondition#aggregation_method} AggregationMethod *string `field:"optional" json:"aggregationMethod" yaml:"aggregationMethod"` // How long we wait after each data point arrives to make sure we've processed the whole batch. // // Use aggregationTimer with the EVENT_TIMER aggregation method. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#aggregation_timer NrqlAlertCondition#aggregation_timer} AggregationTimer *string `field:"optional" json:"aggregationTimer" yaml:"aggregationTimer"` // The duration of the time window used to evaluate the NRQL query, in seconds. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#aggregation_window NrqlAlertCondition#aggregation_window} AggregationWindow *float64 `field:"optional" json:"aggregationWindow" yaml:"aggregationWindow"` // The baseline direction of a baseline NRQL alert condition. Valid values are: 'LOWER_ONLY', 'UPPER_AND_LOWER', 'UPPER_ONLY' (case insensitive). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#baseline_direction NrqlAlertCondition#baseline_direction} BaselineDirection *string `field:"optional" json:"baselineDirection" yaml:"baselineDirection"` // Whether to close all open incidents when the signal expires. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#close_violations_on_expiration NrqlAlertCondition#close_violations_on_expiration} CloseViolationsOnExpiration interface{} `field:"optional" json:"closeViolationsOnExpiration" yaml:"closeViolationsOnExpiration"` // critical block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#critical NrqlAlertCondition#critical} Critical *NrqlAlertConditionCritical `field:"optional" json:"critical" yaml:"critical"` // The description of the NRQL alert condition. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#description NrqlAlertCondition#description} Description *string `field:"optional" json:"description" yaml:"description"` // Whether or not to enable the alert condition. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#enabled NrqlAlertCondition#enabled} Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` // How long we wait until the signal starts evaluating. The maximum delay is 7200 seconds (120 minutes). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#evaluation_delay NrqlAlertCondition#evaluation_delay} EvaluationDelay *float64 `field:"optional" json:"evaluationDelay" yaml:"evaluationDelay"` // The amount of time (in seconds) to wait before considering the signal expired. // // Must be in the range of 30 to 172800 (inclusive) // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#expiration_duration NrqlAlertCondition#expiration_duration} ExpirationDuration *float64 `field:"optional" json:"expirationDuration" yaml:"expirationDuration"` // Which strategy to use when filling gaps in the signal. // // If static, the 'fill value' will be used for filling gaps in the signal. Valid values are: 'NONE', 'LAST_VALUE', or 'STATIC' (case insensitive). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#fill_option NrqlAlertCondition#fill_option} FillOption *string `field:"optional" json:"fillOption" yaml:"fillOption"` // If using the 'static' fill option, this value will be used for filling gaps in the signal. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#fill_value NrqlAlertCondition#fill_value} FillValue *float64 `field:"optional" json:"fillValue" yaml:"fillValue"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#id NrqlAlertCondition#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"` // Whether to create a new incident to capture that the signal expired. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#open_violation_on_expiration NrqlAlertCondition#open_violation_on_expiration} OpenViolationOnExpiration interface{} `field:"optional" json:"openViolationOnExpiration" yaml:"openViolationOnExpiration"` // Runbook URL to display in notifications. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#runbook_url NrqlAlertCondition#runbook_url} RunbookUrl *string `field:"optional" json:"runbookUrl" yaml:"runbookUrl"` // The duration of overlapping timewindows used to smooth the chart line, in seconds. // // Must be a factor of `aggregation_window` and less than the aggregation window. It should be greater or equal to 30 seconds if `aggregation_window` is less than or equal to 3600 seconds, or greater or equal to `aggregation_window / 120` if `aggregation_window` is greater than 3600 seconds. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#slide_by NrqlAlertCondition#slide_by} SlideBy *float64 `field:"optional" json:"slideBy" yaml:"slideBy"` // term block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#term NrqlAlertCondition#term} Term interface{} `field:"optional" json:"term" yaml:"term"` // timeouts block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#timeouts NrqlAlertCondition#timeouts} Timeouts *NrqlAlertConditionTimeouts `field:"optional" json:"timeouts" yaml:"timeouts"` // The type of NRQL alert condition to create. Valid values are: 'static', 'baseline'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#type NrqlAlertCondition#type} Type *string `field:"optional" json:"type" yaml:"type"` // Sets a time limit, in hours, that will automatically force-close a long-lasting incident after the time limit you select. // // Possible values are 'ONE_HOUR', 'TWO_HOURS', 'FOUR_HOURS', 'EIGHT_HOURS', 'TWELVE_HOURS', 'TWENTY_FOUR_HOURS', 'THIRTY_DAYS' (case insensitive). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#violation_time_limit NrqlAlertCondition#violation_time_limit} ViolationTimeLimit *string `field:"optional" json:"violationTimeLimit" yaml:"violationTimeLimit"` // Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. // // Must be in the range of 300 to 2592000 (inclusive) // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#violation_time_limit_seconds NrqlAlertCondition#violation_time_limit_seconds} ViolationTimeLimitSeconds *float64 `field:"optional" json:"violationTimeLimitSeconds" yaml:"violationTimeLimitSeconds"` // warning block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#warning NrqlAlertCondition#warning} Warning *NrqlAlertConditionWarning `field:"optional" json:"warning" yaml:"warning"` }
type NrqlAlertConditionCritical ¶
type NrqlAlertConditionCritical struct { // For baseline conditions must be in range [1, 1000]. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#threshold NrqlAlertCondition#threshold} Threshold *float64 `field:"required" json:"threshold" yaml:"threshold"` // In minutes, must be in the range of 1 to 120 (inclusive). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#duration NrqlAlertCondition#duration} Duration *float64 `field:"optional" json:"duration" yaml:"duration"` // One of (above, above_or_equals, below, below_or_equals, equals, not_equals). Defaults to 'equals'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#operator NrqlAlertCondition#operator} Operator *string `field:"optional" json:"operator" yaml:"operator"` // The duration, in seconds, that the threshold must violate in order to create an incident. // // Value must be a multiple of the 'aggregation_window' (which has a default of 60 seconds). Value must be within 120-86400 seconds for baseline conditions, and within 60-86400 seconds for static conditions // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#threshold_duration NrqlAlertCondition#threshold_duration} ThresholdDuration *float64 `field:"optional" json:"thresholdDuration" yaml:"thresholdDuration"` // The criteria for how many data points must be in violation for the specified threshold duration. // // Valid values are: 'ALL' or 'AT_LEAST_ONCE' (case insensitive). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#threshold_occurrences NrqlAlertCondition#threshold_occurrences} ThresholdOccurrences *string `field:"optional" json:"thresholdOccurrences" yaml:"thresholdOccurrences"` // Valid values are: 'all' or 'any'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#time_function NrqlAlertCondition#time_function} TimeFunction *string `field:"optional" json:"timeFunction" yaml:"timeFunction"` }
type NrqlAlertConditionCriticalOutputReference ¶
type NrqlAlertConditionCriticalOutputReference 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() *NrqlAlertConditionCritical SetInternalValue(val *NrqlAlertConditionCritical) Operator() *string SetOperator(val *string) OperatorInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Threshold() *float64 SetThreshold(val *float64) ThresholdDuration() *float64 SetThresholdDuration(val *float64) ThresholdDurationInput() *float64 ThresholdInput() *float64 ThresholdOccurrences() *string SetThresholdOccurrences(val *string) ThresholdOccurrencesInput() *string 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 ResetDuration() ResetOperator() ResetThresholdDuration() ResetThresholdOccurrences() ResetTimeFunction() // 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 NewNrqlAlertConditionCriticalOutputReference ¶
func NewNrqlAlertConditionCriticalOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NrqlAlertConditionCriticalOutputReference
type NrqlAlertConditionNrql ¶
type NrqlAlertConditionNrql struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#query NrqlAlertCondition#query}. Query *string `field:"required" json:"query" yaml:"query"` // NRQL queries are evaluated in one-minute time windows. // // The start time depends on the value you provide in the NRQL condition's `evaluation_offset`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#evaluation_offset NrqlAlertCondition#evaluation_offset} EvaluationOffset *float64 `field:"optional" json:"evaluationOffset" yaml:"evaluationOffset"` // NRQL queries are evaluated in one-minute time windows. // // The start time depends on the value you provide in the NRQL condition's `since_value`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#since_value NrqlAlertCondition#since_value} SinceValue *string `field:"optional" json:"sinceValue" yaml:"sinceValue"` }
type NrqlAlertConditionNrqlOutputReference ¶
type NrqlAlertConditionNrqlOutputReference 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 EvaluationOffset() *float64 SetEvaluationOffset(val *float64) EvaluationOffsetInput() *float64 // Experimental. Fqn() *string InternalValue() *NrqlAlertConditionNrql SetInternalValue(val *NrqlAlertConditionNrql) Query() *string SetQuery(val *string) QueryInput() *string SinceValue() *string SetSinceValue(val *string) SinceValueInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // 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 ResetEvaluationOffset() ResetSinceValue() // 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 NewNrqlAlertConditionNrqlOutputReference ¶
func NewNrqlAlertConditionNrqlOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NrqlAlertConditionNrqlOutputReference
type NrqlAlertConditionTerm ¶
type NrqlAlertConditionTerm struct { // For baseline conditions must be in range [1, 1000]. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#threshold NrqlAlertCondition#threshold} Threshold *float64 `field:"required" json:"threshold" yaml:"threshold"` // In minutes, must be in the range of 1 to 120 (inclusive). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#duration NrqlAlertCondition#duration} Duration *float64 `field:"optional" json:"duration" yaml:"duration"` // One of (above, above_or_equals, below, below_or_equals, equals, not_equals). Defaults to 'equals'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#operator NrqlAlertCondition#operator} Operator *string `field:"optional" json:"operator" yaml:"operator"` // One of (critical, warning). Defaults to 'critical'. At least one condition term must have priority set to 'critical'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#priority NrqlAlertCondition#priority} Priority *string `field:"optional" json:"priority" yaml:"priority"` // The duration, in seconds, that the threshold must violate in order to create an incident. // // Value must be a multiple of the 'aggregation_window' (which has a default of 60 seconds). Value must be within 120-86400 seconds for baseline conditions, and within 60-86400 seconds for static conditions // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#threshold_duration NrqlAlertCondition#threshold_duration} ThresholdDuration *float64 `field:"optional" json:"thresholdDuration" yaml:"thresholdDuration"` // The criteria for how many data points must be in violation for the specified threshold duration. // // Valid values are: 'ALL' or 'AT_LEAST_ONCE' (case insensitive). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#threshold_occurrences NrqlAlertCondition#threshold_occurrences} ThresholdOccurrences *string `field:"optional" json:"thresholdOccurrences" yaml:"thresholdOccurrences"` // Valid values are: 'all' or 'any'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#time_function NrqlAlertCondition#time_function} TimeFunction *string `field:"optional" json:"timeFunction" yaml:"timeFunction"` }
type NrqlAlertConditionTermList ¶
type NrqlAlertConditionTermList 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) NrqlAlertConditionTermOutputReference // 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 NewNrqlAlertConditionTermList ¶
func NewNrqlAlertConditionTermList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NrqlAlertConditionTermList
type NrqlAlertConditionTermOutputReference ¶
type NrqlAlertConditionTermOutputReference 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) ThresholdDuration() *float64 SetThresholdDuration(val *float64) ThresholdDurationInput() *float64 ThresholdInput() *float64 ThresholdOccurrences() *string SetThresholdOccurrences(val *string) ThresholdOccurrencesInput() *string 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 ResetDuration() ResetOperator() ResetPriority() ResetThresholdDuration() ResetThresholdOccurrences() ResetTimeFunction() // 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 NewNrqlAlertConditionTermOutputReference ¶
func NewNrqlAlertConditionTermOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) NrqlAlertConditionTermOutputReference
type NrqlAlertConditionTimeouts ¶
type NrqlAlertConditionTimeouts struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#create NrqlAlertCondition#create}. Create *string `field:"optional" json:"create" yaml:"create"` }
type NrqlAlertConditionTimeoutsOutputReference ¶
type NrqlAlertConditionTimeoutsOutputReference 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) Create() *string SetCreate(val *string) CreateInput() *string // 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{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // 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 ResetCreate() // 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 NewNrqlAlertConditionTimeoutsOutputReference ¶
func NewNrqlAlertConditionTimeoutsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NrqlAlertConditionTimeoutsOutputReference
type NrqlAlertConditionWarning ¶
type NrqlAlertConditionWarning struct { // For baseline conditions must be in range [1, 1000]. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#threshold NrqlAlertCondition#threshold} Threshold *float64 `field:"required" json:"threshold" yaml:"threshold"` // In minutes, must be in the range of 1 to 120 (inclusive). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#duration NrqlAlertCondition#duration} Duration *float64 `field:"optional" json:"duration" yaml:"duration"` // One of (above, above_or_equals, below, below_or_equals, equals, not_equals). Defaults to 'equals'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#operator NrqlAlertCondition#operator} Operator *string `field:"optional" json:"operator" yaml:"operator"` // The duration, in seconds, that the threshold must violate in order to create an incident. // // Value must be a multiple of the 'aggregation_window' (which has a default of 60 seconds). Value must be within 120-86400 seconds for baseline conditions, and within 60-86400 seconds for static conditions // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#threshold_duration NrqlAlertCondition#threshold_duration} ThresholdDuration *float64 `field:"optional" json:"thresholdDuration" yaml:"thresholdDuration"` // The criteria for how many data points must be in violation for the specified threshold duration. // // Valid values are: 'ALL' or 'AT_LEAST_ONCE' (case insensitive). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#threshold_occurrences NrqlAlertCondition#threshold_occurrences} ThresholdOccurrences *string `field:"optional" json:"thresholdOccurrences" yaml:"thresholdOccurrences"` // Valid values are: 'all' or 'any'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.27.2/docs/resources/nrql_alert_condition#time_function NrqlAlertCondition#time_function} TimeFunction *string `field:"optional" json:"timeFunction" yaml:"timeFunction"` }
type NrqlAlertConditionWarningOutputReference ¶
type NrqlAlertConditionWarningOutputReference 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() *NrqlAlertConditionWarning SetInternalValue(val *NrqlAlertConditionWarning) Operator() *string SetOperator(val *string) OperatorInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Threshold() *float64 SetThreshold(val *float64) ThresholdDuration() *float64 SetThresholdDuration(val *float64) ThresholdDurationInput() *float64 ThresholdInput() *float64 ThresholdOccurrences() *string SetThresholdOccurrences(val *string) ThresholdOccurrencesInput() *string 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 ResetDuration() ResetOperator() ResetThresholdDuration() ResetThresholdOccurrences() ResetTimeFunction() // 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 NewNrqlAlertConditionWarningOutputReference ¶
func NewNrqlAlertConditionWarningOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NrqlAlertConditionWarningOutputReference
Source Files ¶
- NrqlAlertCondition.go
- NrqlAlertConditionConfig.go
- NrqlAlertConditionCritical.go
- NrqlAlertConditionCriticalOutputReference.go
- NrqlAlertConditionCriticalOutputReference__checks.go
- NrqlAlertConditionNrql.go
- NrqlAlertConditionNrqlOutputReference.go
- NrqlAlertConditionNrqlOutputReference__checks.go
- NrqlAlertConditionTerm.go
- NrqlAlertConditionTermList.go
- NrqlAlertConditionTermList__checks.go
- NrqlAlertConditionTermOutputReference.go
- NrqlAlertConditionTermOutputReference__checks.go
- NrqlAlertConditionTimeouts.go
- NrqlAlertConditionTimeoutsOutputReference.go
- NrqlAlertConditionTimeoutsOutputReference__checks.go
- NrqlAlertConditionWarning.go
- NrqlAlertConditionWarningOutputReference.go
- NrqlAlertConditionWarningOutputReference__checks.go
- NrqlAlertCondition__checks.go
- main.go