guidelines / templates redefined
parent
8f2f10f574
commit
7dc7841240
|
|
@ -1,46 +1,48 @@
|
||||||
## Add Databases into your Management Zone
|
## Add Databases into your Management Zone
|
||||||
1. Under the BMW-Dynatrace-config\00_Global-Config directory, move to auto-tag folder
|
1. Under the BMW-Dynatrace-config\00_Global-Config directory, move to auto-tag folder
|
||||||
2. Use the following template to add your DB:
|
2. Use the following template to add your DB:
|
||||||
`{`
|
```
|
||||||
` "type": "SERVICE",`
|
{
|
||||||
` "enabled": true,`
|
"type": "SERVICE",
|
||||||
` "valueFormat": "<app_name>",`
|
"enabled": true,
|
||||||
` "propagationTypes": [],`
|
"valueFormat": "<app_name>",
|
||||||
` "conditions": [`
|
"propagationTypes": [],
|
||||||
` {`
|
"conditions": [
|
||||||
` "key": {`
|
{
|
||||||
` "attribute": "SERVICE_TYPE"`
|
"key": {
|
||||||
` },`
|
"attribute": "SERVICE_TYPE"
|
||||||
` "comparisonInfo": {`
|
},
|
||||||
` "type": "SERVICE_TYPE",`
|
"comparisonInfo": {
|
||||||
` "operator": "EQUALS",`
|
"type": "SERVICE_TYPE",
|
||||||
` "value": "DATABASE_SERVICE",`
|
"operator": "EQUALS",
|
||||||
` "negate": false`
|
"value": "DATABASE_SERVICE",
|
||||||
` }`
|
"negate": false
|
||||||
` },`
|
}
|
||||||
` {`
|
},
|
||||||
` "key": {`
|
{
|
||||||
` "attribute": "SERVICE_DATABASE_NAME"`
|
"key": {
|
||||||
` },`
|
"attribute": "SERVICE_DATABASE_NAME"
|
||||||
` "comparisonInfo": {`
|
},
|
||||||
` "type": "STRING",`
|
"comparisonInfo": {
|
||||||
` "operator": "CONTAINS",`
|
"type": "STRING",
|
||||||
` "value": "<common_string_in_name>",`
|
"operator": "CONTAINS",
|
||||||
` "negate": false,`
|
"value": "<common_string_in_name>",
|
||||||
` "caseSensitive": true`
|
"negate": false,
|
||||||
` }`
|
"caseSensitive": true
|
||||||
` }`
|
}
|
||||||
` ]`
|
}
|
||||||
`} `
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- Replace <app_name> with the value of the tags for your component
|
- Replace <app_name> with the value of the tags for your component
|
||||||
- Use a <common_string_in_name> for your databases
|
- Use a <common_string_in_name> for your databases
|
||||||
- i.e. if all of your db has the string "sc2" in common, use that value
|
- i.e. if all of your db has the string "sc2" in common, use that value
|
||||||
3. Open Component.json file and paste the recently edited template as a new rule (line 10). Remember to separate the rule with a comma
|
3. Open Component.json file and paste the recently edited template as a new rule (line 10). Remember to separate the rule with a comma
|
||||||
4. Commit and pull request to merge the branch to the master:
|
4. Commit and pull request to merge the branch to the master:
|
||||||
|
```
|
||||||
`git add <changes>`
|
git add <changes>
|
||||||
|
git commit -m "<app_name> configuration changes"
|
||||||
`git commit -m "<app_name> configuration changes"`
|
git push -u origin <branch>
|
||||||
|
```
|
||||||
`git push -u origin <branch>`
|
|
||||||
Loading…
Reference in New Issue