forked from stmcginnis/gofish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresolutionstep.go
57 lines (52 loc) · 2.71 KB
/
resolutionstep.go
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
//
// SPDX-License-Identifier: BSD-3-Clause
//
package redfish
import (
"encoding/json"
)
type ResolutionType string
const (
// ContactVendorResolutionType Contact vendor for service.
ContactVendorResolutionType ResolutionType = "ContactVendor"
// ReplaceComponentResolutionType Replace a component.
ReplaceComponentResolutionType ResolutionType = "ReplaceComponent"
// FirmwareUpdateResolutionType Perform a firmware update operation.
FirmwareUpdateResolutionType ResolutionType = "FirmwareUpdate"
// ResetResolutionType Perform a reset operation.
ResetResolutionType ResolutionType = "Reset"
// PowerCycleResolutionType Perform a power cycle operation.
PowerCycleResolutionType ResolutionType = "PowerCycle"
// ResetToDefaultsResolutionType Reset the settings to factory defaults.
ResetToDefaultsResolutionType ResolutionType = "ResetToDefaults"
// CollectDiagnosticDataResolutionType Collect diagnostic data.
CollectDiagnosticDataResolutionType ResolutionType = "CollectDiagnosticData"
// OEMResolutionType Perform an OEM-defined resolution step.
OEMResolutionType ResolutionType = "OEM"
)
// ResolutionStep shall describe a recommended step of the service-defined resolution. The set of recommended steps
// are used to resolve the cause of a log entry, an event, a condition, or an error message.
type ResolutionStep struct {
// ActionParameters shall contain the parameters of the action URI for a resolution step.
// ActionParameters []Parameters
// ActionURI shall contain the action URI for a resolution step.
ActionURI string
// Oem shall contain the OEM extensions. All values for properties contained in this object shall conform to the
// Redfish Specification-described requirements.
OEM json.RawMessage `json:"Oem"`
// Priority shall contain the priority in the set of resolution steps. The value '0' shall indicate the highest
// priority. Increasing values shall represent decreasing priority. If two or more resolution steps have the same
// priority, the execution order of the resolution steps shall be in array order. If a resolution step does not
// have a priority assignment, the default is 0. The priority is used to determine the execution order of the
// resolution steps.
Priority int
// ResolutionType shall contain the type of the resolution step.
ResolutionType ResolutionType
// RetryCount shall contain the number of the retries for a resolution step.
RetryCount int
// RetryIntervalSeconds shall contain the interval, in seconds, between the retries for a resolution step.
RetryIntervalSeconds int
// TargetComponentURI shall contain the target URI of the component for a resolution step. This property shall be
// present if the ActionURI property is not supported.
TargetComponentURI string
}