flexibleengine.AomServiceDiscoveryRule
Explore with Pulumi AI
Manages an AOM service discovery rule resource within FlexibleEngine.
Example Usage
Basic example
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const discoveryRule = new flexibleengine.AomServiceDiscoveryRule("discoveryRule", {
detectLogEnabled: true,
discoveryRuleEnabled: true,
discoveryRules: [{
checkContents: ["java"],
checkMode: "contain",
checkType: "cmdLine",
}],
isDefaultRule: false,
logFileSuffixes: ["log"],
logPathRules: [{
args: ["java"],
nameType: "cmdLineHash",
values: ["/tmp/log"],
}],
nameRules: {
applicationNameRules: [{
args: ["java"],
nameType: "str",
}],
serviceNameRules: [{
args: ["java"],
nameType: "str",
}],
},
priority: 9999,
serviceType: "Java",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
discovery_rule = flexibleengine.AomServiceDiscoveryRule("discoveryRule",
detect_log_enabled=True,
discovery_rule_enabled=True,
discovery_rules=[{
"check_contents": ["java"],
"check_mode": "contain",
"check_type": "cmdLine",
}],
is_default_rule=False,
log_file_suffixes=["log"],
log_path_rules=[{
"args": ["java"],
"name_type": "cmdLineHash",
"values": ["/tmp/log"],
}],
name_rules={
"application_name_rules": [{
"args": ["java"],
"name_type": "str",
}],
"service_name_rules": [{
"args": ["java"],
"name_type": "str",
}],
},
priority=9999,
service_type="Java")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewAomServiceDiscoveryRule(ctx, "discoveryRule", &flexibleengine.AomServiceDiscoveryRuleArgs{
DetectLogEnabled: pulumi.Bool(true),
DiscoveryRuleEnabled: pulumi.Bool(true),
DiscoveryRules: flexibleengine.AomServiceDiscoveryRuleDiscoveryRuleArray{
&flexibleengine.AomServiceDiscoveryRuleDiscoveryRuleArgs{
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: flexibleengine.AomServiceDiscoveryRuleLogPathRuleArray{
&flexibleengine.AomServiceDiscoveryRuleLogPathRuleArgs{
Args: pulumi.StringArray{
pulumi.String("java"),
},
NameType: pulumi.String("cmdLineHash"),
Values: pulumi.StringArray{
pulumi.String("/tmp/log"),
},
},
},
NameRules: &flexibleengine.AomServiceDiscoveryRuleNameRulesArgs{
ApplicationNameRules: flexibleengine.AomServiceDiscoveryRuleNameRulesApplicationNameRuleArray{
&flexibleengine.AomServiceDiscoveryRuleNameRulesApplicationNameRuleArgs{
Args: pulumi.StringArray{
pulumi.String("java"),
},
NameType: pulumi.String("str"),
},
},
ServiceNameRules: flexibleengine.AomServiceDiscoveryRuleNameRulesServiceNameRuleArray{
&flexibleengine.AomServiceDiscoveryRuleNameRulesServiceNameRuleArgs{
Args: pulumi.StringArray{
pulumi.String("java"),
},
NameType: pulumi.String("str"),
},
},
},
Priority: pulumi.Float64(9999),
ServiceType: pulumi.String("Java"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var discoveryRule = new Flexibleengine.AomServiceDiscoveryRule("discoveryRule", new()
{
DetectLogEnabled = true,
DiscoveryRuleEnabled = true,
DiscoveryRules = new[]
{
new Flexibleengine.Inputs.AomServiceDiscoveryRuleDiscoveryRuleArgs
{
CheckContents = new[]
{
"java",
},
CheckMode = "contain",
CheckType = "cmdLine",
},
},
IsDefaultRule = false,
LogFileSuffixes = new[]
{
"log",
},
LogPathRules = new[]
{
new Flexibleengine.Inputs.AomServiceDiscoveryRuleLogPathRuleArgs
{
Args = new[]
{
"java",
},
NameType = "cmdLineHash",
Values = new[]
{
"/tmp/log",
},
},
},
NameRules = new Flexibleengine.Inputs.AomServiceDiscoveryRuleNameRulesArgs
{
ApplicationNameRules = new[]
{
new Flexibleengine.Inputs.AomServiceDiscoveryRuleNameRulesApplicationNameRuleArgs
{
Args = new[]
{
"java",
},
NameType = "str",
},
},
ServiceNameRules = new[]
{
new Flexibleengine.Inputs.AomServiceDiscoveryRuleNameRulesServiceNameRuleArgs
{
Args = new[]
{
"java",
},
NameType = "str",
},
},
},
Priority = 9999,
ServiceType = "Java",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.AomServiceDiscoveryRule;
import com.pulumi.flexibleengine.AomServiceDiscoveryRuleArgs;
import com.pulumi.flexibleengine.inputs.AomServiceDiscoveryRuleDiscoveryRuleArgs;
import com.pulumi.flexibleengine.inputs.AomServiceDiscoveryRuleLogPathRuleArgs;
import com.pulumi.flexibleengine.inputs.AomServiceDiscoveryRuleNameRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var discoveryRule = new AomServiceDiscoveryRule("discoveryRule", AomServiceDiscoveryRuleArgs.builder()
.detectLogEnabled("true")
.discoveryRuleEnabled("true")
.discoveryRules(AomServiceDiscoveryRuleDiscoveryRuleArgs.builder()
.checkContents("java")
.checkMode("contain")
.checkType("cmdLine")
.build())
.isDefaultRule("false")
.logFileSuffixes("log")
.logPathRules(AomServiceDiscoveryRuleLogPathRuleArgs.builder()
.args("java")
.nameType("cmdLineHash")
.values("/tmp/log")
.build())
.nameRules(AomServiceDiscoveryRuleNameRulesArgs.builder()
.applicationNameRules(AomServiceDiscoveryRuleNameRulesApplicationNameRuleArgs.builder()
.args("java")
.nameType("str")
.build())
.serviceNameRules(AomServiceDiscoveryRuleNameRulesServiceNameRuleArgs.builder()
.args("java")
.nameType("str")
.build())
.build())
.priority(9999)
.serviceType("Java")
.build());
}
}
resources:
discoveryRule:
type: flexibleengine:AomServiceDiscoveryRule
properties:
detectLogEnabled: 'true'
discoveryRuleEnabled: 'true'
discoveryRules:
- checkContents:
- java
checkMode: contain
checkType: cmdLine
isDefaultRule: 'false'
logFileSuffixes:
- log
logPathRules:
- args:
- java
nameType: cmdLineHash
values:
- /tmp/log
nameRules:
applicationNameRules:
- args:
- java
nameType: str
serviceNameRules:
- args:
- java
nameType: str
priority: 9999
serviceType: Java
Create AomServiceDiscoveryRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AomServiceDiscoveryRule(name: string, args: AomServiceDiscoveryRuleArgs, opts?: CustomResourceOptions);
@overload
def AomServiceDiscoveryRule(resource_name: str,
args: AomServiceDiscoveryRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AomServiceDiscoveryRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
log_file_suffixes: Optional[Sequence[str]] = None,
service_type: Optional[str] = None,
name_rules: Optional[AomServiceDiscoveryRuleNameRulesArgs] = None,
discovery_rules: Optional[Sequence[AomServiceDiscoveryRuleDiscoveryRuleArgs]] = None,
log_path_rules: Optional[Sequence[AomServiceDiscoveryRuleLogPathRuleArgs]] = None,
is_default_rule: Optional[bool] = None,
aom_service_discovery_rule_id: Optional[str] = None,
name: Optional[str] = None,
discovery_rule_enabled: Optional[bool] = None,
priority: Optional[float] = None,
region: Optional[str] = None,
detect_log_enabled: Optional[bool] = None,
timeouts: Optional[AomServiceDiscoveryRuleTimeoutsArgs] = None)
func NewAomServiceDiscoveryRule(ctx *Context, name string, args AomServiceDiscoveryRuleArgs, opts ...ResourceOption) (*AomServiceDiscoveryRule, error)
public AomServiceDiscoveryRule(string name, AomServiceDiscoveryRuleArgs args, CustomResourceOptions? opts = null)
public AomServiceDiscoveryRule(String name, AomServiceDiscoveryRuleArgs args)
public AomServiceDiscoveryRule(String name, AomServiceDiscoveryRuleArgs args, CustomResourceOptions options)
type: flexibleengine:AomServiceDiscoveryRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AomServiceDiscoveryRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AomServiceDiscoveryRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AomServiceDiscoveryRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AomServiceDiscoveryRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AomServiceDiscoveryRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var aomServiceDiscoveryRuleResource = new Flexibleengine.AomServiceDiscoveryRule("aomServiceDiscoveryRuleResource", new()
{
LogFileSuffixes = new[]
{
"string",
},
ServiceType = "string",
NameRules = new Flexibleengine.Inputs.AomServiceDiscoveryRuleNameRulesArgs
{
ApplicationNameRules = new[]
{
new Flexibleengine.Inputs.AomServiceDiscoveryRuleNameRulesApplicationNameRuleArgs
{
Args = new[]
{
"string",
},
NameType = "string",
Values = new[]
{
"string",
},
},
},
ServiceNameRules = new[]
{
new Flexibleengine.Inputs.AomServiceDiscoveryRuleNameRulesServiceNameRuleArgs
{
Args = new[]
{
"string",
},
NameType = "string",
Values = new[]
{
"string",
},
},
},
},
DiscoveryRules = new[]
{
new Flexibleengine.Inputs.AomServiceDiscoveryRuleDiscoveryRuleArgs
{
CheckContents = new[]
{
"string",
},
CheckMode = "string",
CheckType = "string",
},
},
LogPathRules = new[]
{
new Flexibleengine.Inputs.AomServiceDiscoveryRuleLogPathRuleArgs
{
Args = new[]
{
"string",
},
NameType = "string",
Values = new[]
{
"string",
},
},
},
IsDefaultRule = false,
AomServiceDiscoveryRuleId = "string",
Name = "string",
DiscoveryRuleEnabled = false,
Priority = 0,
Region = "string",
DetectLogEnabled = false,
Timeouts = new Flexibleengine.Inputs.AomServiceDiscoveryRuleTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := flexibleengine.NewAomServiceDiscoveryRule(ctx, "aomServiceDiscoveryRuleResource", &flexibleengine.AomServiceDiscoveryRuleArgs{
LogFileSuffixes: pulumi.StringArray{
pulumi.String("string"),
},
ServiceType: pulumi.String("string"),
NameRules: &flexibleengine.AomServiceDiscoveryRuleNameRulesArgs{
ApplicationNameRules: flexibleengine.AomServiceDiscoveryRuleNameRulesApplicationNameRuleArray{
&flexibleengine.AomServiceDiscoveryRuleNameRulesApplicationNameRuleArgs{
Args: pulumi.StringArray{
pulumi.String("string"),
},
NameType: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ServiceNameRules: flexibleengine.AomServiceDiscoveryRuleNameRulesServiceNameRuleArray{
&flexibleengine.AomServiceDiscoveryRuleNameRulesServiceNameRuleArgs{
Args: pulumi.StringArray{
pulumi.String("string"),
},
NameType: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
DiscoveryRules: flexibleengine.AomServiceDiscoveryRuleDiscoveryRuleArray{
&flexibleengine.AomServiceDiscoveryRuleDiscoveryRuleArgs{
CheckContents: pulumi.StringArray{
pulumi.String("string"),
},
CheckMode: pulumi.String("string"),
CheckType: pulumi.String("string"),
},
},
LogPathRules: flexibleengine.AomServiceDiscoveryRuleLogPathRuleArray{
&flexibleengine.AomServiceDiscoveryRuleLogPathRuleArgs{
Args: pulumi.StringArray{
pulumi.String("string"),
},
NameType: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
IsDefaultRule: pulumi.Bool(false),
AomServiceDiscoveryRuleId: pulumi.String("string"),
Name: pulumi.String("string"),
DiscoveryRuleEnabled: pulumi.Bool(false),
Priority: pulumi.Float64(0),
Region: pulumi.String("string"),
DetectLogEnabled: pulumi.Bool(false),
Timeouts: &flexibleengine.AomServiceDiscoveryRuleTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var aomServiceDiscoveryRuleResource = new AomServiceDiscoveryRule("aomServiceDiscoveryRuleResource", AomServiceDiscoveryRuleArgs.builder()
.logFileSuffixes("string")
.serviceType("string")
.nameRules(AomServiceDiscoveryRuleNameRulesArgs.builder()
.applicationNameRules(AomServiceDiscoveryRuleNameRulesApplicationNameRuleArgs.builder()
.args("string")
.nameType("string")
.values("string")
.build())
.serviceNameRules(AomServiceDiscoveryRuleNameRulesServiceNameRuleArgs.builder()
.args("string")
.nameType("string")
.values("string")
.build())
.build())
.discoveryRules(AomServiceDiscoveryRuleDiscoveryRuleArgs.builder()
.checkContents("string")
.checkMode("string")
.checkType("string")
.build())
.logPathRules(AomServiceDiscoveryRuleLogPathRuleArgs.builder()
.args("string")
.nameType("string")
.values("string")
.build())
.isDefaultRule(false)
.aomServiceDiscoveryRuleId("string")
.name("string")
.discoveryRuleEnabled(false)
.priority(0)
.region("string")
.detectLogEnabled(false)
.timeouts(AomServiceDiscoveryRuleTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
aom_service_discovery_rule_resource = flexibleengine.AomServiceDiscoveryRule("aomServiceDiscoveryRuleResource",
log_file_suffixes=["string"],
service_type="string",
name_rules={
"application_name_rules": [{
"args": ["string"],
"name_type": "string",
"values": ["string"],
}],
"service_name_rules": [{
"args": ["string"],
"name_type": "string",
"values": ["string"],
}],
},
discovery_rules=[{
"check_contents": ["string"],
"check_mode": "string",
"check_type": "string",
}],
log_path_rules=[{
"args": ["string"],
"name_type": "string",
"values": ["string"],
}],
is_default_rule=False,
aom_service_discovery_rule_id="string",
name="string",
discovery_rule_enabled=False,
priority=0,
region="string",
detect_log_enabled=False,
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const aomServiceDiscoveryRuleResource = new flexibleengine.AomServiceDiscoveryRule("aomServiceDiscoveryRuleResource", {
logFileSuffixes: ["string"],
serviceType: "string",
nameRules: {
applicationNameRules: [{
args: ["string"],
nameType: "string",
values: ["string"],
}],
serviceNameRules: [{
args: ["string"],
nameType: "string",
values: ["string"],
}],
},
discoveryRules: [{
checkContents: ["string"],
checkMode: "string",
checkType: "string",
}],
logPathRules: [{
args: ["string"],
nameType: "string",
values: ["string"],
}],
isDefaultRule: false,
aomServiceDiscoveryRuleId: "string",
name: "string",
discoveryRuleEnabled: false,
priority: 0,
region: "string",
detectLogEnabled: false,
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: flexibleengine:AomServiceDiscoveryRule
properties:
aomServiceDiscoveryRuleId: string
detectLogEnabled: false
discoveryRuleEnabled: false
discoveryRules:
- checkContents:
- string
checkMode: string
checkType: string
isDefaultRule: false
logFileSuffixes:
- string
logPathRules:
- args:
- string
nameType: string
values:
- string
name: string
nameRules:
applicationNameRules:
- args:
- string
nameType: string
values:
- string
serviceNameRules:
- args:
- string
nameType: string
values:
- string
priority: 0
region: string
serviceType: string
timeouts:
create: string
delete: string
update: string
AomServiceDiscoveryRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AomServiceDiscoveryRule resource accepts the following input properties:
- Discovery
Rules List<AomService Discovery Rule Discovery Rule> - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - Log
File List<string>Suffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- Name
Rules AomService Discovery Rule Name Rules - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- Service
Type string - 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.
- Aom
Service stringDiscovery Rule Id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- Detect
Log boolEnabled - Specifies whether to enable log collection. The default value is true.
- Discovery
Rule boolEnabled - Specifies whether the rule is enabled. The default value is true.
- Is
Default boolRule - Specifies whether the rule is the default one. The default value is false.
- Log
Path List<AomRules Service Discovery Rule Log Path Rule> - 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
name_type
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. - Name string
- 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.
- Priority double
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- Region string
- 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.
- Timeouts
Aom
Service Discovery Rule Timeouts
- Discovery
Rules []AomService Discovery Rule Discovery Rule Args - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - Log
File []stringSuffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- Name
Rules AomService Discovery Rule Name Rules Args - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- Service
Type string - 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.
- Aom
Service stringDiscovery Rule Id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- Detect
Log boolEnabled - Specifies whether to enable log collection. The default value is true.
- Discovery
Rule boolEnabled - Specifies whether the rule is enabled. The default value is true.
- Is
Default boolRule - Specifies whether the rule is the default one. The default value is false.
- Log
Path []AomRules Service Discovery Rule Log Path Rule Args - 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
name_type
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. - Name string
- 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.
- Priority float64
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- Region string
- 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.
- Timeouts
Aom
Service Discovery Rule Timeouts Args
- discovery
Rules List<AomService Discovery Rule Discovery Rule> - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - log
File List<String>Suffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- name
Rules AomService Discovery Rule Name Rules - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- service
Type String - 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.
- aom
Service StringDiscovery Rule Id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- detect
Log BooleanEnabled - Specifies whether to enable log collection. The default value is true.
- discovery
Rule BooleanEnabled - Specifies whether the rule is enabled. The default value is true.
- is
Default BooleanRule - Specifies whether the rule is the default one. The default value is false.
- log
Path List<AomRules Service Discovery Rule Log Path Rule> - 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
name_type
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. - name String
- 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.
- priority Double
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- region String
- 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.
- timeouts
Aom
Service Discovery Rule Timeouts
- discovery
Rules AomService Discovery Rule Discovery Rule[] - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - log
File string[]Suffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- name
Rules AomService Discovery Rule Name Rules - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- service
Type string - 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.
- aom
Service stringDiscovery Rule Id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- detect
Log booleanEnabled - Specifies whether to enable log collection. The default value is true.
- discovery
Rule booleanEnabled - Specifies whether the rule is enabled. The default value is true.
- is
Default booleanRule - Specifies whether the rule is the default one. The default value is false.
- log
Path AomRules Service Discovery Rule Log Path Rule[] - 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
name_type
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. - name string
- 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.
- priority number
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- region string
- 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.
- timeouts
Aom
Service Discovery Rule Timeouts
- discovery_
rules Sequence[AomService Discovery Rule Discovery Rule Args] - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - log_
file_ Sequence[str]suffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- name_
rules AomService Discovery Rule Name Rules Args - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- service_
type str - 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.
- aom_
service_ strdiscovery_ rule_ id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- detect_
log_ boolenabled - Specifies whether to enable log collection. The default value is true.
- discovery_
rule_ boolenabled - Specifies whether the rule is enabled. The default value is true.
- is_
default_ boolrule - Specifies whether the rule is the default one. The default value is false.
- log_
path_ Sequence[Aomrules Service Discovery Rule Log Path Rule Args] - 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
name_type
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. - name str
- 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.
- priority float
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- region str
- 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.
- timeouts
Aom
Service Discovery Rule Timeouts Args
- discovery
Rules List<Property Map> - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - log
File List<String>Suffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- name
Rules Property Map - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- service
Type String - 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.
- aom
Service StringDiscovery Rule Id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- detect
Log BooleanEnabled - Specifies whether to enable log collection. The default value is true.
- discovery
Rule BooleanEnabled - Specifies whether the rule is enabled. The default value is true.
- is
Default BooleanRule - Specifies whether the rule is the default one. The default value is false.
- log
Path List<Property Map>Rules - 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
name_type
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. - name String
- 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.
- priority Number
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- region String
- 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.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AomServiceDiscoveryRule resource produces the following output properties:
Look up Existing AomServiceDiscoveryRule Resource
Get an existing AomServiceDiscoveryRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AomServiceDiscoveryRuleState, opts?: CustomResourceOptions): AomServiceDiscoveryRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aom_service_discovery_rule_id: Optional[str] = None,
detect_log_enabled: Optional[bool] = None,
discovery_rule_enabled: Optional[bool] = None,
discovery_rules: Optional[Sequence[AomServiceDiscoveryRuleDiscoveryRuleArgs]] = None,
is_default_rule: Optional[bool] = None,
log_file_suffixes: Optional[Sequence[str]] = None,
log_path_rules: Optional[Sequence[AomServiceDiscoveryRuleLogPathRuleArgs]] = None,
name: Optional[str] = None,
name_rules: Optional[AomServiceDiscoveryRuleNameRulesArgs] = None,
priority: Optional[float] = None,
region: Optional[str] = None,
rule_id: Optional[str] = None,
service_type: Optional[str] = None,
timeouts: Optional[AomServiceDiscoveryRuleTimeoutsArgs] = None) -> AomServiceDiscoveryRule
func GetAomServiceDiscoveryRule(ctx *Context, name string, id IDInput, state *AomServiceDiscoveryRuleState, opts ...ResourceOption) (*AomServiceDiscoveryRule, error)
public static AomServiceDiscoveryRule Get(string name, Input<string> id, AomServiceDiscoveryRuleState? state, CustomResourceOptions? opts = null)
public static AomServiceDiscoveryRule get(String name, Output<String> id, AomServiceDiscoveryRuleState state, CustomResourceOptions options)
resources: _: type: flexibleengine:AomServiceDiscoveryRule get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Aom
Service stringDiscovery Rule Id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- Detect
Log boolEnabled - Specifies whether to enable log collection. The default value is true.
- Discovery
Rule boolEnabled - Specifies whether the rule is enabled. The default value is true.
- Discovery
Rules List<AomService Discovery Rule Discovery Rule> - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - Is
Default boolRule - Specifies whether the rule is the default one. The default value is false.
- Log
File List<string>Suffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- Log
Path List<AomRules Service Discovery Rule Log Path Rule> - 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
name_type
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. - Name string
- 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
Rules AomService Discovery Rule Name Rules - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- Priority double
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- Region string
- 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.
- Rule
Id string - The rule ID in uuid format.
- Service
Type string - 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.
- Timeouts
Aom
Service Discovery Rule Timeouts
- Aom
Service stringDiscovery Rule Id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- Detect
Log boolEnabled - Specifies whether to enable log collection. The default value is true.
- Discovery
Rule boolEnabled - Specifies whether the rule is enabled. The default value is true.
- Discovery
Rules []AomService Discovery Rule Discovery Rule Args - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - Is
Default boolRule - Specifies whether the rule is the default one. The default value is false.
- Log
File []stringSuffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- Log
Path []AomRules Service Discovery Rule Log Path Rule Args - 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
name_type
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. - Name string
- 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
Rules AomService Discovery Rule Name Rules Args - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- Priority float64
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- Region string
- 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.
- Rule
Id string - The rule ID in uuid format.
- Service
Type string - 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.
- Timeouts
Aom
Service Discovery Rule Timeouts Args
- aom
Service StringDiscovery Rule Id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- detect
Log BooleanEnabled - Specifies whether to enable log collection. The default value is true.
- discovery
Rule BooleanEnabled - Specifies whether the rule is enabled. The default value is true.
- discovery
Rules List<AomService Discovery Rule Discovery Rule> - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - is
Default BooleanRule - Specifies whether the rule is the default one. The default value is false.
- log
File List<String>Suffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- log
Path List<AomRules Service Discovery Rule Log Path Rule> - 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
name_type
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. - name String
- 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
Rules AomService Discovery Rule Name Rules - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- priority Double
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- region String
- 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.
- rule
Id String - The rule ID in uuid format.
- service
Type String - 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.
- timeouts
Aom
Service Discovery Rule Timeouts
- aom
Service stringDiscovery Rule Id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- detect
Log booleanEnabled - Specifies whether to enable log collection. The default value is true.
- discovery
Rule booleanEnabled - Specifies whether the rule is enabled. The default value is true.
- discovery
Rules AomService Discovery Rule Discovery Rule[] - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - is
Default booleanRule - Specifies whether the rule is the default one. The default value is false.
- log
File string[]Suffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- log
Path AomRules Service Discovery Rule Log Path Rule[] - 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
name_type
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. - name string
- 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
Rules AomService Discovery Rule Name Rules - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- priority number
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- region string
- 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.
- rule
Id string - The rule ID in uuid format.
- service
Type string - 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.
- timeouts
Aom
Service Discovery Rule Timeouts
- aom_
service_ strdiscovery_ rule_ id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- detect_
log_ boolenabled - Specifies whether to enable log collection. The default value is true.
- discovery_
rule_ boolenabled - Specifies whether the rule is enabled. The default value is true.
- discovery_
rules Sequence[AomService Discovery Rule Discovery Rule Args] - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - is_
default_ boolrule - Specifies whether the rule is the default one. The default value is false.
- log_
file_ Sequence[str]suffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- log_
path_ Sequence[Aomrules Service Discovery Rule Log Path Rule Args] - 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
name_type
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. - name str
- 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_
rules AomService Discovery Rule Name Rules Args - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- priority float
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- region str
- 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.
- rule_
id str - The rule ID in uuid format.
- service_
type str - 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.
- timeouts
Aom
Service Discovery Rule Timeouts Args
- aom
Service StringDiscovery Rule Id - Indicates the resource ID of the service discovery rule. The value is the rule name.
- detect
Log BooleanEnabled - Specifies whether to enable log collection. The default value is true.
- discovery
Rule BooleanEnabled - Specifies whether the rule is enabled. The default value is true.
- discovery
Rules List<Property Map> - 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
check_type
is cmdLine, set the value ofcheck_mode
to contain.check_content
is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value ofcheck_type
is env, set the value ofcheck_mode
to contain.check_content
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 ofcheck_type
is scope, set the value ofcheck_mode
to equals.check_content
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. - is
Default BooleanRule - Specifies whether the rule is the default one. The default value is false.
- log
File List<String>Suffixes - Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
- log
Path List<Property Map>Rules - 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
name_type
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. - name String
- 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
Rules Property Map - Specifies the naming rules for discovered services and applications. The object structure is documented below.
- priority Number
- Specifies the rule priority. Value range: 1 to 9999. The default value is 9999.
- region String
- 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.
- rule
Id String - The rule ID in uuid format.
- service
Type String - 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.
- timeouts Property Map
Supporting Types
AomServiceDiscoveryRuleDiscoveryRule, AomServiceDiscoveryRuleDiscoveryRuleArgs
- Check
Contents List<string> - Specifies the matched value. This is a list of strings.
- Check
Mode string - Specifies the match condition. The values can be contain and equals.
- Check
Type string - Specifies the match type. The values can be cmdLine, env and scope.
- Check
Contents []string - Specifies the matched value. This is a list of strings.
- Check
Mode string - Specifies the match condition. The values can be contain and equals.
- Check
Type string - Specifies the match type. The values can be cmdLine, env and scope.
- check
Contents List<String> - Specifies the matched value. This is a list of strings.
- check
Mode String - Specifies the match condition. The values can be contain and equals.
- check
Type String - Specifies the match type. The values can be cmdLine, env and scope.
- check
Contents string[] - Specifies the matched value. This is a list of strings.
- check
Mode string - Specifies the match condition. The values can be contain and equals.
- check
Type string - Specifies the match type. The values can be cmdLine, env and scope.
- check_
contents Sequence[str] - Specifies the matched value. This is a list of strings.
- check_
mode str - Specifies the match condition. The values can be contain and equals.
- check_
type str - Specifies the match type. The values can be cmdLine, env and scope.
- check
Contents List<String> - Specifies the matched value. This is a list of strings.
- check
Mode String - Specifies the match condition. The values can be contain and equals.
- check
Type String - Specifies the match type. The values can be cmdLine, env and scope.
AomServiceDiscoveryRuleLogPathRule, AomServiceDiscoveryRuleLogPathRuleArgs
AomServiceDiscoveryRuleNameRules, AomServiceDiscoveryRuleNameRulesArgs
- Application
Name List<AomRules Service Discovery Rule Name Rules Application Name Rule> Specifies the application name rule. If the value of
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.The
service_name_rule
block andapplication_name_rule
block support:- Service
Name List<AomRules Service Discovery Rule Name Rules Service Name Rule> - 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
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.
- Application
Name []AomRules Service Discovery Rule Name Rules Application Name Rule Specifies the application name rule. If the value of
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.The
service_name_rule
block andapplication_name_rule
block support:- Service
Name []AomRules Service Discovery Rule Name Rules Service Name Rule - 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
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.
- application
Name List<AomRules Service Discovery Rule Name Rules Application Name Rule> Specifies the application name rule. If the value of
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.The
service_name_rule
block andapplication_name_rule
block support:- service
Name List<AomRules Service Discovery Rule Name Rules Service Name Rule> - 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
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.
- application
Name AomRules Service Discovery Rule Name Rules Application Name Rule[] Specifies the application name rule. If the value of
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.The
service_name_rule
block andapplication_name_rule
block support:- service
Name AomRules Service Discovery Rule Name Rules Service Name Rule[] - 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
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.
- application_
name_ Sequence[Aomrules Service Discovery Rule Name Rules Application Name Rule] Specifies the application name rule. If the value of
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.The
service_name_rule
block andapplication_name_rule
block support:- service_
name_ Sequence[Aomrules Service Discovery Rule Name Rules Service Name Rule] - 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
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.
- application
Name List<Property Map>Rules Specifies the application name rule. If the value of
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.The
service_name_rule
block andapplication_name_rule
block support:- service
Name List<Property Map>Rules - 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
name_type
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 ofname_type
is env,args
is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value ofname_type
is str,args
is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value ofname_type
is cmdLineHash,args
is in the format of ["0001"] andvalue
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.
AomServiceDiscoveryRuleNameRulesApplicationNameRule, AomServiceDiscoveryRuleNameRulesApplicationNameRuleArgs
AomServiceDiscoveryRuleNameRulesServiceNameRule, AomServiceDiscoveryRuleNameRulesServiceNameRuleArgs
AomServiceDiscoveryRuleTimeouts, AomServiceDiscoveryRuleTimeoutsArgs
Import
AOM service discovery rules can be imported using the name
, e.g.
$ pulumi import flexibleengine:index/aomServiceDiscoveryRule:AomServiceDiscoveryRule alarm_rule rule_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.