136 lines
2.6 KiB
JSON
136 lines
2.6 KiB
JSON
{
|
|
"dimensionalRules": [],
|
|
"name": "{{.name}}",
|
|
"entitySelectorBasedRules": [
|
|
{
|
|
"enabled": true,
|
|
"entitySelector": "type(Service),tag(\"compass-id:{{.compassid}}\")"
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:{{.compassid}}\"))"
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"entitySelector": "type(PROCESS_GROUP),tag(\"compass-id:{{.compassid}}\")"
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"entitySelector": "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:{{.compassid}}\")"
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"entitySelector": "type(HOST),tag(\"compass-id:{{.compassid}}\")"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"conditions": [
|
|
{
|
|
"comparisonInfo": {
|
|
"negate": false,
|
|
"operator": "EQUALS",
|
|
"type": "TAG",
|
|
"value": {
|
|
"context": "CONTEXTLESS",
|
|
"key": "Component",
|
|
"value": "{{.tag}}"
|
|
}
|
|
},
|
|
"key": {
|
|
"attribute": "SERVICE_TAGS"
|
|
}
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"propagationTypes": [
|
|
"SERVICE_TO_PROCESS_GROUP_LIKE",
|
|
"SERVICE_TO_HOST_LIKE"
|
|
],
|
|
"type": "SERVICE"
|
|
},
|
|
{
|
|
"conditions": [
|
|
{
|
|
"comparisonInfo": {
|
|
"negate": false,
|
|
"operator": "EQUALS",
|
|
"type": "TAG",
|
|
"value": {
|
|
"context": "CONTEXTLESS",
|
|
"key": "Component",
|
|
"value": "{{.tag}}"
|
|
}
|
|
},
|
|
"key": {
|
|
"attribute": "PROCESS_GROUP_TAGS"
|
|
}
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"propagationTypes": [
|
|
"PROCESS_GROUP_TO_HOST"
|
|
],
|
|
"type": "PROCESS_GROUP"
|
|
},
|
|
{
|
|
"conditions": [
|
|
{
|
|
"comparisonInfo": {
|
|
"negate": false,
|
|
"operator": "EQUALS",
|
|
"type": "TAG",
|
|
"value": {
|
|
"context": "CONTEXTLESS",
|
|
"key": "Component",
|
|
"value": "{{.tag}}"
|
|
}
|
|
},
|
|
"key": {
|
|
"attribute": "HOST_TAGS"
|
|
}
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"type": "HOST"
|
|
},
|
|
{
|
|
"conditions": [
|
|
{
|
|
"comparisonInfo": {
|
|
"caseSensitive": true,
|
|
"negate": false,
|
|
"operator": "CONTAINS",
|
|
"type": "STRING",
|
|
"value": "{{.tag}}"
|
|
},
|
|
"key": {
|
|
"attribute": "CLOUD_APPLICATION_NAMESPACE_NAME"
|
|
}
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"propagationTypes": [],
|
|
"type": "CLOUD_APPLICATION_NAMESPACE"
|
|
},
|
|
{
|
|
"conditions": [
|
|
{
|
|
"comparisonInfo": {
|
|
"caseSensitive": true,
|
|
"negate": false,
|
|
"operator": "CONTAINS",
|
|
"type": "STRING",
|
|
"value": "{{.tag}}"
|
|
},
|
|
"key": {
|
|
"attribute": "CLOUD_APPLICATION_NAME"
|
|
}
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"propagationTypes": [],
|
|
"type": "CLOUD_APPLICATION"
|
|
}
|
|
]
|
|
} |