Skip to content

Commit 7bee192

Browse files
authored
add relationships for vsphere entities (#2543)
* add vsphere relationships * fix error * change relationship type * change relationship type * fix error * fix error
1 parent 6e3b9a7 commit 7bee192

File tree

2 files changed

+157
-0
lines changed

2 files changed

+157
-0
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
relationships:
2+
- name: vsphereClusterContainsVsphereHost
3+
version: "1"
4+
origins:
5+
- OnHost Integration
6+
conditions:
7+
- attribute: eventType
8+
anyOf: [ "VSphereHostSample" ]
9+
- attribute: nr.entityType
10+
anyOf: ["VSphereHost", "VSPHEREHOST"]
11+
- attribute: datacenterLocation
12+
present: true
13+
relationship:
14+
expires: PT75M
15+
relationshipType: CONTAINS
16+
source:
17+
buildGuid:
18+
account:
19+
attribute: accountId
20+
domain:
21+
value: INFRA
22+
type:
23+
value: VSPHEREATACENTER
24+
valueInGuid: NA
25+
identifier:
26+
fragments:
27+
- value: "vsphere-cluster:"
28+
- attribute: datacenterLocation
29+
- value: ":"
30+
- value: datacenterName
31+
operations:
32+
- operation: toLowercase
33+
- value: ":"
34+
- attribute: clusterName
35+
operations:
36+
- operation: toLowercase
37+
hashAlgorithm: FARM_HASH
38+
target:
39+
extractGuid:
40+
attribute: entityGuid
41+
entityType:
42+
value: VSPHEREHOST
43+
44+
- name: vsphereClusterContainsVsphereHostRule2
45+
version: "1"
46+
origins:
47+
- OnHost Integration
48+
conditions:
49+
- attribute: eventType
50+
anyOf: [ "VSphereHostSample" ]
51+
- attribute: nr.entityType
52+
anyOf: ["VSphereHost", "VSPHEREHOST"]
53+
- attribute: datacenterLocation
54+
present: false
55+
relationship:
56+
expires: PT75M
57+
relationshipType: CONTAINS
58+
source:
59+
buildGuid:
60+
account:
61+
attribute: accountId
62+
domain:
63+
value: INFRA
64+
type:
65+
value: VSPHEREATACENTER
66+
valueInGuid: NA
67+
identifier:
68+
fragments:
69+
- value: "vsphere-cluster:"
70+
- value: datacenterName
71+
operations:
72+
- operation: toLowercase
73+
- value: ":"
74+
- attribute: clusterName
75+
operations:
76+
- operation: toLowercase
77+
hashAlgorithm: FARM_HASH
78+
target:
79+
extractGuid:
80+
attribute: entityGuid
81+
entityType:
82+
value: VSPHEREHOST
83+
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
relationships:
2+
- name: vsphereDatacenterContainsVsphereCluster
3+
version: "1"
4+
origins:
5+
- OnHost Integration
6+
conditions:
7+
- attribute: eventType
8+
anyOf: [ "VSphereClusterSample" ]
9+
- attribute: nr.entityType
10+
anyOf: ["VSphereCluster", "VSPHERECLUSTER"]
11+
- attribute: datacenterLocation
12+
present: true
13+
relationship:
14+
expires: PT75M
15+
relationshipType: CONTAINS
16+
source:
17+
buildGuid:
18+
account:
19+
attribute: accountId
20+
domain:
21+
value: INFRA
22+
type:
23+
value: VSPHEREATACENTER
24+
valueInGuid: NA
25+
identifier:
26+
fragments:
27+
- value: "vsphere-datacenter:"
28+
- attribute: datacenterLocation
29+
- value: ":"
30+
- attribute: datacenterName
31+
operations:
32+
- operation: toLowerCase
33+
hashAlgorithm: FARM_HASH
34+
target:
35+
extractGuid:
36+
attribute: entityGuid
37+
entityType:
38+
value: VSPHERECLUSTER
39+
40+
- name: vsphereDatacenterContainsVsphereClusterRule2
41+
version: "1"
42+
origins:
43+
- OnHost Integration
44+
conditions:
45+
- attribute: eventType
46+
anyOf: [ "VSphereClusterSample" ]
47+
- attribute: nr.entityType
48+
anyOf: ["VSphereCluster", "VSPHERECLUSTER"]
49+
- attribute: datacenterLocation
50+
present: false
51+
relationship:
52+
expires: PT75M
53+
relationshipType: CONTAINS
54+
source:
55+
buildGuid:
56+
account:
57+
attribute: accountId
58+
domain:
59+
value: INFRA
60+
type:
61+
value: VSPHEREATACENTER
62+
valueInGuid: NA
63+
identifier:
64+
fragments:
65+
- value: "vsphere-datacenter:"
66+
- attribute: datacenterName
67+
operations:
68+
- operation: toLowerCase
69+
hashAlgorithm: FARM_HASH
70+
target:
71+
extractGuid:
72+
attribute: entityGuid
73+
entityType:
74+
value: VSPHERECLUSTER

0 commit comments

Comments
 (0)