1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. AomServiceDiscoveryRule
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.AomServiceDiscoveryRule

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    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:

    DiscoveryRules List<AomServiceDiscoveryRuleDiscoveryRule>
    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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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.
    LogFileSuffixes List<string>
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    NameRules AomServiceDiscoveryRuleNameRules
    Specifies the naming rules for discovered services and applications. The object structure is documented below.
    ServiceType 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.
    AomServiceDiscoveryRuleId string
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    DetectLogEnabled bool
    Specifies whether to enable log collection. The default value is true.
    DiscoveryRuleEnabled bool
    Specifies whether the rule is enabled. The default value is true.
    IsDefaultRule bool
    Specifies whether the rule is the default one. The default value is false.
    LogPathRules List<AomServiceDiscoveryRuleLogPathRule>
    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 AomServiceDiscoveryRuleTimeouts
    DiscoveryRules []AomServiceDiscoveryRuleDiscoveryRuleArgs
    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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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.
    LogFileSuffixes []string
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    NameRules AomServiceDiscoveryRuleNameRulesArgs
    Specifies the naming rules for discovered services and applications. The object structure is documented below.
    ServiceType 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.
    AomServiceDiscoveryRuleId string
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    DetectLogEnabled bool
    Specifies whether to enable log collection. The default value is true.
    DiscoveryRuleEnabled bool
    Specifies whether the rule is enabled. The default value is true.
    IsDefaultRule bool
    Specifies whether the rule is the default one. The default value is false.
    LogPathRules []AomServiceDiscoveryRuleLogPathRuleArgs
    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 AomServiceDiscoveryRuleTimeoutsArgs
    discoveryRules List<AomServiceDiscoveryRuleDiscoveryRule>
    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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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.
    logFileSuffixes List<String>
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    nameRules AomServiceDiscoveryRuleNameRules
    Specifies the naming rules for discovered services and applications. The object structure is documented below.
    serviceType 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.
    aomServiceDiscoveryRuleId String
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    detectLogEnabled Boolean
    Specifies whether to enable log collection. The default value is true.
    discoveryRuleEnabled Boolean
    Specifies whether the rule is enabled. The default value is true.
    isDefaultRule Boolean
    Specifies whether the rule is the default one. The default value is false.
    logPathRules List<AomServiceDiscoveryRuleLogPathRule>
    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 AomServiceDiscoveryRuleTimeouts
    discoveryRules AomServiceDiscoveryRuleDiscoveryRule[]
    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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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.
    logFileSuffixes string[]
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    nameRules AomServiceDiscoveryRuleNameRules
    Specifies the naming rules for discovered services and applications. The object structure is documented below.
    serviceType 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.
    aomServiceDiscoveryRuleId string
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    detectLogEnabled boolean
    Specifies whether to enable log collection. The default value is true.
    discoveryRuleEnabled boolean
    Specifies whether the rule is enabled. The default value is true.
    isDefaultRule boolean
    Specifies whether the rule is the default one. The default value is false.
    logPathRules AomServiceDiscoveryRuleLogPathRule[]
    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 AomServiceDiscoveryRuleTimeouts
    discovery_rules Sequence[AomServiceDiscoveryRuleDiscoveryRuleArgs]
    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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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_suffixes Sequence[str]
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    name_rules AomServiceDiscoveryRuleNameRulesArgs
    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_discovery_rule_id str
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    detect_log_enabled bool
    Specifies whether to enable log collection. The default value is true.
    discovery_rule_enabled bool
    Specifies whether the rule is enabled. The default value is true.
    is_default_rule bool
    Specifies whether the rule is the default one. The default value is false.
    log_path_rules Sequence[AomServiceDiscoveryRuleLogPathRuleArgs]
    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 AomServiceDiscoveryRuleTimeoutsArgs
    discoveryRules 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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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.
    logFileSuffixes List<String>
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    nameRules Property Map
    Specifies the naming rules for discovered services and applications. The object structure is documented below.
    serviceType 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.
    aomServiceDiscoveryRuleId String
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    detectLogEnabled Boolean
    Specifies whether to enable log collection. The default value is true.
    discoveryRuleEnabled Boolean
    Specifies whether the rule is enabled. The default value is true.
    isDefaultRule Boolean
    Specifies whether the rule is the default one. The default value is false.
    logPathRules List<Property Map>
    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:

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    The rule ID in uuid format.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    The rule ID in uuid format.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    The rule ID in uuid format.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId string
    The rule ID in uuid format.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id str
    The rule ID in uuid format.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    The rule ID in uuid format.

    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.
    The following state arguments are supported:
    AomServiceDiscoveryRuleId string
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    DetectLogEnabled bool
    Specifies whether to enable log collection. The default value is true.
    DiscoveryRuleEnabled bool
    Specifies whether the rule is enabled. The default value is true.
    DiscoveryRules List<AomServiceDiscoveryRuleDiscoveryRule>
    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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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.
    IsDefaultRule bool
    Specifies whether the rule is the default one. The default value is false.
    LogFileSuffixes List<string>
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    LogPathRules List<AomServiceDiscoveryRuleLogPathRule>
    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.
    NameRules AomServiceDiscoveryRuleNameRules
    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.
    RuleId string
    The rule ID in uuid format.
    ServiceType 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 AomServiceDiscoveryRuleTimeouts
    AomServiceDiscoveryRuleId string
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    DetectLogEnabled bool
    Specifies whether to enable log collection. The default value is true.
    DiscoveryRuleEnabled bool
    Specifies whether the rule is enabled. The default value is true.
    DiscoveryRules []AomServiceDiscoveryRuleDiscoveryRuleArgs
    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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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.
    IsDefaultRule bool
    Specifies whether the rule is the default one. The default value is false.
    LogFileSuffixes []string
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    LogPathRules []AomServiceDiscoveryRuleLogPathRuleArgs
    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.
    NameRules AomServiceDiscoveryRuleNameRulesArgs
    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.
    RuleId string
    The rule ID in uuid format.
    ServiceType 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 AomServiceDiscoveryRuleTimeoutsArgs
    aomServiceDiscoveryRuleId String
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    detectLogEnabled Boolean
    Specifies whether to enable log collection. The default value is true.
    discoveryRuleEnabled Boolean
    Specifies whether the rule is enabled. The default value is true.
    discoveryRules List<AomServiceDiscoveryRuleDiscoveryRule>
    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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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.
    isDefaultRule Boolean
    Specifies whether the rule is the default one. The default value is false.
    logFileSuffixes List<String>
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    logPathRules List<AomServiceDiscoveryRuleLogPathRule>
    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.
    nameRules AomServiceDiscoveryRuleNameRules
    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.
    ruleId String
    The rule ID in uuid format.
    serviceType 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 AomServiceDiscoveryRuleTimeouts
    aomServiceDiscoveryRuleId string
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    detectLogEnabled boolean
    Specifies whether to enable log collection. The default value is true.
    discoveryRuleEnabled boolean
    Specifies whether the rule is enabled. The default value is true.
    discoveryRules AomServiceDiscoveryRuleDiscoveryRule[]
    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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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.
    isDefaultRule boolean
    Specifies whether the rule is the default one. The default value is false.
    logFileSuffixes string[]
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    logPathRules AomServiceDiscoveryRuleLogPathRule[]
    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.
    nameRules AomServiceDiscoveryRuleNameRules
    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.
    ruleId string
    The rule ID in uuid format.
    serviceType 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 AomServiceDiscoveryRuleTimeouts
    aom_service_discovery_rule_id str
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    detect_log_enabled bool
    Specifies whether to enable log collection. The default value is true.
    discovery_rule_enabled bool
    Specifies whether the rule is enabled. The default value is true.
    discovery_rules Sequence[AomServiceDiscoveryRuleDiscoveryRuleArgs]
    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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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_rule bool
    Specifies whether the rule is the default one. The default value is false.
    log_file_suffixes Sequence[str]
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    log_path_rules Sequence[AomServiceDiscoveryRuleLogPathRuleArgs]
    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 AomServiceDiscoveryRuleNameRulesArgs
    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 AomServiceDiscoveryRuleTimeoutsArgs
    aomServiceDiscoveryRuleId String
    Indicates the resource ID of the service discovery rule. The value is the rule name.
    detectLogEnabled Boolean
    Specifies whether to enable log collection. The default value is true.
    discoveryRuleEnabled Boolean
    Specifies whether the rule is enabled. The default value is true.
    discoveryRules 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 of check_mode to contain. check_content is in the format of ["xxx"], indicating that the process must contain the xxx parameter. If the value of check_type is env, set the value of check_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 of check_type is scope, set the value of check_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.
    isDefaultRule Boolean
    Specifies whether the rule is the default one. The default value is false.
    logFileSuffixes List<String>
    Specifies the log file suffix. This is a list of strings. The values can be: log, trace, and out.
    logPathRules List<Property Map>
    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.
    nameRules 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.
    ruleId String
    The rule ID in uuid format.
    serviceType 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

    CheckContents List<string>
    Specifies the matched value. This is a list of strings.
    CheckMode string
    Specifies the match condition. The values can be contain and equals.
    CheckType string
    Specifies the match type. The values can be cmdLine, env and scope.
    CheckContents []string
    Specifies the matched value. This is a list of strings.
    CheckMode string
    Specifies the match condition. The values can be contain and equals.
    CheckType string
    Specifies the match type. The values can be cmdLine, env and scope.
    checkContents List<String>
    Specifies the matched value. This is a list of strings.
    checkMode String
    Specifies the match condition. The values can be contain and equals.
    checkType String
    Specifies the match type. The values can be cmdLine, env and scope.
    checkContents string[]
    Specifies the matched value. This is a list of strings.
    checkMode string
    Specifies the match condition. The values can be contain and equals.
    checkType 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.
    checkContents List<String>
    Specifies the matched value. This is a list of strings.
    checkMode String
    Specifies the match condition. The values can be contain and equals.
    checkType String
    Specifies the match type. The values can be cmdLine, env and scope.

    AomServiceDiscoveryRuleLogPathRule, AomServiceDiscoveryRuleLogPathRuleArgs

    Args List<string>
    Specifies the command. This is a list of strings.
    NameType string
    Specifies the value type, which can be cmdLineHash.
    Values List<string>

    Specifies the log path. This is a list of strings.

    The name_rules block supports:

    Args []string
    Specifies the command. This is a list of strings.
    NameType string
    Specifies the value type, which can be cmdLineHash.
    Values []string

    Specifies the log path. This is a list of strings.

    The name_rules block supports:

    args List<String>
    Specifies the command. This is a list of strings.
    nameType String
    Specifies the value type, which can be cmdLineHash.
    values List<String>

    Specifies the log path. This is a list of strings.

    The name_rules block supports:

    args string[]
    Specifies the command. This is a list of strings.
    nameType string
    Specifies the value type, which can be cmdLineHash.
    values string[]

    Specifies the log path. This is a list of strings.

    The name_rules block supports:

    args Sequence[str]
    Specifies the command. This is a list of strings.
    name_type str
    Specifies the value type, which can be cmdLineHash.
    values Sequence[str]

    Specifies the log path. This is a list of strings.

    The name_rules block supports:

    args List<String>
    Specifies the command. This is a list of strings.
    nameType String
    Specifies the value type, which can be cmdLineHash.
    values List<String>

    Specifies the log path. This is a list of strings.

    The name_rules block supports:

    AomServiceDiscoveryRuleNameRules, AomServiceDiscoveryRuleNameRulesArgs

    ApplicationNameRules List<AomServiceDiscoveryRuleNameRulesApplicationNameRule>

    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value of name_type 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.

    The service_name_rule block and application_name_rule block support:

    ServiceNameRules List<AomServiceDiscoveryRuleNameRulesServiceNameRule>
    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value of name_type 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.
    ApplicationNameRules []AomServiceDiscoveryRuleNameRulesApplicationNameRule

    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value of name_type 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.

    The service_name_rule block and application_name_rule block support:

    ServiceNameRules []AomServiceDiscoveryRuleNameRulesServiceNameRule
    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value of name_type 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.
    applicationNameRules List<AomServiceDiscoveryRuleNameRulesApplicationNameRule>

    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value of name_type 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.

    The service_name_rule block and application_name_rule block support:

    serviceNameRules List<AomServiceDiscoveryRuleNameRulesServiceNameRule>
    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value of name_type 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.
    applicationNameRules AomServiceDiscoveryRuleNameRulesApplicationNameRule[]

    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value of name_type 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.

    The service_name_rule block and application_name_rule block support:

    serviceNameRules AomServiceDiscoveryRuleNameRulesServiceNameRule[]
    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value of name_type 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.
    application_name_rules Sequence[AomServiceDiscoveryRuleNameRulesApplicationNameRule]

    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value of name_type 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.

    The service_name_rule block and application_name_rule block support:

    service_name_rules Sequence[AomServiceDiscoveryRuleNameRulesServiceNameRule]
    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value of name_type 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.
    applicationNameRules List<Property Map>

    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the application name is suffixed with fix. If the value of name_type 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.

    The service_name_rule block and application_name_rule block support:

    serviceNameRules List<Property Map>
    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 of name_type is env, args is in the format of ["aa"], indicating that the environment variable named aa is extracted. If the value of name_type is str, args is in the format of ["fix"], indicating that the service name is suffixed with fix. If the value of name_type 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.

    AomServiceDiscoveryRuleNameRulesApplicationNameRule, AomServiceDiscoveryRuleNameRulesApplicationNameRuleArgs

    Args List<string>
    Specifies the input value.
    NameType string
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    Values List<string>
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.
    Args []string
    Specifies the input value.
    NameType string
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    Values []string
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.
    args List<String>
    Specifies the input value.
    nameType String
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    values List<String>
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.
    args string[]
    Specifies the input value.
    nameType string
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    values string[]
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.
    args Sequence[str]
    Specifies the input value.
    name_type str
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    values Sequence[str]
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.
    args List<String>
    Specifies the input value.
    nameType String
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    values List<String>
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.

    AomServiceDiscoveryRuleNameRulesServiceNameRule, AomServiceDiscoveryRuleNameRulesServiceNameRuleArgs

    Args List<string>
    Specifies the input value.
    NameType string
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    Values List<string>
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.
    Args []string
    Specifies the input value.
    NameType string
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    Values []string
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.
    args List<String>
    Specifies the input value.
    nameType String
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    values List<String>
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.
    args string[]
    Specifies the input value.
    nameType string
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    values string[]
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.
    args Sequence[str]
    Specifies the input value.
    name_type str
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    values Sequence[str]
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.
    args List<String>
    Specifies the input value.
    nameType String
    Specifies the value type. The value can be cmdLineHash, cmdLine, env and str.
    values List<String>
    Specifies the application name, which is mandatory only when the value of name_type is cmdLineHash.

    AomServiceDiscoveryRuleTimeouts, AomServiceDiscoveryRuleTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    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.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud