forked from eiffel-community/eiffel-intelligence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ArtifactRules-Eiffel-Agen-Version.json
144 lines (144 loc) · 6.25 KB
/
ArtifactRules-Eiffel-Agen-Version.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[
{
"TemplateName":"ARTIFACT_1",
"Type":"EiffelArtifactCreatedEvent",
"TypeRule": "meta.type",
"IdRule": "meta.id",
"StartEvent": "YES",
"IdentifyRules" : "[meta.id]",
"MatchIdRules": {"_id": "%IdentifyRulesEventId%"},
"ExtractionRules" : "{ id : meta.id, type : meta.type, time : meta.time, name : data.name, identity : data.identity, fileInformation : data.fileInformation, buildCommand : data.buildCommand, artifactCustomData : data.customData }",
"DownstreamIdentifyRules" : "links | [?type=='COMPOSITION'].target",
"DownstreamMergeRules": "{\"externalComposition\":{\"eventId\":%IdentifyRulesEventId%}}",
"DownstreamExtractionRules" : "{artifacts: [{id : meta.id}]}",
"HistoryIdentifyRules":"links | [?type=='COMPOSITION'].target",
"HistoryExtractionRules":"{id : meta.id, identity : data.identity, fileInformation : data.fileInformation}",
"HistoryPathRules": "{artifacts: [{id: meta.id}]}",
"ProcessRules" : null
},
{
"TemplateName":"ARTIFACT_1",
"Type":"EiffelArtifactPublishedEvent",
"TypeRule": "meta.type",
"IdRule": "meta.id",
"StartEvent": "NO",
"IdentifyRules" : "links | [?type=='ARTIFACT'].target",
"MatchIdRules": {"_id": "%IdentifyRulesEventId%"},
"ExtractionRules" : "{ eventId : meta.id, time : meta.time, locations : data.locations }",
"MergeResolverRules": "[ {NONEPATH:NONE}, {publications: [{ eventId: meta.id }]} ]",
"ProcessRules":null
},
{
"TemplateName":"ARTIFACT_1",
"Type":"EiffelConfidenceLevelModifiedEvent",
"TypeRule": "meta.type",
"IdRule": "meta.id",
"StartEvent": "NO",
"IdentifyRules" : "links | [?type=='SUBJECT'].target",
"MatchIdRules": {"_id": "%IdentifyRulesEventId%"},
"ExtractionRules" : "{ eventId:meta.id, time:meta.time, name:data.name, value:data.value }",
"MergeResolverRules": "[ {NONEPATH:NONE}, {confidenceLevels: [{ eventId: meta.id }]} ]",
"ArrayMergeOptions": "",
"ProcessRules":null
},
{
"TemplateName":"ARTIFACT_1",
"Type":"EiffelTestCaseTriggeredEvent",
"TypeRule": "meta.type",
"IdRule": "meta.id",
"StartEvent": "NO",
"IdentifyRules" : "links | [?type=='IUT'].target",
"MatchIdRules": {"_id": "%IdentifyRulesEventId%"},
"ExtractionRules" : "{ testCaseTriggeredEventId:meta.id, testCaseTriggeredTime:meta.time, outcome:data.testCase }",
"MergeResolverRules": "[ {NONEPATH:NONE}, {testCaseExecutions: [{ testCaseTriggeredEventId: meta.id }]} ]",
"ArrayOptions": "",
"ProcessRules":null
},
{
"TemplateName":"ARTIFACT_1",
"Type":"EiffelTestCaseStartedEvent",
"TypeRule": "meta.type",
"IdRule": "meta.id",
"StartEvent": "NO",
"IdentifyRules" : "links | [?type=='TEST_CASE_EXECUTION'].target",
"MatchIdRules": { "$and": [{"testCaseExecutions.testCaseTriggeredEventId": "%IdentifyRulesEventId%"}]},
"ExtractionRules" : "{testCaseStartedEventId:meta.id, testCaseStartedTime:meta.time, outcome:data.testCase }",
"MergeResolverRules": "[{NONEPATH:NONE}, {testCaseExecutions: [{ testCaseTriggeredEventId: links | [?type=='TEST_CASE_EXECUTION'] | [0].target }] }]",
"ArrayOptions": "",
"ProcessRules":null
},
{
"TemplateName":"ARTIFACT_1",
"Type":"EiffelTestCaseFinishedEvent",
"TypeRule": "meta.type",
"IdRule": "meta.id",
"StartEvent": "NO",
"IdentifyRules" : "links | [?type=='TEST_CASE_EXECUTION'].target",
"MatchIdRules": {"testCaseExecutions": {"$elemMatch":{ "$and": [{"testCaseTriggeredEventId": "%IdentifyRulesEventId%"},{"testCaseStartedEventId":{"$exists":true}}]}}},
"ExtractionRules" : "{ testCaseFinishedEventId:meta.id, testCaseFinishedTime:meta.time, outcome:data.outcome}",
"MergeResolverRules" : "{\"testCaseTriggeredEventId\":%IdentifyRulesEventId%}",
"ArrayMergeOptions": "",
"ProcessRules": "{testCaseDuration : diff(testCaseExecutions | [?testCaseTriggeredEventId=='%IdentifyRulesEventId%'].testCaseFinishedTime | [0], testCaseExecutions | [?testCaseTriggeredEventId=='%IdentifyRulesEventId%'].testCaseStartedTime | [0])}"
},
{
"TemplateName":"ARTIFACT_1",
"Type":"EiffelCompositionDefinedEvent",
"TypeRule": "meta.type",
"IdRule": "meta.id",
"StartEvent": "NO",
"IdentifyRules" : "",
"MatchIdRules": { },
"ExtractionRules" : "",
"ArrayMergeOptions": "",
"DownstreamIdentifyRules":"links | [?type=='ELEMENT'].target",
"DownstreamExtractionRules": "{externalComposition: {eventId: meta.id, time:meta.time, name:data.name}}",
"DownstreamMergeRules": "{\"eventId\":%IdentifyRulesEventId%}",
"HistoryExtractionRules": "{eventId: meta.id, time: meta.time, name: data.name}",
"HistoryPathRules": "{internalComposition:{compositions: [{eventId: meta.id}]}}",
"ProcessRules":null
},
{
"TemplateName":"ARTIFACT_1",
"Type":"EiffelSourceChangeCreatedEvent",
"TypeRule": "meta.type",
"IdRule": "meta.id",
"StartEvent": "NO",
"IdentifyRules" : "",
"MatchIdRules": {},
"ExtractionRules" : "",
"ArrayMergeOptions": "",
"HistoryIdentifyRules": "",
"HistoryExtractionRules": "{SCCEventId: meta.id, gitIdentifier:data.gitIdentifier, author:data.author, issues:data.issues}",
"HistoryPathRules": "{sourceCreations: [{SCCEventId: meta.id}]}",
"ProcessRules":null
},
{
"TemplateName":"ARTIFACT_1",
"Type":"EiffelSourceChangeSubmittedEvent",
"TypeRule": "meta.type",
"IdRule": "meta.id",
"StartEvent": "NO",
"IdentifyRules" : "",
"MatchIdRules": {},
"ExtractionRules" : "",
"ArrayMergeOptions": "",
"HistoryIdentifyRules":"links | [?type=='CHANGE'].target",
"HistoryExtractionRules": "{SCSEventId: meta.id, gitIdentifier:data.gitIdentifier, submitter:data.submitter}",
"HistoryPathRules": "{sourceChanges: [{SCSEventId: meta.id}]}",
"ProcessRules":null
},
{
"TemplateName":"ARTIFACT_1",
"Type":"EiffelFlowContextDefinedEvent",
"TypeRule": "meta.type",
"IdRule": "meta.id",
"StartEvent": "NO",
"IdentifyRules" : "",
"MatchIdRules": {},
"ExtractionRules" : "",
"HistoryIdentifyRules": "",
"HistoryExtractionRules": "{ eventId:meta.id, product:data.product, project:data.project, program:data.program, track:data.track, version:data.version }",
"HistoryPathRules": "{flowContexts: [{eventId: meta.id}]}",
"ProcessRules":null
}
]