Documentation ¶
Index ¶
- type AlarmRule
- type AlarmRuleArgs
- type AlarmRuleArray
- type AlarmRuleArrayInput
- type AlarmRuleArrayOutput
- func (AlarmRuleArrayOutput) ElementType() reflect.Type
- func (o AlarmRuleArrayOutput) Index(i pulumi.IntInput) AlarmRuleOutput
- func (o AlarmRuleArrayOutput) ToAlarmRuleArrayOutput() AlarmRuleArrayOutput
- func (o AlarmRuleArrayOutput) ToAlarmRuleArrayOutputWithContext(ctx context.Context) AlarmRuleArrayOutput
- type AlarmRuleDimension
- type AlarmRuleDimensionArgs
- type AlarmRuleDimensionArray
- type AlarmRuleDimensionArrayInput
- type AlarmRuleDimensionArrayOutput
- func (AlarmRuleDimensionArrayOutput) ElementType() reflect.Type
- func (o AlarmRuleDimensionArrayOutput) Index(i pulumi.IntInput) AlarmRuleDimensionOutput
- func (o AlarmRuleDimensionArrayOutput) ToAlarmRuleDimensionArrayOutput() AlarmRuleDimensionArrayOutput
- func (o AlarmRuleDimensionArrayOutput) ToAlarmRuleDimensionArrayOutputWithContext(ctx context.Context) AlarmRuleDimensionArrayOutput
- type AlarmRuleDimensionInput
- type AlarmRuleDimensionOutput
- func (AlarmRuleDimensionOutput) ElementType() reflect.Type
- func (o AlarmRuleDimensionOutput) Name() pulumi.StringOutput
- func (o AlarmRuleDimensionOutput) ToAlarmRuleDimensionOutput() AlarmRuleDimensionOutput
- func (o AlarmRuleDimensionOutput) ToAlarmRuleDimensionOutputWithContext(ctx context.Context) AlarmRuleDimensionOutput
- func (o AlarmRuleDimensionOutput) Value() pulumi.StringOutput
- type AlarmRuleInput
- type AlarmRuleMap
- type AlarmRuleMapInput
- type AlarmRuleMapOutput
- type AlarmRuleOutput
- func (o AlarmRuleOutput) AlarmActionEnabled() pulumi.BoolPtrOutput
- func (o AlarmRuleOutput) AlarmActions() pulumi.StringArrayOutput
- func (o AlarmRuleOutput) AlarmEnabled() pulumi.BoolOutput
- func (o AlarmRuleOutput) AlarmLevel() pulumi.IntPtrOutput
- func (o AlarmRuleOutput) ComparisonOperator() pulumi.StringOutput
- func (o AlarmRuleOutput) Description() pulumi.StringPtrOutput
- func (o AlarmRuleOutput) Dimensions() AlarmRuleDimensionArrayOutput
- func (AlarmRuleOutput) ElementType() reflect.Type
- func (o AlarmRuleOutput) EvaluationPeriods() pulumi.IntOutput
- func (o AlarmRuleOutput) InsufficientDataActions() pulumi.StringArrayOutput
- func (o AlarmRuleOutput) MetricName() pulumi.StringOutput
- func (o AlarmRuleOutput) Name() pulumi.StringOutput
- func (o AlarmRuleOutput) Namespace() pulumi.StringOutput
- func (o AlarmRuleOutput) OkActions() pulumi.StringArrayOutput
- func (o AlarmRuleOutput) Period() pulumi.IntOutput
- func (o AlarmRuleOutput) Region() pulumi.StringOutput
- func (o AlarmRuleOutput) StateReason() pulumi.StringOutput
- func (o AlarmRuleOutput) StateValue() pulumi.StringOutput
- func (o AlarmRuleOutput) Statistic() pulumi.StringOutput
- func (o AlarmRuleOutput) Threshold() pulumi.StringOutput
- func (o AlarmRuleOutput) ToAlarmRuleOutput() AlarmRuleOutput
- func (o AlarmRuleOutput) ToAlarmRuleOutputWithContext(ctx context.Context) AlarmRuleOutput
- func (o AlarmRuleOutput) Unit() pulumi.StringOutput
- type AlarmRuleState
- type ServiceDiscoveryRule
- type ServiceDiscoveryRuleArgs
- type ServiceDiscoveryRuleArray
- type ServiceDiscoveryRuleArrayInput
- type ServiceDiscoveryRuleArrayOutput
- func (ServiceDiscoveryRuleArrayOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleArrayOutput) Index(i pulumi.IntInput) ServiceDiscoveryRuleOutput
- func (o ServiceDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleArrayOutput() ServiceDiscoveryRuleArrayOutput
- func (o ServiceDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleArrayOutput
- type ServiceDiscoveryRuleDiscoveryRule
- type ServiceDiscoveryRuleDiscoveryRuleArgs
- func (ServiceDiscoveryRuleDiscoveryRuleArgs) ElementType() reflect.Type
- func (i ServiceDiscoveryRuleDiscoveryRuleArgs) ToServiceDiscoveryRuleDiscoveryRuleOutput() ServiceDiscoveryRuleDiscoveryRuleOutput
- func (i ServiceDiscoveryRuleDiscoveryRuleArgs) ToServiceDiscoveryRuleDiscoveryRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleDiscoveryRuleOutput
- type ServiceDiscoveryRuleDiscoveryRuleArray
- func (ServiceDiscoveryRuleDiscoveryRuleArray) ElementType() reflect.Type
- func (i ServiceDiscoveryRuleDiscoveryRuleArray) ToServiceDiscoveryRuleDiscoveryRuleArrayOutput() ServiceDiscoveryRuleDiscoveryRuleArrayOutput
- func (i ServiceDiscoveryRuleDiscoveryRuleArray) ToServiceDiscoveryRuleDiscoveryRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleDiscoveryRuleArrayOutput
- type ServiceDiscoveryRuleDiscoveryRuleArrayInput
- type ServiceDiscoveryRuleDiscoveryRuleArrayOutput
- func (ServiceDiscoveryRuleDiscoveryRuleArrayOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleDiscoveryRuleArrayOutput) Index(i pulumi.IntInput) ServiceDiscoveryRuleDiscoveryRuleOutput
- func (o ServiceDiscoveryRuleDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleDiscoveryRuleArrayOutput() ServiceDiscoveryRuleDiscoveryRuleArrayOutput
- func (o ServiceDiscoveryRuleDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleDiscoveryRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleDiscoveryRuleArrayOutput
- type ServiceDiscoveryRuleDiscoveryRuleInput
- type ServiceDiscoveryRuleDiscoveryRuleOutput
- func (o ServiceDiscoveryRuleDiscoveryRuleOutput) CheckContents() pulumi.StringArrayOutput
- func (o ServiceDiscoveryRuleDiscoveryRuleOutput) CheckMode() pulumi.StringOutput
- func (o ServiceDiscoveryRuleDiscoveryRuleOutput) CheckType() pulumi.StringOutput
- func (ServiceDiscoveryRuleDiscoveryRuleOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleDiscoveryRuleOutput) ToServiceDiscoveryRuleDiscoveryRuleOutput() ServiceDiscoveryRuleDiscoveryRuleOutput
- func (o ServiceDiscoveryRuleDiscoveryRuleOutput) ToServiceDiscoveryRuleDiscoveryRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleDiscoveryRuleOutput
- type ServiceDiscoveryRuleInput
- type ServiceDiscoveryRuleLogPathRule
- type ServiceDiscoveryRuleLogPathRuleArgs
- func (ServiceDiscoveryRuleLogPathRuleArgs) ElementType() reflect.Type
- func (i ServiceDiscoveryRuleLogPathRuleArgs) ToServiceDiscoveryRuleLogPathRuleOutput() ServiceDiscoveryRuleLogPathRuleOutput
- func (i ServiceDiscoveryRuleLogPathRuleArgs) ToServiceDiscoveryRuleLogPathRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleLogPathRuleOutput
- type ServiceDiscoveryRuleLogPathRuleArray
- func (ServiceDiscoveryRuleLogPathRuleArray) ElementType() reflect.Type
- func (i ServiceDiscoveryRuleLogPathRuleArray) ToServiceDiscoveryRuleLogPathRuleArrayOutput() ServiceDiscoveryRuleLogPathRuleArrayOutput
- func (i ServiceDiscoveryRuleLogPathRuleArray) ToServiceDiscoveryRuleLogPathRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleLogPathRuleArrayOutput
- type ServiceDiscoveryRuleLogPathRuleArrayInput
- type ServiceDiscoveryRuleLogPathRuleArrayOutput
- func (ServiceDiscoveryRuleLogPathRuleArrayOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleLogPathRuleArrayOutput) Index(i pulumi.IntInput) ServiceDiscoveryRuleLogPathRuleOutput
- func (o ServiceDiscoveryRuleLogPathRuleArrayOutput) ToServiceDiscoveryRuleLogPathRuleArrayOutput() ServiceDiscoveryRuleLogPathRuleArrayOutput
- func (o ServiceDiscoveryRuleLogPathRuleArrayOutput) ToServiceDiscoveryRuleLogPathRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleLogPathRuleArrayOutput
- type ServiceDiscoveryRuleLogPathRuleInput
- type ServiceDiscoveryRuleLogPathRuleOutput
- func (o ServiceDiscoveryRuleLogPathRuleOutput) Args() pulumi.StringArrayOutput
- func (ServiceDiscoveryRuleLogPathRuleOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleLogPathRuleOutput) NameType() pulumi.StringOutput
- func (o ServiceDiscoveryRuleLogPathRuleOutput) ToServiceDiscoveryRuleLogPathRuleOutput() ServiceDiscoveryRuleLogPathRuleOutput
- func (o ServiceDiscoveryRuleLogPathRuleOutput) ToServiceDiscoveryRuleLogPathRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleLogPathRuleOutput
- func (o ServiceDiscoveryRuleLogPathRuleOutput) Values() pulumi.StringArrayOutput
- type ServiceDiscoveryRuleMap
- type ServiceDiscoveryRuleMapInput
- type ServiceDiscoveryRuleMapOutput
- func (ServiceDiscoveryRuleMapOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleMapOutput) MapIndex(k pulumi.StringInput) ServiceDiscoveryRuleOutput
- func (o ServiceDiscoveryRuleMapOutput) ToServiceDiscoveryRuleMapOutput() ServiceDiscoveryRuleMapOutput
- func (o ServiceDiscoveryRuleMapOutput) ToServiceDiscoveryRuleMapOutputWithContext(ctx context.Context) ServiceDiscoveryRuleMapOutput
- type ServiceDiscoveryRuleNameRules
- type ServiceDiscoveryRuleNameRulesApplicationNameRule
- type ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs
- func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs) ElementType() reflect.Type
- func (i ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutput() ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput
- func (i ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput
- type ServiceDiscoveryRuleNameRulesApplicationNameRuleArray
- func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArray) ElementType() reflect.Type
- func (i ServiceDiscoveryRuleNameRulesApplicationNameRuleArray) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput() ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
- func (i ServiceDiscoveryRuleNameRulesApplicationNameRuleArray) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
- type ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayInput
- type ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
- func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput) Index(i pulumi.IntInput) ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput
- func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput() ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
- func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
- type ServiceDiscoveryRuleNameRulesApplicationNameRuleInput
- type ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput
- func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) Args() pulumi.StringArrayOutput
- func (ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) NameType() pulumi.StringOutput
- func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutput() ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput
- func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput
- func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) Values() pulumi.StringArrayOutput
- type ServiceDiscoveryRuleNameRulesArgs
- func (ServiceDiscoveryRuleNameRulesArgs) ElementType() reflect.Type
- func (i ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesOutput() ServiceDiscoveryRuleNameRulesOutput
- func (i ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesOutput
- func (i ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesPtrOutput() ServiceDiscoveryRuleNameRulesPtrOutput
- func (i ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesPtrOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesPtrOutput
- type ServiceDiscoveryRuleNameRulesInput
- type ServiceDiscoveryRuleNameRulesOutput
- func (o ServiceDiscoveryRuleNameRulesOutput) ApplicationNameRules() ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
- func (ServiceDiscoveryRuleNameRulesOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleNameRulesOutput) ServiceNameRules() ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
- func (o ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesOutput() ServiceDiscoveryRuleNameRulesOutput
- func (o ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesOutput
- func (o ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesPtrOutput() ServiceDiscoveryRuleNameRulesPtrOutput
- func (o ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesPtrOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesPtrOutput
- type ServiceDiscoveryRuleNameRulesPtrInput
- type ServiceDiscoveryRuleNameRulesPtrOutput
- func (o ServiceDiscoveryRuleNameRulesPtrOutput) ApplicationNameRules() ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
- func (o ServiceDiscoveryRuleNameRulesPtrOutput) Elem() ServiceDiscoveryRuleNameRulesOutput
- func (ServiceDiscoveryRuleNameRulesPtrOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleNameRulesPtrOutput) ServiceNameRules() ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
- func (o ServiceDiscoveryRuleNameRulesPtrOutput) ToServiceDiscoveryRuleNameRulesPtrOutput() ServiceDiscoveryRuleNameRulesPtrOutput
- func (o ServiceDiscoveryRuleNameRulesPtrOutput) ToServiceDiscoveryRuleNameRulesPtrOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesPtrOutput
- type ServiceDiscoveryRuleNameRulesServiceNameRule
- type ServiceDiscoveryRuleNameRulesServiceNameRuleArgs
- func (ServiceDiscoveryRuleNameRulesServiceNameRuleArgs) ElementType() reflect.Type
- func (i ServiceDiscoveryRuleNameRulesServiceNameRuleArgs) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutput() ServiceDiscoveryRuleNameRulesServiceNameRuleOutput
- func (i ServiceDiscoveryRuleNameRulesServiceNameRuleArgs) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesServiceNameRuleOutput
- type ServiceDiscoveryRuleNameRulesServiceNameRuleArray
- func (ServiceDiscoveryRuleNameRulesServiceNameRuleArray) ElementType() reflect.Type
- func (i ServiceDiscoveryRuleNameRulesServiceNameRuleArray) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput() ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
- func (i ServiceDiscoveryRuleNameRulesServiceNameRuleArray) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
- type ServiceDiscoveryRuleNameRulesServiceNameRuleArrayInput
- type ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
- func (ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput) Index(i pulumi.IntInput) ServiceDiscoveryRuleNameRulesServiceNameRuleOutput
- func (o ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput() ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
- func (o ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
- type ServiceDiscoveryRuleNameRulesServiceNameRuleInput
- type ServiceDiscoveryRuleNameRulesServiceNameRuleOutput
- func (o ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) Args() pulumi.StringArrayOutput
- func (ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) NameType() pulumi.StringOutput
- func (o ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutput() ServiceDiscoveryRuleNameRulesServiceNameRuleOutput
- func (o ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesServiceNameRuleOutput
- func (o ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) Values() pulumi.StringArrayOutput
- type ServiceDiscoveryRuleOutput
- func (o ServiceDiscoveryRuleOutput) DetectLogEnabled() pulumi.BoolPtrOutput
- func (o ServiceDiscoveryRuleOutput) DiscoveryRuleEnabled() pulumi.BoolPtrOutput
- func (o ServiceDiscoveryRuleOutput) DiscoveryRules() ServiceDiscoveryRuleDiscoveryRuleArrayOutput
- func (ServiceDiscoveryRuleOutput) ElementType() reflect.Type
- func (o ServiceDiscoveryRuleOutput) IsDefaultRule() pulumi.BoolPtrOutput
- func (o ServiceDiscoveryRuleOutput) LogFileSuffixes() pulumi.StringArrayOutput
- func (o ServiceDiscoveryRuleOutput) LogPathRules() ServiceDiscoveryRuleLogPathRuleArrayOutput
- func (o ServiceDiscoveryRuleOutput) Name() pulumi.StringOutput
- func (o ServiceDiscoveryRuleOutput) NameRules() ServiceDiscoveryRuleNameRulesOutput
- func (o ServiceDiscoveryRuleOutput) Priority() pulumi.IntPtrOutput
- func (o ServiceDiscoveryRuleOutput) Region() pulumi.StringOutput
- func (o ServiceDiscoveryRuleOutput) RuleId() pulumi.StringOutput
- func (o ServiceDiscoveryRuleOutput) ServiceType() pulumi.StringOutput
- func (o ServiceDiscoveryRuleOutput) ToServiceDiscoveryRuleOutput() ServiceDiscoveryRuleOutput
- func (o ServiceDiscoveryRuleOutput) ToServiceDiscoveryRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleOutput
- type ServiceDiscoveryRuleState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmRule ¶
type AlarmRule struct { pulumi.CustomResourceState // Specifies whether to enable the action to be triggered by an alarm. // The default value is true. Changing this creates a new resource. AlarmActionEnabled pulumi.BoolPtrOutput `pulumi:"alarmActionEnabled"` // Specifies the action triggered by an alarm. This is a list of strings. // Changing this creates a new resource. AlarmActions pulumi.StringArrayOutput `pulumi:"alarmActions"` // Indicates whether the alarm rule is enabled. AlarmEnabled pulumi.BoolOutput `pulumi:"alarmEnabled"` // Specifies the alarm severity. The value can be **1**, **2**, **3** or **4**, // which indicates *critical*, *major*, *minor*, and *informational*, respectively. // The default value is **2**. AlarmLevel pulumi.IntPtrOutput `pulumi:"alarmLevel"` // Specifies the comparison condition of alarm thresholds. // The value can be **>**, **=**, **<**, **>=** or **<=**. ComparisonOperator pulumi.StringOutput `pulumi:"comparisonOperator"` // Specifies the description of the alarm rule. // The value can be a string of 0 to 1000 characters. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies the list of metric dimensions. The structure is described below. // Changing this creates a new resource. Dimensions AlarmRuleDimensionArrayOutput `pulumi:"dimensions"` // Specifies the alarm checking evaluation periods. // The value can be **1**, **2**, **3**, **4** and **5**. EvaluationPeriods pulumi.IntOutput `pulumi:"evaluationPeriods"` // Specifies the action triggered when the data is not enough. // This is a list of strings. Changing this creates a new resource. InsufficientDataActions pulumi.StringArrayOutput `pulumi:"insufficientDataActions"` // Specifies the alarm metric name. Changing this creates a new resource. MetricName pulumi.StringOutput `pulumi:"metricName"` // Specifies the dimension name. Changing this creates a new resource. Name pulumi.StringOutput `pulumi:"name"` // Specifies the alarm namespace. Changing this creates a new resource. Namespace pulumi.StringOutput `pulumi:"namespace"` // Specifies the action triggered by the clearing of an alarm. // This is a list of strings. Changing this creates a new resource. OkActions pulumi.StringArrayOutput `pulumi:"okActions"` // Specifies the alarm checking period in milliseconds. // The value can be **60,000**, **300,000**, **900,000** and **3,600,000**. Period pulumi.IntOutput `pulumi:"period"` // The region in which to create the alarm rule resource. If omitted, the // provider-level region will be used. Changing this creates a new resource. Region pulumi.StringOutput `pulumi:"region"` // Indicates the reason of alarm status. StateReason pulumi.StringOutput `pulumi:"stateReason"` // Indicates the alarm status. StateValue pulumi.StringOutput `pulumi:"stateValue"` // Specifies the data rollup methods. The value can be **maximum**, // **minimum**, **average**, **sum** and **sampleCount**. Changing this creates a new resource. Statistic pulumi.StringOutput `pulumi:"statistic"` // Specifies the alarm threshold. Threshold pulumi.StringOutput `pulumi:"threshold"` // Specifies the data unit. Changing this creates a new resource. Unit pulumi.StringOutput `pulumi:"unit"` }
Manages an AOM alarm rule resource within HuaweiCloud.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Aom" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Aom" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Aom.NewAlarmRule(ctx, "alarmRule", &Aom.AlarmRuleArgs{ AlarmLevel: pulumi.Int(3), Description: pulumi.String("test rule"), Namespace: pulumi.String("PAAS.NODE"), MetricName: pulumi.String("cupUsage"), Dimensions: aom.AlarmRuleDimensionArray{ &aom.AlarmRuleDimensionArgs{ Name: pulumi.String("hostID"), Value: pulumi.Any(_var.Instance_id), }, }, ComparisonOperator: pulumi.String(">="), Period: pulumi.Int(60000), Statistic: pulumi.String("average"), Threshold: pulumi.String("3"), Unit: pulumi.String("Percent"), EvaluationPeriods: pulumi.Int(2), }) if err != nil { return err } return nil }) }
```
## Import
AOM alarm rules can be imported using the `id`, e.g.
```sh
$ pulumi import huaweicloud:Aom/alarmRule:AlarmRule alarm_rule 966746116613832710
```
func GetAlarmRule ¶
func GetAlarmRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AlarmRuleState, opts ...pulumi.ResourceOption) (*AlarmRule, error)
GetAlarmRule gets an existing AlarmRule 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 NewAlarmRule ¶
func NewAlarmRule(ctx *pulumi.Context, name string, args *AlarmRuleArgs, opts ...pulumi.ResourceOption) (*AlarmRule, error)
NewAlarmRule registers a new resource with the given unique name, arguments, and options.
func (*AlarmRule) ElementType ¶
func (*AlarmRule) ToAlarmRuleOutput ¶
func (i *AlarmRule) ToAlarmRuleOutput() AlarmRuleOutput
func (*AlarmRule) ToAlarmRuleOutputWithContext ¶
func (i *AlarmRule) ToAlarmRuleOutputWithContext(ctx context.Context) AlarmRuleOutput
type AlarmRuleArgs ¶
type AlarmRuleArgs struct { // Specifies whether to enable the action to be triggered by an alarm. // The default value is true. Changing this creates a new resource. AlarmActionEnabled pulumi.BoolPtrInput // Specifies the action triggered by an alarm. This is a list of strings. // Changing this creates a new resource. AlarmActions pulumi.StringArrayInput // Specifies the alarm severity. The value can be **1**, **2**, **3** or **4**, // which indicates *critical*, *major*, *minor*, and *informational*, respectively. // The default value is **2**. AlarmLevel pulumi.IntPtrInput // Specifies the comparison condition of alarm thresholds. // The value can be **>**, **=**, **<**, **>=** or **<=**. ComparisonOperator pulumi.StringInput // Specifies the description of the alarm rule. // The value can be a string of 0 to 1000 characters. Description pulumi.StringPtrInput // Specifies the list of metric dimensions. The structure is described below. // Changing this creates a new resource. Dimensions AlarmRuleDimensionArrayInput // Specifies the alarm checking evaluation periods. // The value can be **1**, **2**, **3**, **4** and **5**. EvaluationPeriods pulumi.IntInput // Specifies the action triggered when the data is not enough. // This is a list of strings. Changing this creates a new resource. InsufficientDataActions pulumi.StringArrayInput // Specifies the alarm metric name. Changing this creates a new resource. MetricName pulumi.StringInput // Specifies the dimension name. Changing this creates a new resource. Name pulumi.StringPtrInput // Specifies the alarm namespace. Changing this creates a new resource. Namespace pulumi.StringInput // Specifies the action triggered by the clearing of an alarm. // This is a list of strings. Changing this creates a new resource. OkActions pulumi.StringArrayInput // Specifies the alarm checking period in milliseconds. // The value can be **60,000**, **300,000**, **900,000** and **3,600,000**. Period pulumi.IntInput // The region in which to create the alarm rule resource. If omitted, the // provider-level region will be used. Changing this creates a new resource. Region pulumi.StringPtrInput // Specifies the data rollup methods. The value can be **maximum**, // **minimum**, **average**, **sum** and **sampleCount**. Changing this creates a new resource. Statistic pulumi.StringInput // Specifies the alarm threshold. Threshold pulumi.StringInput // Specifies the data unit. Changing this creates a new resource. Unit pulumi.StringInput }
The set of arguments for constructing a AlarmRule resource.
func (AlarmRuleArgs) ElementType ¶
func (AlarmRuleArgs) ElementType() reflect.Type
type AlarmRuleArray ¶
type AlarmRuleArray []AlarmRuleInput
func (AlarmRuleArray) ElementType ¶
func (AlarmRuleArray) ElementType() reflect.Type
func (AlarmRuleArray) ToAlarmRuleArrayOutput ¶
func (i AlarmRuleArray) ToAlarmRuleArrayOutput() AlarmRuleArrayOutput
func (AlarmRuleArray) ToAlarmRuleArrayOutputWithContext ¶
func (i AlarmRuleArray) ToAlarmRuleArrayOutputWithContext(ctx context.Context) AlarmRuleArrayOutput
type AlarmRuleArrayInput ¶
type AlarmRuleArrayInput interface { pulumi.Input ToAlarmRuleArrayOutput() AlarmRuleArrayOutput ToAlarmRuleArrayOutputWithContext(context.Context) AlarmRuleArrayOutput }
AlarmRuleArrayInput is an input type that accepts AlarmRuleArray and AlarmRuleArrayOutput values. You can construct a concrete instance of `AlarmRuleArrayInput` via:
AlarmRuleArray{ AlarmRuleArgs{...} }
type AlarmRuleArrayOutput ¶
type AlarmRuleArrayOutput struct{ *pulumi.OutputState }
func (AlarmRuleArrayOutput) ElementType ¶
func (AlarmRuleArrayOutput) ElementType() reflect.Type
func (AlarmRuleArrayOutput) Index ¶
func (o AlarmRuleArrayOutput) Index(i pulumi.IntInput) AlarmRuleOutput
func (AlarmRuleArrayOutput) ToAlarmRuleArrayOutput ¶
func (o AlarmRuleArrayOutput) ToAlarmRuleArrayOutput() AlarmRuleArrayOutput
func (AlarmRuleArrayOutput) ToAlarmRuleArrayOutputWithContext ¶
func (o AlarmRuleArrayOutput) ToAlarmRuleArrayOutputWithContext(ctx context.Context) AlarmRuleArrayOutput
type AlarmRuleDimension ¶
type AlarmRuleDimensionArgs ¶
type AlarmRuleDimensionArgs struct { // Specifies the dimension name. Changing this creates a new resource. Name pulumi.StringInput `pulumi:"name"` // Specifies the dimension value. Changing this creates a new resource. Value pulumi.StringInput `pulumi:"value"` }
func (AlarmRuleDimensionArgs) ElementType ¶
func (AlarmRuleDimensionArgs) ElementType() reflect.Type
func (AlarmRuleDimensionArgs) ToAlarmRuleDimensionOutput ¶
func (i AlarmRuleDimensionArgs) ToAlarmRuleDimensionOutput() AlarmRuleDimensionOutput
func (AlarmRuleDimensionArgs) ToAlarmRuleDimensionOutputWithContext ¶
func (i AlarmRuleDimensionArgs) ToAlarmRuleDimensionOutputWithContext(ctx context.Context) AlarmRuleDimensionOutput
type AlarmRuleDimensionArray ¶
type AlarmRuleDimensionArray []AlarmRuleDimensionInput
func (AlarmRuleDimensionArray) ElementType ¶
func (AlarmRuleDimensionArray) ElementType() reflect.Type
func (AlarmRuleDimensionArray) ToAlarmRuleDimensionArrayOutput ¶
func (i AlarmRuleDimensionArray) ToAlarmRuleDimensionArrayOutput() AlarmRuleDimensionArrayOutput
func (AlarmRuleDimensionArray) ToAlarmRuleDimensionArrayOutputWithContext ¶
func (i AlarmRuleDimensionArray) ToAlarmRuleDimensionArrayOutputWithContext(ctx context.Context) AlarmRuleDimensionArrayOutput
type AlarmRuleDimensionArrayInput ¶
type AlarmRuleDimensionArrayInput interface { pulumi.Input ToAlarmRuleDimensionArrayOutput() AlarmRuleDimensionArrayOutput ToAlarmRuleDimensionArrayOutputWithContext(context.Context) AlarmRuleDimensionArrayOutput }
AlarmRuleDimensionArrayInput is an input type that accepts AlarmRuleDimensionArray and AlarmRuleDimensionArrayOutput values. You can construct a concrete instance of `AlarmRuleDimensionArrayInput` via:
AlarmRuleDimensionArray{ AlarmRuleDimensionArgs{...} }
type AlarmRuleDimensionArrayOutput ¶
type AlarmRuleDimensionArrayOutput struct{ *pulumi.OutputState }
func (AlarmRuleDimensionArrayOutput) ElementType ¶
func (AlarmRuleDimensionArrayOutput) ElementType() reflect.Type
func (AlarmRuleDimensionArrayOutput) Index ¶
func (o AlarmRuleDimensionArrayOutput) Index(i pulumi.IntInput) AlarmRuleDimensionOutput
func (AlarmRuleDimensionArrayOutput) ToAlarmRuleDimensionArrayOutput ¶
func (o AlarmRuleDimensionArrayOutput) ToAlarmRuleDimensionArrayOutput() AlarmRuleDimensionArrayOutput
func (AlarmRuleDimensionArrayOutput) ToAlarmRuleDimensionArrayOutputWithContext ¶
func (o AlarmRuleDimensionArrayOutput) ToAlarmRuleDimensionArrayOutputWithContext(ctx context.Context) AlarmRuleDimensionArrayOutput
type AlarmRuleDimensionInput ¶
type AlarmRuleDimensionInput interface { pulumi.Input ToAlarmRuleDimensionOutput() AlarmRuleDimensionOutput ToAlarmRuleDimensionOutputWithContext(context.Context) AlarmRuleDimensionOutput }
AlarmRuleDimensionInput is an input type that accepts AlarmRuleDimensionArgs and AlarmRuleDimensionOutput values. You can construct a concrete instance of `AlarmRuleDimensionInput` via:
AlarmRuleDimensionArgs{...}
type AlarmRuleDimensionOutput ¶
type AlarmRuleDimensionOutput struct{ *pulumi.OutputState }
func (AlarmRuleDimensionOutput) ElementType ¶
func (AlarmRuleDimensionOutput) ElementType() reflect.Type
func (AlarmRuleDimensionOutput) Name ¶
func (o AlarmRuleDimensionOutput) Name() pulumi.StringOutput
Specifies the dimension name. Changing this creates a new resource.
func (AlarmRuleDimensionOutput) ToAlarmRuleDimensionOutput ¶
func (o AlarmRuleDimensionOutput) ToAlarmRuleDimensionOutput() AlarmRuleDimensionOutput
func (AlarmRuleDimensionOutput) ToAlarmRuleDimensionOutputWithContext ¶
func (o AlarmRuleDimensionOutput) ToAlarmRuleDimensionOutputWithContext(ctx context.Context) AlarmRuleDimensionOutput
func (AlarmRuleDimensionOutput) Value ¶
func (o AlarmRuleDimensionOutput) Value() pulumi.StringOutput
Specifies the dimension value. Changing this creates a new resource.
type AlarmRuleInput ¶
type AlarmRuleInput interface { pulumi.Input ToAlarmRuleOutput() AlarmRuleOutput ToAlarmRuleOutputWithContext(ctx context.Context) AlarmRuleOutput }
type AlarmRuleMap ¶
type AlarmRuleMap map[string]AlarmRuleInput
func (AlarmRuleMap) ElementType ¶
func (AlarmRuleMap) ElementType() reflect.Type
func (AlarmRuleMap) ToAlarmRuleMapOutput ¶
func (i AlarmRuleMap) ToAlarmRuleMapOutput() AlarmRuleMapOutput
func (AlarmRuleMap) ToAlarmRuleMapOutputWithContext ¶
func (i AlarmRuleMap) ToAlarmRuleMapOutputWithContext(ctx context.Context) AlarmRuleMapOutput
type AlarmRuleMapInput ¶
type AlarmRuleMapInput interface { pulumi.Input ToAlarmRuleMapOutput() AlarmRuleMapOutput ToAlarmRuleMapOutputWithContext(context.Context) AlarmRuleMapOutput }
AlarmRuleMapInput is an input type that accepts AlarmRuleMap and AlarmRuleMapOutput values. You can construct a concrete instance of `AlarmRuleMapInput` via:
AlarmRuleMap{ "key": AlarmRuleArgs{...} }
type AlarmRuleMapOutput ¶
type AlarmRuleMapOutput struct{ *pulumi.OutputState }
func (AlarmRuleMapOutput) ElementType ¶
func (AlarmRuleMapOutput) ElementType() reflect.Type
func (AlarmRuleMapOutput) MapIndex ¶
func (o AlarmRuleMapOutput) MapIndex(k pulumi.StringInput) AlarmRuleOutput
func (AlarmRuleMapOutput) ToAlarmRuleMapOutput ¶
func (o AlarmRuleMapOutput) ToAlarmRuleMapOutput() AlarmRuleMapOutput
func (AlarmRuleMapOutput) ToAlarmRuleMapOutputWithContext ¶
func (o AlarmRuleMapOutput) ToAlarmRuleMapOutputWithContext(ctx context.Context) AlarmRuleMapOutput
type AlarmRuleOutput ¶
type AlarmRuleOutput struct{ *pulumi.OutputState }
func (AlarmRuleOutput) AlarmActionEnabled ¶
func (o AlarmRuleOutput) AlarmActionEnabled() pulumi.BoolPtrOutput
Specifies whether to enable the action to be triggered by an alarm. The default value is true. Changing this creates a new resource.
func (AlarmRuleOutput) AlarmActions ¶
func (o AlarmRuleOutput) AlarmActions() pulumi.StringArrayOutput
Specifies the action triggered by an alarm. This is a list of strings. Changing this creates a new resource.
func (AlarmRuleOutput) AlarmEnabled ¶
func (o AlarmRuleOutput) AlarmEnabled() pulumi.BoolOutput
Indicates whether the alarm rule is enabled.
func (AlarmRuleOutput) AlarmLevel ¶
func (o AlarmRuleOutput) AlarmLevel() pulumi.IntPtrOutput
Specifies the alarm severity. The value can be **1**, **2**, **3** or **4**, which indicates *critical*, *major*, *minor*, and *informational*, respectively. The default value is **2**.
func (AlarmRuleOutput) ComparisonOperator ¶
func (o AlarmRuleOutput) ComparisonOperator() pulumi.StringOutput
Specifies the comparison condition of alarm thresholds. The value can be **>**, **=**, **<**, **>=** or **<=**.
func (AlarmRuleOutput) Description ¶
func (o AlarmRuleOutput) Description() pulumi.StringPtrOutput
Specifies the description of the alarm rule. The value can be a string of 0 to 1000 characters.
func (AlarmRuleOutput) Dimensions ¶
func (o AlarmRuleOutput) Dimensions() AlarmRuleDimensionArrayOutput
Specifies the list of metric dimensions. The structure is described below. Changing this creates a new resource.
func (AlarmRuleOutput) ElementType ¶
func (AlarmRuleOutput) ElementType() reflect.Type
func (AlarmRuleOutput) EvaluationPeriods ¶
func (o AlarmRuleOutput) EvaluationPeriods() pulumi.IntOutput
Specifies the alarm checking evaluation periods. The value can be **1**, **2**, **3**, **4** and **5**.
func (AlarmRuleOutput) InsufficientDataActions ¶
func (o AlarmRuleOutput) InsufficientDataActions() pulumi.StringArrayOutput
Specifies the action triggered when the data is not enough. This is a list of strings. Changing this creates a new resource.
func (AlarmRuleOutput) MetricName ¶
func (o AlarmRuleOutput) MetricName() pulumi.StringOutput
Specifies the alarm metric name. Changing this creates a new resource.
func (AlarmRuleOutput) Name ¶
func (o AlarmRuleOutput) Name() pulumi.StringOutput
Specifies the dimension name. Changing this creates a new resource.
func (AlarmRuleOutput) Namespace ¶
func (o AlarmRuleOutput) Namespace() pulumi.StringOutput
Specifies the alarm namespace. Changing this creates a new resource.
func (AlarmRuleOutput) OkActions ¶
func (o AlarmRuleOutput) OkActions() pulumi.StringArrayOutput
Specifies the action triggered by the clearing of an alarm. This is a list of strings. Changing this creates a new resource.
func (AlarmRuleOutput) Period ¶
func (o AlarmRuleOutput) Period() pulumi.IntOutput
Specifies the alarm checking period in milliseconds. The value can be **60,000**, **300,000**, **900,000** and **3,600,000**.
func (AlarmRuleOutput) Region ¶
func (o AlarmRuleOutput) Region() pulumi.StringOutput
The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
func (AlarmRuleOutput) StateReason ¶
func (o AlarmRuleOutput) StateReason() pulumi.StringOutput
Indicates the reason of alarm status.
func (AlarmRuleOutput) StateValue ¶
func (o AlarmRuleOutput) StateValue() pulumi.StringOutput
Indicates the alarm status.
func (AlarmRuleOutput) Statistic ¶
func (o AlarmRuleOutput) Statistic() pulumi.StringOutput
Specifies the data rollup methods. The value can be **maximum**, **minimum**, **average**, **sum** and **sampleCount**. Changing this creates a new resource.
func (AlarmRuleOutput) Threshold ¶
func (o AlarmRuleOutput) Threshold() pulumi.StringOutput
Specifies the alarm threshold.
func (AlarmRuleOutput) ToAlarmRuleOutput ¶
func (o AlarmRuleOutput) ToAlarmRuleOutput() AlarmRuleOutput
func (AlarmRuleOutput) ToAlarmRuleOutputWithContext ¶
func (o AlarmRuleOutput) ToAlarmRuleOutputWithContext(ctx context.Context) AlarmRuleOutput
func (AlarmRuleOutput) Unit ¶
func (o AlarmRuleOutput) Unit() pulumi.StringOutput
Specifies the data unit. Changing this creates a new resource.
type AlarmRuleState ¶
type AlarmRuleState struct { // Specifies whether to enable the action to be triggered by an alarm. // The default value is true. Changing this creates a new resource. AlarmActionEnabled pulumi.BoolPtrInput // Specifies the action triggered by an alarm. This is a list of strings. // Changing this creates a new resource. AlarmActions pulumi.StringArrayInput // Indicates whether the alarm rule is enabled. AlarmEnabled pulumi.BoolPtrInput // Specifies the alarm severity. The value can be **1**, **2**, **3** or **4**, // which indicates *critical*, *major*, *minor*, and *informational*, respectively. // The default value is **2**. AlarmLevel pulumi.IntPtrInput // Specifies the comparison condition of alarm thresholds. // The value can be **>**, **=**, **<**, **>=** or **<=**. ComparisonOperator pulumi.StringPtrInput // Specifies the description of the alarm rule. // The value can be a string of 0 to 1000 characters. Description pulumi.StringPtrInput // Specifies the list of metric dimensions. The structure is described below. // Changing this creates a new resource. Dimensions AlarmRuleDimensionArrayInput // Specifies the alarm checking evaluation periods. // The value can be **1**, **2**, **3**, **4** and **5**. EvaluationPeriods pulumi.IntPtrInput // Specifies the action triggered when the data is not enough. // This is a list of strings. Changing this creates a new resource. InsufficientDataActions pulumi.StringArrayInput // Specifies the alarm metric name. Changing this creates a new resource. MetricName pulumi.StringPtrInput // Specifies the dimension name. Changing this creates a new resource. Name pulumi.StringPtrInput // Specifies the alarm namespace. Changing this creates a new resource. Namespace pulumi.StringPtrInput // Specifies the action triggered by the clearing of an alarm. // This is a list of strings. Changing this creates a new resource. OkActions pulumi.StringArrayInput // Specifies the alarm checking period in milliseconds. // The value can be **60,000**, **300,000**, **900,000** and **3,600,000**. Period pulumi.IntPtrInput // The region in which to create the alarm rule resource. If omitted, the // provider-level region will be used. Changing this creates a new resource. Region pulumi.StringPtrInput // Indicates the reason of alarm status. StateReason pulumi.StringPtrInput // Indicates the alarm status. StateValue pulumi.StringPtrInput // Specifies the data rollup methods. The value can be **maximum**, // **minimum**, **average**, **sum** and **sampleCount**. Changing this creates a new resource. Statistic pulumi.StringPtrInput // Specifies the alarm threshold. Threshold pulumi.StringPtrInput // Specifies the data unit. Changing this creates a new resource. Unit pulumi.StringPtrInput }
func (AlarmRuleState) ElementType ¶
func (AlarmRuleState) ElementType() reflect.Type
type ServiceDiscoveryRule ¶
type ServiceDiscoveryRule struct { pulumi.CustomResourceState // Specifies whether to enable log collection. The default value is true. DetectLogEnabled pulumi.BoolPtrOutput `pulumi:"detectLogEnabled"` // Specifies whether the rule is enabled. The default value is true. DiscoveryRuleEnabled pulumi.BoolPtrOutput `pulumi:"discoveryRuleEnabled"` // Specifies the discovery rule. If the array contains multiple conditions, only the // processes that meet all the conditions will be matched. If the value of `checkType` is **cmdLine**, set the value of // `checkMode` to **contain**. `checkContent` is in the format of ["xxx"], indicating that the process must contain // the xxx parameter. If the value of `checkType` is **env**, set the value of `checkMode` to **contain**. // `checkContent` is in the format of ["k1","v1"], indicating that the process must contain the environment variable // whose name is k1 and value is v1. If the value of `checkType` is **scope**, set the value of `checkMode` // to **equals**. `checkContent` is in the format of ["hostId1","hostId2"], indicating that the rule takes effect only // on specified nodes. If no nodes are specified, the rule applies to all nodes of the project. DiscoveryRules ServiceDiscoveryRuleDiscoveryRuleArrayOutput `pulumi:"discoveryRules"` // Specifies whether the rule is the default one. The default value is false. IsDefaultRule pulumi.BoolPtrOutput `pulumi:"isDefaultRule"` // Specifies the log file suffix. This is a list of strings. // The values can be: **log**, **trace**, and **out**. LogFileSuffixes pulumi.StringArrayOutput `pulumi:"logFileSuffixes"` // Specifies the log path configuration rule. If cmdLineHash is a fixed string, // logs in the specified log path or log file are collected. Otherwise, only the files whose names end with // .log or .trace are collected. If the value of `nameType` is **cmdLineHash**, args is in the format of ["00001"] and // value is in the format of ["/xxx/xx.log"], indicating that the log path is /xxx/xx.log when the startup command is 00001. LogPathRules ServiceDiscoveryRuleLogPathRuleArrayOutput `pulumi:"logPathRules"` // Specifies the rule name, which contains 4 to 63 characters. It must start // with a lowercase letter but cannot end with a hyphen (-). Only digits, lowercase letters, and hyphens are allowed. Name pulumi.StringOutput `pulumi:"name"` // Specifies the naming rules for discovered services and applications. // The object structure is documented below. NameRules ServiceDiscoveryRuleNameRulesOutput `pulumi:"nameRules"` // Specifies the rule priority. Value range: 1 to 9999. The default value is 9999. Priority pulumi.IntPtrOutput `pulumi:"priority"` // The region in which to create the service discovery rule resource. If omitted, // the provider-level region will be used. Changing this creates a new resource. Region pulumi.StringOutput `pulumi:"region"` // The rule ID in uuid format. RuleId pulumi.StringOutput `pulumi:"ruleId"` // Specifies the service type, which is used only for rule classification and UI display. // You can enter any field. For example, enter Java or Python by technology stack, or enter collector or database by function. ServiceType pulumi.StringOutput `pulumi:"serviceType"` }
Manages an AOM service discovery rule resource within HuaweiCloud.
## Example Usage ### Basic example
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Aom" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Aom" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Aom.NewServiceDiscoveryRule(ctx, "discoveryRule", &Aom.ServiceDiscoveryRuleArgs{ DetectLogEnabled: pulumi.Bool(true), DiscoveryRuleEnabled: pulumi.Bool(true), DiscoveryRules: aom.ServiceDiscoveryRuleDiscoveryRuleArray{ &aom.ServiceDiscoveryRuleDiscoveryRuleArgs{ CheckContents: pulumi.StringArray{ pulumi.String("java"), }, CheckMode: pulumi.String("contain"), CheckType: pulumi.String("cmdLine"), }, }, IsDefaultRule: pulumi.Bool(false), LogFileSuffixes: pulumi.StringArray{ pulumi.String("log"), }, LogPathRules: aom.ServiceDiscoveryRuleLogPathRuleArray{ &aom.ServiceDiscoveryRuleLogPathRuleArgs{ Args: pulumi.StringArray{ pulumi.String("java"), }, NameType: pulumi.String("cmdLineHash"), Values: pulumi.StringArray{ pulumi.String("/tmp/log"), }, }, }, NameRules: &aom.ServiceDiscoveryRuleNameRulesArgs{ ApplicationNameRules: aom.ServiceDiscoveryRuleNameRulesApplicationNameRuleArray{ &aom.ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs{ Args: pulumi.StringArray{ pulumi.String("java"), }, NameType: pulumi.String("str"), }, }, ServiceNameRules: aom.ServiceDiscoveryRuleNameRulesServiceNameRuleArray{ &aom.ServiceDiscoveryRuleNameRulesServiceNameRuleArgs{ Args: pulumi.StringArray{ pulumi.String("java"), }, NameType: pulumi.String("str"), }, }, }, Priority: pulumi.Int(9999), ServiceType: pulumi.String("Java"), }) if err != nil { return err } return nil }) }
```
## Import
AOM service discovery rules can be imported using the `name`, e.g.
```sh
$ pulumi import huaweicloud:Aom/serviceDiscoveryRule:ServiceDiscoveryRule alarm_rule rule_name
```
func GetServiceDiscoveryRule ¶
func GetServiceDiscoveryRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ServiceDiscoveryRuleState, opts ...pulumi.ResourceOption) (*ServiceDiscoveryRule, error)
GetServiceDiscoveryRule gets an existing ServiceDiscoveryRule 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 NewServiceDiscoveryRule ¶
func NewServiceDiscoveryRule(ctx *pulumi.Context, name string, args *ServiceDiscoveryRuleArgs, opts ...pulumi.ResourceOption) (*ServiceDiscoveryRule, error)
NewServiceDiscoveryRule registers a new resource with the given unique name, arguments, and options.
func (*ServiceDiscoveryRule) ElementType ¶
func (*ServiceDiscoveryRule) ElementType() reflect.Type
func (*ServiceDiscoveryRule) ToServiceDiscoveryRuleOutput ¶
func (i *ServiceDiscoveryRule) ToServiceDiscoveryRuleOutput() ServiceDiscoveryRuleOutput
func (*ServiceDiscoveryRule) ToServiceDiscoveryRuleOutputWithContext ¶
func (i *ServiceDiscoveryRule) ToServiceDiscoveryRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleOutput
type ServiceDiscoveryRuleArgs ¶
type ServiceDiscoveryRuleArgs struct { // Specifies whether to enable log collection. The default value is true. DetectLogEnabled pulumi.BoolPtrInput // Specifies whether the rule is enabled. The default value is true. DiscoveryRuleEnabled pulumi.BoolPtrInput // Specifies the discovery rule. If the array contains multiple conditions, only the // processes that meet all the conditions will be matched. If the value of `checkType` is **cmdLine**, set the value of // `checkMode` to **contain**. `checkContent` is in the format of ["xxx"], indicating that the process must contain // the xxx parameter. If the value of `checkType` is **env**, set the value of `checkMode` to **contain**. // `checkContent` is in the format of ["k1","v1"], indicating that the process must contain the environment variable // whose name is k1 and value is v1. If the value of `checkType` is **scope**, set the value of `checkMode` // to **equals**. `checkContent` is in the format of ["hostId1","hostId2"], indicating that the rule takes effect only // on specified nodes. If no nodes are specified, the rule applies to all nodes of the project. DiscoveryRules ServiceDiscoveryRuleDiscoveryRuleArrayInput // Specifies whether the rule is the default one. The default value is false. IsDefaultRule pulumi.BoolPtrInput // Specifies the log file suffix. This is a list of strings. // The values can be: **log**, **trace**, and **out**. LogFileSuffixes pulumi.StringArrayInput // Specifies the log path configuration rule. If cmdLineHash is a fixed string, // logs in the specified log path or log file are collected. Otherwise, only the files whose names end with // .log or .trace are collected. If the value of `nameType` is **cmdLineHash**, args is in the format of ["00001"] and // value is in the format of ["/xxx/xx.log"], indicating that the log path is /xxx/xx.log when the startup command is 00001. LogPathRules ServiceDiscoveryRuleLogPathRuleArrayInput // Specifies the rule name, which contains 4 to 63 characters. It must start // with a lowercase letter but cannot end with a hyphen (-). Only digits, lowercase letters, and hyphens are allowed. Name pulumi.StringPtrInput // Specifies the naming rules for discovered services and applications. // The object structure is documented below. NameRules ServiceDiscoveryRuleNameRulesInput // Specifies the rule priority. Value range: 1 to 9999. The default value is 9999. Priority pulumi.IntPtrInput // The region in which to create the service discovery rule resource. If omitted, // the provider-level region will be used. Changing this creates a new resource. Region pulumi.StringPtrInput // Specifies the service type, which is used only for rule classification and UI display. // You can enter any field. For example, enter Java or Python by technology stack, or enter collector or database by function. ServiceType pulumi.StringInput }
The set of arguments for constructing a ServiceDiscoveryRule resource.
func (ServiceDiscoveryRuleArgs) ElementType ¶
func (ServiceDiscoveryRuleArgs) ElementType() reflect.Type
type ServiceDiscoveryRuleArray ¶
type ServiceDiscoveryRuleArray []ServiceDiscoveryRuleInput
func (ServiceDiscoveryRuleArray) ElementType ¶
func (ServiceDiscoveryRuleArray) ElementType() reflect.Type
func (ServiceDiscoveryRuleArray) ToServiceDiscoveryRuleArrayOutput ¶
func (i ServiceDiscoveryRuleArray) ToServiceDiscoveryRuleArrayOutput() ServiceDiscoveryRuleArrayOutput
func (ServiceDiscoveryRuleArray) ToServiceDiscoveryRuleArrayOutputWithContext ¶
func (i ServiceDiscoveryRuleArray) ToServiceDiscoveryRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleArrayOutput
type ServiceDiscoveryRuleArrayInput ¶
type ServiceDiscoveryRuleArrayInput interface { pulumi.Input ToServiceDiscoveryRuleArrayOutput() ServiceDiscoveryRuleArrayOutput ToServiceDiscoveryRuleArrayOutputWithContext(context.Context) ServiceDiscoveryRuleArrayOutput }
ServiceDiscoveryRuleArrayInput is an input type that accepts ServiceDiscoveryRuleArray and ServiceDiscoveryRuleArrayOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleArrayInput` via:
ServiceDiscoveryRuleArray{ ServiceDiscoveryRuleArgs{...} }
type ServiceDiscoveryRuleArrayOutput ¶
type ServiceDiscoveryRuleArrayOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleArrayOutput) ElementType ¶
func (ServiceDiscoveryRuleArrayOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleArrayOutput) Index ¶
func (o ServiceDiscoveryRuleArrayOutput) Index(i pulumi.IntInput) ServiceDiscoveryRuleOutput
func (ServiceDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleArrayOutput ¶
func (o ServiceDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleArrayOutput() ServiceDiscoveryRuleArrayOutput
func (ServiceDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleArrayOutputWithContext ¶
func (o ServiceDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleArrayOutput
type ServiceDiscoveryRuleDiscoveryRule ¶
type ServiceDiscoveryRuleDiscoveryRule struct { // Specifies the matched value. This is a list of strings. CheckContents []string `pulumi:"checkContents"` // Specifies the match condition. The values can be **contain** and **equals**. CheckMode string `pulumi:"checkMode"` // Specifies the match type. The values can be **cmdLine**, **env** and **scope**. CheckType string `pulumi:"checkType"` }
type ServiceDiscoveryRuleDiscoveryRuleArgs ¶
type ServiceDiscoveryRuleDiscoveryRuleArgs struct { // Specifies the matched value. This is a list of strings. CheckContents pulumi.StringArrayInput `pulumi:"checkContents"` // Specifies the match condition. The values can be **contain** and **equals**. CheckMode pulumi.StringInput `pulumi:"checkMode"` // Specifies the match type. The values can be **cmdLine**, **env** and **scope**. CheckType pulumi.StringInput `pulumi:"checkType"` }
func (ServiceDiscoveryRuleDiscoveryRuleArgs) ElementType ¶
func (ServiceDiscoveryRuleDiscoveryRuleArgs) ElementType() reflect.Type
func (ServiceDiscoveryRuleDiscoveryRuleArgs) ToServiceDiscoveryRuleDiscoveryRuleOutput ¶
func (i ServiceDiscoveryRuleDiscoveryRuleArgs) ToServiceDiscoveryRuleDiscoveryRuleOutput() ServiceDiscoveryRuleDiscoveryRuleOutput
func (ServiceDiscoveryRuleDiscoveryRuleArgs) ToServiceDiscoveryRuleDiscoveryRuleOutputWithContext ¶
func (i ServiceDiscoveryRuleDiscoveryRuleArgs) ToServiceDiscoveryRuleDiscoveryRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleDiscoveryRuleOutput
type ServiceDiscoveryRuleDiscoveryRuleArray ¶
type ServiceDiscoveryRuleDiscoveryRuleArray []ServiceDiscoveryRuleDiscoveryRuleInput
func (ServiceDiscoveryRuleDiscoveryRuleArray) ElementType ¶
func (ServiceDiscoveryRuleDiscoveryRuleArray) ElementType() reflect.Type
func (ServiceDiscoveryRuleDiscoveryRuleArray) ToServiceDiscoveryRuleDiscoveryRuleArrayOutput ¶
func (i ServiceDiscoveryRuleDiscoveryRuleArray) ToServiceDiscoveryRuleDiscoveryRuleArrayOutput() ServiceDiscoveryRuleDiscoveryRuleArrayOutput
func (ServiceDiscoveryRuleDiscoveryRuleArray) ToServiceDiscoveryRuleDiscoveryRuleArrayOutputWithContext ¶
func (i ServiceDiscoveryRuleDiscoveryRuleArray) ToServiceDiscoveryRuleDiscoveryRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleDiscoveryRuleArrayOutput
type ServiceDiscoveryRuleDiscoveryRuleArrayInput ¶
type ServiceDiscoveryRuleDiscoveryRuleArrayInput interface { pulumi.Input ToServiceDiscoveryRuleDiscoveryRuleArrayOutput() ServiceDiscoveryRuleDiscoveryRuleArrayOutput ToServiceDiscoveryRuleDiscoveryRuleArrayOutputWithContext(context.Context) ServiceDiscoveryRuleDiscoveryRuleArrayOutput }
ServiceDiscoveryRuleDiscoveryRuleArrayInput is an input type that accepts ServiceDiscoveryRuleDiscoveryRuleArray and ServiceDiscoveryRuleDiscoveryRuleArrayOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleDiscoveryRuleArrayInput` via:
ServiceDiscoveryRuleDiscoveryRuleArray{ ServiceDiscoveryRuleDiscoveryRuleArgs{...} }
type ServiceDiscoveryRuleDiscoveryRuleArrayOutput ¶
type ServiceDiscoveryRuleDiscoveryRuleArrayOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleDiscoveryRuleArrayOutput) ElementType ¶
func (ServiceDiscoveryRuleDiscoveryRuleArrayOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleDiscoveryRuleArrayOutput ¶
func (o ServiceDiscoveryRuleDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleDiscoveryRuleArrayOutput() ServiceDiscoveryRuleDiscoveryRuleArrayOutput
func (ServiceDiscoveryRuleDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleDiscoveryRuleArrayOutputWithContext ¶
func (o ServiceDiscoveryRuleDiscoveryRuleArrayOutput) ToServiceDiscoveryRuleDiscoveryRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleDiscoveryRuleArrayOutput
type ServiceDiscoveryRuleDiscoveryRuleInput ¶
type ServiceDiscoveryRuleDiscoveryRuleInput interface { pulumi.Input ToServiceDiscoveryRuleDiscoveryRuleOutput() ServiceDiscoveryRuleDiscoveryRuleOutput ToServiceDiscoveryRuleDiscoveryRuleOutputWithContext(context.Context) ServiceDiscoveryRuleDiscoveryRuleOutput }
ServiceDiscoveryRuleDiscoveryRuleInput is an input type that accepts ServiceDiscoveryRuleDiscoveryRuleArgs and ServiceDiscoveryRuleDiscoveryRuleOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleDiscoveryRuleInput` via:
ServiceDiscoveryRuleDiscoveryRuleArgs{...}
type ServiceDiscoveryRuleDiscoveryRuleOutput ¶
type ServiceDiscoveryRuleDiscoveryRuleOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleDiscoveryRuleOutput) CheckContents ¶
func (o ServiceDiscoveryRuleDiscoveryRuleOutput) CheckContents() pulumi.StringArrayOutput
Specifies the matched value. This is a list of strings.
func (ServiceDiscoveryRuleDiscoveryRuleOutput) CheckMode ¶
func (o ServiceDiscoveryRuleDiscoveryRuleOutput) CheckMode() pulumi.StringOutput
Specifies the match condition. The values can be **contain** and **equals**.
func (ServiceDiscoveryRuleDiscoveryRuleOutput) CheckType ¶
func (o ServiceDiscoveryRuleDiscoveryRuleOutput) CheckType() pulumi.StringOutput
Specifies the match type. The values can be **cmdLine**, **env** and **scope**.
func (ServiceDiscoveryRuleDiscoveryRuleOutput) ElementType ¶
func (ServiceDiscoveryRuleDiscoveryRuleOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleDiscoveryRuleOutput) ToServiceDiscoveryRuleDiscoveryRuleOutput ¶
func (o ServiceDiscoveryRuleDiscoveryRuleOutput) ToServiceDiscoveryRuleDiscoveryRuleOutput() ServiceDiscoveryRuleDiscoveryRuleOutput
func (ServiceDiscoveryRuleDiscoveryRuleOutput) ToServiceDiscoveryRuleDiscoveryRuleOutputWithContext ¶
func (o ServiceDiscoveryRuleDiscoveryRuleOutput) ToServiceDiscoveryRuleDiscoveryRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleDiscoveryRuleOutput
type ServiceDiscoveryRuleInput ¶
type ServiceDiscoveryRuleInput interface { pulumi.Input ToServiceDiscoveryRuleOutput() ServiceDiscoveryRuleOutput ToServiceDiscoveryRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleOutput }
type ServiceDiscoveryRuleLogPathRule ¶
type ServiceDiscoveryRuleLogPathRule struct { // Specifies the input value. Args []string `pulumi:"args"` // Specifies the value type. The value can be **cmdLineHash**, **cmdLine**, **env** // and **str**. NameType string `pulumi:"nameType"` // Specifies the application name, which is mandatory only when the value of // `nameType` is **cmdLineHash**. Values []string `pulumi:"values"` }
type ServiceDiscoveryRuleLogPathRuleArgs ¶
type ServiceDiscoveryRuleLogPathRuleArgs struct { // Specifies the input value. Args pulumi.StringArrayInput `pulumi:"args"` // Specifies the value type. The value can be **cmdLineHash**, **cmdLine**, **env** // and **str**. NameType pulumi.StringInput `pulumi:"nameType"` // Specifies the application name, which is mandatory only when the value of // `nameType` is **cmdLineHash**. Values pulumi.StringArrayInput `pulumi:"values"` }
func (ServiceDiscoveryRuleLogPathRuleArgs) ElementType ¶
func (ServiceDiscoveryRuleLogPathRuleArgs) ElementType() reflect.Type
func (ServiceDiscoveryRuleLogPathRuleArgs) ToServiceDiscoveryRuleLogPathRuleOutput ¶
func (i ServiceDiscoveryRuleLogPathRuleArgs) ToServiceDiscoveryRuleLogPathRuleOutput() ServiceDiscoveryRuleLogPathRuleOutput
func (ServiceDiscoveryRuleLogPathRuleArgs) ToServiceDiscoveryRuleLogPathRuleOutputWithContext ¶
func (i ServiceDiscoveryRuleLogPathRuleArgs) ToServiceDiscoveryRuleLogPathRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleLogPathRuleOutput
type ServiceDiscoveryRuleLogPathRuleArray ¶
type ServiceDiscoveryRuleLogPathRuleArray []ServiceDiscoveryRuleLogPathRuleInput
func (ServiceDiscoveryRuleLogPathRuleArray) ElementType ¶
func (ServiceDiscoveryRuleLogPathRuleArray) ElementType() reflect.Type
func (ServiceDiscoveryRuleLogPathRuleArray) ToServiceDiscoveryRuleLogPathRuleArrayOutput ¶
func (i ServiceDiscoveryRuleLogPathRuleArray) ToServiceDiscoveryRuleLogPathRuleArrayOutput() ServiceDiscoveryRuleLogPathRuleArrayOutput
func (ServiceDiscoveryRuleLogPathRuleArray) ToServiceDiscoveryRuleLogPathRuleArrayOutputWithContext ¶
func (i ServiceDiscoveryRuleLogPathRuleArray) ToServiceDiscoveryRuleLogPathRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleLogPathRuleArrayOutput
type ServiceDiscoveryRuleLogPathRuleArrayInput ¶
type ServiceDiscoveryRuleLogPathRuleArrayInput interface { pulumi.Input ToServiceDiscoveryRuleLogPathRuleArrayOutput() ServiceDiscoveryRuleLogPathRuleArrayOutput ToServiceDiscoveryRuleLogPathRuleArrayOutputWithContext(context.Context) ServiceDiscoveryRuleLogPathRuleArrayOutput }
ServiceDiscoveryRuleLogPathRuleArrayInput is an input type that accepts ServiceDiscoveryRuleLogPathRuleArray and ServiceDiscoveryRuleLogPathRuleArrayOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleLogPathRuleArrayInput` via:
ServiceDiscoveryRuleLogPathRuleArray{ ServiceDiscoveryRuleLogPathRuleArgs{...} }
type ServiceDiscoveryRuleLogPathRuleArrayOutput ¶
type ServiceDiscoveryRuleLogPathRuleArrayOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleLogPathRuleArrayOutput) ElementType ¶
func (ServiceDiscoveryRuleLogPathRuleArrayOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleLogPathRuleArrayOutput) ToServiceDiscoveryRuleLogPathRuleArrayOutput ¶
func (o ServiceDiscoveryRuleLogPathRuleArrayOutput) ToServiceDiscoveryRuleLogPathRuleArrayOutput() ServiceDiscoveryRuleLogPathRuleArrayOutput
func (ServiceDiscoveryRuleLogPathRuleArrayOutput) ToServiceDiscoveryRuleLogPathRuleArrayOutputWithContext ¶
func (o ServiceDiscoveryRuleLogPathRuleArrayOutput) ToServiceDiscoveryRuleLogPathRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleLogPathRuleArrayOutput
type ServiceDiscoveryRuleLogPathRuleInput ¶
type ServiceDiscoveryRuleLogPathRuleInput interface { pulumi.Input ToServiceDiscoveryRuleLogPathRuleOutput() ServiceDiscoveryRuleLogPathRuleOutput ToServiceDiscoveryRuleLogPathRuleOutputWithContext(context.Context) ServiceDiscoveryRuleLogPathRuleOutput }
ServiceDiscoveryRuleLogPathRuleInput is an input type that accepts ServiceDiscoveryRuleLogPathRuleArgs and ServiceDiscoveryRuleLogPathRuleOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleLogPathRuleInput` via:
ServiceDiscoveryRuleLogPathRuleArgs{...}
type ServiceDiscoveryRuleLogPathRuleOutput ¶
type ServiceDiscoveryRuleLogPathRuleOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleLogPathRuleOutput) Args ¶
func (o ServiceDiscoveryRuleLogPathRuleOutput) Args() pulumi.StringArrayOutput
Specifies the input value.
func (ServiceDiscoveryRuleLogPathRuleOutput) ElementType ¶
func (ServiceDiscoveryRuleLogPathRuleOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleLogPathRuleOutput) NameType ¶
func (o ServiceDiscoveryRuleLogPathRuleOutput) NameType() pulumi.StringOutput
Specifies the value type. The value can be **cmdLineHash**, **cmdLine**, **env** and **str**.
func (ServiceDiscoveryRuleLogPathRuleOutput) ToServiceDiscoveryRuleLogPathRuleOutput ¶
func (o ServiceDiscoveryRuleLogPathRuleOutput) ToServiceDiscoveryRuleLogPathRuleOutput() ServiceDiscoveryRuleLogPathRuleOutput
func (ServiceDiscoveryRuleLogPathRuleOutput) ToServiceDiscoveryRuleLogPathRuleOutputWithContext ¶
func (o ServiceDiscoveryRuleLogPathRuleOutput) ToServiceDiscoveryRuleLogPathRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleLogPathRuleOutput
func (ServiceDiscoveryRuleLogPathRuleOutput) Values ¶
func (o ServiceDiscoveryRuleLogPathRuleOutput) Values() pulumi.StringArrayOutput
Specifies the application name, which is mandatory only when the value of `nameType` is **cmdLineHash**.
type ServiceDiscoveryRuleMap ¶
type ServiceDiscoveryRuleMap map[string]ServiceDiscoveryRuleInput
func (ServiceDiscoveryRuleMap) ElementType ¶
func (ServiceDiscoveryRuleMap) ElementType() reflect.Type
func (ServiceDiscoveryRuleMap) ToServiceDiscoveryRuleMapOutput ¶
func (i ServiceDiscoveryRuleMap) ToServiceDiscoveryRuleMapOutput() ServiceDiscoveryRuleMapOutput
func (ServiceDiscoveryRuleMap) ToServiceDiscoveryRuleMapOutputWithContext ¶
func (i ServiceDiscoveryRuleMap) ToServiceDiscoveryRuleMapOutputWithContext(ctx context.Context) ServiceDiscoveryRuleMapOutput
type ServiceDiscoveryRuleMapInput ¶
type ServiceDiscoveryRuleMapInput interface { pulumi.Input ToServiceDiscoveryRuleMapOutput() ServiceDiscoveryRuleMapOutput ToServiceDiscoveryRuleMapOutputWithContext(context.Context) ServiceDiscoveryRuleMapOutput }
ServiceDiscoveryRuleMapInput is an input type that accepts ServiceDiscoveryRuleMap and ServiceDiscoveryRuleMapOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleMapInput` via:
ServiceDiscoveryRuleMap{ "key": ServiceDiscoveryRuleArgs{...} }
type ServiceDiscoveryRuleMapOutput ¶
type ServiceDiscoveryRuleMapOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleMapOutput) ElementType ¶
func (ServiceDiscoveryRuleMapOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleMapOutput) MapIndex ¶
func (o ServiceDiscoveryRuleMapOutput) MapIndex(k pulumi.StringInput) ServiceDiscoveryRuleOutput
func (ServiceDiscoveryRuleMapOutput) ToServiceDiscoveryRuleMapOutput ¶
func (o ServiceDiscoveryRuleMapOutput) ToServiceDiscoveryRuleMapOutput() ServiceDiscoveryRuleMapOutput
func (ServiceDiscoveryRuleMapOutput) ToServiceDiscoveryRuleMapOutputWithContext ¶
func (o ServiceDiscoveryRuleMapOutput) ToServiceDiscoveryRuleMapOutputWithContext(ctx context.Context) ServiceDiscoveryRuleMapOutput
type ServiceDiscoveryRuleNameRules ¶
type ServiceDiscoveryRuleNameRules struct { // Specifies the application name rule. If the value of `nameType` is // **cmdLine**, `args` is in the format of ["start", "end"], indicating that the characters between start and end in // the command are extracted. If the value of `nameType` is **env**, `args` is in the format of ["aa"], indicating that // the environment variable named aa is extracted. If the value of `nameType` is **str**, `args` is in the format of // ["fix"], indicating that the application name is suffixed with fix. If the value of `nameType` is **cmdLineHash**, // `args` is in the format of ["0001"] and `value` is in the format of ["ser"], indicating that the application name is // ser when the startup command is 0001. The object structure is documented below. ApplicationNameRules []ServiceDiscoveryRuleNameRulesApplicationNameRule `pulumi:"applicationNameRules"` // Specifies the service name rule. If there are multiple objects in the array, // the character strings extracted from these objects constitute the service name. If the value of `nameType` is // **cmdLine**, `args` is in the format of ["start", "end"], indicating that the characters between start and end // in the command are extracted. If the value of `nameType` is **env**, `args` is in the format of ["aa"], // indicating that the environment variable named aa is extracted. If the value of `nameType` is **str**, `args` is in the // format of ["fix"], indicating that the service name is suffixed with fix. If the value of `nameType` is // **cmdLineHash**, `args` is in the format of ["0001"] and `value` is in the format of ["ser"], indicating that the // service name is ser when the startup command is 0001. The object structure is // documented below. ServiceNameRules []ServiceDiscoveryRuleNameRulesServiceNameRule `pulumi:"serviceNameRules"` }
type ServiceDiscoveryRuleNameRulesApplicationNameRule ¶
type ServiceDiscoveryRuleNameRulesApplicationNameRule struct { // Specifies the input value. Args []string `pulumi:"args"` // Specifies the value type. The value can be **cmdLineHash**, **cmdLine**, **env** // and **str**. NameType string `pulumi:"nameType"` // Specifies the application name, which is mandatory only when the value of // `nameType` is **cmdLineHash**. Values []string `pulumi:"values"` }
type ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs ¶
type ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs struct { // Specifies the input value. Args pulumi.StringArrayInput `pulumi:"args"` // Specifies the value type. The value can be **cmdLineHash**, **cmdLine**, **env** // and **str**. NameType pulumi.StringInput `pulumi:"nameType"` // Specifies the application name, which is mandatory only when the value of // `nameType` is **cmdLineHash**. Values pulumi.StringArrayInput `pulumi:"values"` }
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs) ElementType ¶
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutput ¶
func (i ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutput() ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutputWithContext ¶
func (i ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput
type ServiceDiscoveryRuleNameRulesApplicationNameRuleArray ¶
type ServiceDiscoveryRuleNameRulesApplicationNameRuleArray []ServiceDiscoveryRuleNameRulesApplicationNameRuleInput
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArray) ElementType ¶
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArray) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArray) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput ¶
func (i ServiceDiscoveryRuleNameRulesApplicationNameRuleArray) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput() ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArray) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutputWithContext ¶
func (i ServiceDiscoveryRuleNameRulesApplicationNameRuleArray) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
type ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayInput ¶
type ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayInput interface { pulumi.Input ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput() ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutputWithContext(context.Context) ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput }
ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayInput is an input type that accepts ServiceDiscoveryRuleNameRulesApplicationNameRuleArray and ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayInput` via:
ServiceDiscoveryRuleNameRulesApplicationNameRuleArray{ ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs{...} }
type ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput ¶
type ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput) ElementType ¶
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput ¶
func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput() ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutputWithContext ¶
func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
type ServiceDiscoveryRuleNameRulesApplicationNameRuleInput ¶
type ServiceDiscoveryRuleNameRulesApplicationNameRuleInput interface { pulumi.Input ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutput() ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutputWithContext(context.Context) ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput }
ServiceDiscoveryRuleNameRulesApplicationNameRuleInput is an input type that accepts ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs and ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleNameRulesApplicationNameRuleInput` via:
ServiceDiscoveryRuleNameRulesApplicationNameRuleArgs{...}
type ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput ¶
type ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) ElementType ¶
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) NameType ¶
func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) NameType() pulumi.StringOutput
Specifies the value type. The value can be **cmdLineHash**, **cmdLine**, **env** and **str**.
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutput ¶
func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutput() ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutputWithContext ¶
func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) ToServiceDiscoveryRuleNameRulesApplicationNameRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput
func (ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) Values ¶
func (o ServiceDiscoveryRuleNameRulesApplicationNameRuleOutput) Values() pulumi.StringArrayOutput
Specifies the application name, which is mandatory only when the value of `nameType` is **cmdLineHash**.
type ServiceDiscoveryRuleNameRulesArgs ¶
type ServiceDiscoveryRuleNameRulesArgs struct { // Specifies the application name rule. If the value of `nameType` is // **cmdLine**, `args` is in the format of ["start", "end"], indicating that the characters between start and end in // the command are extracted. If the value of `nameType` is **env**, `args` is in the format of ["aa"], indicating that // the environment variable named aa is extracted. If the value of `nameType` is **str**, `args` is in the format of // ["fix"], indicating that the application name is suffixed with fix. If the value of `nameType` is **cmdLineHash**, // `args` is in the format of ["0001"] and `value` is in the format of ["ser"], indicating that the application name is // ser when the startup command is 0001. The object structure is documented below. ApplicationNameRules ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayInput `pulumi:"applicationNameRules"` // Specifies the service name rule. If there are multiple objects in the array, // the character strings extracted from these objects constitute the service name. If the value of `nameType` is // **cmdLine**, `args` is in the format of ["start", "end"], indicating that the characters between start and end // in the command are extracted. If the value of `nameType` is **env**, `args` is in the format of ["aa"], // indicating that the environment variable named aa is extracted. If the value of `nameType` is **str**, `args` is in the // format of ["fix"], indicating that the service name is suffixed with fix. If the value of `nameType` is // **cmdLineHash**, `args` is in the format of ["0001"] and `value` is in the format of ["ser"], indicating that the // service name is ser when the startup command is 0001. The object structure is // documented below. ServiceNameRules ServiceDiscoveryRuleNameRulesServiceNameRuleArrayInput `pulumi:"serviceNameRules"` }
func (ServiceDiscoveryRuleNameRulesArgs) ElementType ¶
func (ServiceDiscoveryRuleNameRulesArgs) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesOutput ¶
func (i ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesOutput() ServiceDiscoveryRuleNameRulesOutput
func (ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesOutputWithContext ¶
func (i ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesOutput
func (ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesPtrOutput ¶
func (i ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesPtrOutput() ServiceDiscoveryRuleNameRulesPtrOutput
func (ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesPtrOutputWithContext ¶
func (i ServiceDiscoveryRuleNameRulesArgs) ToServiceDiscoveryRuleNameRulesPtrOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesPtrOutput
type ServiceDiscoveryRuleNameRulesInput ¶
type ServiceDiscoveryRuleNameRulesInput interface { pulumi.Input ToServiceDiscoveryRuleNameRulesOutput() ServiceDiscoveryRuleNameRulesOutput ToServiceDiscoveryRuleNameRulesOutputWithContext(context.Context) ServiceDiscoveryRuleNameRulesOutput }
ServiceDiscoveryRuleNameRulesInput is an input type that accepts ServiceDiscoveryRuleNameRulesArgs and ServiceDiscoveryRuleNameRulesOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleNameRulesInput` via:
ServiceDiscoveryRuleNameRulesArgs{...}
type ServiceDiscoveryRuleNameRulesOutput ¶
type ServiceDiscoveryRuleNameRulesOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleNameRulesOutput) ApplicationNameRules ¶
func (o ServiceDiscoveryRuleNameRulesOutput) ApplicationNameRules() ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
Specifies the application name rule. If the value of `nameType` is **cmdLine**, `args` is in the format of ["start", "end"], indicating that the characters between start and end in the command are extracted. If the value of `nameType` is **env**, `args` is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of `nameType` is **str**, `args` is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value of `nameType` is **cmdLineHash**, `args` is in the format of ["0001"] and `value` is in the format of ["ser"], indicating that the application name is ser when the startup command is 0001. The object structure is documented below.
func (ServiceDiscoveryRuleNameRulesOutput) ElementType ¶
func (ServiceDiscoveryRuleNameRulesOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesOutput) ServiceNameRules ¶
func (o ServiceDiscoveryRuleNameRulesOutput) ServiceNameRules() ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
Specifies the service name rule. If there are multiple objects in the array, the character strings extracted from these objects constitute the service name. If the value of `nameType` is **cmdLine**, `args` is in the format of ["start", "end"], indicating that the characters between start and end in the command are extracted. If the value of `nameType` is **env**, `args` is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of `nameType` is **str**, `args` is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value of `nameType` is **cmdLineHash**, `args` is in the format of ["0001"] and `value` is in the format of ["ser"], indicating that the service name is ser when the startup command is 0001. The object structure is documented below.
func (ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesOutput ¶
func (o ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesOutput() ServiceDiscoveryRuleNameRulesOutput
func (ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesOutputWithContext ¶
func (o ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesOutput
func (ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesPtrOutput ¶
func (o ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesPtrOutput() ServiceDiscoveryRuleNameRulesPtrOutput
func (ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesPtrOutputWithContext ¶
func (o ServiceDiscoveryRuleNameRulesOutput) ToServiceDiscoveryRuleNameRulesPtrOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesPtrOutput
type ServiceDiscoveryRuleNameRulesPtrInput ¶
type ServiceDiscoveryRuleNameRulesPtrInput interface { pulumi.Input ToServiceDiscoveryRuleNameRulesPtrOutput() ServiceDiscoveryRuleNameRulesPtrOutput ToServiceDiscoveryRuleNameRulesPtrOutputWithContext(context.Context) ServiceDiscoveryRuleNameRulesPtrOutput }
ServiceDiscoveryRuleNameRulesPtrInput is an input type that accepts ServiceDiscoveryRuleNameRulesArgs, ServiceDiscoveryRuleNameRulesPtr and ServiceDiscoveryRuleNameRulesPtrOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleNameRulesPtrInput` via:
ServiceDiscoveryRuleNameRulesArgs{...} or: nil
func ServiceDiscoveryRuleNameRulesPtr ¶
func ServiceDiscoveryRuleNameRulesPtr(v *ServiceDiscoveryRuleNameRulesArgs) ServiceDiscoveryRuleNameRulesPtrInput
type ServiceDiscoveryRuleNameRulesPtrOutput ¶
type ServiceDiscoveryRuleNameRulesPtrOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleNameRulesPtrOutput) ApplicationNameRules ¶
func (o ServiceDiscoveryRuleNameRulesPtrOutput) ApplicationNameRules() ServiceDiscoveryRuleNameRulesApplicationNameRuleArrayOutput
Specifies the application name rule. If the value of `nameType` is **cmdLine**, `args` is in the format of ["start", "end"], indicating that the characters between start and end in the command are extracted. If the value of `nameType` is **env**, `args` is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of `nameType` is **str**, `args` is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value of `nameType` is **cmdLineHash**, `args` is in the format of ["0001"] and `value` is in the format of ["ser"], indicating that the application name is ser when the startup command is 0001. The object structure is documented below.
func (ServiceDiscoveryRuleNameRulesPtrOutput) ElementType ¶
func (ServiceDiscoveryRuleNameRulesPtrOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesPtrOutput) ServiceNameRules ¶
func (o ServiceDiscoveryRuleNameRulesPtrOutput) ServiceNameRules() ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
Specifies the service name rule. If there are multiple objects in the array, the character strings extracted from these objects constitute the service name. If the value of `nameType` is **cmdLine**, `args` is in the format of ["start", "end"], indicating that the characters between start and end in the command are extracted. If the value of `nameType` is **env**, `args` is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of `nameType` is **str**, `args` is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value of `nameType` is **cmdLineHash**, `args` is in the format of ["0001"] and `value` is in the format of ["ser"], indicating that the service name is ser when the startup command is 0001. The object structure is documented below.
func (ServiceDiscoveryRuleNameRulesPtrOutput) ToServiceDiscoveryRuleNameRulesPtrOutput ¶
func (o ServiceDiscoveryRuleNameRulesPtrOutput) ToServiceDiscoveryRuleNameRulesPtrOutput() ServiceDiscoveryRuleNameRulesPtrOutput
func (ServiceDiscoveryRuleNameRulesPtrOutput) ToServiceDiscoveryRuleNameRulesPtrOutputWithContext ¶
func (o ServiceDiscoveryRuleNameRulesPtrOutput) ToServiceDiscoveryRuleNameRulesPtrOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesPtrOutput
type ServiceDiscoveryRuleNameRulesServiceNameRule ¶
type ServiceDiscoveryRuleNameRulesServiceNameRule struct { // Specifies the input value. Args []string `pulumi:"args"` // Specifies the value type. The value can be **cmdLineHash**, **cmdLine**, **env** // and **str**. NameType string `pulumi:"nameType"` // Specifies the application name, which is mandatory only when the value of // `nameType` is **cmdLineHash**. Values []string `pulumi:"values"` }
type ServiceDiscoveryRuleNameRulesServiceNameRuleArgs ¶
type ServiceDiscoveryRuleNameRulesServiceNameRuleArgs struct { // Specifies the input value. Args pulumi.StringArrayInput `pulumi:"args"` // Specifies the value type. The value can be **cmdLineHash**, **cmdLine**, **env** // and **str**. NameType pulumi.StringInput `pulumi:"nameType"` // Specifies the application name, which is mandatory only when the value of // `nameType` is **cmdLineHash**. Values pulumi.StringArrayInput `pulumi:"values"` }
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArgs) ElementType ¶
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArgs) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArgs) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutput ¶
func (i ServiceDiscoveryRuleNameRulesServiceNameRuleArgs) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutput() ServiceDiscoveryRuleNameRulesServiceNameRuleOutput
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArgs) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutputWithContext ¶
func (i ServiceDiscoveryRuleNameRulesServiceNameRuleArgs) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesServiceNameRuleOutput
type ServiceDiscoveryRuleNameRulesServiceNameRuleArray ¶
type ServiceDiscoveryRuleNameRulesServiceNameRuleArray []ServiceDiscoveryRuleNameRulesServiceNameRuleInput
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArray) ElementType ¶
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArray) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArray) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput ¶
func (i ServiceDiscoveryRuleNameRulesServiceNameRuleArray) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput() ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArray) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutputWithContext ¶
func (i ServiceDiscoveryRuleNameRulesServiceNameRuleArray) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
type ServiceDiscoveryRuleNameRulesServiceNameRuleArrayInput ¶
type ServiceDiscoveryRuleNameRulesServiceNameRuleArrayInput interface { pulumi.Input ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput() ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutputWithContext(context.Context) ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput }
ServiceDiscoveryRuleNameRulesServiceNameRuleArrayInput is an input type that accepts ServiceDiscoveryRuleNameRulesServiceNameRuleArray and ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleNameRulesServiceNameRuleArrayInput` via:
ServiceDiscoveryRuleNameRulesServiceNameRuleArray{ ServiceDiscoveryRuleNameRulesServiceNameRuleArgs{...} }
type ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput ¶
type ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput) ElementType ¶
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput ¶
func (o ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput() ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
func (ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutputWithContext ¶
func (o ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesServiceNameRuleArrayOutput
type ServiceDiscoveryRuleNameRulesServiceNameRuleInput ¶
type ServiceDiscoveryRuleNameRulesServiceNameRuleInput interface { pulumi.Input ToServiceDiscoveryRuleNameRulesServiceNameRuleOutput() ServiceDiscoveryRuleNameRulesServiceNameRuleOutput ToServiceDiscoveryRuleNameRulesServiceNameRuleOutputWithContext(context.Context) ServiceDiscoveryRuleNameRulesServiceNameRuleOutput }
ServiceDiscoveryRuleNameRulesServiceNameRuleInput is an input type that accepts ServiceDiscoveryRuleNameRulesServiceNameRuleArgs and ServiceDiscoveryRuleNameRulesServiceNameRuleOutput values. You can construct a concrete instance of `ServiceDiscoveryRuleNameRulesServiceNameRuleInput` via:
ServiceDiscoveryRuleNameRulesServiceNameRuleArgs{...}
type ServiceDiscoveryRuleNameRulesServiceNameRuleOutput ¶
type ServiceDiscoveryRuleNameRulesServiceNameRuleOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) ElementType ¶
func (ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) NameType ¶
func (o ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) NameType() pulumi.StringOutput
Specifies the value type. The value can be **cmdLineHash**, **cmdLine**, **env** and **str**.
func (ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutput ¶
func (o ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutput() ServiceDiscoveryRuleNameRulesServiceNameRuleOutput
func (ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutputWithContext ¶
func (o ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) ToServiceDiscoveryRuleNameRulesServiceNameRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleNameRulesServiceNameRuleOutput
func (ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) Values ¶
func (o ServiceDiscoveryRuleNameRulesServiceNameRuleOutput) Values() pulumi.StringArrayOutput
Specifies the application name, which is mandatory only when the value of `nameType` is **cmdLineHash**.
type ServiceDiscoveryRuleOutput ¶
type ServiceDiscoveryRuleOutput struct{ *pulumi.OutputState }
func (ServiceDiscoveryRuleOutput) DetectLogEnabled ¶
func (o ServiceDiscoveryRuleOutput) DetectLogEnabled() pulumi.BoolPtrOutput
Specifies whether to enable log collection. The default value is true.
func (ServiceDiscoveryRuleOutput) DiscoveryRuleEnabled ¶
func (o ServiceDiscoveryRuleOutput) DiscoveryRuleEnabled() pulumi.BoolPtrOutput
Specifies whether the rule is enabled. The default value is true.
func (ServiceDiscoveryRuleOutput) DiscoveryRules ¶
func (o ServiceDiscoveryRuleOutput) DiscoveryRules() ServiceDiscoveryRuleDiscoveryRuleArrayOutput
Specifies the discovery rule. If the array contains multiple conditions, only the processes that meet all the conditions will be matched. If the value of `checkType` is **cmdLine**, set the value of `checkMode` to **contain**. `checkContent` is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of `checkType` is **env**, set the value of `checkMode` to **contain**. `checkContent` is in the format of ["k1","v1"], indicating that the process must contain the environment variable whose name is k1 and value is v1. If the value of `checkType` is **scope**, set the value of `checkMode` to **equals**. `checkContent` is in the format of ["hostId1","hostId2"], indicating that the rule takes effect only on specified nodes. If no nodes are specified, the rule applies to all nodes of the project.
func (ServiceDiscoveryRuleOutput) ElementType ¶
func (ServiceDiscoveryRuleOutput) ElementType() reflect.Type
func (ServiceDiscoveryRuleOutput) IsDefaultRule ¶
func (o ServiceDiscoveryRuleOutput) IsDefaultRule() pulumi.BoolPtrOutput
Specifies whether the rule is the default one. The default value is false.
func (ServiceDiscoveryRuleOutput) LogFileSuffixes ¶
func (o ServiceDiscoveryRuleOutput) LogFileSuffixes() pulumi.StringArrayOutput
Specifies the log file suffix. This is a list of strings. The values can be: **log**, **trace**, and **out**.
func (ServiceDiscoveryRuleOutput) LogPathRules ¶
func (o ServiceDiscoveryRuleOutput) LogPathRules() ServiceDiscoveryRuleLogPathRuleArrayOutput
Specifies the log path configuration rule. If cmdLineHash is a fixed string, logs in the specified log path or log file are collected. Otherwise, only the files whose names end with .log or .trace are collected. If the value of `nameType` is **cmdLineHash**, args is in the format of ["00001"] and value is in the format of ["/xxx/xx.log"], indicating that the log path is /xxx/xx.log when the startup command is 00001.
func (ServiceDiscoveryRuleOutput) Name ¶
func (o ServiceDiscoveryRuleOutput) Name() pulumi.StringOutput
Specifies the rule name, which contains 4 to 63 characters. It must start with a lowercase letter but cannot end with a hyphen (-). Only digits, lowercase letters, and hyphens are allowed.
func (ServiceDiscoveryRuleOutput) NameRules ¶
func (o ServiceDiscoveryRuleOutput) NameRules() ServiceDiscoveryRuleNameRulesOutput
Specifies the naming rules for discovered services and applications. The object structure is documented below.
func (ServiceDiscoveryRuleOutput) Priority ¶
func (o ServiceDiscoveryRuleOutput) Priority() pulumi.IntPtrOutput
Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
func (ServiceDiscoveryRuleOutput) Region ¶
func (o ServiceDiscoveryRuleOutput) Region() pulumi.StringOutput
The region in which to create the service discovery rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
func (ServiceDiscoveryRuleOutput) RuleId ¶
func (o ServiceDiscoveryRuleOutput) RuleId() pulumi.StringOutput
The rule ID in uuid format.
func (ServiceDiscoveryRuleOutput) ServiceType ¶
func (o ServiceDiscoveryRuleOutput) ServiceType() pulumi.StringOutput
Specifies the service type, which is used only for rule classification and UI display. You can enter any field. For example, enter Java or Python by technology stack, or enter collector or database by function.
func (ServiceDiscoveryRuleOutput) ToServiceDiscoveryRuleOutput ¶
func (o ServiceDiscoveryRuleOutput) ToServiceDiscoveryRuleOutput() ServiceDiscoveryRuleOutput
func (ServiceDiscoveryRuleOutput) ToServiceDiscoveryRuleOutputWithContext ¶
func (o ServiceDiscoveryRuleOutput) ToServiceDiscoveryRuleOutputWithContext(ctx context.Context) ServiceDiscoveryRuleOutput
type ServiceDiscoveryRuleState ¶
type ServiceDiscoveryRuleState struct { // Specifies whether to enable log collection. The default value is true. DetectLogEnabled pulumi.BoolPtrInput // Specifies whether the rule is enabled. The default value is true. DiscoveryRuleEnabled pulumi.BoolPtrInput // Specifies the discovery rule. If the array contains multiple conditions, only the // processes that meet all the conditions will be matched. If the value of `checkType` is **cmdLine**, set the value of // `checkMode` to **contain**. `checkContent` is in the format of ["xxx"], indicating that the process must contain // the xxx parameter. If the value of `checkType` is **env**, set the value of `checkMode` to **contain**. // `checkContent` is in the format of ["k1","v1"], indicating that the process must contain the environment variable // whose name is k1 and value is v1. If the value of `checkType` is **scope**, set the value of `checkMode` // to **equals**. `checkContent` is in the format of ["hostId1","hostId2"], indicating that the rule takes effect only // on specified nodes. If no nodes are specified, the rule applies to all nodes of the project. DiscoveryRules ServiceDiscoveryRuleDiscoveryRuleArrayInput // Specifies whether the rule is the default one. The default value is false. IsDefaultRule pulumi.BoolPtrInput // Specifies the log file suffix. This is a list of strings. // The values can be: **log**, **trace**, and **out**. LogFileSuffixes pulumi.StringArrayInput // Specifies the log path configuration rule. If cmdLineHash is a fixed string, // logs in the specified log path or log file are collected. Otherwise, only the files whose names end with // .log or .trace are collected. If the value of `nameType` is **cmdLineHash**, args is in the format of ["00001"] and // value is in the format of ["/xxx/xx.log"], indicating that the log path is /xxx/xx.log when the startup command is 00001. LogPathRules ServiceDiscoveryRuleLogPathRuleArrayInput // Specifies the rule name, which contains 4 to 63 characters. It must start // with a lowercase letter but cannot end with a hyphen (-). Only digits, lowercase letters, and hyphens are allowed. Name pulumi.StringPtrInput // Specifies the naming rules for discovered services and applications. // The object structure is documented below. NameRules ServiceDiscoveryRuleNameRulesPtrInput // Specifies the rule priority. Value range: 1 to 9999. The default value is 9999. Priority pulumi.IntPtrInput // The region in which to create the service discovery rule resource. If omitted, // the provider-level region will be used. Changing this creates a new resource. Region pulumi.StringPtrInput // The rule ID in uuid format. RuleId pulumi.StringPtrInput // Specifies the service type, which is used only for rule classification and UI display. // You can enter any field. For example, enter Java or Python by technology stack, or enter collector or database by function. ServiceType pulumi.StringPtrInput }
func (ServiceDiscoveryRuleState) ElementType ¶
func (ServiceDiscoveryRuleState) ElementType() reflect.Type