-
Notifications
You must be signed in to change notification settings - Fork 12
/
buforecastmodification.go
61 lines (37 loc) · 2.32 KB
/
buforecastmodification.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
58
59
60
61
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Buforecastmodification
type Buforecastmodification struct {
// VarType - The type of the modification
VarType *string `json:"type,omitempty"`
// StartIntervalIndex - The number of 15 minute intervals past referenceStartDate representing the first interval to which to apply this modification. Must be null if values is populated
StartIntervalIndex *int `json:"startIntervalIndex,omitempty"`
// EndIntervalIndex - The number of 15 minute intervals past referenceStartDate representing the last interval to which to apply this modification. Must be null if values is populated
EndIntervalIndex *int `json:"endIntervalIndex,omitempty"`
// Metric - The metric to which this modification applies
Metric *string `json:"metric,omitempty"`
// LegacyMetric - The legacy metric to which this modification applies if applicable
LegacyMetric *string `json:"legacyMetric,omitempty"`
// Value - The value of the modification. Must be null if \"values\" is populated
Value *float64 `json:"value,omitempty"`
// Values - The list of values to update. Only applicable for grid-type modifications. Must be null if \"value\" is populated
Values *[]Wfmforecastmodificationintervaloffsetvalue `json:"values,omitempty"`
// DisplayGranularity - The client side display granularity of the modification, expressed in the ISO-8601 duration format. Periods are represented as an ISO-8601 string. For example: P1D or P1DT12H
DisplayGranularity *string `json:"displayGranularity,omitempty"`
// Granularity - The actual granularity of the modification as stored behind the scenes, expressed in the ISO-8601 duration format. Periods are represented as an ISO-8601 string. For example: P1D or P1DT12H
Granularity *string `json:"granularity,omitempty"`
// Enabled - Whether the modification is enabled for the forecast
Enabled *bool `json:"enabled,omitempty"`
// PlanningGroupIds - The IDs of the planning groups to which this forecast modification applies. Leave empty to apply to all
PlanningGroupIds *[]string `json:"planningGroupIds,omitempty"`
}
// String returns a JSON representation of the model
func (o *Buforecastmodification) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}