Add New Tier Naming Rules
You can add the new tier naming rules using:
Use UI to Add New Tier Naming Rules
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"
]
}