File tree Expand file tree Collapse file tree 7 files changed +80
-20
lines changed
github.com/redhat-cne/sdk-go/pkg/event/redfish Expand file tree Collapse file tree 7 files changed +80
-20
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "@odata.context" : " /redfish/v1/$metadata#Event.Event" ,
3
+ "@odata.id" : " /redfish/v1/EventService/Events/c8a5433e-de17-11eb-8d4b-f40270e4f7f4" ,
4
+ "@odata.type" : " #Event.v1_3_0.Event" ,
5
+ "Context" : " any string is valid" ,
6
+ "Events" : [
7
+ {
8
+ "Context" : " any string is valid" ,
9
+ "EventId" : " 2162" ,
10
+ "EventTimestamp" : " 2021-07-06T01:17:12-0400" ,
11
+ "EventType" : " Alert" ,
12
+ "MemberId" : " 79694" ,
13
+ "Message" : " The system inlet temperature is greater than the upper warning threshold." ,
14
+ "MessageId" : " TMP0120" ,
15
+ "OriginOfCondition" : {"@odata.id" :" /redfish/v1/Systems/System.Embedded.1" },
16
+ "Severity" : " Warning"
17
+ },
18
+ {
19
+ "Context" : " any string is valid" ,
20
+ "EventId" : " 2163" ,
21
+ "EventTimestamp" : " 2021-07-06T01:17:12-0400" ,
22
+ "EventType" : " Alert" ,
23
+ "MemberId" : " 79695" ,
24
+ "Message" : " The system inlet temperature is greater than the upper warning threshold." ,
25
+ "MessageId" : " TMP0120" ,
26
+ "OriginOfCondition" : {"@odata.id" :" /redfish/v1/Systems/System.Embedded.1" },
27
+ "Severity" : " Warning"
28
+ }
29
+ ],
30
+ "Id" : " c8a5433e-de17-11eb-8d4b-f40270e4f7f4" ,
31
+ "Name" : " Event Array"
32
+ }
Original file line number Diff line number Diff line change @@ -19,11 +19,13 @@ The events to be tested are defined in the e2e-tests/data folder with one JSON f
19
19
20
20
## Power
21
21
- PWR1004.json
22
+ - iLOEvents.0.9.PowerSupplyRemoved.json (HPE iLO 5)
22
23
23
24
## Memory
24
25
- MEM0004.json
25
26
26
27
## Misc
27
28
- RAC1195.json
28
29
- A lifecycle log used to test multiple MessageArgs
29
-
30
+ - Multiple-EventRecords.json
31
+ - A fake event to test multiple EventRecords included in one event
Original file line number Diff line number Diff line change
1
+ {
2
+ "@odata.context" : " /redfish/v1/$metadata#Event.Event" ,
3
+ "@odata.type" : " #Event.v1_0_0.Event" ,
4
+ "Events" : [
5
+ {
6
+ "EventId" : " TestEventId" ,
7
+ "EventTimestamp" : " 2022-01-24T16:00:00Z" ,
8
+ "EventType" : " Alert" ,
9
+ "Message" : " Test Event" ,
10
+ "MessageArgs" : [
11
+ " NoAMS" ,
12
+ " Busy" ,
13
+ " Cached"
14
+ ],
15
+ "MessageId" : " iLOEvents.0.9.PowerSupplyRemoved" ,
16
+ "OriginOfCondition" : " /redfish/v1/Systems/1/" ,
17
+ "Severity" : " OK"
18
+ }
19
+ ],
20
+ "Name" : " Events"
21
+ }
Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/json-iterator/go v1.1.12
7
- github.com/redhat-cne/sdk-go v0.1.1-0.20220105170230-b17827c91503
7
+ github.com/redhat-cne/sdk-go v0.1.1-0.20220127152823-2487c3dd9ce7
8
8
github.com/sirupsen/logrus v1.8.1
9
9
github.com/valyala/fasthttp v1.31.0
10
10
golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f
Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R
139
139
github.com/prometheus/procfs v0.0.2 /go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA =
140
140
github.com/prometheus/procfs v0.1.3 /go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU =
141
141
github.com/prometheus/procfs v0.6.0 /go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA =
142
- github.com/redhat-cne/sdk-go v0.1.1-0.20220105170230-b17827c91503 h1:gfwZqJ0xiWF6eDrtQuYhzRblG7LBHYUbskUl0A+IANs =
143
- github.com/redhat-cne/sdk-go v0.1.1-0.20220105170230-b17827c91503 /go.mod h1:1FXE/O2PhDnazeCidsAIJJ5lLaaWHBXNP5HxaJ1hf0U =
142
+ github.com/redhat-cne/sdk-go v0.1.1-0.20220127152823-2487c3dd9ce7 h1:OQuYNMBxjkn4QdHCls01vQv7GAgJstOpaJMI/7ujxVE =
143
+ github.com/redhat-cne/sdk-go v0.1.1-0.20220127152823-2487c3dd9ce7 /go.mod h1:1FXE/O2PhDnazeCidsAIJJ5lLaaWHBXNP5HxaJ1hf0U =
144
144
github.com/rogpeppe/fastuuid v1.2.0 /go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ =
145
145
github.com/sirupsen/logrus v1.2.0 /go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo =
146
146
github.com/sirupsen/logrus v1.4.2 /go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE =
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ github.com/modern-go/concurrent
41
41
# github.com/modern-go/reflect2 v1.0.2
42
42
## explicit; go 1.12
43
43
github.com/modern-go/reflect2
44
- # github.com/redhat-cne/sdk-go v0.1.1-0.20220105170230-b17827c91503
44
+ # github.com/redhat-cne/sdk-go v0.1.1-0.20220127152823-2487c3dd9ce7
45
45
## explicit; go 1.17
46
46
github.com/redhat-cne/sdk-go/pkg/channel
47
47
github.com/redhat-cne/sdk-go/pkg/event
You can’t perform that action at this time.
0 commit comments