blob: e26d1e06c06dbaa3705807215ca343809179a911 [file] [log] [blame]
Krzysztof Grobelny53647642020-06-25 11:45:38 +02001description: >
2 Implement this interface to provide report inspection features. An
3 implementation service should additionally implement
4 xyz.openbmc_project.Object.Delete for deletion of individual report objects.
5
6methods:
7 - name: Update
8 description: >
9 The Update method is defined for the on demand metric report update.
10 It triggers update of the Readings property. If ReportingType is not
11 set to OnRequest then method does nothing.
12
13properties:
14 - name: Persistency
15 type: boolean
16 description: >
17 Defines if the report configuration is stored in non volatile memory.
18 Configuration contains all Report properties excluding Readings.
19 - name: ReadingParameters
Wludzik, Jozef9969a5b2021-02-03 15:39:37 +010020 type: array[struct[object_path,enum[self.OperationType],string,string]]
Krzysztof Grobelny53647642020-06-25 11:45:38 +020021 description: >
Wludzik, Jozef9969a5b2021-02-03 15:39:37 +010022 Array of structures that contains sensor path that is monitored by
23 Telemetry service, operation type, metric Id and metadata. Metric Id and
24 metadata are used to store user details, e.g. metadata can be used to
25 map sensor name to DBus path.
Krzysztof Grobelny53647642020-06-25 11:45:38 +020026 - name: Readings
27 type: struct[uint64,array[struct[string,string,double,uint64]]]
28 description: >
29 Structure that contains timestamp of readings update in milliseconds and
30 array of metric Id, metadata, reading value and timestamp of single
31 reading update in milliseconds. Metric Id and metadata are equal to its
32 counterparts in ReadingParameters property.
33 flags:
34 - readonly
35 - name: EmitsReadingsUpdate
36 type: boolean
37 description: >
38 On Readings update PropertiesChanged signal is emitted. It allows to
39 decrease generation of load on DBus when Readings property is updated.
40 Redfish Event Service requires this option to be equal to true.
41 flags:
42 - const
43 - name: LogToMetricReportsCollection
44 type: boolean
45 description: >
46 Presence of Report in Metric Report Collection in Redfish Telemetry
47 Service.
48 flags:
49 - const
50 - name: ReportingType
51 type: enum[self.ReportingType]
52 description: Defines how readings are updated.
53 - name: Interval
54 type: uint64
55 description: >
56 Defines period of time in milliseconds when readings are updated.
57
58enumerations:
59 - name: OperationType
60 descritpion: Type of action that is executed on readings.
61 values:
62 - name: Single
Wludzik, Jozef9969a5b2021-02-03 15:39:37 +010063 description: Store the latest reading.
Krzysztof Grobelny53647642020-06-25 11:45:38 +020064 - name: Max
65 description: Store maximal reading during defined time period.
66 - name: Min
67 description: Store minimal reading during defined time period.
68 - name: Avg
69 description: Calulate average of readings during defined time period.
70 - name: Sum
71 description: Calulate sum of readings over defined time period.
72 - name: ReportingType
73 description: >
74 The type that defines when Readings are updated.
75 values:
76 - name: OnChange
77 description: >
78 On sensor reading change.
79 - name: OnRequest
80 description: >
81 On Update method call.
82 - name: Periodic
83 description: >
84 After period of time defined by ScanPeriod property.