Documentation
¶
Index ¶
- type AlertCondition
- type AlertConditionArgs
- type AlertConditionArray
- type AlertConditionArrayInput
- type AlertConditionArrayOutput
- func (AlertConditionArrayOutput) ElementType() reflect.Type
- func (o AlertConditionArrayOutput) Index(i pulumi.IntInput) AlertConditionOutput
- func (o AlertConditionArrayOutput) ToAlertConditionArrayOutput() AlertConditionArrayOutput
- func (o AlertConditionArrayOutput) ToAlertConditionArrayOutputWithContext(ctx context.Context) AlertConditionArrayOutput
- type AlertConditionInput
- type AlertConditionMap
- type AlertConditionMapInput
- type AlertConditionMapOutput
- func (AlertConditionMapOutput) ElementType() reflect.Type
- func (o AlertConditionMapOutput) MapIndex(k pulumi.StringInput) AlertConditionOutput
- func (o AlertConditionMapOutput) ToAlertConditionMapOutput() AlertConditionMapOutput
- func (o AlertConditionMapOutput) ToAlertConditionMapOutputWithContext(ctx context.Context) AlertConditionMapOutput
- type AlertConditionOutput
- func (AlertConditionOutput) ElementType() reflect.Type
- func (o AlertConditionOutput) Enabled() pulumi.BoolPtrOutput
- func (o AlertConditionOutput) EntityGuid() pulumi.StringOutput
- func (o AlertConditionOutput) MonitorId() pulumi.StringOutput
- func (o AlertConditionOutput) Name() pulumi.StringOutput
- func (o AlertConditionOutput) PolicyId() pulumi.StringOutput
- func (o AlertConditionOutput) RunbookUrl() pulumi.StringPtrOutput
- func (o AlertConditionOutput) ToAlertConditionOutput() AlertConditionOutput
- func (o AlertConditionOutput) ToAlertConditionOutputWithContext(ctx context.Context) AlertConditionOutput
- type AlertConditionState
- type BrokenLinksMonitor
- type BrokenLinksMonitorArgs
- type BrokenLinksMonitorArray
- type BrokenLinksMonitorArrayInput
- type BrokenLinksMonitorArrayOutput
- func (BrokenLinksMonitorArrayOutput) ElementType() reflect.Type
- func (o BrokenLinksMonitorArrayOutput) Index(i pulumi.IntInput) BrokenLinksMonitorOutput
- func (o BrokenLinksMonitorArrayOutput) ToBrokenLinksMonitorArrayOutput() BrokenLinksMonitorArrayOutput
- func (o BrokenLinksMonitorArrayOutput) ToBrokenLinksMonitorArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorArrayOutput
- type BrokenLinksMonitorInput
- type BrokenLinksMonitorMap
- type BrokenLinksMonitorMapInput
- type BrokenLinksMonitorMapOutput
- func (BrokenLinksMonitorMapOutput) ElementType() reflect.Type
- func (o BrokenLinksMonitorMapOutput) MapIndex(k pulumi.StringInput) BrokenLinksMonitorOutput
- func (o BrokenLinksMonitorMapOutput) ToBrokenLinksMonitorMapOutput() BrokenLinksMonitorMapOutput
- func (o BrokenLinksMonitorMapOutput) ToBrokenLinksMonitorMapOutputWithContext(ctx context.Context) BrokenLinksMonitorMapOutput
- type BrokenLinksMonitorOutput
- func (o BrokenLinksMonitorOutput) AccountId() pulumi.StringOutput
- func (BrokenLinksMonitorOutput) ElementType() reflect.Type
- func (o BrokenLinksMonitorOutput) Guid() pulumi.StringOutput
- func (o BrokenLinksMonitorOutput) LocationsPrivates() pulumi.StringArrayOutput
- func (o BrokenLinksMonitorOutput) LocationsPublics() pulumi.StringArrayOutput
- func (o BrokenLinksMonitorOutput) Name() pulumi.StringOutput
- func (o BrokenLinksMonitorOutput) Period() pulumi.StringOutput
- func (o BrokenLinksMonitorOutput) PeriodInMinutes() pulumi.IntOutput
- func (o BrokenLinksMonitorOutput) RuntimeType() pulumi.StringPtrOutput
- func (o BrokenLinksMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput
- func (o BrokenLinksMonitorOutput) Status() pulumi.StringOutput
- func (o BrokenLinksMonitorOutput) Tags() BrokenLinksMonitorTagArrayOutput
- func (o BrokenLinksMonitorOutput) ToBrokenLinksMonitorOutput() BrokenLinksMonitorOutput
- func (o BrokenLinksMonitorOutput) ToBrokenLinksMonitorOutputWithContext(ctx context.Context) BrokenLinksMonitorOutput
- func (o BrokenLinksMonitorOutput) Uri() pulumi.StringOutput
- func (o BrokenLinksMonitorOutput) UseUnsupportedLegacyRuntime() pulumi.BoolPtrOutput
- type BrokenLinksMonitorState
- type BrokenLinksMonitorTag
- type BrokenLinksMonitorTagArgs
- type BrokenLinksMonitorTagArray
- func (BrokenLinksMonitorTagArray) ElementType() reflect.Type
- func (i BrokenLinksMonitorTagArray) ToBrokenLinksMonitorTagArrayOutput() BrokenLinksMonitorTagArrayOutput
- func (i BrokenLinksMonitorTagArray) ToBrokenLinksMonitorTagArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorTagArrayOutput
- type BrokenLinksMonitorTagArrayInput
- type BrokenLinksMonitorTagArrayOutput
- func (BrokenLinksMonitorTagArrayOutput) ElementType() reflect.Type
- func (o BrokenLinksMonitorTagArrayOutput) Index(i pulumi.IntInput) BrokenLinksMonitorTagOutput
- func (o BrokenLinksMonitorTagArrayOutput) ToBrokenLinksMonitorTagArrayOutput() BrokenLinksMonitorTagArrayOutput
- func (o BrokenLinksMonitorTagArrayOutput) ToBrokenLinksMonitorTagArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorTagArrayOutput
- type BrokenLinksMonitorTagInput
- type BrokenLinksMonitorTagOutput
- func (BrokenLinksMonitorTagOutput) ElementType() reflect.Type
- func (o BrokenLinksMonitorTagOutput) Key() pulumi.StringOutput
- func (o BrokenLinksMonitorTagOutput) ToBrokenLinksMonitorTagOutput() BrokenLinksMonitorTagOutput
- func (o BrokenLinksMonitorTagOutput) ToBrokenLinksMonitorTagOutputWithContext(ctx context.Context) BrokenLinksMonitorTagOutput
- func (o BrokenLinksMonitorTagOutput) Values() pulumi.StringArrayOutput
- type CertCheckMonitor
- type CertCheckMonitorArgs
- type CertCheckMonitorArray
- type CertCheckMonitorArrayInput
- type CertCheckMonitorArrayOutput
- func (CertCheckMonitorArrayOutput) ElementType() reflect.Type
- func (o CertCheckMonitorArrayOutput) Index(i pulumi.IntInput) CertCheckMonitorOutput
- func (o CertCheckMonitorArrayOutput) ToCertCheckMonitorArrayOutput() CertCheckMonitorArrayOutput
- func (o CertCheckMonitorArrayOutput) ToCertCheckMonitorArrayOutputWithContext(ctx context.Context) CertCheckMonitorArrayOutput
- type CertCheckMonitorInput
- type CertCheckMonitorMap
- type CertCheckMonitorMapInput
- type CertCheckMonitorMapOutput
- func (CertCheckMonitorMapOutput) ElementType() reflect.Type
- func (o CertCheckMonitorMapOutput) MapIndex(k pulumi.StringInput) CertCheckMonitorOutput
- func (o CertCheckMonitorMapOutput) ToCertCheckMonitorMapOutput() CertCheckMonitorMapOutput
- func (o CertCheckMonitorMapOutput) ToCertCheckMonitorMapOutputWithContext(ctx context.Context) CertCheckMonitorMapOutput
- type CertCheckMonitorOutput
- func (o CertCheckMonitorOutput) AccountId() pulumi.StringOutput
- func (o CertCheckMonitorOutput) CertificateExpiration() pulumi.IntOutput
- func (o CertCheckMonitorOutput) Domain() pulumi.StringOutput
- func (CertCheckMonitorOutput) ElementType() reflect.Type
- func (o CertCheckMonitorOutput) LocationsPrivates() pulumi.StringArrayOutput
- func (o CertCheckMonitorOutput) LocationsPublics() pulumi.StringArrayOutput
- func (o CertCheckMonitorOutput) Name() pulumi.StringOutput
- func (o CertCheckMonitorOutput) Period() pulumi.StringOutput
- func (o CertCheckMonitorOutput) PeriodInMinutes() pulumi.IntOutput
- func (o CertCheckMonitorOutput) RuntimeType() pulumi.StringPtrOutput
- func (o CertCheckMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput
- func (o CertCheckMonitorOutput) Status() pulumi.StringOutput
- func (o CertCheckMonitorOutput) Tags() CertCheckMonitorTagArrayOutput
- func (o CertCheckMonitorOutput) ToCertCheckMonitorOutput() CertCheckMonitorOutput
- func (o CertCheckMonitorOutput) ToCertCheckMonitorOutputWithContext(ctx context.Context) CertCheckMonitorOutput
- func (o CertCheckMonitorOutput) UseUnsupportedLegacyRuntime() pulumi.BoolPtrOutput
- type CertCheckMonitorState
- type CertCheckMonitorTag
- type CertCheckMonitorTagArgs
- type CertCheckMonitorTagArray
- type CertCheckMonitorTagArrayInput
- type CertCheckMonitorTagArrayOutput
- func (CertCheckMonitorTagArrayOutput) ElementType() reflect.Type
- func (o CertCheckMonitorTagArrayOutput) Index(i pulumi.IntInput) CertCheckMonitorTagOutput
- func (o CertCheckMonitorTagArrayOutput) ToCertCheckMonitorTagArrayOutput() CertCheckMonitorTagArrayOutput
- func (o CertCheckMonitorTagArrayOutput) ToCertCheckMonitorTagArrayOutputWithContext(ctx context.Context) CertCheckMonitorTagArrayOutput
- type CertCheckMonitorTagInput
- type CertCheckMonitorTagOutput
- func (CertCheckMonitorTagOutput) ElementType() reflect.Type
- func (o CertCheckMonitorTagOutput) Key() pulumi.StringOutput
- func (o CertCheckMonitorTagOutput) ToCertCheckMonitorTagOutput() CertCheckMonitorTagOutput
- func (o CertCheckMonitorTagOutput) ToCertCheckMonitorTagOutputWithContext(ctx context.Context) CertCheckMonitorTagOutput
- func (o CertCheckMonitorTagOutput) Values() pulumi.StringArrayOutput
- type LookupPrivateLocationArgs
- type LookupPrivateLocationOutputArgs
- type LookupPrivateLocationResult
- type LookupPrivateLocationResultOutput
- func (o LookupPrivateLocationResultOutput) AccountId() pulumi.StringPtrOutput
- func (LookupPrivateLocationResultOutput) ElementType() reflect.Type
- func (o LookupPrivateLocationResultOutput) Id() pulumi.StringOutput
- func (o LookupPrivateLocationResultOutput) Keys() pulumi.StringArrayOutput
- func (o LookupPrivateLocationResultOutput) Name() pulumi.StringOutput
- func (o LookupPrivateLocationResultOutput) ToLookupPrivateLocationResultOutput() LookupPrivateLocationResultOutput
- func (o LookupPrivateLocationResultOutput) ToLookupPrivateLocationResultOutputWithContext(ctx context.Context) LookupPrivateLocationResultOutput
- type LookupSecureCredentialArgs
- type LookupSecureCredentialOutputArgs
- type LookupSecureCredentialResult
- type LookupSecureCredentialResultOutput
- func (o LookupSecureCredentialResultOutput) AccountId() pulumi.StringOutput
- func (o LookupSecureCredentialResultOutput) Description() pulumi.StringOutput
- func (LookupSecureCredentialResultOutput) ElementType() reflect.Type
- func (o LookupSecureCredentialResultOutput) Id() pulumi.StringOutput
- func (o LookupSecureCredentialResultOutput) Key() pulumi.StringOutput
- func (o LookupSecureCredentialResultOutput) LastUpdated() pulumi.StringOutput
- func (o LookupSecureCredentialResultOutput) ToLookupSecureCredentialResultOutput() LookupSecureCredentialResultOutput
- func (o LookupSecureCredentialResultOutput) ToLookupSecureCredentialResultOutputWithContext(ctx context.Context) LookupSecureCredentialResultOutput
- type Monitor
- type MonitorArgs
- type MonitorArray
- type MonitorArrayInput
- type MonitorArrayOutput
- type MonitorCustomHeader
- type MonitorCustomHeaderArgs
- type MonitorCustomHeaderArray
- type MonitorCustomHeaderArrayInput
- type MonitorCustomHeaderArrayOutput
- func (MonitorCustomHeaderArrayOutput) ElementType() reflect.Type
- func (o MonitorCustomHeaderArrayOutput) Index(i pulumi.IntInput) MonitorCustomHeaderOutput
- func (o MonitorCustomHeaderArrayOutput) ToMonitorCustomHeaderArrayOutput() MonitorCustomHeaderArrayOutput
- func (o MonitorCustomHeaderArrayOutput) ToMonitorCustomHeaderArrayOutputWithContext(ctx context.Context) MonitorCustomHeaderArrayOutput
- type MonitorCustomHeaderInput
- type MonitorCustomHeaderOutput
- func (MonitorCustomHeaderOutput) ElementType() reflect.Type
- func (o MonitorCustomHeaderOutput) Name() pulumi.StringPtrOutput
- func (o MonitorCustomHeaderOutput) ToMonitorCustomHeaderOutput() MonitorCustomHeaderOutput
- func (o MonitorCustomHeaderOutput) ToMonitorCustomHeaderOutputWithContext(ctx context.Context) MonitorCustomHeaderOutput
- func (o MonitorCustomHeaderOutput) Value() pulumi.StringPtrOutput
- type MonitorInput
- type MonitorMap
- type MonitorMapInput
- type MonitorMapOutput
- type MonitorOutput
- func (o MonitorOutput) AccountId() pulumi.StringOutput
- func (o MonitorOutput) Browsers() pulumi.StringArrayOutput
- func (o MonitorOutput) BypassHeadRequest() pulumi.BoolPtrOutput
- func (o MonitorOutput) CustomHeaders() MonitorCustomHeaderArrayOutput
- func (o MonitorOutput) DeviceOrientation() pulumi.StringPtrOutput
- func (o MonitorOutput) DeviceType() pulumi.StringPtrOutput
- func (o MonitorOutput) Devices() pulumi.StringArrayOutput
- func (MonitorOutput) ElementType() reflect.Type
- func (o MonitorOutput) EnableScreenshotOnFailureAndScript() pulumi.BoolPtrOutput
- func (o MonitorOutput) LocationsPrivates() pulumi.StringArrayOutput
- func (o MonitorOutput) LocationsPublics() pulumi.StringArrayOutput
- func (o MonitorOutput) Name() pulumi.StringOutput
- func (o MonitorOutput) Period() pulumi.StringOutput
- func (o MonitorOutput) PeriodInMinutes() pulumi.IntOutput
- func (o MonitorOutput) RuntimeType() pulumi.StringPtrOutput
- func (o MonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput
- func (o MonitorOutput) ScriptLanguage() pulumi.StringPtrOutput
- func (o MonitorOutput) Status() pulumi.StringOutput
- func (o MonitorOutput) Tags() MonitorTagArrayOutput
- func (o MonitorOutput) ToMonitorOutput() MonitorOutput
- func (o MonitorOutput) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput
- func (o MonitorOutput) TreatRedirectAsFailure() pulumi.BoolPtrOutput
- func (o MonitorOutput) Type() pulumi.StringOutput
- func (o MonitorOutput) Uri() pulumi.StringPtrOutput
- func (o MonitorOutput) UseUnsupportedLegacyRuntime() pulumi.BoolPtrOutput
- func (o MonitorOutput) ValidationString() pulumi.StringPtrOutput
- func (o MonitorOutput) VerifySsl() pulumi.BoolPtrOutput
- type MonitorState
- type MonitorTag
- type MonitorTagArgs
- type MonitorTagArray
- type MonitorTagArrayInput
- type MonitorTagArrayOutput
- func (MonitorTagArrayOutput) ElementType() reflect.Type
- func (o MonitorTagArrayOutput) Index(i pulumi.IntInput) MonitorTagOutput
- func (o MonitorTagArrayOutput) ToMonitorTagArrayOutput() MonitorTagArrayOutput
- func (o MonitorTagArrayOutput) ToMonitorTagArrayOutputWithContext(ctx context.Context) MonitorTagArrayOutput
- type MonitorTagInput
- type MonitorTagOutput
- func (MonitorTagOutput) ElementType() reflect.Type
- func (o MonitorTagOutput) Key() pulumi.StringOutput
- func (o MonitorTagOutput) ToMonitorTagOutput() MonitorTagOutput
- func (o MonitorTagOutput) ToMonitorTagOutputWithContext(ctx context.Context) MonitorTagOutput
- func (o MonitorTagOutput) Values() pulumi.StringArrayOutput
- type MultiLocationAlertCondition
- func (*MultiLocationAlertCondition) ElementType() reflect.Type
- func (i *MultiLocationAlertCondition) ToMultiLocationAlertConditionOutput() MultiLocationAlertConditionOutput
- func (i *MultiLocationAlertCondition) ToMultiLocationAlertConditionOutputWithContext(ctx context.Context) MultiLocationAlertConditionOutput
- type MultiLocationAlertConditionArgs
- type MultiLocationAlertConditionArray
- func (MultiLocationAlertConditionArray) ElementType() reflect.Type
- func (i MultiLocationAlertConditionArray) ToMultiLocationAlertConditionArrayOutput() MultiLocationAlertConditionArrayOutput
- func (i MultiLocationAlertConditionArray) ToMultiLocationAlertConditionArrayOutputWithContext(ctx context.Context) MultiLocationAlertConditionArrayOutput
- type MultiLocationAlertConditionArrayInput
- type MultiLocationAlertConditionArrayOutput
- func (MultiLocationAlertConditionArrayOutput) ElementType() reflect.Type
- func (o MultiLocationAlertConditionArrayOutput) Index(i pulumi.IntInput) MultiLocationAlertConditionOutput
- func (o MultiLocationAlertConditionArrayOutput) ToMultiLocationAlertConditionArrayOutput() MultiLocationAlertConditionArrayOutput
- func (o MultiLocationAlertConditionArrayOutput) ToMultiLocationAlertConditionArrayOutputWithContext(ctx context.Context) MultiLocationAlertConditionArrayOutput
- type MultiLocationAlertConditionCritical
- type MultiLocationAlertConditionCriticalArgs
- func (MultiLocationAlertConditionCriticalArgs) ElementType() reflect.Type
- func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalOutput() MultiLocationAlertConditionCriticalOutput
- func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalOutput
- func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput
- func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalPtrOutput
- type MultiLocationAlertConditionCriticalInput
- type MultiLocationAlertConditionCriticalOutput
- func (MultiLocationAlertConditionCriticalOutput) ElementType() reflect.Type
- func (o MultiLocationAlertConditionCriticalOutput) Threshold() pulumi.IntOutput
- func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalOutput() MultiLocationAlertConditionCriticalOutput
- func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalOutput
- func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput
- func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalPtrOutput
- type MultiLocationAlertConditionCriticalPtrInput
- type MultiLocationAlertConditionCriticalPtrOutput
- func (o MultiLocationAlertConditionCriticalPtrOutput) Elem() MultiLocationAlertConditionCriticalOutput
- func (MultiLocationAlertConditionCriticalPtrOutput) ElementType() reflect.Type
- func (o MultiLocationAlertConditionCriticalPtrOutput) Threshold() pulumi.IntPtrOutput
- func (o MultiLocationAlertConditionCriticalPtrOutput) ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput
- func (o MultiLocationAlertConditionCriticalPtrOutput) ToMultiLocationAlertConditionCriticalPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalPtrOutput
- type MultiLocationAlertConditionInput
- type MultiLocationAlertConditionMap
- func (MultiLocationAlertConditionMap) ElementType() reflect.Type
- func (i MultiLocationAlertConditionMap) ToMultiLocationAlertConditionMapOutput() MultiLocationAlertConditionMapOutput
- func (i MultiLocationAlertConditionMap) ToMultiLocationAlertConditionMapOutputWithContext(ctx context.Context) MultiLocationAlertConditionMapOutput
- type MultiLocationAlertConditionMapInput
- type MultiLocationAlertConditionMapOutput
- func (MultiLocationAlertConditionMapOutput) ElementType() reflect.Type
- func (o MultiLocationAlertConditionMapOutput) MapIndex(k pulumi.StringInput) MultiLocationAlertConditionOutput
- func (o MultiLocationAlertConditionMapOutput) ToMultiLocationAlertConditionMapOutput() MultiLocationAlertConditionMapOutput
- func (o MultiLocationAlertConditionMapOutput) ToMultiLocationAlertConditionMapOutputWithContext(ctx context.Context) MultiLocationAlertConditionMapOutput
- type MultiLocationAlertConditionOutput
- func (o MultiLocationAlertConditionOutput) Critical() MultiLocationAlertConditionCriticalOutput
- func (MultiLocationAlertConditionOutput) ElementType() reflect.Type
- func (o MultiLocationAlertConditionOutput) Enabled() pulumi.BoolPtrOutput
- func (o MultiLocationAlertConditionOutput) Entities() pulumi.StringArrayOutput
- func (o MultiLocationAlertConditionOutput) EntityGuid() pulumi.StringOutput
- func (o MultiLocationAlertConditionOutput) Name() pulumi.StringOutput
- func (o MultiLocationAlertConditionOutput) PolicyId() pulumi.StringOutput
- func (o MultiLocationAlertConditionOutput) RunbookUrl() pulumi.StringPtrOutput
- func (o MultiLocationAlertConditionOutput) ToMultiLocationAlertConditionOutput() MultiLocationAlertConditionOutput
- func (o MultiLocationAlertConditionOutput) ToMultiLocationAlertConditionOutputWithContext(ctx context.Context) MultiLocationAlertConditionOutput
- func (o MultiLocationAlertConditionOutput) ViolationTimeLimitSeconds() pulumi.IntPtrOutput
- func (o MultiLocationAlertConditionOutput) Warning() MultiLocationAlertConditionWarningPtrOutput
- type MultiLocationAlertConditionState
- type MultiLocationAlertConditionWarning
- type MultiLocationAlertConditionWarningArgs
- func (MultiLocationAlertConditionWarningArgs) ElementType() reflect.Type
- func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningOutput() MultiLocationAlertConditionWarningOutput
- func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningOutput
- func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput
- func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningPtrOutput
- type MultiLocationAlertConditionWarningInput
- type MultiLocationAlertConditionWarningOutput
- func (MultiLocationAlertConditionWarningOutput) ElementType() reflect.Type
- func (o MultiLocationAlertConditionWarningOutput) Threshold() pulumi.IntOutput
- func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningOutput() MultiLocationAlertConditionWarningOutput
- func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningOutput
- func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput
- func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningPtrOutput
- type MultiLocationAlertConditionWarningPtrInput
- type MultiLocationAlertConditionWarningPtrOutput
- func (o MultiLocationAlertConditionWarningPtrOutput) Elem() MultiLocationAlertConditionWarningOutput
- func (MultiLocationAlertConditionWarningPtrOutput) ElementType() reflect.Type
- func (o MultiLocationAlertConditionWarningPtrOutput) Threshold() pulumi.IntPtrOutput
- func (o MultiLocationAlertConditionWarningPtrOutput) ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput
- func (o MultiLocationAlertConditionWarningPtrOutput) ToMultiLocationAlertConditionWarningPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningPtrOutput
- type PrivateLocation
- type PrivateLocationArgs
- type PrivateLocationArray
- type PrivateLocationArrayInput
- type PrivateLocationArrayOutput
- func (PrivateLocationArrayOutput) ElementType() reflect.Type
- func (o PrivateLocationArrayOutput) Index(i pulumi.IntInput) PrivateLocationOutput
- func (o PrivateLocationArrayOutput) ToPrivateLocationArrayOutput() PrivateLocationArrayOutput
- func (o PrivateLocationArrayOutput) ToPrivateLocationArrayOutputWithContext(ctx context.Context) PrivateLocationArrayOutput
- type PrivateLocationInput
- type PrivateLocationMap
- type PrivateLocationMapInput
- type PrivateLocationMapOutput
- func (PrivateLocationMapOutput) ElementType() reflect.Type
- func (o PrivateLocationMapOutput) MapIndex(k pulumi.StringInput) PrivateLocationOutput
- func (o PrivateLocationMapOutput) ToPrivateLocationMapOutput() PrivateLocationMapOutput
- func (o PrivateLocationMapOutput) ToPrivateLocationMapOutputWithContext(ctx context.Context) PrivateLocationMapOutput
- type PrivateLocationOutput
- func (o PrivateLocationOutput) AccountId() pulumi.StringOutput
- func (o PrivateLocationOutput) Description() pulumi.StringOutput
- func (o PrivateLocationOutput) DomainId() pulumi.StringOutput
- func (PrivateLocationOutput) ElementType() reflect.Type
- func (o PrivateLocationOutput) Guid() pulumi.StringOutput
- func (o PrivateLocationOutput) Key() pulumi.StringOutput
- func (o PrivateLocationOutput) LocationId() pulumi.StringOutput
- func (o PrivateLocationOutput) Name() pulumi.StringOutput
- func (o PrivateLocationOutput) ToPrivateLocationOutput() PrivateLocationOutput
- func (o PrivateLocationOutput) ToPrivateLocationOutputWithContext(ctx context.Context) PrivateLocationOutput
- func (o PrivateLocationOutput) VerifiedScriptExecution() pulumi.BoolPtrOutput
- type PrivateLocationState
- type ScriptMonitor
- type ScriptMonitorArgs
- type ScriptMonitorArray
- type ScriptMonitorArrayInput
- type ScriptMonitorArrayOutput
- func (ScriptMonitorArrayOutput) ElementType() reflect.Type
- func (o ScriptMonitorArrayOutput) Index(i pulumi.IntInput) ScriptMonitorOutput
- func (o ScriptMonitorArrayOutput) ToScriptMonitorArrayOutput() ScriptMonitorArrayOutput
- func (o ScriptMonitorArrayOutput) ToScriptMonitorArrayOutputWithContext(ctx context.Context) ScriptMonitorArrayOutput
- type ScriptMonitorInput
- type ScriptMonitorLocationPrivate
- type ScriptMonitorLocationPrivateArgs
- func (ScriptMonitorLocationPrivateArgs) ElementType() reflect.Type
- func (i ScriptMonitorLocationPrivateArgs) ToScriptMonitorLocationPrivateOutput() ScriptMonitorLocationPrivateOutput
- func (i ScriptMonitorLocationPrivateArgs) ToScriptMonitorLocationPrivateOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateOutput
- type ScriptMonitorLocationPrivateArray
- func (ScriptMonitorLocationPrivateArray) ElementType() reflect.Type
- func (i ScriptMonitorLocationPrivateArray) ToScriptMonitorLocationPrivateArrayOutput() ScriptMonitorLocationPrivateArrayOutput
- func (i ScriptMonitorLocationPrivateArray) ToScriptMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateArrayOutput
- type ScriptMonitorLocationPrivateArrayInput
- type ScriptMonitorLocationPrivateArrayOutput
- func (ScriptMonitorLocationPrivateArrayOutput) ElementType() reflect.Type
- func (o ScriptMonitorLocationPrivateArrayOutput) Index(i pulumi.IntInput) ScriptMonitorLocationPrivateOutput
- func (o ScriptMonitorLocationPrivateArrayOutput) ToScriptMonitorLocationPrivateArrayOutput() ScriptMonitorLocationPrivateArrayOutput
- func (o ScriptMonitorLocationPrivateArrayOutput) ToScriptMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateArrayOutput
- type ScriptMonitorLocationPrivateInput
- type ScriptMonitorLocationPrivateOutput
- func (ScriptMonitorLocationPrivateOutput) ElementType() reflect.Type
- func (o ScriptMonitorLocationPrivateOutput) Guid() pulumi.StringOutput
- func (o ScriptMonitorLocationPrivateOutput) ToScriptMonitorLocationPrivateOutput() ScriptMonitorLocationPrivateOutput
- func (o ScriptMonitorLocationPrivateOutput) ToScriptMonitorLocationPrivateOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateOutput
- func (o ScriptMonitorLocationPrivateOutput) VsePassword() pulumi.StringPtrOutput
- type ScriptMonitorMap
- type ScriptMonitorMapInput
- type ScriptMonitorMapOutput
- func (ScriptMonitorMapOutput) ElementType() reflect.Type
- func (o ScriptMonitorMapOutput) MapIndex(k pulumi.StringInput) ScriptMonitorOutput
- func (o ScriptMonitorMapOutput) ToScriptMonitorMapOutput() ScriptMonitorMapOutput
- func (o ScriptMonitorMapOutput) ToScriptMonitorMapOutputWithContext(ctx context.Context) ScriptMonitorMapOutput
- type ScriptMonitorOutput
- func (o ScriptMonitorOutput) AccountId() pulumi.StringOutput
- func (o ScriptMonitorOutput) Browsers() pulumi.StringArrayOutput
- func (o ScriptMonitorOutput) DeviceOrientation() pulumi.StringPtrOutput
- func (o ScriptMonitorOutput) DeviceType() pulumi.StringPtrOutput
- func (o ScriptMonitorOutput) Devices() pulumi.StringArrayOutput
- func (ScriptMonitorOutput) ElementType() reflect.Type
- func (o ScriptMonitorOutput) EnableScreenshotOnFailureAndScript() pulumi.BoolPtrOutput
- func (o ScriptMonitorOutput) Guid() pulumi.StringOutput
- func (o ScriptMonitorOutput) LocationPrivates() ScriptMonitorLocationPrivateArrayOutput
- func (o ScriptMonitorOutput) LocationsPublics() pulumi.StringArrayOutput
- func (o ScriptMonitorOutput) Name() pulumi.StringOutput
- func (o ScriptMonitorOutput) Period() pulumi.StringOutput
- func (o ScriptMonitorOutput) PeriodInMinutes() pulumi.IntOutput
- func (o ScriptMonitorOutput) RuntimeType() pulumi.StringPtrOutput
- func (o ScriptMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput
- func (o ScriptMonitorOutput) Script() pulumi.StringPtrOutput
- func (o ScriptMonitorOutput) ScriptLanguage() pulumi.StringPtrOutput
- func (o ScriptMonitorOutput) Status() pulumi.StringOutput
- func (o ScriptMonitorOutput) Tags() ScriptMonitorTagArrayOutput
- func (o ScriptMonitorOutput) ToScriptMonitorOutput() ScriptMonitorOutput
- func (o ScriptMonitorOutput) ToScriptMonitorOutputWithContext(ctx context.Context) ScriptMonitorOutput
- func (o ScriptMonitorOutput) Type() pulumi.StringOutput
- func (o ScriptMonitorOutput) UseUnsupportedLegacyRuntime() pulumi.BoolPtrOutput
- type ScriptMonitorState
- type ScriptMonitorTag
- type ScriptMonitorTagArgs
- type ScriptMonitorTagArray
- type ScriptMonitorTagArrayInput
- type ScriptMonitorTagArrayOutput
- func (ScriptMonitorTagArrayOutput) ElementType() reflect.Type
- func (o ScriptMonitorTagArrayOutput) Index(i pulumi.IntInput) ScriptMonitorTagOutput
- func (o ScriptMonitorTagArrayOutput) ToScriptMonitorTagArrayOutput() ScriptMonitorTagArrayOutput
- func (o ScriptMonitorTagArrayOutput) ToScriptMonitorTagArrayOutputWithContext(ctx context.Context) ScriptMonitorTagArrayOutput
- type ScriptMonitorTagInput
- type ScriptMonitorTagOutput
- func (ScriptMonitorTagOutput) ElementType() reflect.Type
- func (o ScriptMonitorTagOutput) Key() pulumi.StringOutput
- func (o ScriptMonitorTagOutput) ToScriptMonitorTagOutput() ScriptMonitorTagOutput
- func (o ScriptMonitorTagOutput) ToScriptMonitorTagOutputWithContext(ctx context.Context) ScriptMonitorTagOutput
- func (o ScriptMonitorTagOutput) Values() pulumi.StringArrayOutput
- type SecureCredential
- type SecureCredentialArgs
- type SecureCredentialArray
- type SecureCredentialArrayInput
- type SecureCredentialArrayOutput
- func (SecureCredentialArrayOutput) ElementType() reflect.Type
- func (o SecureCredentialArrayOutput) Index(i pulumi.IntInput) SecureCredentialOutput
- func (o SecureCredentialArrayOutput) ToSecureCredentialArrayOutput() SecureCredentialArrayOutput
- func (o SecureCredentialArrayOutput) ToSecureCredentialArrayOutputWithContext(ctx context.Context) SecureCredentialArrayOutput
- type SecureCredentialInput
- type SecureCredentialMap
- type SecureCredentialMapInput
- type SecureCredentialMapOutput
- func (SecureCredentialMapOutput) ElementType() reflect.Type
- func (o SecureCredentialMapOutput) MapIndex(k pulumi.StringInput) SecureCredentialOutput
- func (o SecureCredentialMapOutput) ToSecureCredentialMapOutput() SecureCredentialMapOutput
- func (o SecureCredentialMapOutput) ToSecureCredentialMapOutputWithContext(ctx context.Context) SecureCredentialMapOutput
- type SecureCredentialOutput
- func (o SecureCredentialOutput) AccountId() pulumi.StringOutput
- func (o SecureCredentialOutput) Description() pulumi.StringPtrOutput
- func (SecureCredentialOutput) ElementType() reflect.Type
- func (o SecureCredentialOutput) Key() pulumi.StringOutput
- func (o SecureCredentialOutput) LastUpdated() pulumi.StringOutput
- func (o SecureCredentialOutput) ToSecureCredentialOutput() SecureCredentialOutput
- func (o SecureCredentialOutput) ToSecureCredentialOutputWithContext(ctx context.Context) SecureCredentialOutput
- func (o SecureCredentialOutput) Value() pulumi.StringOutput
- type SecureCredentialState
- type StepMonitor
- type StepMonitorArgs
- type StepMonitorArray
- type StepMonitorArrayInput
- type StepMonitorArrayOutput
- func (StepMonitorArrayOutput) ElementType() reflect.Type
- func (o StepMonitorArrayOutput) Index(i pulumi.IntInput) StepMonitorOutput
- func (o StepMonitorArrayOutput) ToStepMonitorArrayOutput() StepMonitorArrayOutput
- func (o StepMonitorArrayOutput) ToStepMonitorArrayOutputWithContext(ctx context.Context) StepMonitorArrayOutput
- type StepMonitorInput
- type StepMonitorLocationPrivate
- type StepMonitorLocationPrivateArgs
- func (StepMonitorLocationPrivateArgs) ElementType() reflect.Type
- func (i StepMonitorLocationPrivateArgs) ToStepMonitorLocationPrivateOutput() StepMonitorLocationPrivateOutput
- func (i StepMonitorLocationPrivateArgs) ToStepMonitorLocationPrivateOutputWithContext(ctx context.Context) StepMonitorLocationPrivateOutput
- type StepMonitorLocationPrivateArray
- func (StepMonitorLocationPrivateArray) ElementType() reflect.Type
- func (i StepMonitorLocationPrivateArray) ToStepMonitorLocationPrivateArrayOutput() StepMonitorLocationPrivateArrayOutput
- func (i StepMonitorLocationPrivateArray) ToStepMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) StepMonitorLocationPrivateArrayOutput
- type StepMonitorLocationPrivateArrayInput
- type StepMonitorLocationPrivateArrayOutput
- func (StepMonitorLocationPrivateArrayOutput) ElementType() reflect.Type
- func (o StepMonitorLocationPrivateArrayOutput) Index(i pulumi.IntInput) StepMonitorLocationPrivateOutput
- func (o StepMonitorLocationPrivateArrayOutput) ToStepMonitorLocationPrivateArrayOutput() StepMonitorLocationPrivateArrayOutput
- func (o StepMonitorLocationPrivateArrayOutput) ToStepMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) StepMonitorLocationPrivateArrayOutput
- type StepMonitorLocationPrivateInput
- type StepMonitorLocationPrivateOutput
- func (StepMonitorLocationPrivateOutput) ElementType() reflect.Type
- func (o StepMonitorLocationPrivateOutput) Guid() pulumi.StringOutput
- func (o StepMonitorLocationPrivateOutput) ToStepMonitorLocationPrivateOutput() StepMonitorLocationPrivateOutput
- func (o StepMonitorLocationPrivateOutput) ToStepMonitorLocationPrivateOutputWithContext(ctx context.Context) StepMonitorLocationPrivateOutput
- func (o StepMonitorLocationPrivateOutput) VsePassword() pulumi.StringPtrOutput
- type StepMonitorMap
- type StepMonitorMapInput
- type StepMonitorMapOutput
- func (StepMonitorMapOutput) ElementType() reflect.Type
- func (o StepMonitorMapOutput) MapIndex(k pulumi.StringInput) StepMonitorOutput
- func (o StepMonitorMapOutput) ToStepMonitorMapOutput() StepMonitorMapOutput
- func (o StepMonitorMapOutput) ToStepMonitorMapOutputWithContext(ctx context.Context) StepMonitorMapOutput
- type StepMonitorOutput
- func (o StepMonitorOutput) AccountId() pulumi.StringOutput
- func (o StepMonitorOutput) Browsers() pulumi.StringArrayOutput
- func (o StepMonitorOutput) Devices() pulumi.StringArrayOutput
- func (StepMonitorOutput) ElementType() reflect.Type
- func (o StepMonitorOutput) EnableScreenshotOnFailureAndScript() pulumi.BoolPtrOutput
- func (o StepMonitorOutput) Guid() pulumi.StringOutput
- func (o StepMonitorOutput) LocationPrivates() StepMonitorLocationPrivateArrayOutput
- func (o StepMonitorOutput) LocationsPublics() pulumi.StringArrayOutput
- func (o StepMonitorOutput) Name() pulumi.StringOutput
- func (o StepMonitorOutput) Period() pulumi.StringOutput
- func (o StepMonitorOutput) PeriodInMinutes() pulumi.IntOutput
- func (o StepMonitorOutput) RuntimeType() pulumi.StringPtrOutput
- func (o StepMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput
- func (o StepMonitorOutput) Status() pulumi.StringOutput
- func (o StepMonitorOutput) Steps() StepMonitorStepArrayOutput
- func (o StepMonitorOutput) Tags() StepMonitorTagArrayOutput
- func (o StepMonitorOutput) ToStepMonitorOutput() StepMonitorOutput
- func (o StepMonitorOutput) ToStepMonitorOutputWithContext(ctx context.Context) StepMonitorOutput
- func (o StepMonitorOutput) UseUnsupportedLegacyRuntime() pulumi.BoolPtrOutput
- type StepMonitorState
- type StepMonitorStep
- type StepMonitorStepArgs
- type StepMonitorStepArray
- type StepMonitorStepArrayInput
- type StepMonitorStepArrayOutput
- func (StepMonitorStepArrayOutput) ElementType() reflect.Type
- func (o StepMonitorStepArrayOutput) Index(i pulumi.IntInput) StepMonitorStepOutput
- func (o StepMonitorStepArrayOutput) ToStepMonitorStepArrayOutput() StepMonitorStepArrayOutput
- func (o StepMonitorStepArrayOutput) ToStepMonitorStepArrayOutputWithContext(ctx context.Context) StepMonitorStepArrayOutput
- type StepMonitorStepInput
- type StepMonitorStepOutput
- func (StepMonitorStepOutput) ElementType() reflect.Type
- func (o StepMonitorStepOutput) Ordinal() pulumi.IntOutput
- func (o StepMonitorStepOutput) ToStepMonitorStepOutput() StepMonitorStepOutput
- func (o StepMonitorStepOutput) ToStepMonitorStepOutputWithContext(ctx context.Context) StepMonitorStepOutput
- func (o StepMonitorStepOutput) Type() pulumi.StringOutput
- func (o StepMonitorStepOutput) Values() pulumi.StringArrayOutput
- type StepMonitorTag
- type StepMonitorTagArgs
- type StepMonitorTagArray
- type StepMonitorTagArrayInput
- type StepMonitorTagArrayOutput
- func (StepMonitorTagArrayOutput) ElementType() reflect.Type
- func (o StepMonitorTagArrayOutput) Index(i pulumi.IntInput) StepMonitorTagOutput
- func (o StepMonitorTagArrayOutput) ToStepMonitorTagArrayOutput() StepMonitorTagArrayOutput
- func (o StepMonitorTagArrayOutput) ToStepMonitorTagArrayOutputWithContext(ctx context.Context) StepMonitorTagArrayOutput
- type StepMonitorTagInput
- type StepMonitorTagOutput
- func (StepMonitorTagOutput) ElementType() reflect.Type
- func (o StepMonitorTagOutput) Key() pulumi.StringOutput
- func (o StepMonitorTagOutput) ToStepMonitorTagOutput() StepMonitorTagOutput
- func (o StepMonitorTagOutput) ToStepMonitorTagOutputWithContext(ctx context.Context) StepMonitorTagOutput
- func (o StepMonitorTagOutput) Values() pulumi.StringArrayOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertCondition ¶
type AlertCondition struct { pulumi.CustomResourceState // Set whether to enable the alert condition. Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The unique entity identifier of the condition in New Relic. EntityGuid pulumi.StringOutput `pulumi:"entityGuid"` // The GUID of the Synthetics monitor to be referenced in the alert condition. MonitorId pulumi.StringOutput `pulumi:"monitorId"` // The title of this condition. Name pulumi.StringOutput `pulumi:"name"` // The ID of the policy where this condition should be used. PolicyId pulumi.StringOutput `pulumi:"policyId"` // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrOutput `pulumi:"runbookUrl"` }
Use this resource to create and manage synthetics alert conditions in New Relic.
> **WARNING:** The `synthetics.AlertCondition` resource is deprecated and will be removed in the next major release. The resource NrqlAlertCondition would be a preferred alternative to configure alert conditions - in most cases, feature parity can be achieved with a NRQL query. For more details and examples on moving away from synthetics alert conditions to the NRQL based alternative, please check out this example.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.NewAlertCondition(ctx, "foo", &synthetics.AlertConditionArgs{ PolicyId: pulumi.Any(fooNewrelicAlertPolicy.Id), Name: pulumi.String("foo"), MonitorId: pulumi.Any(fooNewrelicSyntheticsMonitor.Id), RunbookUrl: pulumi.String("https://www.example.com"), }) if err != nil { return err } return nil }) }
```
## Tags
Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic" "github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { foo, err := newrelic.NewAlertPolicy(ctx, "foo", &newrelic.AlertPolicyArgs{ Name: pulumi.String("foo policy"), }) if err != nil { return err } fooMonitor, err := synthetics.NewMonitor(ctx, "foo", &synthetics.MonitorArgs{ Status: pulumi.String("ENABLED"), Name: pulumi.String("foo monitor"), Period: pulumi.String("EVERY_MINUTE"), Uri: pulumi.String("https://www.one.newrelic.com"), Type: pulumi.String("SIMPLE"), LocationsPublics: pulumi.StringArray{ pulumi.String("AP_EAST_1"), }, CustomHeaders: synthetics.MonitorCustomHeaderArray{ &synthetics.MonitorCustomHeaderArgs{ Name: pulumi.String("some_name"), Value: pulumi.String("some_value"), }, }, TreatRedirectAsFailure: pulumi.Bool(true), ValidationString: pulumi.String("success"), BypassHeadRequest: pulumi.Bool(true), VerifySsl: pulumi.Bool(true), Tags: synthetics.MonitorTagArray{ &synthetics.MonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } fooAlertCondition, err := synthetics.NewAlertCondition(ctx, "foo", &synthetics.AlertConditionArgs{ PolicyId: foo.ID(), Name: pulumi.String("foo synthetics condition"), MonitorId: fooMonitor.ID(), RunbookUrl: pulumi.String("https://www.example.com"), }) if err != nil { return err } _, err = newrelic.NewEntityTags(ctx, "my_condition_entity_tags", &newrelic.EntityTagsArgs{ Guid: fooAlertCondition.EntityGuid, Tags: newrelic.EntityTagsTagArray{ &newrelic.EntityTagsTagArgs{ Key: pulumi.String("my-key"), Values: pulumi.StringArray{ pulumi.String("my-value"), pulumi.String("my-other-value"), }, }, &newrelic.EntityTagsTagArgs{ Key: pulumi.String("my-key-2"), Values: pulumi.StringArray{ pulumi.String("my-value-2"), }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
Synthetics alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
```sh $ pulumi import newrelic:synthetics/alertCondition:AlertCondition main 12345:67890 ```
func GetAlertCondition ¶
func GetAlertCondition(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AlertConditionState, opts ...pulumi.ResourceOption) (*AlertCondition, error)
GetAlertCondition gets an existing AlertCondition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAlertCondition ¶
func NewAlertCondition(ctx *pulumi.Context, name string, args *AlertConditionArgs, opts ...pulumi.ResourceOption) (*AlertCondition, error)
NewAlertCondition registers a new resource with the given unique name, arguments, and options.
func (*AlertCondition) ElementType ¶
func (*AlertCondition) ElementType() reflect.Type
func (*AlertCondition) ToAlertConditionOutput ¶
func (i *AlertCondition) ToAlertConditionOutput() AlertConditionOutput
func (*AlertCondition) ToAlertConditionOutputWithContext ¶
func (i *AlertCondition) ToAlertConditionOutputWithContext(ctx context.Context) AlertConditionOutput
type AlertConditionArgs ¶
type AlertConditionArgs struct { // Set whether to enable the alert condition. Defaults to `true`. Enabled pulumi.BoolPtrInput // The GUID of the Synthetics monitor to be referenced in the alert condition. MonitorId pulumi.StringInput // The title of this condition. Name pulumi.StringPtrInput // The ID of the policy where this condition should be used. PolicyId pulumi.StringInput // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrInput }
The set of arguments for constructing a AlertCondition resource.
func (AlertConditionArgs) ElementType ¶
func (AlertConditionArgs) ElementType() reflect.Type
type AlertConditionArray ¶
type AlertConditionArray []AlertConditionInput
func (AlertConditionArray) ElementType ¶
func (AlertConditionArray) ElementType() reflect.Type
func (AlertConditionArray) ToAlertConditionArrayOutput ¶
func (i AlertConditionArray) ToAlertConditionArrayOutput() AlertConditionArrayOutput
func (AlertConditionArray) ToAlertConditionArrayOutputWithContext ¶
func (i AlertConditionArray) ToAlertConditionArrayOutputWithContext(ctx context.Context) AlertConditionArrayOutput
type AlertConditionArrayInput ¶
type AlertConditionArrayInput interface { pulumi.Input ToAlertConditionArrayOutput() AlertConditionArrayOutput ToAlertConditionArrayOutputWithContext(context.Context) AlertConditionArrayOutput }
AlertConditionArrayInput is an input type that accepts AlertConditionArray and AlertConditionArrayOutput values. You can construct a concrete instance of `AlertConditionArrayInput` via:
AlertConditionArray{ AlertConditionArgs{...} }
type AlertConditionArrayOutput ¶
type AlertConditionArrayOutput struct{ *pulumi.OutputState }
func (AlertConditionArrayOutput) ElementType ¶
func (AlertConditionArrayOutput) ElementType() reflect.Type
func (AlertConditionArrayOutput) Index ¶
func (o AlertConditionArrayOutput) Index(i pulumi.IntInput) AlertConditionOutput
func (AlertConditionArrayOutput) ToAlertConditionArrayOutput ¶
func (o AlertConditionArrayOutput) ToAlertConditionArrayOutput() AlertConditionArrayOutput
func (AlertConditionArrayOutput) ToAlertConditionArrayOutputWithContext ¶
func (o AlertConditionArrayOutput) ToAlertConditionArrayOutputWithContext(ctx context.Context) AlertConditionArrayOutput
type AlertConditionInput ¶
type AlertConditionInput interface { pulumi.Input ToAlertConditionOutput() AlertConditionOutput ToAlertConditionOutputWithContext(ctx context.Context) AlertConditionOutput }
type AlertConditionMap ¶
type AlertConditionMap map[string]AlertConditionInput
func (AlertConditionMap) ElementType ¶
func (AlertConditionMap) ElementType() reflect.Type
func (AlertConditionMap) ToAlertConditionMapOutput ¶
func (i AlertConditionMap) ToAlertConditionMapOutput() AlertConditionMapOutput
func (AlertConditionMap) ToAlertConditionMapOutputWithContext ¶
func (i AlertConditionMap) ToAlertConditionMapOutputWithContext(ctx context.Context) AlertConditionMapOutput
type AlertConditionMapInput ¶
type AlertConditionMapInput interface { pulumi.Input ToAlertConditionMapOutput() AlertConditionMapOutput ToAlertConditionMapOutputWithContext(context.Context) AlertConditionMapOutput }
AlertConditionMapInput is an input type that accepts AlertConditionMap and AlertConditionMapOutput values. You can construct a concrete instance of `AlertConditionMapInput` via:
AlertConditionMap{ "key": AlertConditionArgs{...} }
type AlertConditionMapOutput ¶
type AlertConditionMapOutput struct{ *pulumi.OutputState }
func (AlertConditionMapOutput) ElementType ¶
func (AlertConditionMapOutput) ElementType() reflect.Type
func (AlertConditionMapOutput) MapIndex ¶
func (o AlertConditionMapOutput) MapIndex(k pulumi.StringInput) AlertConditionOutput
func (AlertConditionMapOutput) ToAlertConditionMapOutput ¶
func (o AlertConditionMapOutput) ToAlertConditionMapOutput() AlertConditionMapOutput
func (AlertConditionMapOutput) ToAlertConditionMapOutputWithContext ¶
func (o AlertConditionMapOutput) ToAlertConditionMapOutputWithContext(ctx context.Context) AlertConditionMapOutput
type AlertConditionOutput ¶
type AlertConditionOutput struct{ *pulumi.OutputState }
func (AlertConditionOutput) ElementType ¶
func (AlertConditionOutput) ElementType() reflect.Type
func (AlertConditionOutput) Enabled ¶
func (o AlertConditionOutput) Enabled() pulumi.BoolPtrOutput
Set whether to enable the alert condition. Defaults to `true`.
func (AlertConditionOutput) EntityGuid ¶ added in v5.9.0
func (o AlertConditionOutput) EntityGuid() pulumi.StringOutput
The unique entity identifier of the condition in New Relic.
func (AlertConditionOutput) MonitorId ¶
func (o AlertConditionOutput) MonitorId() pulumi.StringOutput
The GUID of the Synthetics monitor to be referenced in the alert condition.
func (AlertConditionOutput) Name ¶
func (o AlertConditionOutput) Name() pulumi.StringOutput
The title of this condition.
func (AlertConditionOutput) PolicyId ¶
func (o AlertConditionOutput) PolicyId() pulumi.StringOutput
The ID of the policy where this condition should be used.
func (AlertConditionOutput) RunbookUrl ¶
func (o AlertConditionOutput) RunbookUrl() pulumi.StringPtrOutput
Runbook URL to display in notifications.
func (AlertConditionOutput) ToAlertConditionOutput ¶
func (o AlertConditionOutput) ToAlertConditionOutput() AlertConditionOutput
func (AlertConditionOutput) ToAlertConditionOutputWithContext ¶
func (o AlertConditionOutput) ToAlertConditionOutputWithContext(ctx context.Context) AlertConditionOutput
type AlertConditionState ¶
type AlertConditionState struct { // Set whether to enable the alert condition. Defaults to `true`. Enabled pulumi.BoolPtrInput // The unique entity identifier of the condition in New Relic. EntityGuid pulumi.StringPtrInput // The GUID of the Synthetics monitor to be referenced in the alert condition. MonitorId pulumi.StringPtrInput // The title of this condition. Name pulumi.StringPtrInput // The ID of the policy where this condition should be used. PolicyId pulumi.StringPtrInput // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrInput }
func (AlertConditionState) ElementType ¶
func (AlertConditionState) ElementType() reflect.Type
type BrokenLinksMonitor ¶
type BrokenLinksMonitor struct { pulumi.CustomResourceState // The account in which the Synthetics monitor will be created. AccountId pulumi.StringOutput `pulumi:"accountId"` // The unique entity identifier of the monitor in New Relic. Guid pulumi.StringOutput `pulumi:"guid"` // The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required. LocationsPrivates pulumi.StringArrayOutput `pulumi:"locationsPrivates"` // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayOutput `pulumi:"locationsPublics"` // The name for the monitor. Name pulumi.StringOutput `pulumi:"name"` // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringOutput `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"` // The runtime that the monitor will use to run jobs. RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"` // The specific semver version of the runtime type. RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status pulumi.StringOutput `pulumi:"status"` // The tags that will be associated with the monitor. See Nested tag blocks below for details Tags BrokenLinksMonitorTagArrayOutput `pulumi:"tags"` // The URI the monitor runs against. Uri pulumi.StringOutput `pulumi:"uri"` UseUnsupportedLegacyRuntime pulumi.BoolPtrOutput `pulumi:"useUnsupportedLegacyRuntime"` }
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.NewBrokenLinksMonitor(ctx, "foo", &synthetics.BrokenLinksMonitorArgs{ Name: pulumi.String("Sample Broken Links Monitor"), Uri: pulumi.String("https://www.one.example.com"), LocationsPublics: pulumi.StringArray{ pulumi.String("AP_SOUTH_1"), }, Period: pulumi.String("EVERY_6_HOURS"), Status: pulumi.String("ENABLED"), RuntimeType: pulumi.String("NODE_API"), RuntimeTypeVersion: pulumi.String("16.10"), Tags: synthetics.BrokenLinksMonitorTagArray{ &synthetics.BrokenLinksMonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
``` See additional examples.
## Additional Examples
### Create a monitor with a private location
The below example shows how you can define a private location and attach it to a monitor.
> **NOTE:** It can take up to 10 minutes for a private location to become available.
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { foo, err := synthetics.NewPrivateLocation(ctx, "foo", &synthetics.PrivateLocationArgs{ Name: pulumi.String("Sample Private Location"), Description: pulumi.String("Sample Private Location Description"), VerifiedScriptExecution: pulumi.Bool(false), }) if err != nil { return err } _, err = synthetics.NewBrokenLinksMonitor(ctx, "foo", &synthetics.BrokenLinksMonitorArgs{ Name: pulumi.String("Sample Broken Links Monitor"), Uri: pulumi.String("https://www.one.example.com"), LocationsPrivates: pulumi.StringArray{ foo.ID(), }, Period: pulumi.String("EVERY_6_HOURS"), Status: pulumi.String("ENABLED"), Tags: synthetics.BrokenLinksMonitorTagArray{ &synthetics.BrokenLinksMonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
A broken links monitor can be imported using its GUID, using the following command.
bash
```sh $ pulumi import newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor monitor <guid> ```
func GetBrokenLinksMonitor ¶
func GetBrokenLinksMonitor(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BrokenLinksMonitorState, opts ...pulumi.ResourceOption) (*BrokenLinksMonitor, error)
GetBrokenLinksMonitor gets an existing BrokenLinksMonitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewBrokenLinksMonitor ¶
func NewBrokenLinksMonitor(ctx *pulumi.Context, name string, args *BrokenLinksMonitorArgs, opts ...pulumi.ResourceOption) (*BrokenLinksMonitor, error)
NewBrokenLinksMonitor registers a new resource with the given unique name, arguments, and options.
func (*BrokenLinksMonitor) ElementType ¶
func (*BrokenLinksMonitor) ElementType() reflect.Type
func (*BrokenLinksMonitor) ToBrokenLinksMonitorOutput ¶
func (i *BrokenLinksMonitor) ToBrokenLinksMonitorOutput() BrokenLinksMonitorOutput
func (*BrokenLinksMonitor) ToBrokenLinksMonitorOutputWithContext ¶
func (i *BrokenLinksMonitor) ToBrokenLinksMonitorOutputWithContext(ctx context.Context) BrokenLinksMonitorOutput
type BrokenLinksMonitorArgs ¶
type BrokenLinksMonitorArgs struct { // The account in which the Synthetics monitor will be created. AccountId pulumi.StringPtrInput // The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required. LocationsPrivates pulumi.StringArrayInput // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayInput // The name for the monitor. Name pulumi.StringPtrInput // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringInput // The runtime that the monitor will use to run jobs. RuntimeType pulumi.StringPtrInput // The specific semver version of the runtime type. RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringInput // The tags that will be associated with the monitor. See Nested tag blocks below for details Tags BrokenLinksMonitorTagArrayInput // The URI the monitor runs against. Uri pulumi.StringInput UseUnsupportedLegacyRuntime pulumi.BoolPtrInput }
The set of arguments for constructing a BrokenLinksMonitor resource.
func (BrokenLinksMonitorArgs) ElementType ¶
func (BrokenLinksMonitorArgs) ElementType() reflect.Type
type BrokenLinksMonitorArray ¶
type BrokenLinksMonitorArray []BrokenLinksMonitorInput
func (BrokenLinksMonitorArray) ElementType ¶
func (BrokenLinksMonitorArray) ElementType() reflect.Type
func (BrokenLinksMonitorArray) ToBrokenLinksMonitorArrayOutput ¶
func (i BrokenLinksMonitorArray) ToBrokenLinksMonitorArrayOutput() BrokenLinksMonitorArrayOutput
func (BrokenLinksMonitorArray) ToBrokenLinksMonitorArrayOutputWithContext ¶
func (i BrokenLinksMonitorArray) ToBrokenLinksMonitorArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorArrayOutput
type BrokenLinksMonitorArrayInput ¶
type BrokenLinksMonitorArrayInput interface { pulumi.Input ToBrokenLinksMonitorArrayOutput() BrokenLinksMonitorArrayOutput ToBrokenLinksMonitorArrayOutputWithContext(context.Context) BrokenLinksMonitorArrayOutput }
BrokenLinksMonitorArrayInput is an input type that accepts BrokenLinksMonitorArray and BrokenLinksMonitorArrayOutput values. You can construct a concrete instance of `BrokenLinksMonitorArrayInput` via:
BrokenLinksMonitorArray{ BrokenLinksMonitorArgs{...} }
type BrokenLinksMonitorArrayOutput ¶
type BrokenLinksMonitorArrayOutput struct{ *pulumi.OutputState }
func (BrokenLinksMonitorArrayOutput) ElementType ¶
func (BrokenLinksMonitorArrayOutput) ElementType() reflect.Type
func (BrokenLinksMonitorArrayOutput) Index ¶
func (o BrokenLinksMonitorArrayOutput) Index(i pulumi.IntInput) BrokenLinksMonitorOutput
func (BrokenLinksMonitorArrayOutput) ToBrokenLinksMonitorArrayOutput ¶
func (o BrokenLinksMonitorArrayOutput) ToBrokenLinksMonitorArrayOutput() BrokenLinksMonitorArrayOutput
func (BrokenLinksMonitorArrayOutput) ToBrokenLinksMonitorArrayOutputWithContext ¶
func (o BrokenLinksMonitorArrayOutput) ToBrokenLinksMonitorArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorArrayOutput
type BrokenLinksMonitorInput ¶
type BrokenLinksMonitorInput interface { pulumi.Input ToBrokenLinksMonitorOutput() BrokenLinksMonitorOutput ToBrokenLinksMonitorOutputWithContext(ctx context.Context) BrokenLinksMonitorOutput }
type BrokenLinksMonitorMap ¶
type BrokenLinksMonitorMap map[string]BrokenLinksMonitorInput
func (BrokenLinksMonitorMap) ElementType ¶
func (BrokenLinksMonitorMap) ElementType() reflect.Type
func (BrokenLinksMonitorMap) ToBrokenLinksMonitorMapOutput ¶
func (i BrokenLinksMonitorMap) ToBrokenLinksMonitorMapOutput() BrokenLinksMonitorMapOutput
func (BrokenLinksMonitorMap) ToBrokenLinksMonitorMapOutputWithContext ¶
func (i BrokenLinksMonitorMap) ToBrokenLinksMonitorMapOutputWithContext(ctx context.Context) BrokenLinksMonitorMapOutput
type BrokenLinksMonitorMapInput ¶
type BrokenLinksMonitorMapInput interface { pulumi.Input ToBrokenLinksMonitorMapOutput() BrokenLinksMonitorMapOutput ToBrokenLinksMonitorMapOutputWithContext(context.Context) BrokenLinksMonitorMapOutput }
BrokenLinksMonitorMapInput is an input type that accepts BrokenLinksMonitorMap and BrokenLinksMonitorMapOutput values. You can construct a concrete instance of `BrokenLinksMonitorMapInput` via:
BrokenLinksMonitorMap{ "key": BrokenLinksMonitorArgs{...} }
type BrokenLinksMonitorMapOutput ¶
type BrokenLinksMonitorMapOutput struct{ *pulumi.OutputState }
func (BrokenLinksMonitorMapOutput) ElementType ¶
func (BrokenLinksMonitorMapOutput) ElementType() reflect.Type
func (BrokenLinksMonitorMapOutput) MapIndex ¶
func (o BrokenLinksMonitorMapOutput) MapIndex(k pulumi.StringInput) BrokenLinksMonitorOutput
func (BrokenLinksMonitorMapOutput) ToBrokenLinksMonitorMapOutput ¶
func (o BrokenLinksMonitorMapOutput) ToBrokenLinksMonitorMapOutput() BrokenLinksMonitorMapOutput
func (BrokenLinksMonitorMapOutput) ToBrokenLinksMonitorMapOutputWithContext ¶
func (o BrokenLinksMonitorMapOutput) ToBrokenLinksMonitorMapOutputWithContext(ctx context.Context) BrokenLinksMonitorMapOutput
type BrokenLinksMonitorOutput ¶
type BrokenLinksMonitorOutput struct{ *pulumi.OutputState }
func (BrokenLinksMonitorOutput) AccountId ¶
func (o BrokenLinksMonitorOutput) AccountId() pulumi.StringOutput
The account in which the Synthetics monitor will be created.
func (BrokenLinksMonitorOutput) ElementType ¶
func (BrokenLinksMonitorOutput) ElementType() reflect.Type
func (BrokenLinksMonitorOutput) Guid ¶
func (o BrokenLinksMonitorOutput) Guid() pulumi.StringOutput
The unique entity identifier of the monitor in New Relic.
func (BrokenLinksMonitorOutput) LocationsPrivates ¶
func (o BrokenLinksMonitorOutput) LocationsPrivates() pulumi.StringArrayOutput
The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
func (BrokenLinksMonitorOutput) LocationsPublics ¶
func (o BrokenLinksMonitorOutput) LocationsPublics() pulumi.StringArrayOutput
The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
func (BrokenLinksMonitorOutput) Name ¶
func (o BrokenLinksMonitorOutput) Name() pulumi.StringOutput
The name for the monitor.
func (BrokenLinksMonitorOutput) Period ¶
func (o BrokenLinksMonitorOutput) Period() pulumi.StringOutput
The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
func (BrokenLinksMonitorOutput) PeriodInMinutes ¶ added in v5.10.0
func (o BrokenLinksMonitorOutput) PeriodInMinutes() pulumi.IntOutput
The interval in minutes at which Synthetic monitor should run.
func (BrokenLinksMonitorOutput) RuntimeType ¶ added in v5.22.0
func (o BrokenLinksMonitorOutput) RuntimeType() pulumi.StringPtrOutput
The runtime that the monitor will use to run jobs.
func (BrokenLinksMonitorOutput) RuntimeTypeVersion ¶ added in v5.22.0
func (o BrokenLinksMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput
The specific semver version of the runtime type.
func (BrokenLinksMonitorOutput) Status ¶
func (o BrokenLinksMonitorOutput) Status() pulumi.StringOutput
The monitor status (ENABLED or DISABLED).
func (BrokenLinksMonitorOutput) Tags ¶
func (o BrokenLinksMonitorOutput) Tags() BrokenLinksMonitorTagArrayOutput
The tags that will be associated with the monitor. See Nested tag blocks below for details
func (BrokenLinksMonitorOutput) ToBrokenLinksMonitorOutput ¶
func (o BrokenLinksMonitorOutput) ToBrokenLinksMonitorOutput() BrokenLinksMonitorOutput
func (BrokenLinksMonitorOutput) ToBrokenLinksMonitorOutputWithContext ¶
func (o BrokenLinksMonitorOutput) ToBrokenLinksMonitorOutputWithContext(ctx context.Context) BrokenLinksMonitorOutput
func (BrokenLinksMonitorOutput) Uri ¶
func (o BrokenLinksMonitorOutput) Uri() pulumi.StringOutput
The URI the monitor runs against.
func (BrokenLinksMonitorOutput) UseUnsupportedLegacyRuntime ¶ added in v5.30.0
func (o BrokenLinksMonitorOutput) UseUnsupportedLegacyRuntime() pulumi.BoolPtrOutput
type BrokenLinksMonitorState ¶
type BrokenLinksMonitorState struct { // The account in which the Synthetics monitor will be created. AccountId pulumi.StringPtrInput // The unique entity identifier of the monitor in New Relic. Guid pulumi.StringPtrInput // The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required. LocationsPrivates pulumi.StringArrayInput // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayInput // The name for the monitor. Name pulumi.StringPtrInput // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringPtrInput // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntPtrInput // The runtime that the monitor will use to run jobs. RuntimeType pulumi.StringPtrInput // The specific semver version of the runtime type. RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringPtrInput // The tags that will be associated with the monitor. See Nested tag blocks below for details Tags BrokenLinksMonitorTagArrayInput // The URI the monitor runs against. Uri pulumi.StringPtrInput UseUnsupportedLegacyRuntime pulumi.BoolPtrInput }
func (BrokenLinksMonitorState) ElementType ¶
func (BrokenLinksMonitorState) ElementType() reflect.Type
type BrokenLinksMonitorTag ¶
type BrokenLinksMonitorTagArgs ¶
type BrokenLinksMonitorTagArgs struct { // Name of the tag key. Key pulumi.StringInput `pulumi:"key"` // Values associated with the tag key. Values pulumi.StringArrayInput `pulumi:"values"` }
func (BrokenLinksMonitorTagArgs) ElementType ¶
func (BrokenLinksMonitorTagArgs) ElementType() reflect.Type
func (BrokenLinksMonitorTagArgs) ToBrokenLinksMonitorTagOutput ¶
func (i BrokenLinksMonitorTagArgs) ToBrokenLinksMonitorTagOutput() BrokenLinksMonitorTagOutput
func (BrokenLinksMonitorTagArgs) ToBrokenLinksMonitorTagOutputWithContext ¶
func (i BrokenLinksMonitorTagArgs) ToBrokenLinksMonitorTagOutputWithContext(ctx context.Context) BrokenLinksMonitorTagOutput
type BrokenLinksMonitorTagArray ¶
type BrokenLinksMonitorTagArray []BrokenLinksMonitorTagInput
func (BrokenLinksMonitorTagArray) ElementType ¶
func (BrokenLinksMonitorTagArray) ElementType() reflect.Type
func (BrokenLinksMonitorTagArray) ToBrokenLinksMonitorTagArrayOutput ¶
func (i BrokenLinksMonitorTagArray) ToBrokenLinksMonitorTagArrayOutput() BrokenLinksMonitorTagArrayOutput
func (BrokenLinksMonitorTagArray) ToBrokenLinksMonitorTagArrayOutputWithContext ¶
func (i BrokenLinksMonitorTagArray) ToBrokenLinksMonitorTagArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorTagArrayOutput
type BrokenLinksMonitorTagArrayInput ¶
type BrokenLinksMonitorTagArrayInput interface { pulumi.Input ToBrokenLinksMonitorTagArrayOutput() BrokenLinksMonitorTagArrayOutput ToBrokenLinksMonitorTagArrayOutputWithContext(context.Context) BrokenLinksMonitorTagArrayOutput }
BrokenLinksMonitorTagArrayInput is an input type that accepts BrokenLinksMonitorTagArray and BrokenLinksMonitorTagArrayOutput values. You can construct a concrete instance of `BrokenLinksMonitorTagArrayInput` via:
BrokenLinksMonitorTagArray{ BrokenLinksMonitorTagArgs{...} }
type BrokenLinksMonitorTagArrayOutput ¶
type BrokenLinksMonitorTagArrayOutput struct{ *pulumi.OutputState }
func (BrokenLinksMonitorTagArrayOutput) ElementType ¶
func (BrokenLinksMonitorTagArrayOutput) ElementType() reflect.Type
func (BrokenLinksMonitorTagArrayOutput) Index ¶
func (o BrokenLinksMonitorTagArrayOutput) Index(i pulumi.IntInput) BrokenLinksMonitorTagOutput
func (BrokenLinksMonitorTagArrayOutput) ToBrokenLinksMonitorTagArrayOutput ¶
func (o BrokenLinksMonitorTagArrayOutput) ToBrokenLinksMonitorTagArrayOutput() BrokenLinksMonitorTagArrayOutput
func (BrokenLinksMonitorTagArrayOutput) ToBrokenLinksMonitorTagArrayOutputWithContext ¶
func (o BrokenLinksMonitorTagArrayOutput) ToBrokenLinksMonitorTagArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorTagArrayOutput
type BrokenLinksMonitorTagInput ¶
type BrokenLinksMonitorTagInput interface { pulumi.Input ToBrokenLinksMonitorTagOutput() BrokenLinksMonitorTagOutput ToBrokenLinksMonitorTagOutputWithContext(context.Context) BrokenLinksMonitorTagOutput }
BrokenLinksMonitorTagInput is an input type that accepts BrokenLinksMonitorTagArgs and BrokenLinksMonitorTagOutput values. You can construct a concrete instance of `BrokenLinksMonitorTagInput` via:
BrokenLinksMonitorTagArgs{...}
type BrokenLinksMonitorTagOutput ¶
type BrokenLinksMonitorTagOutput struct{ *pulumi.OutputState }
func (BrokenLinksMonitorTagOutput) ElementType ¶
func (BrokenLinksMonitorTagOutput) ElementType() reflect.Type
func (BrokenLinksMonitorTagOutput) Key ¶
func (o BrokenLinksMonitorTagOutput) Key() pulumi.StringOutput
Name of the tag key.
func (BrokenLinksMonitorTagOutput) ToBrokenLinksMonitorTagOutput ¶
func (o BrokenLinksMonitorTagOutput) ToBrokenLinksMonitorTagOutput() BrokenLinksMonitorTagOutput
func (BrokenLinksMonitorTagOutput) ToBrokenLinksMonitorTagOutputWithContext ¶
func (o BrokenLinksMonitorTagOutput) ToBrokenLinksMonitorTagOutputWithContext(ctx context.Context) BrokenLinksMonitorTagOutput
func (BrokenLinksMonitorTagOutput) Values ¶
func (o BrokenLinksMonitorTagOutput) Values() pulumi.StringArrayOutput
Values associated with the tag key.
type CertCheckMonitor ¶
type CertCheckMonitor struct { pulumi.CustomResourceState // The account in which the Synthetics monitor will be created. AccountId pulumi.StringOutput `pulumi:"accountId"` // The desired number of remaining days until the certificate expires to trigger a monitor failure. CertificateExpiration pulumi.IntOutput `pulumi:"certificateExpiration"` // The domain of the host that will have its certificate checked. Domain pulumi.StringOutput `pulumi:"domain"` // The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required. LocationsPrivates pulumi.StringArrayOutput `pulumi:"locationsPrivates"` // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayOutput `pulumi:"locationsPublics"` // The name for the monitor. Name pulumi.StringOutput `pulumi:"name"` // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringOutput `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"` // The runtime that the monitor will use to run jobs. RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"` // The specific semver version of the runtime type. RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status pulumi.StringOutput `pulumi:"status"` // The tags that will be associated with the monitor. See Nested tag blocks below for details Tags CertCheckMonitorTagArrayOutput `pulumi:"tags"` UseUnsupportedLegacyRuntime pulumi.BoolPtrOutput `pulumi:"useUnsupportedLegacyRuntime"` }
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.NewCertCheckMonitor(ctx, "foo", &synthetics.CertCheckMonitorArgs{ Name: pulumi.String("Sample Cert Check Monitor"), Domain: pulumi.String("www.example.com"), LocationsPublics: pulumi.StringArray{ pulumi.String("AP_SOUTH_1"), }, CertificateExpiration: pulumi.Int(10), Period: pulumi.String("EVERY_6_HOURS"), Status: pulumi.String("ENABLED"), RuntimeType: pulumi.String("NODE_API"), RuntimeTypeVersion: pulumi.String("16.10"), Tags: synthetics.CertCheckMonitorTagArray{ &synthetics.CertCheckMonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
``` See additional examples.
## Additional Examples
### Create a monitor with a private location
The below example shows how you can define a private location and attach it to a monitor.
> **NOTE:** It can take up to 10 minutes for a private location to become available.
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { foo, err := synthetics.NewPrivateLocation(ctx, "foo", &synthetics.PrivateLocationArgs{ Name: pulumi.String("Sample Private Location"), Description: pulumi.String("Sample Private Location Description"), VerifiedScriptExecution: pulumi.Bool(false), }) if err != nil { return err } _, err = synthetics.NewCertCheckMonitor(ctx, "foo", &synthetics.CertCheckMonitorArgs{ Name: pulumi.String("Sample Cert Check Monitor"), Domain: pulumi.String("www.one.example.com"), LocationsPrivates: pulumi.StringArray{ foo.ID(), }, CertificateExpiration: pulumi.Int(10), Period: pulumi.String("EVERY_6_HOURS"), Status: pulumi.String("ENABLED"), Tags: synthetics.CertCheckMonitorTagArray{ &synthetics.CertCheckMonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
A cert check monitor can be imported using its GUID, using the following command.
bash
```sh $ pulumi import newrelic:synthetics/certCheckMonitor:CertCheckMonitor monitor <guid> ```
func GetCertCheckMonitor ¶
func GetCertCheckMonitor(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CertCheckMonitorState, opts ...pulumi.ResourceOption) (*CertCheckMonitor, error)
GetCertCheckMonitor gets an existing CertCheckMonitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewCertCheckMonitor ¶
func NewCertCheckMonitor(ctx *pulumi.Context, name string, args *CertCheckMonitorArgs, opts ...pulumi.ResourceOption) (*CertCheckMonitor, error)
NewCertCheckMonitor registers a new resource with the given unique name, arguments, and options.
func (*CertCheckMonitor) ElementType ¶
func (*CertCheckMonitor) ElementType() reflect.Type
func (*CertCheckMonitor) ToCertCheckMonitorOutput ¶
func (i *CertCheckMonitor) ToCertCheckMonitorOutput() CertCheckMonitorOutput
func (*CertCheckMonitor) ToCertCheckMonitorOutputWithContext ¶
func (i *CertCheckMonitor) ToCertCheckMonitorOutputWithContext(ctx context.Context) CertCheckMonitorOutput
type CertCheckMonitorArgs ¶
type CertCheckMonitorArgs struct { // The account in which the Synthetics monitor will be created. AccountId pulumi.StringPtrInput // The desired number of remaining days until the certificate expires to trigger a monitor failure. CertificateExpiration pulumi.IntInput // The domain of the host that will have its certificate checked. Domain pulumi.StringInput // The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required. LocationsPrivates pulumi.StringArrayInput // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayInput // The name for the monitor. Name pulumi.StringPtrInput // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringInput // The runtime that the monitor will use to run jobs. RuntimeType pulumi.StringPtrInput // The specific semver version of the runtime type. RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringInput // The tags that will be associated with the monitor. See Nested tag blocks below for details Tags CertCheckMonitorTagArrayInput UseUnsupportedLegacyRuntime pulumi.BoolPtrInput }
The set of arguments for constructing a CertCheckMonitor resource.
func (CertCheckMonitorArgs) ElementType ¶
func (CertCheckMonitorArgs) ElementType() reflect.Type
type CertCheckMonitorArray ¶
type CertCheckMonitorArray []CertCheckMonitorInput
func (CertCheckMonitorArray) ElementType ¶
func (CertCheckMonitorArray) ElementType() reflect.Type
func (CertCheckMonitorArray) ToCertCheckMonitorArrayOutput ¶
func (i CertCheckMonitorArray) ToCertCheckMonitorArrayOutput() CertCheckMonitorArrayOutput
func (CertCheckMonitorArray) ToCertCheckMonitorArrayOutputWithContext ¶
func (i CertCheckMonitorArray) ToCertCheckMonitorArrayOutputWithContext(ctx context.Context) CertCheckMonitorArrayOutput
type CertCheckMonitorArrayInput ¶
type CertCheckMonitorArrayInput interface { pulumi.Input ToCertCheckMonitorArrayOutput() CertCheckMonitorArrayOutput ToCertCheckMonitorArrayOutputWithContext(context.Context) CertCheckMonitorArrayOutput }
CertCheckMonitorArrayInput is an input type that accepts CertCheckMonitorArray and CertCheckMonitorArrayOutput values. You can construct a concrete instance of `CertCheckMonitorArrayInput` via:
CertCheckMonitorArray{ CertCheckMonitorArgs{...} }
type CertCheckMonitorArrayOutput ¶
type CertCheckMonitorArrayOutput struct{ *pulumi.OutputState }
func (CertCheckMonitorArrayOutput) ElementType ¶
func (CertCheckMonitorArrayOutput) ElementType() reflect.Type
func (CertCheckMonitorArrayOutput) Index ¶
func (o CertCheckMonitorArrayOutput) Index(i pulumi.IntInput) CertCheckMonitorOutput
func (CertCheckMonitorArrayOutput) ToCertCheckMonitorArrayOutput ¶
func (o CertCheckMonitorArrayOutput) ToCertCheckMonitorArrayOutput() CertCheckMonitorArrayOutput
func (CertCheckMonitorArrayOutput) ToCertCheckMonitorArrayOutputWithContext ¶
func (o CertCheckMonitorArrayOutput) ToCertCheckMonitorArrayOutputWithContext(ctx context.Context) CertCheckMonitorArrayOutput
type CertCheckMonitorInput ¶
type CertCheckMonitorInput interface { pulumi.Input ToCertCheckMonitorOutput() CertCheckMonitorOutput ToCertCheckMonitorOutputWithContext(ctx context.Context) CertCheckMonitorOutput }
type CertCheckMonitorMap ¶
type CertCheckMonitorMap map[string]CertCheckMonitorInput
func (CertCheckMonitorMap) ElementType ¶
func (CertCheckMonitorMap) ElementType() reflect.Type
func (CertCheckMonitorMap) ToCertCheckMonitorMapOutput ¶
func (i CertCheckMonitorMap) ToCertCheckMonitorMapOutput() CertCheckMonitorMapOutput
func (CertCheckMonitorMap) ToCertCheckMonitorMapOutputWithContext ¶
func (i CertCheckMonitorMap) ToCertCheckMonitorMapOutputWithContext(ctx context.Context) CertCheckMonitorMapOutput
type CertCheckMonitorMapInput ¶
type CertCheckMonitorMapInput interface { pulumi.Input ToCertCheckMonitorMapOutput() CertCheckMonitorMapOutput ToCertCheckMonitorMapOutputWithContext(context.Context) CertCheckMonitorMapOutput }
CertCheckMonitorMapInput is an input type that accepts CertCheckMonitorMap and CertCheckMonitorMapOutput values. You can construct a concrete instance of `CertCheckMonitorMapInput` via:
CertCheckMonitorMap{ "key": CertCheckMonitorArgs{...} }
type CertCheckMonitorMapOutput ¶
type CertCheckMonitorMapOutput struct{ *pulumi.OutputState }
func (CertCheckMonitorMapOutput) ElementType ¶
func (CertCheckMonitorMapOutput) ElementType() reflect.Type
func (CertCheckMonitorMapOutput) MapIndex ¶
func (o CertCheckMonitorMapOutput) MapIndex(k pulumi.StringInput) CertCheckMonitorOutput
func (CertCheckMonitorMapOutput) ToCertCheckMonitorMapOutput ¶
func (o CertCheckMonitorMapOutput) ToCertCheckMonitorMapOutput() CertCheckMonitorMapOutput
func (CertCheckMonitorMapOutput) ToCertCheckMonitorMapOutputWithContext ¶
func (o CertCheckMonitorMapOutput) ToCertCheckMonitorMapOutputWithContext(ctx context.Context) CertCheckMonitorMapOutput
type CertCheckMonitorOutput ¶
type CertCheckMonitorOutput struct{ *pulumi.OutputState }
func (CertCheckMonitorOutput) AccountId ¶
func (o CertCheckMonitorOutput) AccountId() pulumi.StringOutput
The account in which the Synthetics monitor will be created.
func (CertCheckMonitorOutput) CertificateExpiration ¶
func (o CertCheckMonitorOutput) CertificateExpiration() pulumi.IntOutput
The desired number of remaining days until the certificate expires to trigger a monitor failure.
func (CertCheckMonitorOutput) Domain ¶
func (o CertCheckMonitorOutput) Domain() pulumi.StringOutput
The domain of the host that will have its certificate checked.
func (CertCheckMonitorOutput) ElementType ¶
func (CertCheckMonitorOutput) ElementType() reflect.Type
func (CertCheckMonitorOutput) LocationsPrivates ¶
func (o CertCheckMonitorOutput) LocationsPrivates() pulumi.StringArrayOutput
The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
func (CertCheckMonitorOutput) LocationsPublics ¶
func (o CertCheckMonitorOutput) LocationsPublics() pulumi.StringArrayOutput
The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
func (CertCheckMonitorOutput) Name ¶
func (o CertCheckMonitorOutput) Name() pulumi.StringOutput
The name for the monitor.
func (CertCheckMonitorOutput) Period ¶
func (o CertCheckMonitorOutput) Period() pulumi.StringOutput
The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
func (CertCheckMonitorOutput) PeriodInMinutes ¶ added in v5.10.0
func (o CertCheckMonitorOutput) PeriodInMinutes() pulumi.IntOutput
The interval in minutes at which Synthetic monitor should run.
func (CertCheckMonitorOutput) RuntimeType ¶ added in v5.22.0
func (o CertCheckMonitorOutput) RuntimeType() pulumi.StringPtrOutput
The runtime that the monitor will use to run jobs.
func (CertCheckMonitorOutput) RuntimeTypeVersion ¶ added in v5.22.0
func (o CertCheckMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput
The specific semver version of the runtime type.
func (CertCheckMonitorOutput) Status ¶
func (o CertCheckMonitorOutput) Status() pulumi.StringOutput
The monitor status (ENABLED or DISABLED).
func (CertCheckMonitorOutput) Tags ¶
func (o CertCheckMonitorOutput) Tags() CertCheckMonitorTagArrayOutput
The tags that will be associated with the monitor. See Nested tag blocks below for details
func (CertCheckMonitorOutput) ToCertCheckMonitorOutput ¶
func (o CertCheckMonitorOutput) ToCertCheckMonitorOutput() CertCheckMonitorOutput
func (CertCheckMonitorOutput) ToCertCheckMonitorOutputWithContext ¶
func (o CertCheckMonitorOutput) ToCertCheckMonitorOutputWithContext(ctx context.Context) CertCheckMonitorOutput
func (CertCheckMonitorOutput) UseUnsupportedLegacyRuntime ¶ added in v5.30.0
func (o CertCheckMonitorOutput) UseUnsupportedLegacyRuntime() pulumi.BoolPtrOutput
type CertCheckMonitorState ¶
type CertCheckMonitorState struct { // The account in which the Synthetics monitor will be created. AccountId pulumi.StringPtrInput // The desired number of remaining days until the certificate expires to trigger a monitor failure. CertificateExpiration pulumi.IntPtrInput // The domain of the host that will have its certificate checked. Domain pulumi.StringPtrInput // The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required. LocationsPrivates pulumi.StringArrayInput // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayInput // The name for the monitor. Name pulumi.StringPtrInput // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringPtrInput // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntPtrInput // The runtime that the monitor will use to run jobs. RuntimeType pulumi.StringPtrInput // The specific semver version of the runtime type. RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringPtrInput // The tags that will be associated with the monitor. See Nested tag blocks below for details Tags CertCheckMonitorTagArrayInput UseUnsupportedLegacyRuntime pulumi.BoolPtrInput }
func (CertCheckMonitorState) ElementType ¶
func (CertCheckMonitorState) ElementType() reflect.Type
type CertCheckMonitorTag ¶
type CertCheckMonitorTagArgs ¶
type CertCheckMonitorTagArgs struct { // Name of the tag key. Key pulumi.StringInput `pulumi:"key"` // Values associated with the tag key. Values pulumi.StringArrayInput `pulumi:"values"` }
func (CertCheckMonitorTagArgs) ElementType ¶
func (CertCheckMonitorTagArgs) ElementType() reflect.Type
func (CertCheckMonitorTagArgs) ToCertCheckMonitorTagOutput ¶
func (i CertCheckMonitorTagArgs) ToCertCheckMonitorTagOutput() CertCheckMonitorTagOutput
func (CertCheckMonitorTagArgs) ToCertCheckMonitorTagOutputWithContext ¶
func (i CertCheckMonitorTagArgs) ToCertCheckMonitorTagOutputWithContext(ctx context.Context) CertCheckMonitorTagOutput
type CertCheckMonitorTagArray ¶
type CertCheckMonitorTagArray []CertCheckMonitorTagInput
func (CertCheckMonitorTagArray) ElementType ¶
func (CertCheckMonitorTagArray) ElementType() reflect.Type
func (CertCheckMonitorTagArray) ToCertCheckMonitorTagArrayOutput ¶
func (i CertCheckMonitorTagArray) ToCertCheckMonitorTagArrayOutput() CertCheckMonitorTagArrayOutput
func (CertCheckMonitorTagArray) ToCertCheckMonitorTagArrayOutputWithContext ¶
func (i CertCheckMonitorTagArray) ToCertCheckMonitorTagArrayOutputWithContext(ctx context.Context) CertCheckMonitorTagArrayOutput
type CertCheckMonitorTagArrayInput ¶
type CertCheckMonitorTagArrayInput interface { pulumi.Input ToCertCheckMonitorTagArrayOutput() CertCheckMonitorTagArrayOutput ToCertCheckMonitorTagArrayOutputWithContext(context.Context) CertCheckMonitorTagArrayOutput }
CertCheckMonitorTagArrayInput is an input type that accepts CertCheckMonitorTagArray and CertCheckMonitorTagArrayOutput values. You can construct a concrete instance of `CertCheckMonitorTagArrayInput` via:
CertCheckMonitorTagArray{ CertCheckMonitorTagArgs{...} }
type CertCheckMonitorTagArrayOutput ¶
type CertCheckMonitorTagArrayOutput struct{ *pulumi.OutputState }
func (CertCheckMonitorTagArrayOutput) ElementType ¶
func (CertCheckMonitorTagArrayOutput) ElementType() reflect.Type
func (CertCheckMonitorTagArrayOutput) Index ¶
func (o CertCheckMonitorTagArrayOutput) Index(i pulumi.IntInput) CertCheckMonitorTagOutput
func (CertCheckMonitorTagArrayOutput) ToCertCheckMonitorTagArrayOutput ¶
func (o CertCheckMonitorTagArrayOutput) ToCertCheckMonitorTagArrayOutput() CertCheckMonitorTagArrayOutput
func (CertCheckMonitorTagArrayOutput) ToCertCheckMonitorTagArrayOutputWithContext ¶
func (o CertCheckMonitorTagArrayOutput) ToCertCheckMonitorTagArrayOutputWithContext(ctx context.Context) CertCheckMonitorTagArrayOutput
type CertCheckMonitorTagInput ¶
type CertCheckMonitorTagInput interface { pulumi.Input ToCertCheckMonitorTagOutput() CertCheckMonitorTagOutput ToCertCheckMonitorTagOutputWithContext(context.Context) CertCheckMonitorTagOutput }
CertCheckMonitorTagInput is an input type that accepts CertCheckMonitorTagArgs and CertCheckMonitorTagOutput values. You can construct a concrete instance of `CertCheckMonitorTagInput` via:
CertCheckMonitorTagArgs{...}
type CertCheckMonitorTagOutput ¶
type CertCheckMonitorTagOutput struct{ *pulumi.OutputState }
func (CertCheckMonitorTagOutput) ElementType ¶
func (CertCheckMonitorTagOutput) ElementType() reflect.Type
func (CertCheckMonitorTagOutput) Key ¶
func (o CertCheckMonitorTagOutput) Key() pulumi.StringOutput
Name of the tag key.
func (CertCheckMonitorTagOutput) ToCertCheckMonitorTagOutput ¶
func (o CertCheckMonitorTagOutput) ToCertCheckMonitorTagOutput() CertCheckMonitorTagOutput
func (CertCheckMonitorTagOutput) ToCertCheckMonitorTagOutputWithContext ¶
func (o CertCheckMonitorTagOutput) ToCertCheckMonitorTagOutputWithContext(ctx context.Context) CertCheckMonitorTagOutput
func (CertCheckMonitorTagOutput) Values ¶
func (o CertCheckMonitorTagOutput) Values() pulumi.StringArrayOutput
Values associated with the tag key.
type LookupPrivateLocationArgs ¶
type LookupPrivateLocationArgs struct { // The New Relic account ID of the associated private location. If left empty will default to account ID specified in provider level configuration. AccountId *string `pulumi:"accountId"` // The key of the private location. Keys []string `pulumi:"keys"` // The name of the Synthetics monitor private location. Name string `pulumi:"name"` }
A collection of arguments for invoking getPrivateLocation.
type LookupPrivateLocationOutputArgs ¶
type LookupPrivateLocationOutputArgs struct { // The New Relic account ID of the associated private location. If left empty will default to account ID specified in provider level configuration. AccountId pulumi.StringPtrInput `pulumi:"accountId"` // The key of the private location. Keys pulumi.StringArrayInput `pulumi:"keys"` // The name of the Synthetics monitor private location. Name pulumi.StringInput `pulumi:"name"` }
A collection of arguments for invoking getPrivateLocation.
func (LookupPrivateLocationOutputArgs) ElementType ¶
func (LookupPrivateLocationOutputArgs) ElementType() reflect.Type
type LookupPrivateLocationResult ¶
type LookupPrivateLocationResult struct { AccountId *string `pulumi:"accountId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The key of the private location. Keys []string `pulumi:"keys"` Name string `pulumi:"name"` }
A collection of values returned by getPrivateLocation.
func LookupPrivateLocation ¶
func LookupPrivateLocation(ctx *pulumi.Context, args *LookupPrivateLocationArgs, opts ...pulumi.InvokeOption) (*LookupPrivateLocationResult, error)
Use this data source to get information about a specific Synthetics monitor private location in New Relic that already exists.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := synthetics.LookupPrivateLocation(ctx, &synthetics.LookupPrivateLocationArgs{ AccountId: pulumi.StringRef("123456"), Name: "My private location", }, nil) if err != nil { return err } _, err = synthetics.NewMonitor(ctx, "foo", &synthetics.MonitorArgs{ LocationsPrivates: pulumi.StringArray{ pulumi.String(example.Id), }, }) if err != nil { return err } return nil }) }
```
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := synthetics.LookupPrivateLocation(ctx, &synthetics.LookupPrivateLocationArgs{ AccountId: pulumi.StringRef("123456"), Name: "My private location", }, nil) if err != nil { return err } _, err = synthetics.NewStepMonitor(ctx, "foo", &synthetics.StepMonitorArgs{ LocationPrivates: synthetics.StepMonitorLocationPrivateArray{ &synthetics.StepMonitorLocationPrivateArgs{ Guid: pulumi.String(example.Id), }, }, }) if err != nil { return err } return nil }) }
```
type LookupPrivateLocationResultOutput ¶
type LookupPrivateLocationResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getPrivateLocation.
func LookupPrivateLocationOutput ¶
func LookupPrivateLocationOutput(ctx *pulumi.Context, args LookupPrivateLocationOutputArgs, opts ...pulumi.InvokeOption) LookupPrivateLocationResultOutput
func (LookupPrivateLocationResultOutput) AccountId ¶ added in v5.2.0
func (o LookupPrivateLocationResultOutput) AccountId() pulumi.StringPtrOutput
func (LookupPrivateLocationResultOutput) ElementType ¶
func (LookupPrivateLocationResultOutput) ElementType() reflect.Type
func (LookupPrivateLocationResultOutput) Id ¶
func (o LookupPrivateLocationResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupPrivateLocationResultOutput) Keys ¶ added in v5.15.0
func (o LookupPrivateLocationResultOutput) Keys() pulumi.StringArrayOutput
The key of the private location.
func (LookupPrivateLocationResultOutput) Name ¶
func (o LookupPrivateLocationResultOutput) Name() pulumi.StringOutput
func (LookupPrivateLocationResultOutput) ToLookupPrivateLocationResultOutput ¶
func (o LookupPrivateLocationResultOutput) ToLookupPrivateLocationResultOutput() LookupPrivateLocationResultOutput
func (LookupPrivateLocationResultOutput) ToLookupPrivateLocationResultOutputWithContext ¶
func (o LookupPrivateLocationResultOutput) ToLookupPrivateLocationResultOutputWithContext(ctx context.Context) LookupPrivateLocationResultOutput
type LookupSecureCredentialArgs ¶
type LookupSecureCredentialArgs struct { // The account in New Relic associated with the secure credential. Defaults to the account associated with the API key used. AccountId *string `pulumi:"accountId"` // The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API. Key string `pulumi:"key"` }
A collection of arguments for invoking getSecureCredential.
type LookupSecureCredentialOutputArgs ¶
type LookupSecureCredentialOutputArgs struct { // The account in New Relic associated with the secure credential. Defaults to the account associated with the API key used. AccountId pulumi.StringPtrInput `pulumi:"accountId"` // The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API. Key pulumi.StringInput `pulumi:"key"` }
A collection of arguments for invoking getSecureCredential.
func (LookupSecureCredentialOutputArgs) ElementType ¶
func (LookupSecureCredentialOutputArgs) ElementType() reflect.Type
type LookupSecureCredentialResult ¶
type LookupSecureCredentialResult struct { AccountId string `pulumi:"accountId"` // The secure credential's description. Description string `pulumi:"description"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Key string `pulumi:"key"` // The time the secure credential was last updated. LastUpdated string `pulumi:"lastUpdated"` }
A collection of values returned by getSecureCredential.
func LookupSecureCredential ¶
func LookupSecureCredential(ctx *pulumi.Context, args *LookupSecureCredentialArgs, opts ...pulumi.InvokeOption) (*LookupSecureCredentialResult, error)
Use this data source to get information about a specific Synthetics secure credential in New Relic that already exists.
Note that the secure credential's value is not returned as an attribute for security reasons.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.LookupSecureCredential(ctx, &synthetics.LookupSecureCredentialArgs{ Key: "MY_KEY", }, nil) if err != nil { return err } return nil }) }
```
type LookupSecureCredentialResultOutput ¶
type LookupSecureCredentialResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSecureCredential.
func LookupSecureCredentialOutput ¶
func LookupSecureCredentialOutput(ctx *pulumi.Context, args LookupSecureCredentialOutputArgs, opts ...pulumi.InvokeOption) LookupSecureCredentialResultOutput
func (LookupSecureCredentialResultOutput) AccountId ¶ added in v5.2.0
func (o LookupSecureCredentialResultOutput) AccountId() pulumi.StringOutput
func (LookupSecureCredentialResultOutput) Description ¶
func (o LookupSecureCredentialResultOutput) Description() pulumi.StringOutput
The secure credential's description.
func (LookupSecureCredentialResultOutput) ElementType ¶
func (LookupSecureCredentialResultOutput) ElementType() reflect.Type
func (LookupSecureCredentialResultOutput) Id ¶
func (o LookupSecureCredentialResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupSecureCredentialResultOutput) Key ¶
func (o LookupSecureCredentialResultOutput) Key() pulumi.StringOutput
func (LookupSecureCredentialResultOutput) LastUpdated ¶
func (o LookupSecureCredentialResultOutput) LastUpdated() pulumi.StringOutput
The time the secure credential was last updated.
func (LookupSecureCredentialResultOutput) ToLookupSecureCredentialResultOutput ¶
func (o LookupSecureCredentialResultOutput) ToLookupSecureCredentialResultOutput() LookupSecureCredentialResultOutput
func (LookupSecureCredentialResultOutput) ToLookupSecureCredentialResultOutputWithContext ¶
func (o LookupSecureCredentialResultOutput) ToLookupSecureCredentialResultOutputWithContext(ctx context.Context) LookupSecureCredentialResultOutput
type Monitor ¶
type Monitor struct { pulumi.CustomResourceState // The account in which the Synthetics monitor will be created. AccountId pulumi.StringOutput `pulumi:"accountId"` // The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`. Browsers pulumi.StringArrayOutput `pulumi:"browsers"` // Monitor should skip default HEAD request and instead use GET verb in check. // // The `BROWSER` monitor type supports the following additional arguments: BypassHeadRequest pulumi.BoolPtrOutput `pulumi:"bypassHeadRequest"` // Custom headers to use in monitor job. See Nested customHeader blocks below for details. CustomHeaders MonitorCustomHeaderArrayOutput `pulumi:"customHeaders"` // Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceOrientation pulumi.StringPtrOutput `pulumi:"deviceOrientation"` // Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceType pulumi.StringPtrOutput `pulumi:"deviceType"` // The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`. Devices pulumi.StringArrayOutput `pulumi:"devices"` // Capture a screenshot during job execution. EnableScreenshotOnFailureAndScript pulumi.BoolPtrOutput `pulumi:"enableScreenshotOnFailureAndScript"` // The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required. LocationsPrivates pulumi.StringArrayOutput `pulumi:"locationsPrivates"` // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayOutput `pulumi:"locationsPublics"` // The human-readable identifier for the monitor. Name pulumi.StringOutput `pulumi:"name"` // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringOutput `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"` // The runtime type that the monitor will run. Valid value is `CHROME_BROWSER` RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"` // The runtime type that the monitor will run. Valid value is `100`. RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"` // The programing language that should execute the script. ScriptLanguage pulumi.StringPtrOutput `pulumi:"scriptLanguage"` // The monitor status (ENABLED or DISABLED). Status pulumi.StringOutput `pulumi:"status"` // The tags that will be associated with the monitor. See Nested tag blocks below for details. // // The `SIMPLE` monitor type supports the following additional arguments: Tags MonitorTagArrayOutput `pulumi:"tags"` // Categorize redirects during a monitor job as a failure. TreatRedirectAsFailure pulumi.BoolPtrOutput `pulumi:"treatRedirectAsFailure"` // The monitor type. Valid values are `SIMPLE` and `BROWSER`. Type pulumi.StringOutput `pulumi:"type"` // The URI the monitor runs against. Uri pulumi.StringPtrOutput `pulumi:"uri"` UseUnsupportedLegacyRuntime pulumi.BoolPtrOutput `pulumi:"useUnsupportedLegacyRuntime"` // Validation text for monitor to search for at given URI. ValidationString pulumi.StringPtrOutput `pulumi:"validationString"` // Monitor should validate SSL certificate chain. VerifySsl pulumi.BoolPtrOutput `pulumi:"verifySsl"` }
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{ Status: pulumi.String("ENABLED"), Name: pulumi.String("monitor"), Period: pulumi.String("EVERY_MINUTE"), Uri: pulumi.String("https://www.one.newrelic.com"), Type: pulumi.String("SIMPLE"), LocationsPublics: pulumi.StringArray{ pulumi.String("AP_SOUTH_1"), }, CustomHeaders: synthetics.MonitorCustomHeaderArray{ &synthetics.MonitorCustomHeaderArgs{ Name: pulumi.String("some_name"), Value: pulumi.String("some_value"), }, }, TreatRedirectAsFailure: pulumi.Bool(true), ValidationString: pulumi.String("success"), BypassHeadRequest: pulumi.Bool(true), VerifySsl: pulumi.Bool(true), Tags: synthetics.MonitorTagArray{ &synthetics.MonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
``` ##### Type: `SIMPLE BROWSER`
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{ Status: pulumi.String("ENABLED"), Name: pulumi.String("monitor"), Period: pulumi.String("EVERY_MINUTE"), Uri: pulumi.String("https://www.one.newrelic.com"), Type: pulumi.String("BROWSER"), LocationsPublics: pulumi.StringArray{ pulumi.String("AP_SOUTH_1"), }, EnableScreenshotOnFailureAndScript: pulumi.Bool(true), ValidationString: pulumi.String("success"), VerifySsl: pulumi.Bool(true), RuntimeType: pulumi.String("CHROME_BROWSER"), RuntimeTypeVersion: pulumi.String("100"), ScriptLanguage: pulumi.String("JAVASCRIPT"), Devices: pulumi.StringArray{ pulumi.String("DESKTOP"), pulumi.String("TABLET_LANDSCAPE"), pulumi.String("MOBILE_PORTRAIT"), }, Browsers: pulumi.StringArray{ pulumi.String("CHROME"), }, CustomHeaders: synthetics.MonitorCustomHeaderArray{ &synthetics.MonitorCustomHeaderArgs{ Name: pulumi.String("some_name"), Value: pulumi.String("some_value"), }, }, Tags: synthetics.MonitorTagArray{ &synthetics.MonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
``` See additional examples.
## Additional Examples
### Create a monitor with a private location
The below example shows how you can define a private location and attach it to a monitor.
> **NOTE:** It can take up to 10 minutes for a private location to become available.
##### Type: `SIMPLE`
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{ Description: pulumi.String("Example private location"), Name: pulumi.String("private_location"), VerifiedScriptExecution: pulumi.Bool(false), }) if err != nil { return err } _, err = synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{ Status: pulumi.String("ENABLED"), Name: pulumi.String("monitor"), Period: pulumi.String("EVERY_MINUTE"), Uri: pulumi.String("https://www.one.newrelic.com"), Type: pulumi.String("SIMPLE"), LocationsPrivates: pulumi.StringArray{ location.ID(), }, CustomHeaders: synthetics.MonitorCustomHeaderArray{ &synthetics.MonitorCustomHeaderArgs{ Name: pulumi.String("some_name"), Value: pulumi.String("some_value"), }, }, TreatRedirectAsFailure: pulumi.Bool(true), ValidationString: pulumi.String("success"), BypassHeadRequest: pulumi.Bool(true), VerifySsl: pulumi.Bool(true), Tags: synthetics.MonitorTagArray{ &synthetics.MonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
``` ##### Type: `BROWSER`
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{ Description: pulumi.String("Example private location"), Name: pulumi.String("private-location"), VerifiedScriptExecution: pulumi.Bool(false), }) if err != nil { return err } _, err = synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{ Status: pulumi.String("ENABLED"), Type: pulumi.String("BROWSER"), Uri: pulumi.String("https://www.one.newrelic.com"), Name: pulumi.String("monitor"), Period: pulumi.String("EVERY_MINUTE"), LocationsPrivates: pulumi.StringArray{ location.ID(), }, EnableScreenshotOnFailureAndScript: pulumi.Bool(true), ValidationString: pulumi.String("success"), VerifySsl: pulumi.Bool(true), RuntimeTypeVersion: pulumi.String("100"), RuntimeType: pulumi.String("CHROME_BROWSER"), ScriptLanguage: pulumi.String("JAVASCRIPT"), Devices: pulumi.StringArray{ pulumi.String("DESKTOP"), pulumi.String("TABLET_LANDSCAPE"), pulumi.String("MOBILE_PORTRAIT"), }, Browsers: pulumi.StringArray{ pulumi.String("CHROME"), }, CustomHeaders: synthetics.MonitorCustomHeaderArray{ &synthetics.MonitorCustomHeaderArgs{ Name: pulumi.String("some_name"), Value: pulumi.String("some_value"), }, }, Tags: synthetics.MonitorTagArray{ &synthetics.MonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
Synthetics monitor can be imported using the `guid`, e.g.
bash
```sh $ pulumi import newrelic:synthetics/monitor:Monitor monitor <guid> ```
func GetMonitor ¶
func GetMonitor(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MonitorState, opts ...pulumi.ResourceOption) (*Monitor, error)
GetMonitor gets an existing Monitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewMonitor ¶
func NewMonitor(ctx *pulumi.Context, name string, args *MonitorArgs, opts ...pulumi.ResourceOption) (*Monitor, error)
NewMonitor registers a new resource with the given unique name, arguments, and options.
func (*Monitor) ElementType ¶
func (*Monitor) ToMonitorOutput ¶
func (i *Monitor) ToMonitorOutput() MonitorOutput
func (*Monitor) ToMonitorOutputWithContext ¶
func (i *Monitor) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput
type MonitorArgs ¶
type MonitorArgs struct { // The account in which the Synthetics monitor will be created. AccountId pulumi.StringPtrInput // The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`. Browsers pulumi.StringArrayInput // Monitor should skip default HEAD request and instead use GET verb in check. // // The `BROWSER` monitor type supports the following additional arguments: BypassHeadRequest pulumi.BoolPtrInput // Custom headers to use in monitor job. See Nested customHeader blocks below for details. CustomHeaders MonitorCustomHeaderArrayInput // Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceOrientation pulumi.StringPtrInput // Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceType pulumi.StringPtrInput // The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`. Devices pulumi.StringArrayInput // Capture a screenshot during job execution. EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput // The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required. LocationsPrivates pulumi.StringArrayInput // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayInput // The human-readable identifier for the monitor. Name pulumi.StringPtrInput // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringPtrInput // The runtime type that the monitor will run. Valid value is `CHROME_BROWSER` RuntimeType pulumi.StringPtrInput // The runtime type that the monitor will run. Valid value is `100`. RuntimeTypeVersion pulumi.StringPtrInput // The programing language that should execute the script. ScriptLanguage pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringInput // The tags that will be associated with the monitor. See Nested tag blocks below for details. // // The `SIMPLE` monitor type supports the following additional arguments: Tags MonitorTagArrayInput // Categorize redirects during a monitor job as a failure. TreatRedirectAsFailure pulumi.BoolPtrInput // The monitor type. Valid values are `SIMPLE` and `BROWSER`. Type pulumi.StringInput // The URI the monitor runs against. Uri pulumi.StringPtrInput UseUnsupportedLegacyRuntime pulumi.BoolPtrInput // Validation text for monitor to search for at given URI. ValidationString pulumi.StringPtrInput // Monitor should validate SSL certificate chain. VerifySsl pulumi.BoolPtrInput }
The set of arguments for constructing a Monitor resource.
func (MonitorArgs) ElementType ¶
func (MonitorArgs) ElementType() reflect.Type
type MonitorArray ¶
type MonitorArray []MonitorInput
func (MonitorArray) ElementType ¶
func (MonitorArray) ElementType() reflect.Type
func (MonitorArray) ToMonitorArrayOutput ¶
func (i MonitorArray) ToMonitorArrayOutput() MonitorArrayOutput
func (MonitorArray) ToMonitorArrayOutputWithContext ¶
func (i MonitorArray) ToMonitorArrayOutputWithContext(ctx context.Context) MonitorArrayOutput
type MonitorArrayInput ¶
type MonitorArrayInput interface { pulumi.Input ToMonitorArrayOutput() MonitorArrayOutput ToMonitorArrayOutputWithContext(context.Context) MonitorArrayOutput }
MonitorArrayInput is an input type that accepts MonitorArray and MonitorArrayOutput values. You can construct a concrete instance of `MonitorArrayInput` via:
MonitorArray{ MonitorArgs{...} }
type MonitorArrayOutput ¶
type MonitorArrayOutput struct{ *pulumi.OutputState }
func (MonitorArrayOutput) ElementType ¶
func (MonitorArrayOutput) ElementType() reflect.Type
func (MonitorArrayOutput) Index ¶
func (o MonitorArrayOutput) Index(i pulumi.IntInput) MonitorOutput
func (MonitorArrayOutput) ToMonitorArrayOutput ¶
func (o MonitorArrayOutput) ToMonitorArrayOutput() MonitorArrayOutput
func (MonitorArrayOutput) ToMonitorArrayOutputWithContext ¶
func (o MonitorArrayOutput) ToMonitorArrayOutputWithContext(ctx context.Context) MonitorArrayOutput
type MonitorCustomHeader ¶
type MonitorCustomHeaderArgs ¶
type MonitorCustomHeaderArgs struct { // Header name. Name pulumi.StringPtrInput `pulumi:"name"` // Header Value. Value pulumi.StringPtrInput `pulumi:"value"` }
func (MonitorCustomHeaderArgs) ElementType ¶
func (MonitorCustomHeaderArgs) ElementType() reflect.Type
func (MonitorCustomHeaderArgs) ToMonitorCustomHeaderOutput ¶
func (i MonitorCustomHeaderArgs) ToMonitorCustomHeaderOutput() MonitorCustomHeaderOutput
func (MonitorCustomHeaderArgs) ToMonitorCustomHeaderOutputWithContext ¶
func (i MonitorCustomHeaderArgs) ToMonitorCustomHeaderOutputWithContext(ctx context.Context) MonitorCustomHeaderOutput
type MonitorCustomHeaderArray ¶
type MonitorCustomHeaderArray []MonitorCustomHeaderInput
func (MonitorCustomHeaderArray) ElementType ¶
func (MonitorCustomHeaderArray) ElementType() reflect.Type
func (MonitorCustomHeaderArray) ToMonitorCustomHeaderArrayOutput ¶
func (i MonitorCustomHeaderArray) ToMonitorCustomHeaderArrayOutput() MonitorCustomHeaderArrayOutput
func (MonitorCustomHeaderArray) ToMonitorCustomHeaderArrayOutputWithContext ¶
func (i MonitorCustomHeaderArray) ToMonitorCustomHeaderArrayOutputWithContext(ctx context.Context) MonitorCustomHeaderArrayOutput
type MonitorCustomHeaderArrayInput ¶
type MonitorCustomHeaderArrayInput interface { pulumi.Input ToMonitorCustomHeaderArrayOutput() MonitorCustomHeaderArrayOutput ToMonitorCustomHeaderArrayOutputWithContext(context.Context) MonitorCustomHeaderArrayOutput }
MonitorCustomHeaderArrayInput is an input type that accepts MonitorCustomHeaderArray and MonitorCustomHeaderArrayOutput values. You can construct a concrete instance of `MonitorCustomHeaderArrayInput` via:
MonitorCustomHeaderArray{ MonitorCustomHeaderArgs{...} }
type MonitorCustomHeaderArrayOutput ¶
type MonitorCustomHeaderArrayOutput struct{ *pulumi.OutputState }
func (MonitorCustomHeaderArrayOutput) ElementType ¶
func (MonitorCustomHeaderArrayOutput) ElementType() reflect.Type
func (MonitorCustomHeaderArrayOutput) Index ¶
func (o MonitorCustomHeaderArrayOutput) Index(i pulumi.IntInput) MonitorCustomHeaderOutput
func (MonitorCustomHeaderArrayOutput) ToMonitorCustomHeaderArrayOutput ¶
func (o MonitorCustomHeaderArrayOutput) ToMonitorCustomHeaderArrayOutput() MonitorCustomHeaderArrayOutput
func (MonitorCustomHeaderArrayOutput) ToMonitorCustomHeaderArrayOutputWithContext ¶
func (o MonitorCustomHeaderArrayOutput) ToMonitorCustomHeaderArrayOutputWithContext(ctx context.Context) MonitorCustomHeaderArrayOutput
type MonitorCustomHeaderInput ¶
type MonitorCustomHeaderInput interface { pulumi.Input ToMonitorCustomHeaderOutput() MonitorCustomHeaderOutput ToMonitorCustomHeaderOutputWithContext(context.Context) MonitorCustomHeaderOutput }
MonitorCustomHeaderInput is an input type that accepts MonitorCustomHeaderArgs and MonitorCustomHeaderOutput values. You can construct a concrete instance of `MonitorCustomHeaderInput` via:
MonitorCustomHeaderArgs{...}
type MonitorCustomHeaderOutput ¶
type MonitorCustomHeaderOutput struct{ *pulumi.OutputState }
func (MonitorCustomHeaderOutput) ElementType ¶
func (MonitorCustomHeaderOutput) ElementType() reflect.Type
func (MonitorCustomHeaderOutput) Name ¶
func (o MonitorCustomHeaderOutput) Name() pulumi.StringPtrOutput
Header name.
func (MonitorCustomHeaderOutput) ToMonitorCustomHeaderOutput ¶
func (o MonitorCustomHeaderOutput) ToMonitorCustomHeaderOutput() MonitorCustomHeaderOutput
func (MonitorCustomHeaderOutput) ToMonitorCustomHeaderOutputWithContext ¶
func (o MonitorCustomHeaderOutput) ToMonitorCustomHeaderOutputWithContext(ctx context.Context) MonitorCustomHeaderOutput
func (MonitorCustomHeaderOutput) Value ¶
func (o MonitorCustomHeaderOutput) Value() pulumi.StringPtrOutput
Header Value.
type MonitorInput ¶
type MonitorInput interface { pulumi.Input ToMonitorOutput() MonitorOutput ToMonitorOutputWithContext(ctx context.Context) MonitorOutput }
type MonitorMap ¶
type MonitorMap map[string]MonitorInput
func (MonitorMap) ElementType ¶
func (MonitorMap) ElementType() reflect.Type
func (MonitorMap) ToMonitorMapOutput ¶
func (i MonitorMap) ToMonitorMapOutput() MonitorMapOutput
func (MonitorMap) ToMonitorMapOutputWithContext ¶
func (i MonitorMap) ToMonitorMapOutputWithContext(ctx context.Context) MonitorMapOutput
type MonitorMapInput ¶
type MonitorMapInput interface { pulumi.Input ToMonitorMapOutput() MonitorMapOutput ToMonitorMapOutputWithContext(context.Context) MonitorMapOutput }
MonitorMapInput is an input type that accepts MonitorMap and MonitorMapOutput values. You can construct a concrete instance of `MonitorMapInput` via:
MonitorMap{ "key": MonitorArgs{...} }
type MonitorMapOutput ¶
type MonitorMapOutput struct{ *pulumi.OutputState }
func (MonitorMapOutput) ElementType ¶
func (MonitorMapOutput) ElementType() reflect.Type
func (MonitorMapOutput) MapIndex ¶
func (o MonitorMapOutput) MapIndex(k pulumi.StringInput) MonitorOutput
func (MonitorMapOutput) ToMonitorMapOutput ¶
func (o MonitorMapOutput) ToMonitorMapOutput() MonitorMapOutput
func (MonitorMapOutput) ToMonitorMapOutputWithContext ¶
func (o MonitorMapOutput) ToMonitorMapOutputWithContext(ctx context.Context) MonitorMapOutput
type MonitorOutput ¶
type MonitorOutput struct{ *pulumi.OutputState }
func (MonitorOutput) AccountId ¶
func (o MonitorOutput) AccountId() pulumi.StringOutput
The account in which the Synthetics monitor will be created.
func (MonitorOutput) Browsers ¶ added in v5.32.0
func (o MonitorOutput) Browsers() pulumi.StringArrayOutput
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
func (MonitorOutput) BypassHeadRequest ¶
func (o MonitorOutput) BypassHeadRequest() pulumi.BoolPtrOutput
Monitor should skip default HEAD request and instead use GET verb in check.
The `BROWSER` monitor type supports the following additional arguments:
func (MonitorOutput) CustomHeaders ¶
func (o MonitorOutput) CustomHeaders() MonitorCustomHeaderArrayOutput
Custom headers to use in monitor job. See Nested customHeader blocks below for details.
func (MonitorOutput) DeviceOrientation ¶ added in v5.15.0
func (o MonitorOutput) DeviceOrientation() pulumi.StringPtrOutput
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations.
func (MonitorOutput) DeviceType ¶ added in v5.15.0
func (o MonitorOutput) DeviceType() pulumi.StringPtrOutput
Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations.
func (MonitorOutput) Devices ¶ added in v5.32.0
func (o MonitorOutput) Devices() pulumi.StringArrayOutput
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
func (MonitorOutput) ElementType ¶
func (MonitorOutput) ElementType() reflect.Type
func (MonitorOutput) EnableScreenshotOnFailureAndScript ¶
func (o MonitorOutput) EnableScreenshotOnFailureAndScript() pulumi.BoolPtrOutput
Capture a screenshot during job execution.
func (MonitorOutput) LocationsPrivates ¶
func (o MonitorOutput) LocationsPrivates() pulumi.StringArrayOutput
The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
func (MonitorOutput) LocationsPublics ¶
func (o MonitorOutput) LocationsPublics() pulumi.StringArrayOutput
The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
func (MonitorOutput) Name ¶
func (o MonitorOutput) Name() pulumi.StringOutput
The human-readable identifier for the monitor.
func (MonitorOutput) Period ¶
func (o MonitorOutput) Period() pulumi.StringOutput
The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
func (MonitorOutput) PeriodInMinutes ¶ added in v5.10.0
func (o MonitorOutput) PeriodInMinutes() pulumi.IntOutput
The interval in minutes at which Synthetic monitor should run.
func (MonitorOutput) RuntimeType ¶
func (o MonitorOutput) RuntimeType() pulumi.StringPtrOutput
The runtime type that the monitor will run. Valid value is `CHROME_BROWSER`
func (MonitorOutput) RuntimeTypeVersion ¶
func (o MonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput
The runtime type that the monitor will run. Valid value is `100`.
func (MonitorOutput) ScriptLanguage ¶
func (o MonitorOutput) ScriptLanguage() pulumi.StringPtrOutput
The programing language that should execute the script.
func (MonitorOutput) Status ¶
func (o MonitorOutput) Status() pulumi.StringOutput
The monitor status (ENABLED or DISABLED).
func (MonitorOutput) Tags ¶
func (o MonitorOutput) Tags() MonitorTagArrayOutput
The tags that will be associated with the monitor. See Nested tag blocks below for details.
The `SIMPLE` monitor type supports the following additional arguments:
func (MonitorOutput) ToMonitorOutput ¶
func (o MonitorOutput) ToMonitorOutput() MonitorOutput
func (MonitorOutput) ToMonitorOutputWithContext ¶
func (o MonitorOutput) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput
func (MonitorOutput) TreatRedirectAsFailure ¶
func (o MonitorOutput) TreatRedirectAsFailure() pulumi.BoolPtrOutput
Categorize redirects during a monitor job as a failure.
func (MonitorOutput) Type ¶
func (o MonitorOutput) Type() pulumi.StringOutput
The monitor type. Valid values are `SIMPLE` and `BROWSER`.
func (MonitorOutput) Uri ¶
func (o MonitorOutput) Uri() pulumi.StringPtrOutput
The URI the monitor runs against.
func (MonitorOutput) UseUnsupportedLegacyRuntime ¶ added in v5.30.0
func (o MonitorOutput) UseUnsupportedLegacyRuntime() pulumi.BoolPtrOutput
func (MonitorOutput) ValidationString ¶
func (o MonitorOutput) ValidationString() pulumi.StringPtrOutput
Validation text for monitor to search for at given URI.
func (MonitorOutput) VerifySsl ¶
func (o MonitorOutput) VerifySsl() pulumi.BoolPtrOutput
Monitor should validate SSL certificate chain.
type MonitorState ¶
type MonitorState struct { // The account in which the Synthetics monitor will be created. AccountId pulumi.StringPtrInput // The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`. Browsers pulumi.StringArrayInput // Monitor should skip default HEAD request and instead use GET verb in check. // // The `BROWSER` monitor type supports the following additional arguments: BypassHeadRequest pulumi.BoolPtrInput // Custom headers to use in monitor job. See Nested customHeader blocks below for details. CustomHeaders MonitorCustomHeaderArrayInput // Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceOrientation pulumi.StringPtrInput // Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceType pulumi.StringPtrInput // The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`. Devices pulumi.StringArrayInput // Capture a screenshot during job execution. EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput // The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required. LocationsPrivates pulumi.StringArrayInput // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayInput // The human-readable identifier for the monitor. Name pulumi.StringPtrInput // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringPtrInput // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntPtrInput // The runtime type that the monitor will run. Valid value is `CHROME_BROWSER` RuntimeType pulumi.StringPtrInput // The runtime type that the monitor will run. Valid value is `100`. RuntimeTypeVersion pulumi.StringPtrInput // The programing language that should execute the script. ScriptLanguage pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringPtrInput // The tags that will be associated with the monitor. See Nested tag blocks below for details. // // The `SIMPLE` monitor type supports the following additional arguments: Tags MonitorTagArrayInput // Categorize redirects during a monitor job as a failure. TreatRedirectAsFailure pulumi.BoolPtrInput // The monitor type. Valid values are `SIMPLE` and `BROWSER`. Type pulumi.StringPtrInput // The URI the monitor runs against. Uri pulumi.StringPtrInput UseUnsupportedLegacyRuntime pulumi.BoolPtrInput // Validation text for monitor to search for at given URI. ValidationString pulumi.StringPtrInput // Monitor should validate SSL certificate chain. VerifySsl pulumi.BoolPtrInput }
func (MonitorState) ElementType ¶
func (MonitorState) ElementType() reflect.Type
type MonitorTag ¶
type MonitorTagArgs ¶
type MonitorTagArgs struct { // Name of the tag key. Key pulumi.StringInput `pulumi:"key"` // Values associated with the tag key. Values pulumi.StringArrayInput `pulumi:"values"` }
func (MonitorTagArgs) ElementType ¶
func (MonitorTagArgs) ElementType() reflect.Type
func (MonitorTagArgs) ToMonitorTagOutput ¶
func (i MonitorTagArgs) ToMonitorTagOutput() MonitorTagOutput
func (MonitorTagArgs) ToMonitorTagOutputWithContext ¶
func (i MonitorTagArgs) ToMonitorTagOutputWithContext(ctx context.Context) MonitorTagOutput
type MonitorTagArray ¶
type MonitorTagArray []MonitorTagInput
func (MonitorTagArray) ElementType ¶
func (MonitorTagArray) ElementType() reflect.Type
func (MonitorTagArray) ToMonitorTagArrayOutput ¶
func (i MonitorTagArray) ToMonitorTagArrayOutput() MonitorTagArrayOutput
func (MonitorTagArray) ToMonitorTagArrayOutputWithContext ¶
func (i MonitorTagArray) ToMonitorTagArrayOutputWithContext(ctx context.Context) MonitorTagArrayOutput
type MonitorTagArrayInput ¶
type MonitorTagArrayInput interface { pulumi.Input ToMonitorTagArrayOutput() MonitorTagArrayOutput ToMonitorTagArrayOutputWithContext(context.Context) MonitorTagArrayOutput }
MonitorTagArrayInput is an input type that accepts MonitorTagArray and MonitorTagArrayOutput values. You can construct a concrete instance of `MonitorTagArrayInput` via:
MonitorTagArray{ MonitorTagArgs{...} }
type MonitorTagArrayOutput ¶
type MonitorTagArrayOutput struct{ *pulumi.OutputState }
func (MonitorTagArrayOutput) ElementType ¶
func (MonitorTagArrayOutput) ElementType() reflect.Type
func (MonitorTagArrayOutput) Index ¶
func (o MonitorTagArrayOutput) Index(i pulumi.IntInput) MonitorTagOutput
func (MonitorTagArrayOutput) ToMonitorTagArrayOutput ¶
func (o MonitorTagArrayOutput) ToMonitorTagArrayOutput() MonitorTagArrayOutput
func (MonitorTagArrayOutput) ToMonitorTagArrayOutputWithContext ¶
func (o MonitorTagArrayOutput) ToMonitorTagArrayOutputWithContext(ctx context.Context) MonitorTagArrayOutput
type MonitorTagInput ¶
type MonitorTagInput interface { pulumi.Input ToMonitorTagOutput() MonitorTagOutput ToMonitorTagOutputWithContext(context.Context) MonitorTagOutput }
MonitorTagInput is an input type that accepts MonitorTagArgs and MonitorTagOutput values. You can construct a concrete instance of `MonitorTagInput` via:
MonitorTagArgs{...}
type MonitorTagOutput ¶
type MonitorTagOutput struct{ *pulumi.OutputState }
func (MonitorTagOutput) ElementType ¶
func (MonitorTagOutput) ElementType() reflect.Type
func (MonitorTagOutput) Key ¶
func (o MonitorTagOutput) Key() pulumi.StringOutput
Name of the tag key.
func (MonitorTagOutput) ToMonitorTagOutput ¶
func (o MonitorTagOutput) ToMonitorTagOutput() MonitorTagOutput
func (MonitorTagOutput) ToMonitorTagOutputWithContext ¶
func (o MonitorTagOutput) ToMonitorTagOutputWithContext(ctx context.Context) MonitorTagOutput
func (MonitorTagOutput) Values ¶
func (o MonitorTagOutput) Values() pulumi.StringArrayOutput
Values associated with the tag key.
type MultiLocationAlertCondition ¶
type MultiLocationAlertCondition struct { pulumi.CustomResourceState // A condition term with the priority set to critical. Critical MultiLocationAlertConditionCriticalOutput `pulumi:"critical"` // Set whether to enable the alert condition. Defaults to true. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The Monitor GUID's of the Synthetics monitors to alert on. Entities pulumi.StringArrayOutput `pulumi:"entities"` // The unique entity identifier of the condition in New Relic. EntityGuid pulumi.StringOutput `pulumi:"entityGuid"` // The title of the condition. Name pulumi.StringOutput `pulumi:"name"` // The ID of the policy where this condition will be used. PolicyId pulumi.StringOutput `pulumi:"policyId"` // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrOutput `pulumi:"runbookUrl"` // The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds). ViolationTimeLimitSeconds pulumi.IntPtrOutput `pulumi:"violationTimeLimitSeconds"` // A condition term with the priority set to warning. // // > **WARNING:** This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID. Warning MultiLocationAlertConditionWarningPtrOutput `pulumi:"warning"` }
Use this resource to create, update, and delete a New Relic Synthetics Location Alerts.
> **NOTE:** This is a legacy resource. The NrqlAlertCondition resource is preferred for configuring alerts conditions. In most cases feature parity can be achieved with a NRQL query. This condition type may be deprecated in the future.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic" "github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { policy, err := newrelic.NewAlertPolicy(ctx, "policy", &newrelic.AlertPolicyArgs{ Name: pulumi.String("my-policy"), }) if err != nil { return err } monitor, err := synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{ LocationsPublics: pulumi.StringArray{ pulumi.String("US_WEST_1"), }, Name: pulumi.String("my-monitor"), Period: pulumi.String("EVERY_10_MINUTES"), Status: pulumi.String("DISABLED"), Type: pulumi.String("SIMPLE"), Uri: pulumi.String("https://www.one.newrelic.com"), }) if err != nil { return err } _, err = synthetics.NewMultiLocationAlertCondition(ctx, "example", &synthetics.MultiLocationAlertConditionArgs{ PolicyId: policy.ID(), Name: pulumi.String("Example condition"), RunbookUrl: pulumi.String("https://example.com"), Enabled: pulumi.Bool(true), ViolationTimeLimitSeconds: pulumi.Int(3600), Entities: pulumi.StringArray{ monitor.ID(), }, Critical: &synthetics.MultiLocationAlertConditionCriticalArgs{ Threshold: pulumi.Int(2), }, Warning: &synthetics.MultiLocationAlertConditionWarningArgs{ Threshold: pulumi.Int(1), }, }) if err != nil { return err } return nil }) }
``` ## Tags
Manage synthetics multilocation alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic" "github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { foo, err := newrelic.NewAlertPolicy(ctx, "foo", &newrelic.AlertPolicyArgs{ Name: pulumi.String("foo policy"), }) if err != nil { return err } fooMonitor, err := synthetics.NewMonitor(ctx, "foo", &synthetics.MonitorArgs{ Status: pulumi.String("ENABLED"), Name: pulumi.String("foo monitor"), Period: pulumi.String("EVERY_MINUTE"), Uri: pulumi.String("https://www.one.newrelic.com"), Type: pulumi.String("SIMPLE"), LocationsPublics: pulumi.StringArray{ pulumi.String("AP_EAST_1"), }, CustomHeaders: synthetics.MonitorCustomHeaderArray{ &synthetics.MonitorCustomHeaderArgs{ Name: pulumi.String("some_name"), Value: pulumi.String("some_value"), }, }, TreatRedirectAsFailure: pulumi.Bool(true), ValidationString: pulumi.String("success"), BypassHeadRequest: pulumi.Bool(true), VerifySsl: pulumi.Bool(true), Tags: synthetics.MonitorTagArray{ &synthetics.MonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } fooMultiLocationAlertCondition, err := synthetics.NewMultiLocationAlertCondition(ctx, "foo", &synthetics.MultiLocationAlertConditionArgs{ PolicyId: foo.ID(), Name: pulumi.String("foo condition"), RunbookUrl: pulumi.String("https://example.com"), Enabled: pulumi.Bool(true), ViolationTimeLimitSeconds: pulumi.Int(3600), Entities: pulumi.StringArray{ fooMonitor.ID(), }, Critical: &synthetics.MultiLocationAlertConditionCriticalArgs{ Threshold: pulumi.Int(2), }, Warning: &synthetics.MultiLocationAlertConditionWarningArgs{ Threshold: pulumi.Int(1), }, }) if err != nil { return err } _, err = newrelic.NewEntityTags(ctx, "my_condition_entity_tags", &newrelic.EntityTagsArgs{ Guid: fooMultiLocationAlertCondition.EntityGuid, Tags: newrelic.EntityTagsTagArray{ &newrelic.EntityTagsTagArgs{ Key: pulumi.String("my-key"), Values: pulumi.StringArray{ pulumi.String("my-value"), pulumi.String("my-other-value"), }, }, &newrelic.EntityTagsTagArgs{ Key: pulumi.String("my-key-2"), Values: pulumi.StringArray{ pulumi.String("my-value-2"), }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
New Relic Synthetics MultiLocation Conditions can be imported using a concatenated string of the format
`<policy_id>:<condition_id>`, e.g.
bash
```sh $ pulumi import newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition example 12345678:1456 ```
func GetMultiLocationAlertCondition ¶
func GetMultiLocationAlertCondition(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MultiLocationAlertConditionState, opts ...pulumi.ResourceOption) (*MultiLocationAlertCondition, error)
GetMultiLocationAlertCondition gets an existing MultiLocationAlertCondition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewMultiLocationAlertCondition ¶
func NewMultiLocationAlertCondition(ctx *pulumi.Context, name string, args *MultiLocationAlertConditionArgs, opts ...pulumi.ResourceOption) (*MultiLocationAlertCondition, error)
NewMultiLocationAlertCondition registers a new resource with the given unique name, arguments, and options.
func (*MultiLocationAlertCondition) ElementType ¶
func (*MultiLocationAlertCondition) ElementType() reflect.Type
func (*MultiLocationAlertCondition) ToMultiLocationAlertConditionOutput ¶
func (i *MultiLocationAlertCondition) ToMultiLocationAlertConditionOutput() MultiLocationAlertConditionOutput
func (*MultiLocationAlertCondition) ToMultiLocationAlertConditionOutputWithContext ¶
func (i *MultiLocationAlertCondition) ToMultiLocationAlertConditionOutputWithContext(ctx context.Context) MultiLocationAlertConditionOutput
type MultiLocationAlertConditionArgs ¶
type MultiLocationAlertConditionArgs struct { // A condition term with the priority set to critical. Critical MultiLocationAlertConditionCriticalInput // Set whether to enable the alert condition. Defaults to true. Enabled pulumi.BoolPtrInput // The Monitor GUID's of the Synthetics monitors to alert on. Entities pulumi.StringArrayInput // The title of the condition. Name pulumi.StringPtrInput // The ID of the policy where this condition will be used. PolicyId pulumi.StringInput // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrInput // The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds). ViolationTimeLimitSeconds pulumi.IntPtrInput // A condition term with the priority set to warning. // // > **WARNING:** This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID. Warning MultiLocationAlertConditionWarningPtrInput }
The set of arguments for constructing a MultiLocationAlertCondition resource.
func (MultiLocationAlertConditionArgs) ElementType ¶
func (MultiLocationAlertConditionArgs) ElementType() reflect.Type
type MultiLocationAlertConditionArray ¶
type MultiLocationAlertConditionArray []MultiLocationAlertConditionInput
func (MultiLocationAlertConditionArray) ElementType ¶
func (MultiLocationAlertConditionArray) ElementType() reflect.Type
func (MultiLocationAlertConditionArray) ToMultiLocationAlertConditionArrayOutput ¶
func (i MultiLocationAlertConditionArray) ToMultiLocationAlertConditionArrayOutput() MultiLocationAlertConditionArrayOutput
func (MultiLocationAlertConditionArray) ToMultiLocationAlertConditionArrayOutputWithContext ¶
func (i MultiLocationAlertConditionArray) ToMultiLocationAlertConditionArrayOutputWithContext(ctx context.Context) MultiLocationAlertConditionArrayOutput
type MultiLocationAlertConditionArrayInput ¶
type MultiLocationAlertConditionArrayInput interface { pulumi.Input ToMultiLocationAlertConditionArrayOutput() MultiLocationAlertConditionArrayOutput ToMultiLocationAlertConditionArrayOutputWithContext(context.Context) MultiLocationAlertConditionArrayOutput }
MultiLocationAlertConditionArrayInput is an input type that accepts MultiLocationAlertConditionArray and MultiLocationAlertConditionArrayOutput values. You can construct a concrete instance of `MultiLocationAlertConditionArrayInput` via:
MultiLocationAlertConditionArray{ MultiLocationAlertConditionArgs{...} }
type MultiLocationAlertConditionArrayOutput ¶
type MultiLocationAlertConditionArrayOutput struct{ *pulumi.OutputState }
func (MultiLocationAlertConditionArrayOutput) ElementType ¶
func (MultiLocationAlertConditionArrayOutput) ElementType() reflect.Type
func (MultiLocationAlertConditionArrayOutput) ToMultiLocationAlertConditionArrayOutput ¶
func (o MultiLocationAlertConditionArrayOutput) ToMultiLocationAlertConditionArrayOutput() MultiLocationAlertConditionArrayOutput
func (MultiLocationAlertConditionArrayOutput) ToMultiLocationAlertConditionArrayOutputWithContext ¶
func (o MultiLocationAlertConditionArrayOutput) ToMultiLocationAlertConditionArrayOutputWithContext(ctx context.Context) MultiLocationAlertConditionArrayOutput
type MultiLocationAlertConditionCritical ¶
type MultiLocationAlertConditionCritical struct { // The minimum number of monitor locations that must be concurrently failing before an incident is opened. Threshold int `pulumi:"threshold"` }
type MultiLocationAlertConditionCriticalArgs ¶
type MultiLocationAlertConditionCriticalArgs struct { // The minimum number of monitor locations that must be concurrently failing before an incident is opened. Threshold pulumi.IntInput `pulumi:"threshold"` }
func (MultiLocationAlertConditionCriticalArgs) ElementType ¶
func (MultiLocationAlertConditionCriticalArgs) ElementType() reflect.Type
func (MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalOutput ¶
func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalOutput() MultiLocationAlertConditionCriticalOutput
func (MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalOutputWithContext ¶
func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalOutput
func (MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalPtrOutput ¶
func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput
func (MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalPtrOutputWithContext ¶
func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalPtrOutput
type MultiLocationAlertConditionCriticalInput ¶
type MultiLocationAlertConditionCriticalInput interface { pulumi.Input ToMultiLocationAlertConditionCriticalOutput() MultiLocationAlertConditionCriticalOutput ToMultiLocationAlertConditionCriticalOutputWithContext(context.Context) MultiLocationAlertConditionCriticalOutput }
MultiLocationAlertConditionCriticalInput is an input type that accepts MultiLocationAlertConditionCriticalArgs and MultiLocationAlertConditionCriticalOutput values. You can construct a concrete instance of `MultiLocationAlertConditionCriticalInput` via:
MultiLocationAlertConditionCriticalArgs{...}
type MultiLocationAlertConditionCriticalOutput ¶
type MultiLocationAlertConditionCriticalOutput struct{ *pulumi.OutputState }
func (MultiLocationAlertConditionCriticalOutput) ElementType ¶
func (MultiLocationAlertConditionCriticalOutput) ElementType() reflect.Type
func (MultiLocationAlertConditionCriticalOutput) Threshold ¶
func (o MultiLocationAlertConditionCriticalOutput) Threshold() pulumi.IntOutput
The minimum number of monitor locations that must be concurrently failing before an incident is opened.
func (MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalOutput ¶
func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalOutput() MultiLocationAlertConditionCriticalOutput
func (MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalOutputWithContext ¶
func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalOutput
func (MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalPtrOutput ¶
func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput
func (MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalPtrOutputWithContext ¶
func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalPtrOutput
type MultiLocationAlertConditionCriticalPtrInput ¶
type MultiLocationAlertConditionCriticalPtrInput interface { pulumi.Input ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput ToMultiLocationAlertConditionCriticalPtrOutputWithContext(context.Context) MultiLocationAlertConditionCriticalPtrOutput }
MultiLocationAlertConditionCriticalPtrInput is an input type that accepts MultiLocationAlertConditionCriticalArgs, MultiLocationAlertConditionCriticalPtr and MultiLocationAlertConditionCriticalPtrOutput values. You can construct a concrete instance of `MultiLocationAlertConditionCriticalPtrInput` via:
MultiLocationAlertConditionCriticalArgs{...} or: nil
func MultiLocationAlertConditionCriticalPtr ¶
func MultiLocationAlertConditionCriticalPtr(v *MultiLocationAlertConditionCriticalArgs) MultiLocationAlertConditionCriticalPtrInput
type MultiLocationAlertConditionCriticalPtrOutput ¶
type MultiLocationAlertConditionCriticalPtrOutput struct{ *pulumi.OutputState }
func (MultiLocationAlertConditionCriticalPtrOutput) ElementType ¶
func (MultiLocationAlertConditionCriticalPtrOutput) ElementType() reflect.Type
func (MultiLocationAlertConditionCriticalPtrOutput) Threshold ¶
func (o MultiLocationAlertConditionCriticalPtrOutput) Threshold() pulumi.IntPtrOutput
The minimum number of monitor locations that must be concurrently failing before an incident is opened.
func (MultiLocationAlertConditionCriticalPtrOutput) ToMultiLocationAlertConditionCriticalPtrOutput ¶
func (o MultiLocationAlertConditionCriticalPtrOutput) ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput
func (MultiLocationAlertConditionCriticalPtrOutput) ToMultiLocationAlertConditionCriticalPtrOutputWithContext ¶
func (o MultiLocationAlertConditionCriticalPtrOutput) ToMultiLocationAlertConditionCriticalPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalPtrOutput
type MultiLocationAlertConditionInput ¶
type MultiLocationAlertConditionInput interface { pulumi.Input ToMultiLocationAlertConditionOutput() MultiLocationAlertConditionOutput ToMultiLocationAlertConditionOutputWithContext(ctx context.Context) MultiLocationAlertConditionOutput }
type MultiLocationAlertConditionMap ¶
type MultiLocationAlertConditionMap map[string]MultiLocationAlertConditionInput
func (MultiLocationAlertConditionMap) ElementType ¶
func (MultiLocationAlertConditionMap) ElementType() reflect.Type
func (MultiLocationAlertConditionMap) ToMultiLocationAlertConditionMapOutput ¶
func (i MultiLocationAlertConditionMap) ToMultiLocationAlertConditionMapOutput() MultiLocationAlertConditionMapOutput
func (MultiLocationAlertConditionMap) ToMultiLocationAlertConditionMapOutputWithContext ¶
func (i MultiLocationAlertConditionMap) ToMultiLocationAlertConditionMapOutputWithContext(ctx context.Context) MultiLocationAlertConditionMapOutput
type MultiLocationAlertConditionMapInput ¶
type MultiLocationAlertConditionMapInput interface { pulumi.Input ToMultiLocationAlertConditionMapOutput() MultiLocationAlertConditionMapOutput ToMultiLocationAlertConditionMapOutputWithContext(context.Context) MultiLocationAlertConditionMapOutput }
MultiLocationAlertConditionMapInput is an input type that accepts MultiLocationAlertConditionMap and MultiLocationAlertConditionMapOutput values. You can construct a concrete instance of `MultiLocationAlertConditionMapInput` via:
MultiLocationAlertConditionMap{ "key": MultiLocationAlertConditionArgs{...} }
type MultiLocationAlertConditionMapOutput ¶
type MultiLocationAlertConditionMapOutput struct{ *pulumi.OutputState }
func (MultiLocationAlertConditionMapOutput) ElementType ¶
func (MultiLocationAlertConditionMapOutput) ElementType() reflect.Type
func (MultiLocationAlertConditionMapOutput) MapIndex ¶
func (o MultiLocationAlertConditionMapOutput) MapIndex(k pulumi.StringInput) MultiLocationAlertConditionOutput
func (MultiLocationAlertConditionMapOutput) ToMultiLocationAlertConditionMapOutput ¶
func (o MultiLocationAlertConditionMapOutput) ToMultiLocationAlertConditionMapOutput() MultiLocationAlertConditionMapOutput
func (MultiLocationAlertConditionMapOutput) ToMultiLocationAlertConditionMapOutputWithContext ¶
func (o MultiLocationAlertConditionMapOutput) ToMultiLocationAlertConditionMapOutputWithContext(ctx context.Context) MultiLocationAlertConditionMapOutput
type MultiLocationAlertConditionOutput ¶
type MultiLocationAlertConditionOutput struct{ *pulumi.OutputState }
func (MultiLocationAlertConditionOutput) Critical ¶
func (o MultiLocationAlertConditionOutput) Critical() MultiLocationAlertConditionCriticalOutput
A condition term with the priority set to critical.
func (MultiLocationAlertConditionOutput) ElementType ¶
func (MultiLocationAlertConditionOutput) ElementType() reflect.Type
func (MultiLocationAlertConditionOutput) Enabled ¶
func (o MultiLocationAlertConditionOutput) Enabled() pulumi.BoolPtrOutput
Set whether to enable the alert condition. Defaults to true.
func (MultiLocationAlertConditionOutput) Entities ¶
func (o MultiLocationAlertConditionOutput) Entities() pulumi.StringArrayOutput
The Monitor GUID's of the Synthetics monitors to alert on.
func (MultiLocationAlertConditionOutput) EntityGuid ¶ added in v5.9.0
func (o MultiLocationAlertConditionOutput) EntityGuid() pulumi.StringOutput
The unique entity identifier of the condition in New Relic.
func (MultiLocationAlertConditionOutput) Name ¶
func (o MultiLocationAlertConditionOutput) Name() pulumi.StringOutput
The title of the condition.
func (MultiLocationAlertConditionOutput) PolicyId ¶
func (o MultiLocationAlertConditionOutput) PolicyId() pulumi.StringOutput
The ID of the policy where this condition will be used.
func (MultiLocationAlertConditionOutput) RunbookUrl ¶
func (o MultiLocationAlertConditionOutput) RunbookUrl() pulumi.StringPtrOutput
Runbook URL to display in notifications.
func (MultiLocationAlertConditionOutput) ToMultiLocationAlertConditionOutput ¶
func (o MultiLocationAlertConditionOutput) ToMultiLocationAlertConditionOutput() MultiLocationAlertConditionOutput
func (MultiLocationAlertConditionOutput) ToMultiLocationAlertConditionOutputWithContext ¶
func (o MultiLocationAlertConditionOutput) ToMultiLocationAlertConditionOutputWithContext(ctx context.Context) MultiLocationAlertConditionOutput
func (MultiLocationAlertConditionOutput) ViolationTimeLimitSeconds ¶
func (o MultiLocationAlertConditionOutput) ViolationTimeLimitSeconds() pulumi.IntPtrOutput
The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
func (MultiLocationAlertConditionOutput) Warning ¶
func (o MultiLocationAlertConditionOutput) Warning() MultiLocationAlertConditionWarningPtrOutput
A condition term with the priority set to warning.
> **WARNING:** This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
type MultiLocationAlertConditionState ¶
type MultiLocationAlertConditionState struct { // A condition term with the priority set to critical. Critical MultiLocationAlertConditionCriticalPtrInput // Set whether to enable the alert condition. Defaults to true. Enabled pulumi.BoolPtrInput // The Monitor GUID's of the Synthetics monitors to alert on. Entities pulumi.StringArrayInput // The unique entity identifier of the condition in New Relic. EntityGuid pulumi.StringPtrInput // The title of the condition. Name pulumi.StringPtrInput // The ID of the policy where this condition will be used. PolicyId pulumi.StringPtrInput // Runbook URL to display in notifications. RunbookUrl pulumi.StringPtrInput // The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds). ViolationTimeLimitSeconds pulumi.IntPtrInput // A condition term with the priority set to warning. // // > **WARNING:** This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID. Warning MultiLocationAlertConditionWarningPtrInput }
func (MultiLocationAlertConditionState) ElementType ¶
func (MultiLocationAlertConditionState) ElementType() reflect.Type
type MultiLocationAlertConditionWarning ¶
type MultiLocationAlertConditionWarning struct { // The minimum number of monitor locations that must be concurrently failing before an incident is opened. Threshold int `pulumi:"threshold"` }
type MultiLocationAlertConditionWarningArgs ¶
type MultiLocationAlertConditionWarningArgs struct { // The minimum number of monitor locations that must be concurrently failing before an incident is opened. Threshold pulumi.IntInput `pulumi:"threshold"` }
func (MultiLocationAlertConditionWarningArgs) ElementType ¶
func (MultiLocationAlertConditionWarningArgs) ElementType() reflect.Type
func (MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningOutput ¶
func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningOutput() MultiLocationAlertConditionWarningOutput
func (MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningOutputWithContext ¶
func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningOutput
func (MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningPtrOutput ¶
func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput
func (MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningPtrOutputWithContext ¶
func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningPtrOutput
type MultiLocationAlertConditionWarningInput ¶
type MultiLocationAlertConditionWarningInput interface { pulumi.Input ToMultiLocationAlertConditionWarningOutput() MultiLocationAlertConditionWarningOutput ToMultiLocationAlertConditionWarningOutputWithContext(context.Context) MultiLocationAlertConditionWarningOutput }
MultiLocationAlertConditionWarningInput is an input type that accepts MultiLocationAlertConditionWarningArgs and MultiLocationAlertConditionWarningOutput values. You can construct a concrete instance of `MultiLocationAlertConditionWarningInput` via:
MultiLocationAlertConditionWarningArgs{...}
type MultiLocationAlertConditionWarningOutput ¶
type MultiLocationAlertConditionWarningOutput struct{ *pulumi.OutputState }
func (MultiLocationAlertConditionWarningOutput) ElementType ¶
func (MultiLocationAlertConditionWarningOutput) ElementType() reflect.Type
func (MultiLocationAlertConditionWarningOutput) Threshold ¶
func (o MultiLocationAlertConditionWarningOutput) Threshold() pulumi.IntOutput
The minimum number of monitor locations that must be concurrently failing before an incident is opened.
func (MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningOutput ¶
func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningOutput() MultiLocationAlertConditionWarningOutput
func (MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningOutputWithContext ¶
func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningOutput
func (MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningPtrOutput ¶
func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput
func (MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningPtrOutputWithContext ¶
func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningPtrOutput
type MultiLocationAlertConditionWarningPtrInput ¶
type MultiLocationAlertConditionWarningPtrInput interface { pulumi.Input ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput ToMultiLocationAlertConditionWarningPtrOutputWithContext(context.Context) MultiLocationAlertConditionWarningPtrOutput }
MultiLocationAlertConditionWarningPtrInput is an input type that accepts MultiLocationAlertConditionWarningArgs, MultiLocationAlertConditionWarningPtr and MultiLocationAlertConditionWarningPtrOutput values. You can construct a concrete instance of `MultiLocationAlertConditionWarningPtrInput` via:
MultiLocationAlertConditionWarningArgs{...} or: nil
func MultiLocationAlertConditionWarningPtr ¶
func MultiLocationAlertConditionWarningPtr(v *MultiLocationAlertConditionWarningArgs) MultiLocationAlertConditionWarningPtrInput
type MultiLocationAlertConditionWarningPtrOutput ¶
type MultiLocationAlertConditionWarningPtrOutput struct{ *pulumi.OutputState }
func (MultiLocationAlertConditionWarningPtrOutput) ElementType ¶
func (MultiLocationAlertConditionWarningPtrOutput) ElementType() reflect.Type
func (MultiLocationAlertConditionWarningPtrOutput) Threshold ¶
func (o MultiLocationAlertConditionWarningPtrOutput) Threshold() pulumi.IntPtrOutput
The minimum number of monitor locations that must be concurrently failing before an incident is opened.
func (MultiLocationAlertConditionWarningPtrOutput) ToMultiLocationAlertConditionWarningPtrOutput ¶
func (o MultiLocationAlertConditionWarningPtrOutput) ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput
func (MultiLocationAlertConditionWarningPtrOutput) ToMultiLocationAlertConditionWarningPtrOutputWithContext ¶
func (o MultiLocationAlertConditionWarningPtrOutput) ToMultiLocationAlertConditionWarningPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningPtrOutput
type PrivateLocation ¶
type PrivateLocation struct { pulumi.CustomResourceState // The account in which the private location will be created. AccountId pulumi.StringOutput `pulumi:"accountId"` // The private location description. Description pulumi.StringOutput `pulumi:"description"` // The private location globally unique identifier. DomainId pulumi.StringOutput `pulumi:"domainId"` // The unique client identifier for the private location in New Relic. Same as `id`. Guid pulumi.StringOutput `pulumi:"guid"` // The private locations key. Key pulumi.StringOutput `pulumi:"key"` // An alternate identifier based on name. LocationId pulumi.StringOutput `pulumi:"locationId"` // The name of the private location. Name pulumi.StringOutput `pulumi:"name"` // The private location requires a password to edit if value is true. Defaults to `false` VerifiedScriptExecution pulumi.BoolPtrOutput `pulumi:"verifiedScriptExecution"` }
Use this resource to create and manage New Relic Synthetic private location.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{ Description: pulumi.String("The private location description"), Name: pulumi.String("The name of the private location"), }) if err != nil { return err } return nil }) }
```
## Import
A Synthetics private location can be imported using the `guid`
```sh $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation location GUID ```
func GetPrivateLocation ¶
func GetPrivateLocation(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PrivateLocationState, opts ...pulumi.ResourceOption) (*PrivateLocation, error)
GetPrivateLocation gets an existing PrivateLocation resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPrivateLocation ¶
func NewPrivateLocation(ctx *pulumi.Context, name string, args *PrivateLocationArgs, opts ...pulumi.ResourceOption) (*PrivateLocation, error)
NewPrivateLocation registers a new resource with the given unique name, arguments, and options.
func (*PrivateLocation) ElementType ¶
func (*PrivateLocation) ElementType() reflect.Type
func (*PrivateLocation) ToPrivateLocationOutput ¶
func (i *PrivateLocation) ToPrivateLocationOutput() PrivateLocationOutput
func (*PrivateLocation) ToPrivateLocationOutputWithContext ¶
func (i *PrivateLocation) ToPrivateLocationOutputWithContext(ctx context.Context) PrivateLocationOutput
type PrivateLocationArgs ¶
type PrivateLocationArgs struct { // The account in which the private location will be created. AccountId pulumi.StringPtrInput // The private location description. Description pulumi.StringInput // The name of the private location. Name pulumi.StringPtrInput // The private location requires a password to edit if value is true. Defaults to `false` VerifiedScriptExecution pulumi.BoolPtrInput }
The set of arguments for constructing a PrivateLocation resource.
func (PrivateLocationArgs) ElementType ¶
func (PrivateLocationArgs) ElementType() reflect.Type
type PrivateLocationArray ¶
type PrivateLocationArray []PrivateLocationInput
func (PrivateLocationArray) ElementType ¶
func (PrivateLocationArray) ElementType() reflect.Type
func (PrivateLocationArray) ToPrivateLocationArrayOutput ¶
func (i PrivateLocationArray) ToPrivateLocationArrayOutput() PrivateLocationArrayOutput
func (PrivateLocationArray) ToPrivateLocationArrayOutputWithContext ¶
func (i PrivateLocationArray) ToPrivateLocationArrayOutputWithContext(ctx context.Context) PrivateLocationArrayOutput
type PrivateLocationArrayInput ¶
type PrivateLocationArrayInput interface { pulumi.Input ToPrivateLocationArrayOutput() PrivateLocationArrayOutput ToPrivateLocationArrayOutputWithContext(context.Context) PrivateLocationArrayOutput }
PrivateLocationArrayInput is an input type that accepts PrivateLocationArray and PrivateLocationArrayOutput values. You can construct a concrete instance of `PrivateLocationArrayInput` via:
PrivateLocationArray{ PrivateLocationArgs{...} }
type PrivateLocationArrayOutput ¶
type PrivateLocationArrayOutput struct{ *pulumi.OutputState }
func (PrivateLocationArrayOutput) ElementType ¶
func (PrivateLocationArrayOutput) ElementType() reflect.Type
func (PrivateLocationArrayOutput) Index ¶
func (o PrivateLocationArrayOutput) Index(i pulumi.IntInput) PrivateLocationOutput
func (PrivateLocationArrayOutput) ToPrivateLocationArrayOutput ¶
func (o PrivateLocationArrayOutput) ToPrivateLocationArrayOutput() PrivateLocationArrayOutput
func (PrivateLocationArrayOutput) ToPrivateLocationArrayOutputWithContext ¶
func (o PrivateLocationArrayOutput) ToPrivateLocationArrayOutputWithContext(ctx context.Context) PrivateLocationArrayOutput
type PrivateLocationInput ¶
type PrivateLocationInput interface { pulumi.Input ToPrivateLocationOutput() PrivateLocationOutput ToPrivateLocationOutputWithContext(ctx context.Context) PrivateLocationOutput }
type PrivateLocationMap ¶
type PrivateLocationMap map[string]PrivateLocationInput
func (PrivateLocationMap) ElementType ¶
func (PrivateLocationMap) ElementType() reflect.Type
func (PrivateLocationMap) ToPrivateLocationMapOutput ¶
func (i PrivateLocationMap) ToPrivateLocationMapOutput() PrivateLocationMapOutput
func (PrivateLocationMap) ToPrivateLocationMapOutputWithContext ¶
func (i PrivateLocationMap) ToPrivateLocationMapOutputWithContext(ctx context.Context) PrivateLocationMapOutput
type PrivateLocationMapInput ¶
type PrivateLocationMapInput interface { pulumi.Input ToPrivateLocationMapOutput() PrivateLocationMapOutput ToPrivateLocationMapOutputWithContext(context.Context) PrivateLocationMapOutput }
PrivateLocationMapInput is an input type that accepts PrivateLocationMap and PrivateLocationMapOutput values. You can construct a concrete instance of `PrivateLocationMapInput` via:
PrivateLocationMap{ "key": PrivateLocationArgs{...} }
type PrivateLocationMapOutput ¶
type PrivateLocationMapOutput struct{ *pulumi.OutputState }
func (PrivateLocationMapOutput) ElementType ¶
func (PrivateLocationMapOutput) ElementType() reflect.Type
func (PrivateLocationMapOutput) MapIndex ¶
func (o PrivateLocationMapOutput) MapIndex(k pulumi.StringInput) PrivateLocationOutput
func (PrivateLocationMapOutput) ToPrivateLocationMapOutput ¶
func (o PrivateLocationMapOutput) ToPrivateLocationMapOutput() PrivateLocationMapOutput
func (PrivateLocationMapOutput) ToPrivateLocationMapOutputWithContext ¶
func (o PrivateLocationMapOutput) ToPrivateLocationMapOutputWithContext(ctx context.Context) PrivateLocationMapOutput
type PrivateLocationOutput ¶
type PrivateLocationOutput struct{ *pulumi.OutputState }
func (PrivateLocationOutput) AccountId ¶
func (o PrivateLocationOutput) AccountId() pulumi.StringOutput
The account in which the private location will be created.
func (PrivateLocationOutput) Description ¶
func (o PrivateLocationOutput) Description() pulumi.StringOutput
The private location description.
func (PrivateLocationOutput) DomainId ¶
func (o PrivateLocationOutput) DomainId() pulumi.StringOutput
The private location globally unique identifier.
func (PrivateLocationOutput) ElementType ¶
func (PrivateLocationOutput) ElementType() reflect.Type
func (PrivateLocationOutput) Guid ¶
func (o PrivateLocationOutput) Guid() pulumi.StringOutput
The unique client identifier for the private location in New Relic. Same as `id`.
func (PrivateLocationOutput) Key ¶
func (o PrivateLocationOutput) Key() pulumi.StringOutput
The private locations key.
func (PrivateLocationOutput) LocationId ¶
func (o PrivateLocationOutput) LocationId() pulumi.StringOutput
An alternate identifier based on name.
func (PrivateLocationOutput) Name ¶
func (o PrivateLocationOutput) Name() pulumi.StringOutput
The name of the private location.
func (PrivateLocationOutput) ToPrivateLocationOutput ¶
func (o PrivateLocationOutput) ToPrivateLocationOutput() PrivateLocationOutput
func (PrivateLocationOutput) ToPrivateLocationOutputWithContext ¶
func (o PrivateLocationOutput) ToPrivateLocationOutputWithContext(ctx context.Context) PrivateLocationOutput
func (PrivateLocationOutput) VerifiedScriptExecution ¶
func (o PrivateLocationOutput) VerifiedScriptExecution() pulumi.BoolPtrOutput
The private location requires a password to edit if value is true. Defaults to `false`
type PrivateLocationState ¶
type PrivateLocationState struct { // The account in which the private location will be created. AccountId pulumi.StringPtrInput // The private location description. Description pulumi.StringPtrInput // The private location globally unique identifier. DomainId pulumi.StringPtrInput // The unique client identifier for the private location in New Relic. Same as `id`. Guid pulumi.StringPtrInput // The private locations key. Key pulumi.StringPtrInput // An alternate identifier based on name. LocationId pulumi.StringPtrInput // The name of the private location. Name pulumi.StringPtrInput // The private location requires a password to edit if value is true. Defaults to `false` VerifiedScriptExecution pulumi.BoolPtrInput }
func (PrivateLocationState) ElementType ¶
func (PrivateLocationState) ElementType() reflect.Type
type ScriptMonitor ¶
type ScriptMonitor struct { pulumi.CustomResourceState // The account in which the Synthetics monitor will be created. AccountId pulumi.StringOutput `pulumi:"accountId"` // The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`. Browsers pulumi.StringArrayOutput `pulumi:"browsers"` // Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceOrientation pulumi.StringPtrOutput `pulumi:"deviceOrientation"` // Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceType pulumi.StringPtrOutput `pulumi:"deviceType"` // The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`. Devices pulumi.StringArrayOutput `pulumi:"devices"` // Capture a screenshot during job execution. EnableScreenshotOnFailureAndScript pulumi.BoolPtrOutput `pulumi:"enableScreenshotOnFailureAndScript"` // The unique entity identifier of the monitor in New Relic. Guid pulumi.StringOutput `pulumi:"guid"` // The location the monitor will run from. See Nested locationPrivate blocks below for details. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**. LocationPrivates ScriptMonitorLocationPrivateArrayOutput `pulumi:"locationPrivates"` // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**. LocationsPublics pulumi.StringArrayOutput `pulumi:"locationsPublics"` // The name for the monitor. Name pulumi.StringOutput `pulumi:"name"` // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringOutput `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"` // The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`. RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"` // The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser. RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"` // The script that the monitor runs. Script pulumi.StringPtrOutput `pulumi:"script"` // The programing language that should execute the script. ScriptLanguage pulumi.StringPtrOutput `pulumi:"scriptLanguage"` // The monitor status (ENABLED or DISABLED). Status pulumi.StringOutput `pulumi:"status"` // The tags that will be associated with the monitor. See Nested tag blocks below for details. // // The `SCRIPTED_BROWSER` monitor type supports the following additional argument: Tags ScriptMonitorTagArrayOutput `pulumi:"tags"` // The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API Type pulumi.StringOutput `pulumi:"type"` UseUnsupportedLegacyRuntime pulumi.BoolPtrOutput `pulumi:"useUnsupportedLegacyRuntime"` }
## Example Usage
##### Type: `SCRIPT_API`
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.NewScriptMonitor(ctx, "monitor", &synthetics.ScriptMonitorArgs{ Status: pulumi.String("ENABLED"), Name: pulumi.String("script_monitor"), Type: pulumi.String("SCRIPT_API"), LocationsPublics: pulumi.StringArray{ pulumi.String("AP_SOUTH_1"), pulumi.String("AP_EAST_1"), }, Period: pulumi.String("EVERY_6_HOURS"), Script: pulumi.String("console.log('it works!')"), ScriptLanguage: pulumi.String("JAVASCRIPT"), RuntimeType: pulumi.String("NODE_API"), RuntimeTypeVersion: pulumi.String("16.10"), Tags: synthetics.ScriptMonitorTagArray{ &synthetics.ScriptMonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
``` ##### Type: `SCRIPT_BROWSER`
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.NewScriptMonitor(ctx, "monitor", &synthetics.ScriptMonitorArgs{ Status: pulumi.String("ENABLED"), Name: pulumi.String("script_monitor"), Type: pulumi.String("SCRIPT_BROWSER"), LocationsPublics: pulumi.StringArray{ pulumi.String("AP_SOUTH_1"), pulumi.String("AP_EAST_1"), }, Period: pulumi.String("EVERY_HOUR"), Script: pulumi.String("$browser.get('https://one.newrelic.com')"), RuntimeTypeVersion: pulumi.String("100"), RuntimeType: pulumi.String("CHROME_BROWSER"), ScriptLanguage: pulumi.String("JAVASCRIPT"), Devices: pulumi.StringArray{ pulumi.String("DESKTOP"), pulumi.String("MOBILE_PORTRAIT"), pulumi.String("TABLET_LANDSCAPE"), }, Browsers: pulumi.StringArray{ pulumi.String("CHROME"), }, EnableScreenshotOnFailureAndScript: pulumi.Bool(false), Tags: synthetics.ScriptMonitorTagArray{ &synthetics.ScriptMonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
``` See additional examples.
## Additional Examples
### Create a monitor with a private location
The below example shows how you can define a private location and attach it to a monitor.
> **NOTE:** It can take up to 10 minutes for a private location to become available.
##### Type: `SCRIPT_API`
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{ Description: pulumi.String("Example private location"), Name: pulumi.String("private_location"), VerifiedScriptExecution: pulumi.Bool(true), }) if err != nil { return err } _, err = synthetics.NewScriptMonitor(ctx, "monitor", &synthetics.ScriptMonitorArgs{ Status: pulumi.String("ENABLED"), Name: pulumi.String("script_monitor"), Type: pulumi.String("SCRIPT_API"), LocationPrivates: synthetics.ScriptMonitorLocationPrivateArray{ &synthetics.ScriptMonitorLocationPrivateArgs{ Guid: location.ID(), VsePassword: pulumi.String("secret"), }, }, Period: pulumi.String("EVERY_6_HOURS"), Script: pulumi.String("console.log('terraform integration test updated')"), ScriptLanguage: pulumi.String("JAVASCRIPT"), RuntimeType: pulumi.String("NODE_API"), RuntimeTypeVersion: pulumi.String("16.10"), Tags: synthetics.ScriptMonitorTagArray{ &synthetics.ScriptMonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
``` ##### Type: `SCRIPT_BROWSER`
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{ Description: pulumi.String("Test Description"), Name: pulumi.String("private_location"), VerifiedScriptExecution: pulumi.Bool(true), }) if err != nil { return err } _, err = synthetics.NewScriptMonitor(ctx, "monitor", &synthetics.ScriptMonitorArgs{ Status: pulumi.String("ENABLED"), Name: pulumi.String("script_monitor"), Type: pulumi.String("SCRIPT_BROWSER"), Period: pulumi.String("EVERY_HOUR"), Script: pulumi.String("$browser.get('https://one.newrelic.com')"), RuntimeTypeVersion: pulumi.String("100"), RuntimeType: pulumi.String("CHROME_BROWSER"), ScriptLanguage: pulumi.String("JAVASCRIPT"), Devices: pulumi.StringArray{ pulumi.String("DESKTOP"), pulumi.String("MOBILE_PORTRAIT"), pulumi.String("TABLET_LANDSCAPE"), }, Browsers: pulumi.StringArray{ pulumi.String("CHROME"), }, EnableScreenshotOnFailureAndScript: pulumi.Bool(false), LocationPrivates: synthetics.ScriptMonitorLocationPrivateArray{ &synthetics.ScriptMonitorLocationPrivateArgs{ Guid: location.ID(), VsePassword: pulumi.String("secret"), }, }, Tags: synthetics.ScriptMonitorTagArray{ &synthetics.ScriptMonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
Synthetics monitor scripts can be imported using the `guid`, e.g.
bash
```sh $ pulumi import newrelic:synthetics/scriptMonitor:ScriptMonitor monitor <guid> ```
func GetScriptMonitor ¶
func GetScriptMonitor(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ScriptMonitorState, opts ...pulumi.ResourceOption) (*ScriptMonitor, error)
GetScriptMonitor gets an existing ScriptMonitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewScriptMonitor ¶
func NewScriptMonitor(ctx *pulumi.Context, name string, args *ScriptMonitorArgs, opts ...pulumi.ResourceOption) (*ScriptMonitor, error)
NewScriptMonitor registers a new resource with the given unique name, arguments, and options.
func (*ScriptMonitor) ElementType ¶
func (*ScriptMonitor) ElementType() reflect.Type
func (*ScriptMonitor) ToScriptMonitorOutput ¶
func (i *ScriptMonitor) ToScriptMonitorOutput() ScriptMonitorOutput
func (*ScriptMonitor) ToScriptMonitorOutputWithContext ¶
func (i *ScriptMonitor) ToScriptMonitorOutputWithContext(ctx context.Context) ScriptMonitorOutput
type ScriptMonitorArgs ¶
type ScriptMonitorArgs struct { // The account in which the Synthetics monitor will be created. AccountId pulumi.StringPtrInput // The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`. Browsers pulumi.StringArrayInput // Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceOrientation pulumi.StringPtrInput // Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceType pulumi.StringPtrInput // The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`. Devices pulumi.StringArrayInput // Capture a screenshot during job execution. EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput // The location the monitor will run from. See Nested locationPrivate blocks below for details. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**. LocationPrivates ScriptMonitorLocationPrivateArrayInput // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**. LocationsPublics pulumi.StringArrayInput // The name for the monitor. Name pulumi.StringPtrInput // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringInput // The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`. RuntimeType pulumi.StringPtrInput // The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser. RuntimeTypeVersion pulumi.StringPtrInput // The script that the monitor runs. Script pulumi.StringPtrInput // The programing language that should execute the script. ScriptLanguage pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringInput // The tags that will be associated with the monitor. See Nested tag blocks below for details. // // The `SCRIPTED_BROWSER` monitor type supports the following additional argument: Tags ScriptMonitorTagArrayInput // The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API Type pulumi.StringInput UseUnsupportedLegacyRuntime pulumi.BoolPtrInput }
The set of arguments for constructing a ScriptMonitor resource.
func (ScriptMonitorArgs) ElementType ¶
func (ScriptMonitorArgs) ElementType() reflect.Type
type ScriptMonitorArray ¶
type ScriptMonitorArray []ScriptMonitorInput
func (ScriptMonitorArray) ElementType ¶
func (ScriptMonitorArray) ElementType() reflect.Type
func (ScriptMonitorArray) ToScriptMonitorArrayOutput ¶
func (i ScriptMonitorArray) ToScriptMonitorArrayOutput() ScriptMonitorArrayOutput
func (ScriptMonitorArray) ToScriptMonitorArrayOutputWithContext ¶
func (i ScriptMonitorArray) ToScriptMonitorArrayOutputWithContext(ctx context.Context) ScriptMonitorArrayOutput
type ScriptMonitorArrayInput ¶
type ScriptMonitorArrayInput interface { pulumi.Input ToScriptMonitorArrayOutput() ScriptMonitorArrayOutput ToScriptMonitorArrayOutputWithContext(context.Context) ScriptMonitorArrayOutput }
ScriptMonitorArrayInput is an input type that accepts ScriptMonitorArray and ScriptMonitorArrayOutput values. You can construct a concrete instance of `ScriptMonitorArrayInput` via:
ScriptMonitorArray{ ScriptMonitorArgs{...} }
type ScriptMonitorArrayOutput ¶
type ScriptMonitorArrayOutput struct{ *pulumi.OutputState }
func (ScriptMonitorArrayOutput) ElementType ¶
func (ScriptMonitorArrayOutput) ElementType() reflect.Type
func (ScriptMonitorArrayOutput) Index ¶
func (o ScriptMonitorArrayOutput) Index(i pulumi.IntInput) ScriptMonitorOutput
func (ScriptMonitorArrayOutput) ToScriptMonitorArrayOutput ¶
func (o ScriptMonitorArrayOutput) ToScriptMonitorArrayOutput() ScriptMonitorArrayOutput
func (ScriptMonitorArrayOutput) ToScriptMonitorArrayOutputWithContext ¶
func (o ScriptMonitorArrayOutput) ToScriptMonitorArrayOutputWithContext(ctx context.Context) ScriptMonitorArrayOutput
type ScriptMonitorInput ¶
type ScriptMonitorInput interface { pulumi.Input ToScriptMonitorOutput() ScriptMonitorOutput ToScriptMonitorOutputWithContext(ctx context.Context) ScriptMonitorOutput }
type ScriptMonitorLocationPrivate ¶
type ScriptMonitorLocationPrivate struct { // The unique identifier for the Synthetics private location in New Relic. Guid string `pulumi:"guid"` // The location's Verified Script Execution password, Only necessary if Verified Script Execution is enabled for the location. VsePassword *string `pulumi:"vsePassword"` }
type ScriptMonitorLocationPrivateArgs ¶
type ScriptMonitorLocationPrivateArgs struct { // The unique identifier for the Synthetics private location in New Relic. Guid pulumi.StringInput `pulumi:"guid"` // The location's Verified Script Execution password, Only necessary if Verified Script Execution is enabled for the location. VsePassword pulumi.StringPtrInput `pulumi:"vsePassword"` }
func (ScriptMonitorLocationPrivateArgs) ElementType ¶
func (ScriptMonitorLocationPrivateArgs) ElementType() reflect.Type
func (ScriptMonitorLocationPrivateArgs) ToScriptMonitorLocationPrivateOutput ¶
func (i ScriptMonitorLocationPrivateArgs) ToScriptMonitorLocationPrivateOutput() ScriptMonitorLocationPrivateOutput
func (ScriptMonitorLocationPrivateArgs) ToScriptMonitorLocationPrivateOutputWithContext ¶
func (i ScriptMonitorLocationPrivateArgs) ToScriptMonitorLocationPrivateOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateOutput
type ScriptMonitorLocationPrivateArray ¶
type ScriptMonitorLocationPrivateArray []ScriptMonitorLocationPrivateInput
func (ScriptMonitorLocationPrivateArray) ElementType ¶
func (ScriptMonitorLocationPrivateArray) ElementType() reflect.Type
func (ScriptMonitorLocationPrivateArray) ToScriptMonitorLocationPrivateArrayOutput ¶
func (i ScriptMonitorLocationPrivateArray) ToScriptMonitorLocationPrivateArrayOutput() ScriptMonitorLocationPrivateArrayOutput
func (ScriptMonitorLocationPrivateArray) ToScriptMonitorLocationPrivateArrayOutputWithContext ¶
func (i ScriptMonitorLocationPrivateArray) ToScriptMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateArrayOutput
type ScriptMonitorLocationPrivateArrayInput ¶
type ScriptMonitorLocationPrivateArrayInput interface { pulumi.Input ToScriptMonitorLocationPrivateArrayOutput() ScriptMonitorLocationPrivateArrayOutput ToScriptMonitorLocationPrivateArrayOutputWithContext(context.Context) ScriptMonitorLocationPrivateArrayOutput }
ScriptMonitorLocationPrivateArrayInput is an input type that accepts ScriptMonitorLocationPrivateArray and ScriptMonitorLocationPrivateArrayOutput values. You can construct a concrete instance of `ScriptMonitorLocationPrivateArrayInput` via:
ScriptMonitorLocationPrivateArray{ ScriptMonitorLocationPrivateArgs{...} }
type ScriptMonitorLocationPrivateArrayOutput ¶
type ScriptMonitorLocationPrivateArrayOutput struct{ *pulumi.OutputState }
func (ScriptMonitorLocationPrivateArrayOutput) ElementType ¶
func (ScriptMonitorLocationPrivateArrayOutput) ElementType() reflect.Type
func (ScriptMonitorLocationPrivateArrayOutput) ToScriptMonitorLocationPrivateArrayOutput ¶
func (o ScriptMonitorLocationPrivateArrayOutput) ToScriptMonitorLocationPrivateArrayOutput() ScriptMonitorLocationPrivateArrayOutput
func (ScriptMonitorLocationPrivateArrayOutput) ToScriptMonitorLocationPrivateArrayOutputWithContext ¶
func (o ScriptMonitorLocationPrivateArrayOutput) ToScriptMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateArrayOutput
type ScriptMonitorLocationPrivateInput ¶
type ScriptMonitorLocationPrivateInput interface { pulumi.Input ToScriptMonitorLocationPrivateOutput() ScriptMonitorLocationPrivateOutput ToScriptMonitorLocationPrivateOutputWithContext(context.Context) ScriptMonitorLocationPrivateOutput }
ScriptMonitorLocationPrivateInput is an input type that accepts ScriptMonitorLocationPrivateArgs and ScriptMonitorLocationPrivateOutput values. You can construct a concrete instance of `ScriptMonitorLocationPrivateInput` via:
ScriptMonitorLocationPrivateArgs{...}
type ScriptMonitorLocationPrivateOutput ¶
type ScriptMonitorLocationPrivateOutput struct{ *pulumi.OutputState }
func (ScriptMonitorLocationPrivateOutput) ElementType ¶
func (ScriptMonitorLocationPrivateOutput) ElementType() reflect.Type
func (ScriptMonitorLocationPrivateOutput) Guid ¶
func (o ScriptMonitorLocationPrivateOutput) Guid() pulumi.StringOutput
The unique identifier for the Synthetics private location in New Relic.
func (ScriptMonitorLocationPrivateOutput) ToScriptMonitorLocationPrivateOutput ¶
func (o ScriptMonitorLocationPrivateOutput) ToScriptMonitorLocationPrivateOutput() ScriptMonitorLocationPrivateOutput
func (ScriptMonitorLocationPrivateOutput) ToScriptMonitorLocationPrivateOutputWithContext ¶
func (o ScriptMonitorLocationPrivateOutput) ToScriptMonitorLocationPrivateOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateOutput
func (ScriptMonitorLocationPrivateOutput) VsePassword ¶
func (o ScriptMonitorLocationPrivateOutput) VsePassword() pulumi.StringPtrOutput
The location's Verified Script Execution password, Only necessary if Verified Script Execution is enabled for the location.
type ScriptMonitorMap ¶
type ScriptMonitorMap map[string]ScriptMonitorInput
func (ScriptMonitorMap) ElementType ¶
func (ScriptMonitorMap) ElementType() reflect.Type
func (ScriptMonitorMap) ToScriptMonitorMapOutput ¶
func (i ScriptMonitorMap) ToScriptMonitorMapOutput() ScriptMonitorMapOutput
func (ScriptMonitorMap) ToScriptMonitorMapOutputWithContext ¶
func (i ScriptMonitorMap) ToScriptMonitorMapOutputWithContext(ctx context.Context) ScriptMonitorMapOutput
type ScriptMonitorMapInput ¶
type ScriptMonitorMapInput interface { pulumi.Input ToScriptMonitorMapOutput() ScriptMonitorMapOutput ToScriptMonitorMapOutputWithContext(context.Context) ScriptMonitorMapOutput }
ScriptMonitorMapInput is an input type that accepts ScriptMonitorMap and ScriptMonitorMapOutput values. You can construct a concrete instance of `ScriptMonitorMapInput` via:
ScriptMonitorMap{ "key": ScriptMonitorArgs{...} }
type ScriptMonitorMapOutput ¶
type ScriptMonitorMapOutput struct{ *pulumi.OutputState }
func (ScriptMonitorMapOutput) ElementType ¶
func (ScriptMonitorMapOutput) ElementType() reflect.Type
func (ScriptMonitorMapOutput) MapIndex ¶
func (o ScriptMonitorMapOutput) MapIndex(k pulumi.StringInput) ScriptMonitorOutput
func (ScriptMonitorMapOutput) ToScriptMonitorMapOutput ¶
func (o ScriptMonitorMapOutput) ToScriptMonitorMapOutput() ScriptMonitorMapOutput
func (ScriptMonitorMapOutput) ToScriptMonitorMapOutputWithContext ¶
func (o ScriptMonitorMapOutput) ToScriptMonitorMapOutputWithContext(ctx context.Context) ScriptMonitorMapOutput
type ScriptMonitorOutput ¶
type ScriptMonitorOutput struct{ *pulumi.OutputState }
func (ScriptMonitorOutput) AccountId ¶
func (o ScriptMonitorOutput) AccountId() pulumi.StringOutput
The account in which the Synthetics monitor will be created.
func (ScriptMonitorOutput) Browsers ¶ added in v5.32.0
func (o ScriptMonitorOutput) Browsers() pulumi.StringArrayOutput
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
func (ScriptMonitorOutput) DeviceOrientation ¶ added in v5.10.0
func (o ScriptMonitorOutput) DeviceOrientation() pulumi.StringPtrOutput
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations.
func (ScriptMonitorOutput) DeviceType ¶ added in v5.10.0
func (o ScriptMonitorOutput) DeviceType() pulumi.StringPtrOutput
Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations.
func (ScriptMonitorOutput) Devices ¶ added in v5.32.0
func (o ScriptMonitorOutput) Devices() pulumi.StringArrayOutput
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
func (ScriptMonitorOutput) ElementType ¶
func (ScriptMonitorOutput) ElementType() reflect.Type
func (ScriptMonitorOutput) EnableScreenshotOnFailureAndScript ¶
func (o ScriptMonitorOutput) EnableScreenshotOnFailureAndScript() pulumi.BoolPtrOutput
Capture a screenshot during job execution.
func (ScriptMonitorOutput) Guid ¶
func (o ScriptMonitorOutput) Guid() pulumi.StringOutput
The unique entity identifier of the monitor in New Relic.
func (ScriptMonitorOutput) LocationPrivates ¶
func (o ScriptMonitorOutput) LocationPrivates() ScriptMonitorLocationPrivateArrayOutput
The location the monitor will run from. See Nested locationPrivate blocks below for details. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**.
func (ScriptMonitorOutput) LocationsPublics ¶
func (o ScriptMonitorOutput) LocationsPublics() pulumi.StringArrayOutput
The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**.
func (ScriptMonitorOutput) Name ¶
func (o ScriptMonitorOutput) Name() pulumi.StringOutput
The name for the monitor.
func (ScriptMonitorOutput) Period ¶
func (o ScriptMonitorOutput) Period() pulumi.StringOutput
The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
func (ScriptMonitorOutput) PeriodInMinutes ¶ added in v5.10.0
func (o ScriptMonitorOutput) PeriodInMinutes() pulumi.IntOutput
The interval in minutes at which Synthetic monitor should run.
func (ScriptMonitorOutput) RuntimeType ¶
func (o ScriptMonitorOutput) RuntimeType() pulumi.StringPtrOutput
The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
func (ScriptMonitorOutput) RuntimeTypeVersion ¶
func (o ScriptMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput
The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
func (ScriptMonitorOutput) Script ¶
func (o ScriptMonitorOutput) Script() pulumi.StringPtrOutput
The script that the monitor runs.
func (ScriptMonitorOutput) ScriptLanguage ¶
func (o ScriptMonitorOutput) ScriptLanguage() pulumi.StringPtrOutput
The programing language that should execute the script.
func (ScriptMonitorOutput) Status ¶
func (o ScriptMonitorOutput) Status() pulumi.StringOutput
The monitor status (ENABLED or DISABLED).
func (ScriptMonitorOutput) Tags ¶
func (o ScriptMonitorOutput) Tags() ScriptMonitorTagArrayOutput
The tags that will be associated with the monitor. See Nested tag blocks below for details.
The `SCRIPTED_BROWSER` monitor type supports the following additional argument:
func (ScriptMonitorOutput) ToScriptMonitorOutput ¶
func (o ScriptMonitorOutput) ToScriptMonitorOutput() ScriptMonitorOutput
func (ScriptMonitorOutput) ToScriptMonitorOutputWithContext ¶
func (o ScriptMonitorOutput) ToScriptMonitorOutputWithContext(ctx context.Context) ScriptMonitorOutput
func (ScriptMonitorOutput) Type ¶
func (o ScriptMonitorOutput) Type() pulumi.StringOutput
The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
func (ScriptMonitorOutput) UseUnsupportedLegacyRuntime ¶ added in v5.30.0
func (o ScriptMonitorOutput) UseUnsupportedLegacyRuntime() pulumi.BoolPtrOutput
type ScriptMonitorState ¶
type ScriptMonitorState struct { // The account in which the Synthetics monitor will be created. AccountId pulumi.StringPtrInput // The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`. Browsers pulumi.StringArrayInput // Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceOrientation pulumi.StringPtrInput // Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `deviceType`,`deviceOrientation` fields, as it allows you to select multiple combinations of device types and orientations. DeviceType pulumi.StringPtrInput // The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`. Devices pulumi.StringArrayInput // Capture a screenshot during job execution. EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput // The unique entity identifier of the monitor in New Relic. Guid pulumi.StringPtrInput // The location the monitor will run from. See Nested locationPrivate blocks below for details. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**. LocationPrivates ScriptMonitorLocationPrivateArrayInput // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**. LocationsPublics pulumi.StringArrayInput // The name for the monitor. Name pulumi.StringPtrInput // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringPtrInput // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntPtrInput // The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`. RuntimeType pulumi.StringPtrInput // The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser. RuntimeTypeVersion pulumi.StringPtrInput // The script that the monitor runs. Script pulumi.StringPtrInput // The programing language that should execute the script. ScriptLanguage pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringPtrInput // The tags that will be associated with the monitor. See Nested tag blocks below for details. // // The `SCRIPTED_BROWSER` monitor type supports the following additional argument: Tags ScriptMonitorTagArrayInput // The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API Type pulumi.StringPtrInput UseUnsupportedLegacyRuntime pulumi.BoolPtrInput }
func (ScriptMonitorState) ElementType ¶
func (ScriptMonitorState) ElementType() reflect.Type
type ScriptMonitorTag ¶
type ScriptMonitorTagArgs ¶
type ScriptMonitorTagArgs struct { // Name of the tag key. Key pulumi.StringInput `pulumi:"key"` // Values associated with the tag key. Values pulumi.StringArrayInput `pulumi:"values"` }
func (ScriptMonitorTagArgs) ElementType ¶
func (ScriptMonitorTagArgs) ElementType() reflect.Type
func (ScriptMonitorTagArgs) ToScriptMonitorTagOutput ¶
func (i ScriptMonitorTagArgs) ToScriptMonitorTagOutput() ScriptMonitorTagOutput
func (ScriptMonitorTagArgs) ToScriptMonitorTagOutputWithContext ¶
func (i ScriptMonitorTagArgs) ToScriptMonitorTagOutputWithContext(ctx context.Context) ScriptMonitorTagOutput
type ScriptMonitorTagArray ¶
type ScriptMonitorTagArray []ScriptMonitorTagInput
func (ScriptMonitorTagArray) ElementType ¶
func (ScriptMonitorTagArray) ElementType() reflect.Type
func (ScriptMonitorTagArray) ToScriptMonitorTagArrayOutput ¶
func (i ScriptMonitorTagArray) ToScriptMonitorTagArrayOutput() ScriptMonitorTagArrayOutput
func (ScriptMonitorTagArray) ToScriptMonitorTagArrayOutputWithContext ¶
func (i ScriptMonitorTagArray) ToScriptMonitorTagArrayOutputWithContext(ctx context.Context) ScriptMonitorTagArrayOutput
type ScriptMonitorTagArrayInput ¶
type ScriptMonitorTagArrayInput interface { pulumi.Input ToScriptMonitorTagArrayOutput() ScriptMonitorTagArrayOutput ToScriptMonitorTagArrayOutputWithContext(context.Context) ScriptMonitorTagArrayOutput }
ScriptMonitorTagArrayInput is an input type that accepts ScriptMonitorTagArray and ScriptMonitorTagArrayOutput values. You can construct a concrete instance of `ScriptMonitorTagArrayInput` via:
ScriptMonitorTagArray{ ScriptMonitorTagArgs{...} }
type ScriptMonitorTagArrayOutput ¶
type ScriptMonitorTagArrayOutput struct{ *pulumi.OutputState }
func (ScriptMonitorTagArrayOutput) ElementType ¶
func (ScriptMonitorTagArrayOutput) ElementType() reflect.Type
func (ScriptMonitorTagArrayOutput) Index ¶
func (o ScriptMonitorTagArrayOutput) Index(i pulumi.IntInput) ScriptMonitorTagOutput
func (ScriptMonitorTagArrayOutput) ToScriptMonitorTagArrayOutput ¶
func (o ScriptMonitorTagArrayOutput) ToScriptMonitorTagArrayOutput() ScriptMonitorTagArrayOutput
func (ScriptMonitorTagArrayOutput) ToScriptMonitorTagArrayOutputWithContext ¶
func (o ScriptMonitorTagArrayOutput) ToScriptMonitorTagArrayOutputWithContext(ctx context.Context) ScriptMonitorTagArrayOutput
type ScriptMonitorTagInput ¶
type ScriptMonitorTagInput interface { pulumi.Input ToScriptMonitorTagOutput() ScriptMonitorTagOutput ToScriptMonitorTagOutputWithContext(context.Context) ScriptMonitorTagOutput }
ScriptMonitorTagInput is an input type that accepts ScriptMonitorTagArgs and ScriptMonitorTagOutput values. You can construct a concrete instance of `ScriptMonitorTagInput` via:
ScriptMonitorTagArgs{...}
type ScriptMonitorTagOutput ¶
type ScriptMonitorTagOutput struct{ *pulumi.OutputState }
func (ScriptMonitorTagOutput) ElementType ¶
func (ScriptMonitorTagOutput) ElementType() reflect.Type
func (ScriptMonitorTagOutput) Key ¶
func (o ScriptMonitorTagOutput) Key() pulumi.StringOutput
Name of the tag key.
func (ScriptMonitorTagOutput) ToScriptMonitorTagOutput ¶
func (o ScriptMonitorTagOutput) ToScriptMonitorTagOutput() ScriptMonitorTagOutput
func (ScriptMonitorTagOutput) ToScriptMonitorTagOutputWithContext ¶
func (o ScriptMonitorTagOutput) ToScriptMonitorTagOutputWithContext(ctx context.Context) ScriptMonitorTagOutput
func (ScriptMonitorTagOutput) Values ¶
func (o ScriptMonitorTagOutput) Values() pulumi.StringArrayOutput
Values associated with the tag key.
type SecureCredential ¶
type SecureCredential struct { pulumi.CustomResourceState // Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used. AccountId pulumi.StringOutput `pulumi:"accountId"` // The secure credential's description. Description pulumi.StringPtrOutput `pulumi:"description"` // The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API. Key pulumi.StringOutput `pulumi:"key"` // The time the secure credential was last updated. LastUpdated pulumi.StringOutput `pulumi:"lastUpdated"` // The secure credential's value. Value pulumi.StringOutput `pulumi:"value"` }
Use this resource to create and manage New Relic Synthetic secure credentials.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.NewSecureCredential(ctx, "foo", &synthetics.SecureCredentialArgs{ Key: pulumi.String("MY_KEY"), Value: pulumi.String("My value"), Description: pulumi.String("My description"), }) if err != nil { return err } return nil }) }
```
## Import
A Synthetics secure credential can be imported using its `key`:
```sh $ pulumi import newrelic:synthetics/secureCredential:SecureCredential foo MY_KEY ```
func GetSecureCredential ¶
func GetSecureCredential(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SecureCredentialState, opts ...pulumi.ResourceOption) (*SecureCredential, error)
GetSecureCredential gets an existing SecureCredential resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSecureCredential ¶
func NewSecureCredential(ctx *pulumi.Context, name string, args *SecureCredentialArgs, opts ...pulumi.ResourceOption) (*SecureCredential, error)
NewSecureCredential registers a new resource with the given unique name, arguments, and options.
func (*SecureCredential) ElementType ¶
func (*SecureCredential) ElementType() reflect.Type
func (*SecureCredential) ToSecureCredentialOutput ¶
func (i *SecureCredential) ToSecureCredentialOutput() SecureCredentialOutput
func (*SecureCredential) ToSecureCredentialOutputWithContext ¶
func (i *SecureCredential) ToSecureCredentialOutputWithContext(ctx context.Context) SecureCredentialOutput
type SecureCredentialArgs ¶
type SecureCredentialArgs struct { // Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used. AccountId pulumi.StringPtrInput // The secure credential's description. Description pulumi.StringPtrInput // The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API. Key pulumi.StringInput // The time the secure credential was last updated. LastUpdated pulumi.StringPtrInput // The secure credential's value. Value pulumi.StringInput }
The set of arguments for constructing a SecureCredential resource.
func (SecureCredentialArgs) ElementType ¶
func (SecureCredentialArgs) ElementType() reflect.Type
type SecureCredentialArray ¶
type SecureCredentialArray []SecureCredentialInput
func (SecureCredentialArray) ElementType ¶
func (SecureCredentialArray) ElementType() reflect.Type
func (SecureCredentialArray) ToSecureCredentialArrayOutput ¶
func (i SecureCredentialArray) ToSecureCredentialArrayOutput() SecureCredentialArrayOutput
func (SecureCredentialArray) ToSecureCredentialArrayOutputWithContext ¶
func (i SecureCredentialArray) ToSecureCredentialArrayOutputWithContext(ctx context.Context) SecureCredentialArrayOutput
type SecureCredentialArrayInput ¶
type SecureCredentialArrayInput interface { pulumi.Input ToSecureCredentialArrayOutput() SecureCredentialArrayOutput ToSecureCredentialArrayOutputWithContext(context.Context) SecureCredentialArrayOutput }
SecureCredentialArrayInput is an input type that accepts SecureCredentialArray and SecureCredentialArrayOutput values. You can construct a concrete instance of `SecureCredentialArrayInput` via:
SecureCredentialArray{ SecureCredentialArgs{...} }
type SecureCredentialArrayOutput ¶
type SecureCredentialArrayOutput struct{ *pulumi.OutputState }
func (SecureCredentialArrayOutput) ElementType ¶
func (SecureCredentialArrayOutput) ElementType() reflect.Type
func (SecureCredentialArrayOutput) Index ¶
func (o SecureCredentialArrayOutput) Index(i pulumi.IntInput) SecureCredentialOutput
func (SecureCredentialArrayOutput) ToSecureCredentialArrayOutput ¶
func (o SecureCredentialArrayOutput) ToSecureCredentialArrayOutput() SecureCredentialArrayOutput
func (SecureCredentialArrayOutput) ToSecureCredentialArrayOutputWithContext ¶
func (o SecureCredentialArrayOutput) ToSecureCredentialArrayOutputWithContext(ctx context.Context) SecureCredentialArrayOutput
type SecureCredentialInput ¶
type SecureCredentialInput interface { pulumi.Input ToSecureCredentialOutput() SecureCredentialOutput ToSecureCredentialOutputWithContext(ctx context.Context) SecureCredentialOutput }
type SecureCredentialMap ¶
type SecureCredentialMap map[string]SecureCredentialInput
func (SecureCredentialMap) ElementType ¶
func (SecureCredentialMap) ElementType() reflect.Type
func (SecureCredentialMap) ToSecureCredentialMapOutput ¶
func (i SecureCredentialMap) ToSecureCredentialMapOutput() SecureCredentialMapOutput
func (SecureCredentialMap) ToSecureCredentialMapOutputWithContext ¶
func (i SecureCredentialMap) ToSecureCredentialMapOutputWithContext(ctx context.Context) SecureCredentialMapOutput
type SecureCredentialMapInput ¶
type SecureCredentialMapInput interface { pulumi.Input ToSecureCredentialMapOutput() SecureCredentialMapOutput ToSecureCredentialMapOutputWithContext(context.Context) SecureCredentialMapOutput }
SecureCredentialMapInput is an input type that accepts SecureCredentialMap and SecureCredentialMapOutput values. You can construct a concrete instance of `SecureCredentialMapInput` via:
SecureCredentialMap{ "key": SecureCredentialArgs{...} }
type SecureCredentialMapOutput ¶
type SecureCredentialMapOutput struct{ *pulumi.OutputState }
func (SecureCredentialMapOutput) ElementType ¶
func (SecureCredentialMapOutput) ElementType() reflect.Type
func (SecureCredentialMapOutput) MapIndex ¶
func (o SecureCredentialMapOutput) MapIndex(k pulumi.StringInput) SecureCredentialOutput
func (SecureCredentialMapOutput) ToSecureCredentialMapOutput ¶
func (o SecureCredentialMapOutput) ToSecureCredentialMapOutput() SecureCredentialMapOutput
func (SecureCredentialMapOutput) ToSecureCredentialMapOutputWithContext ¶
func (o SecureCredentialMapOutput) ToSecureCredentialMapOutputWithContext(ctx context.Context) SecureCredentialMapOutput
type SecureCredentialOutput ¶
type SecureCredentialOutput struct{ *pulumi.OutputState }
func (SecureCredentialOutput) AccountId ¶
func (o SecureCredentialOutput) AccountId() pulumi.StringOutput
Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used.
func (SecureCredentialOutput) Description ¶
func (o SecureCredentialOutput) Description() pulumi.StringPtrOutput
The secure credential's description.
func (SecureCredentialOutput) ElementType ¶
func (SecureCredentialOutput) ElementType() reflect.Type
func (SecureCredentialOutput) Key ¶
func (o SecureCredentialOutput) Key() pulumi.StringOutput
The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
func (SecureCredentialOutput) LastUpdated ¶
func (o SecureCredentialOutput) LastUpdated() pulumi.StringOutput
The time the secure credential was last updated.
func (SecureCredentialOutput) ToSecureCredentialOutput ¶
func (o SecureCredentialOutput) ToSecureCredentialOutput() SecureCredentialOutput
func (SecureCredentialOutput) ToSecureCredentialOutputWithContext ¶
func (o SecureCredentialOutput) ToSecureCredentialOutputWithContext(ctx context.Context) SecureCredentialOutput
func (SecureCredentialOutput) Value ¶
func (o SecureCredentialOutput) Value() pulumi.StringOutput
The secure credential's value.
type SecureCredentialState ¶
type SecureCredentialState struct { // Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used. AccountId pulumi.StringPtrInput // The secure credential's description. Description pulumi.StringPtrInput // The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API. Key pulumi.StringPtrInput // The time the secure credential was last updated. LastUpdated pulumi.StringPtrInput // The secure credential's value. Value pulumi.StringPtrInput }
func (SecureCredentialState) ElementType ¶
func (SecureCredentialState) ElementType() reflect.Type
type StepMonitor ¶
type StepMonitor struct { pulumi.CustomResourceState // The account in which the Synthetics monitor will be created. AccountId pulumi.StringOutput `pulumi:"accountId"` // The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`. Browsers pulumi.StringArrayOutput `pulumi:"browsers"` // The multiple devices list on which synthetic monitors will run. Valid values are array of DESKTOP, MOBILE_LANDSCAPE, // MOBILE_PORTRAIT, TABLET_LANDSCAPE and TABLET_PORTRAIT Devices pulumi.StringArrayOutput `pulumi:"devices"` // Capture a screenshot during job execution. EnableScreenshotOnFailureAndScript pulumi.BoolPtrOutput `pulumi:"enableScreenshotOnFailureAndScript"` // The unique entity identifier of the monitor in New Relic. Guid pulumi.StringOutput `pulumi:"guid"` // The location the monitor will run from. At least one of `locationsPublic` or `locationPrivate` is required. See Nested locationsPrivate blocks below for details. LocationPrivates StepMonitorLocationPrivateArrayOutput `pulumi:"locationPrivates"` // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayOutput `pulumi:"locationsPublics"` // The name for the monitor. Name pulumi.StringOutput `pulumi:"name"` // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringOutput `pulumi:"period"` // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"` // The runtime that the monitor will use to run jobs. RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"` // The specific version of the runtime type selected. RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"` // The monitor status (ENABLED or DISABLED). Status pulumi.StringOutput `pulumi:"status"` // The steps that make up the script the monitor will run. See Nested steps blocks below for details. Steps StepMonitorStepArrayOutput `pulumi:"steps"` // The tags that will be associated with the monitor. See Nested tag blocks below for details. Tags StepMonitorTagArrayOutput `pulumi:"tags"` UseUnsupportedLegacyRuntime pulumi.BoolPtrOutput `pulumi:"useUnsupportedLegacyRuntime"` }
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := synthetics.NewStepMonitor(ctx, "foo", &synthetics.StepMonitorArgs{ Name: pulumi.String("Sample Step Monitor"), EnableScreenshotOnFailureAndScript: pulumi.Bool(true), LocationsPublics: pulumi.StringArray{ pulumi.String("US_EAST_1"), pulumi.String("US_EAST_2"), }, Period: pulumi.String("EVERY_6_HOURS"), Status: pulumi.String("ENABLED"), RuntimeType: pulumi.String("CHROME_BROWSER"), RuntimeTypeVersion: pulumi.String("100"), Devices: pulumi.StringArray{ pulumi.String("DESKTOP"), pulumi.String("MOBILE_PORTRAIT"), pulumi.String("TABLET_LANDSCAPE"), }, Browsers: pulumi.StringArray{ pulumi.String("CHROME"), }, Steps: synthetics.StepMonitorStepArray{ &synthetics.StepMonitorStepArgs{ Ordinal: pulumi.Int(0), Type: pulumi.String("NAVIGATE"), Values: pulumi.StringArray{ pulumi.String("https://www.newrelic.com"), }, }, }, Tags: synthetics.StepMonitorTagArray{ &synthetics.StepMonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
``` See additional examples.
## Additional Examples
### Create a monitor with a private location
The below example shows how you can define a private location and attach it to a monitor.
> **NOTE:** It can take up to 10 minutes for a private location to become available.
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { foo, err := synthetics.NewPrivateLocation(ctx, "foo", &synthetics.PrivateLocationArgs{ Name: pulumi.String("Sample Private Location"), Description: pulumi.String("Sample Private Location Description"), VerifiedScriptExecution: pulumi.Bool(true), }) if err != nil { return err } _, err = synthetics.NewStepMonitor(ctx, "foo", &synthetics.StepMonitorArgs{ Name: pulumi.String("Sample Step Monitor"), Period: pulumi.String("EVERY_6_HOURS"), Status: pulumi.String("ENABLED"), RuntimeType: pulumi.String("CHROME_BROWSER"), RuntimeTypeVersion: pulumi.String("100"), Devices: pulumi.StringArray{ pulumi.String("DESKTOP"), pulumi.String("MOBILE_PORTRAIT"), pulumi.String("TABLET_LANDSCAPE"), }, Browsers: pulumi.StringArray{ pulumi.String("CHROME"), }, LocationPrivates: synthetics.StepMonitorLocationPrivateArray{ &synthetics.StepMonitorLocationPrivateArgs{ Guid: foo.ID(), VsePassword: pulumi.String("secret"), }, }, Steps: synthetics.StepMonitorStepArray{ &synthetics.StepMonitorStepArgs{ Ordinal: pulumi.Int(0), Type: pulumi.String("NAVIGATE"), Values: pulumi.StringArray{ pulumi.String("https://google.com"), }, }, }, Tags: synthetics.StepMonitorTagArray{ &synthetics.StepMonitorTagArgs{ Key: pulumi.String("some_key"), Values: pulumi.StringArray{ pulumi.String("some_value"), }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
A step monitor can be imported using its GUID, using the following command.
bash
```sh $ pulumi import newrelic:synthetics/stepMonitor:StepMonitor monitor <guid> ```
func GetStepMonitor ¶
func GetStepMonitor(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StepMonitorState, opts ...pulumi.ResourceOption) (*StepMonitor, error)
GetStepMonitor gets an existing StepMonitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewStepMonitor ¶
func NewStepMonitor(ctx *pulumi.Context, name string, args *StepMonitorArgs, opts ...pulumi.ResourceOption) (*StepMonitor, error)
NewStepMonitor registers a new resource with the given unique name, arguments, and options.
func (*StepMonitor) ElementType ¶
func (*StepMonitor) ElementType() reflect.Type
func (*StepMonitor) ToStepMonitorOutput ¶
func (i *StepMonitor) ToStepMonitorOutput() StepMonitorOutput
func (*StepMonitor) ToStepMonitorOutputWithContext ¶
func (i *StepMonitor) ToStepMonitorOutputWithContext(ctx context.Context) StepMonitorOutput
type StepMonitorArgs ¶
type StepMonitorArgs struct { // The account in which the Synthetics monitor will be created. AccountId pulumi.StringPtrInput // The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`. Browsers pulumi.StringArrayInput // The multiple devices list on which synthetic monitors will run. Valid values are array of DESKTOP, MOBILE_LANDSCAPE, // MOBILE_PORTRAIT, TABLET_LANDSCAPE and TABLET_PORTRAIT Devices pulumi.StringArrayInput // Capture a screenshot during job execution. EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput // The location the monitor will run from. At least one of `locationsPublic` or `locationPrivate` is required. See Nested locationsPrivate blocks below for details. LocationPrivates StepMonitorLocationPrivateArrayInput // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayInput // The name for the monitor. Name pulumi.StringPtrInput // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringInput // The runtime that the monitor will use to run jobs. RuntimeType pulumi.StringPtrInput // The specific version of the runtime type selected. RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringInput // The steps that make up the script the monitor will run. See Nested steps blocks below for details. Steps StepMonitorStepArrayInput // The tags that will be associated with the monitor. See Nested tag blocks below for details. Tags StepMonitorTagArrayInput UseUnsupportedLegacyRuntime pulumi.BoolPtrInput }
The set of arguments for constructing a StepMonitor resource.
func (StepMonitorArgs) ElementType ¶
func (StepMonitorArgs) ElementType() reflect.Type
type StepMonitorArray ¶
type StepMonitorArray []StepMonitorInput
func (StepMonitorArray) ElementType ¶
func (StepMonitorArray) ElementType() reflect.Type
func (StepMonitorArray) ToStepMonitorArrayOutput ¶
func (i StepMonitorArray) ToStepMonitorArrayOutput() StepMonitorArrayOutput
func (StepMonitorArray) ToStepMonitorArrayOutputWithContext ¶
func (i StepMonitorArray) ToStepMonitorArrayOutputWithContext(ctx context.Context) StepMonitorArrayOutput
type StepMonitorArrayInput ¶
type StepMonitorArrayInput interface { pulumi.Input ToStepMonitorArrayOutput() StepMonitorArrayOutput ToStepMonitorArrayOutputWithContext(context.Context) StepMonitorArrayOutput }
StepMonitorArrayInput is an input type that accepts StepMonitorArray and StepMonitorArrayOutput values. You can construct a concrete instance of `StepMonitorArrayInput` via:
StepMonitorArray{ StepMonitorArgs{...} }
type StepMonitorArrayOutput ¶
type StepMonitorArrayOutput struct{ *pulumi.OutputState }
func (StepMonitorArrayOutput) ElementType ¶
func (StepMonitorArrayOutput) ElementType() reflect.Type
func (StepMonitorArrayOutput) Index ¶
func (o StepMonitorArrayOutput) Index(i pulumi.IntInput) StepMonitorOutput
func (StepMonitorArrayOutput) ToStepMonitorArrayOutput ¶
func (o StepMonitorArrayOutput) ToStepMonitorArrayOutput() StepMonitorArrayOutput
func (StepMonitorArrayOutput) ToStepMonitorArrayOutputWithContext ¶
func (o StepMonitorArrayOutput) ToStepMonitorArrayOutputWithContext(ctx context.Context) StepMonitorArrayOutput
type StepMonitorInput ¶
type StepMonitorInput interface { pulumi.Input ToStepMonitorOutput() StepMonitorOutput ToStepMonitorOutputWithContext(ctx context.Context) StepMonitorOutput }
type StepMonitorLocationPrivate ¶
type StepMonitorLocationPrivate struct { // The unique identifier for the Synthetics private location in New Relic. Guid string `pulumi:"guid"` // The location's Verified Script Execution password, only necessary if Verified Script Execution is enabled for the location. VsePassword *string `pulumi:"vsePassword"` }
type StepMonitorLocationPrivateArgs ¶
type StepMonitorLocationPrivateArgs struct { // The unique identifier for the Synthetics private location in New Relic. Guid pulumi.StringInput `pulumi:"guid"` // The location's Verified Script Execution password, only necessary if Verified Script Execution is enabled for the location. VsePassword pulumi.StringPtrInput `pulumi:"vsePassword"` }
func (StepMonitorLocationPrivateArgs) ElementType ¶
func (StepMonitorLocationPrivateArgs) ElementType() reflect.Type
func (StepMonitorLocationPrivateArgs) ToStepMonitorLocationPrivateOutput ¶
func (i StepMonitorLocationPrivateArgs) ToStepMonitorLocationPrivateOutput() StepMonitorLocationPrivateOutput
func (StepMonitorLocationPrivateArgs) ToStepMonitorLocationPrivateOutputWithContext ¶
func (i StepMonitorLocationPrivateArgs) ToStepMonitorLocationPrivateOutputWithContext(ctx context.Context) StepMonitorLocationPrivateOutput
type StepMonitorLocationPrivateArray ¶
type StepMonitorLocationPrivateArray []StepMonitorLocationPrivateInput
func (StepMonitorLocationPrivateArray) ElementType ¶
func (StepMonitorLocationPrivateArray) ElementType() reflect.Type
func (StepMonitorLocationPrivateArray) ToStepMonitorLocationPrivateArrayOutput ¶
func (i StepMonitorLocationPrivateArray) ToStepMonitorLocationPrivateArrayOutput() StepMonitorLocationPrivateArrayOutput
func (StepMonitorLocationPrivateArray) ToStepMonitorLocationPrivateArrayOutputWithContext ¶
func (i StepMonitorLocationPrivateArray) ToStepMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) StepMonitorLocationPrivateArrayOutput
type StepMonitorLocationPrivateArrayInput ¶
type StepMonitorLocationPrivateArrayInput interface { pulumi.Input ToStepMonitorLocationPrivateArrayOutput() StepMonitorLocationPrivateArrayOutput ToStepMonitorLocationPrivateArrayOutputWithContext(context.Context) StepMonitorLocationPrivateArrayOutput }
StepMonitorLocationPrivateArrayInput is an input type that accepts StepMonitorLocationPrivateArray and StepMonitorLocationPrivateArrayOutput values. You can construct a concrete instance of `StepMonitorLocationPrivateArrayInput` via:
StepMonitorLocationPrivateArray{ StepMonitorLocationPrivateArgs{...} }
type StepMonitorLocationPrivateArrayOutput ¶
type StepMonitorLocationPrivateArrayOutput struct{ *pulumi.OutputState }
func (StepMonitorLocationPrivateArrayOutput) ElementType ¶
func (StepMonitorLocationPrivateArrayOutput) ElementType() reflect.Type
func (StepMonitorLocationPrivateArrayOutput) Index ¶
func (o StepMonitorLocationPrivateArrayOutput) Index(i pulumi.IntInput) StepMonitorLocationPrivateOutput
func (StepMonitorLocationPrivateArrayOutput) ToStepMonitorLocationPrivateArrayOutput ¶
func (o StepMonitorLocationPrivateArrayOutput) ToStepMonitorLocationPrivateArrayOutput() StepMonitorLocationPrivateArrayOutput
func (StepMonitorLocationPrivateArrayOutput) ToStepMonitorLocationPrivateArrayOutputWithContext ¶
func (o StepMonitorLocationPrivateArrayOutput) ToStepMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) StepMonitorLocationPrivateArrayOutput
type StepMonitorLocationPrivateInput ¶
type StepMonitorLocationPrivateInput interface { pulumi.Input ToStepMonitorLocationPrivateOutput() StepMonitorLocationPrivateOutput ToStepMonitorLocationPrivateOutputWithContext(context.Context) StepMonitorLocationPrivateOutput }
StepMonitorLocationPrivateInput is an input type that accepts StepMonitorLocationPrivateArgs and StepMonitorLocationPrivateOutput values. You can construct a concrete instance of `StepMonitorLocationPrivateInput` via:
StepMonitorLocationPrivateArgs{...}
type StepMonitorLocationPrivateOutput ¶
type StepMonitorLocationPrivateOutput struct{ *pulumi.OutputState }
func (StepMonitorLocationPrivateOutput) ElementType ¶
func (StepMonitorLocationPrivateOutput) ElementType() reflect.Type
func (StepMonitorLocationPrivateOutput) Guid ¶
func (o StepMonitorLocationPrivateOutput) Guid() pulumi.StringOutput
The unique identifier for the Synthetics private location in New Relic.
func (StepMonitorLocationPrivateOutput) ToStepMonitorLocationPrivateOutput ¶
func (o StepMonitorLocationPrivateOutput) ToStepMonitorLocationPrivateOutput() StepMonitorLocationPrivateOutput
func (StepMonitorLocationPrivateOutput) ToStepMonitorLocationPrivateOutputWithContext ¶
func (o StepMonitorLocationPrivateOutput) ToStepMonitorLocationPrivateOutputWithContext(ctx context.Context) StepMonitorLocationPrivateOutput
func (StepMonitorLocationPrivateOutput) VsePassword ¶
func (o StepMonitorLocationPrivateOutput) VsePassword() pulumi.StringPtrOutput
The location's Verified Script Execution password, only necessary if Verified Script Execution is enabled for the location.
type StepMonitorMap ¶
type StepMonitorMap map[string]StepMonitorInput
func (StepMonitorMap) ElementType ¶
func (StepMonitorMap) ElementType() reflect.Type
func (StepMonitorMap) ToStepMonitorMapOutput ¶
func (i StepMonitorMap) ToStepMonitorMapOutput() StepMonitorMapOutput
func (StepMonitorMap) ToStepMonitorMapOutputWithContext ¶
func (i StepMonitorMap) ToStepMonitorMapOutputWithContext(ctx context.Context) StepMonitorMapOutput
type StepMonitorMapInput ¶
type StepMonitorMapInput interface { pulumi.Input ToStepMonitorMapOutput() StepMonitorMapOutput ToStepMonitorMapOutputWithContext(context.Context) StepMonitorMapOutput }
StepMonitorMapInput is an input type that accepts StepMonitorMap and StepMonitorMapOutput values. You can construct a concrete instance of `StepMonitorMapInput` via:
StepMonitorMap{ "key": StepMonitorArgs{...} }
type StepMonitorMapOutput ¶
type StepMonitorMapOutput struct{ *pulumi.OutputState }
func (StepMonitorMapOutput) ElementType ¶
func (StepMonitorMapOutput) ElementType() reflect.Type
func (StepMonitorMapOutput) MapIndex ¶
func (o StepMonitorMapOutput) MapIndex(k pulumi.StringInput) StepMonitorOutput
func (StepMonitorMapOutput) ToStepMonitorMapOutput ¶
func (o StepMonitorMapOutput) ToStepMonitorMapOutput() StepMonitorMapOutput
func (StepMonitorMapOutput) ToStepMonitorMapOutputWithContext ¶
func (o StepMonitorMapOutput) ToStepMonitorMapOutputWithContext(ctx context.Context) StepMonitorMapOutput
type StepMonitorOutput ¶
type StepMonitorOutput struct{ *pulumi.OutputState }
func (StepMonitorOutput) AccountId ¶
func (o StepMonitorOutput) AccountId() pulumi.StringOutput
The account in which the Synthetics monitor will be created.
func (StepMonitorOutput) Browsers ¶ added in v5.32.0
func (o StepMonitorOutput) Browsers() pulumi.StringArrayOutput
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
func (StepMonitorOutput) Devices ¶ added in v5.32.0
func (o StepMonitorOutput) Devices() pulumi.StringArrayOutput
The multiple devices list on which synthetic monitors will run. Valid values are array of DESKTOP, MOBILE_LANDSCAPE, MOBILE_PORTRAIT, TABLET_LANDSCAPE and TABLET_PORTRAIT
func (StepMonitorOutput) ElementType ¶
func (StepMonitorOutput) ElementType() reflect.Type
func (StepMonitorOutput) EnableScreenshotOnFailureAndScript ¶
func (o StepMonitorOutput) EnableScreenshotOnFailureAndScript() pulumi.BoolPtrOutput
Capture a screenshot during job execution.
func (StepMonitorOutput) Guid ¶
func (o StepMonitorOutput) Guid() pulumi.StringOutput
The unique entity identifier of the monitor in New Relic.
func (StepMonitorOutput) LocationPrivates ¶
func (o StepMonitorOutput) LocationPrivates() StepMonitorLocationPrivateArrayOutput
The location the monitor will run from. At least one of `locationsPublic` or `locationPrivate` is required. See Nested locationsPrivate blocks below for details.
func (StepMonitorOutput) LocationsPublics ¶
func (o StepMonitorOutput) LocationsPublics() pulumi.StringArrayOutput
The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
func (StepMonitorOutput) Name ¶
func (o StepMonitorOutput) Name() pulumi.StringOutput
The name for the monitor.
func (StepMonitorOutput) Period ¶
func (o StepMonitorOutput) Period() pulumi.StringOutput
The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
func (StepMonitorOutput) PeriodInMinutes ¶ added in v5.10.0
func (o StepMonitorOutput) PeriodInMinutes() pulumi.IntOutput
The interval in minutes at which Synthetic monitor should run.
func (StepMonitorOutput) RuntimeType ¶ added in v5.22.0
func (o StepMonitorOutput) RuntimeType() pulumi.StringPtrOutput
The runtime that the monitor will use to run jobs.
func (StepMonitorOutput) RuntimeTypeVersion ¶ added in v5.22.0
func (o StepMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput
The specific version of the runtime type selected.
func (StepMonitorOutput) Status ¶
func (o StepMonitorOutput) Status() pulumi.StringOutput
The monitor status (ENABLED or DISABLED).
func (StepMonitorOutput) Steps ¶
func (o StepMonitorOutput) Steps() StepMonitorStepArrayOutput
The steps that make up the script the monitor will run. See Nested steps blocks below for details.
func (StepMonitorOutput) Tags ¶
func (o StepMonitorOutput) Tags() StepMonitorTagArrayOutput
The tags that will be associated with the monitor. See Nested tag blocks below for details.
func (StepMonitorOutput) ToStepMonitorOutput ¶
func (o StepMonitorOutput) ToStepMonitorOutput() StepMonitorOutput
func (StepMonitorOutput) ToStepMonitorOutputWithContext ¶
func (o StepMonitorOutput) ToStepMonitorOutputWithContext(ctx context.Context) StepMonitorOutput
func (StepMonitorOutput) UseUnsupportedLegacyRuntime ¶ added in v5.30.0
func (o StepMonitorOutput) UseUnsupportedLegacyRuntime() pulumi.BoolPtrOutput
type StepMonitorState ¶
type StepMonitorState struct { // The account in which the Synthetics monitor will be created. AccountId pulumi.StringPtrInput // The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`. Browsers pulumi.StringArrayInput // The multiple devices list on which synthetic monitors will run. Valid values are array of DESKTOP, MOBILE_LANDSCAPE, // MOBILE_PORTRAIT, TABLET_LANDSCAPE and TABLET_PORTRAIT Devices pulumi.StringArrayInput // Capture a screenshot during job execution. EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput // The unique entity identifier of the monitor in New Relic. Guid pulumi.StringPtrInput // The location the monitor will run from. At least one of `locationsPublic` or `locationPrivate` is required. See Nested locationsPrivate blocks below for details. LocationPrivates StepMonitorLocationPrivateArrayInput // The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required. LocationsPublics pulumi.StringArrayInput // The name for the monitor. Name pulumi.StringPtrInput // The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`. Period pulumi.StringPtrInput // The interval in minutes at which Synthetic monitor should run. PeriodInMinutes pulumi.IntPtrInput // The runtime that the monitor will use to run jobs. RuntimeType pulumi.StringPtrInput // The specific version of the runtime type selected. RuntimeTypeVersion pulumi.StringPtrInput // The monitor status (ENABLED or DISABLED). Status pulumi.StringPtrInput // The steps that make up the script the monitor will run. See Nested steps blocks below for details. Steps StepMonitorStepArrayInput // The tags that will be associated with the monitor. See Nested tag blocks below for details. Tags StepMonitorTagArrayInput UseUnsupportedLegacyRuntime pulumi.BoolPtrInput }
func (StepMonitorState) ElementType ¶
func (StepMonitorState) ElementType() reflect.Type
type StepMonitorStep ¶
type StepMonitorStep struct { // The position of the step within the script ranging from 0-100. Ordinal int `pulumi:"ordinal"` // Name of the tag key. Valid values are `ASSERT_ELEMENT`, `ASSERT_MODAL`, `ASSERT_TEXT`, `ASSERT_TITLE`, `CLICK_ELEMENT`, `DISMISS_MODAL`, `DOUBLE_CLICK_ELEMENT`, `HOVER_ELEMENT`, `NAVIGATE`, `SECURE_TEXT_ENTRY`, `SELECT_ELEMENT`, `TEXT_ENTRY`. Type string `pulumi:"type"` // The metadata values related to the step. Values []string `pulumi:"values"` }
type StepMonitorStepArgs ¶
type StepMonitorStepArgs struct { // The position of the step within the script ranging from 0-100. Ordinal pulumi.IntInput `pulumi:"ordinal"` // Name of the tag key. Valid values are `ASSERT_ELEMENT`, `ASSERT_MODAL`, `ASSERT_TEXT`, `ASSERT_TITLE`, `CLICK_ELEMENT`, `DISMISS_MODAL`, `DOUBLE_CLICK_ELEMENT`, `HOVER_ELEMENT`, `NAVIGATE`, `SECURE_TEXT_ENTRY`, `SELECT_ELEMENT`, `TEXT_ENTRY`. Type pulumi.StringInput `pulumi:"type"` // The metadata values related to the step. Values pulumi.StringArrayInput `pulumi:"values"` }
func (StepMonitorStepArgs) ElementType ¶
func (StepMonitorStepArgs) ElementType() reflect.Type
func (StepMonitorStepArgs) ToStepMonitorStepOutput ¶
func (i StepMonitorStepArgs) ToStepMonitorStepOutput() StepMonitorStepOutput
func (StepMonitorStepArgs) ToStepMonitorStepOutputWithContext ¶
func (i StepMonitorStepArgs) ToStepMonitorStepOutputWithContext(ctx context.Context) StepMonitorStepOutput
type StepMonitorStepArray ¶
type StepMonitorStepArray []StepMonitorStepInput
func (StepMonitorStepArray) ElementType ¶
func (StepMonitorStepArray) ElementType() reflect.Type
func (StepMonitorStepArray) ToStepMonitorStepArrayOutput ¶
func (i StepMonitorStepArray) ToStepMonitorStepArrayOutput() StepMonitorStepArrayOutput
func (StepMonitorStepArray) ToStepMonitorStepArrayOutputWithContext ¶
func (i StepMonitorStepArray) ToStepMonitorStepArrayOutputWithContext(ctx context.Context) StepMonitorStepArrayOutput
type StepMonitorStepArrayInput ¶
type StepMonitorStepArrayInput interface { pulumi.Input ToStepMonitorStepArrayOutput() StepMonitorStepArrayOutput ToStepMonitorStepArrayOutputWithContext(context.Context) StepMonitorStepArrayOutput }
StepMonitorStepArrayInput is an input type that accepts StepMonitorStepArray and StepMonitorStepArrayOutput values. You can construct a concrete instance of `StepMonitorStepArrayInput` via:
StepMonitorStepArray{ StepMonitorStepArgs{...} }
type StepMonitorStepArrayOutput ¶
type StepMonitorStepArrayOutput struct{ *pulumi.OutputState }
func (StepMonitorStepArrayOutput) ElementType ¶
func (StepMonitorStepArrayOutput) ElementType() reflect.Type
func (StepMonitorStepArrayOutput) Index ¶
func (o StepMonitorStepArrayOutput) Index(i pulumi.IntInput) StepMonitorStepOutput
func (StepMonitorStepArrayOutput) ToStepMonitorStepArrayOutput ¶
func (o StepMonitorStepArrayOutput) ToStepMonitorStepArrayOutput() StepMonitorStepArrayOutput
func (StepMonitorStepArrayOutput) ToStepMonitorStepArrayOutputWithContext ¶
func (o StepMonitorStepArrayOutput) ToStepMonitorStepArrayOutputWithContext(ctx context.Context) StepMonitorStepArrayOutput
type StepMonitorStepInput ¶
type StepMonitorStepInput interface { pulumi.Input ToStepMonitorStepOutput() StepMonitorStepOutput ToStepMonitorStepOutputWithContext(context.Context) StepMonitorStepOutput }
StepMonitorStepInput is an input type that accepts StepMonitorStepArgs and StepMonitorStepOutput values. You can construct a concrete instance of `StepMonitorStepInput` via:
StepMonitorStepArgs{...}
type StepMonitorStepOutput ¶
type StepMonitorStepOutput struct{ *pulumi.OutputState }
func (StepMonitorStepOutput) ElementType ¶
func (StepMonitorStepOutput) ElementType() reflect.Type
func (StepMonitorStepOutput) Ordinal ¶
func (o StepMonitorStepOutput) Ordinal() pulumi.IntOutput
The position of the step within the script ranging from 0-100.
func (StepMonitorStepOutput) ToStepMonitorStepOutput ¶
func (o StepMonitorStepOutput) ToStepMonitorStepOutput() StepMonitorStepOutput
func (StepMonitorStepOutput) ToStepMonitorStepOutputWithContext ¶
func (o StepMonitorStepOutput) ToStepMonitorStepOutputWithContext(ctx context.Context) StepMonitorStepOutput
func (StepMonitorStepOutput) Type ¶
func (o StepMonitorStepOutput) Type() pulumi.StringOutput
Name of the tag key. Valid values are `ASSERT_ELEMENT`, `ASSERT_MODAL`, `ASSERT_TEXT`, `ASSERT_TITLE`, `CLICK_ELEMENT`, `DISMISS_MODAL`, `DOUBLE_CLICK_ELEMENT`, `HOVER_ELEMENT`, `NAVIGATE`, `SECURE_TEXT_ENTRY`, `SELECT_ELEMENT`, `TEXT_ENTRY`.
func (StepMonitorStepOutput) Values ¶
func (o StepMonitorStepOutput) Values() pulumi.StringArrayOutput
The metadata values related to the step.
type StepMonitorTag ¶
type StepMonitorTagArgs ¶
type StepMonitorTagArgs struct { // Name of the tag key. Key pulumi.StringInput `pulumi:"key"` // Values associated with the tag key. Values pulumi.StringArrayInput `pulumi:"values"` }
func (StepMonitorTagArgs) ElementType ¶
func (StepMonitorTagArgs) ElementType() reflect.Type
func (StepMonitorTagArgs) ToStepMonitorTagOutput ¶
func (i StepMonitorTagArgs) ToStepMonitorTagOutput() StepMonitorTagOutput
func (StepMonitorTagArgs) ToStepMonitorTagOutputWithContext ¶
func (i StepMonitorTagArgs) ToStepMonitorTagOutputWithContext(ctx context.Context) StepMonitorTagOutput
type StepMonitorTagArray ¶
type StepMonitorTagArray []StepMonitorTagInput
func (StepMonitorTagArray) ElementType ¶
func (StepMonitorTagArray) ElementType() reflect.Type
func (StepMonitorTagArray) ToStepMonitorTagArrayOutput ¶
func (i StepMonitorTagArray) ToStepMonitorTagArrayOutput() StepMonitorTagArrayOutput
func (StepMonitorTagArray) ToStepMonitorTagArrayOutputWithContext ¶
func (i StepMonitorTagArray) ToStepMonitorTagArrayOutputWithContext(ctx context.Context) StepMonitorTagArrayOutput
type StepMonitorTagArrayInput ¶
type StepMonitorTagArrayInput interface { pulumi.Input ToStepMonitorTagArrayOutput() StepMonitorTagArrayOutput ToStepMonitorTagArrayOutputWithContext(context.Context) StepMonitorTagArrayOutput }
StepMonitorTagArrayInput is an input type that accepts StepMonitorTagArray and StepMonitorTagArrayOutput values. You can construct a concrete instance of `StepMonitorTagArrayInput` via:
StepMonitorTagArray{ StepMonitorTagArgs{...} }
type StepMonitorTagArrayOutput ¶
type StepMonitorTagArrayOutput struct{ *pulumi.OutputState }
func (StepMonitorTagArrayOutput) ElementType ¶
func (StepMonitorTagArrayOutput) ElementType() reflect.Type
func (StepMonitorTagArrayOutput) Index ¶
func (o StepMonitorTagArrayOutput) Index(i pulumi.IntInput) StepMonitorTagOutput
func (StepMonitorTagArrayOutput) ToStepMonitorTagArrayOutput ¶
func (o StepMonitorTagArrayOutput) ToStepMonitorTagArrayOutput() StepMonitorTagArrayOutput
func (StepMonitorTagArrayOutput) ToStepMonitorTagArrayOutputWithContext ¶
func (o StepMonitorTagArrayOutput) ToStepMonitorTagArrayOutputWithContext(ctx context.Context) StepMonitorTagArrayOutput
type StepMonitorTagInput ¶
type StepMonitorTagInput interface { pulumi.Input ToStepMonitorTagOutput() StepMonitorTagOutput ToStepMonitorTagOutputWithContext(context.Context) StepMonitorTagOutput }
StepMonitorTagInput is an input type that accepts StepMonitorTagArgs and StepMonitorTagOutput values. You can construct a concrete instance of `StepMonitorTagInput` via:
StepMonitorTagArgs{...}
type StepMonitorTagOutput ¶
type StepMonitorTagOutput struct{ *pulumi.OutputState }
func (StepMonitorTagOutput) ElementType ¶
func (StepMonitorTagOutput) ElementType() reflect.Type
func (StepMonitorTagOutput) Key ¶
func (o StepMonitorTagOutput) Key() pulumi.StringOutput
Name of the tag key.
func (StepMonitorTagOutput) ToStepMonitorTagOutput ¶
func (o StepMonitorTagOutput) ToStepMonitorTagOutput() StepMonitorTagOutput
func (StepMonitorTagOutput) ToStepMonitorTagOutputWithContext ¶
func (o StepMonitorTagOutput) ToStepMonitorTagOutputWithContext(ctx context.Context) StepMonitorTagOutput
func (StepMonitorTagOutput) Values ¶
func (o StepMonitorTagOutput) Values() pulumi.StringArrayOutput
Values associated with the tag key.