Add New Tier Naming Rules

You can add the new tier naming rules using:

Use UI to Add New Tier Naming Rules

Perform the following steps to add new tier naming rules by using UI:
  1. Go to the Tier Naming Rules tab.
  2. Click + Add New Rule.
  3. Enter the following:
    1. Rule Name
    2. Tier Naming Format: Use any characters, words, and variables to define your naming format.
    3. Application Server Types: Select the application server type that the naming rule will apply to.
    4. Conditions: Select values that match the conditions that will be added to the tier.
      Warning: All string comparisons are case sensitive.
    5. Application Scope: Only tiers in the selected applications will be evaluated against the conditions.
  4. Click Create rule.
    • Scenario 1: If an existing tier name (Tier 1) is disabled, and a new tier name (New Tier 1) is discovered by the tier rule, the new tier (New Tier 1) will be disabled by default.

    • Scenario 2: If an existing tier name (Tier 1) is disabled, and it is modified to an existing tier name (Tier 2), by the change of tier rules the status of the tier name (Tier 2) will be not change.

Use API to Add New Tier Naming Rules

Format:

POST /customNaming/rules

Request Example:

curl --location --request POST 'https://demo.saas.appdynamics.com/zero/v1beta/customNaming/rules' --header 'Authorization: Bearer {AuthToken}' \
--header 'Content-Type: application/json' \
--data-raw
{
  "ruleName": "TomcatRule",
  "tierNamingFormat": "tomcat-tier-prod",
  "processType": "JAVA",
  "appServerTypes": [
      "tomcat"
  ],
  "priority": 1,
  "ruleConditions": [
    {
      "keyName": "<cmdlineArray[_]>",
      "conditionType": "contains",
      "value": "-Dcatalina.home=/staging/apache-tomcat-9.0.6"
    }
  ],
  "applicationNames": [
    "ALL"
  ]
}

Response Example:

{
    "id": "9a7dfb82-480f-4beb-b72c-a3692b54fdec",
    "ruleName": "TomcatRule",
    "tierNamingFormat": "tomcat-tier-prod",
    "processType": "JAVA",
    "version": 1,
    "appServerTypes": [
        "tomcat"
    ],
    "priority": 1,
    "enabled": true,
    "ruleConditions": [
        {
            "keyName": "<cmdlineArray[_]>",
            "conditionType": "CONTAINS",
            "value": "-Dcatalina.home=/staging/apache-tomcat-9.0.6",
            "sequence": 0
        }
    ],
    "applicationNames": [
        "ALL"
    ]
}