/
summarize_exadata_insight_resource_forecast_trend_aggregation.go
308 lines (263 loc) · 22.1 KB
/
summarize_exadata_insight_resource_forecast_trend_aggregation.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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// Operations Insights API
//
// Use the Operations Insights API to perform data extraction operations to obtain database
// resource utilization, performance statistics, and reference information. For more information,
// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html).
//
package opsi
import (
"fmt"
"github.com/oracle/oci-go-sdk/v65/common"
"strings"
)
// SummarizeExadataInsightResourceForecastTrendAggregation Usage and Forecast results from the selected time period.
type SummarizeExadataInsightResourceForecastTrendAggregation struct {
// The start timestamp that was passed into the request.
TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"`
// The end timestamp that was passed into the request.
TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"`
// Defines the type of exadata resource metric (example: CPU, STORAGE)
ExadataResourceMetric SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum `mandatory:"true" json:"exadataResourceMetric"`
// Defines the resource type for an exadata (example: DATABASE, STORAGE_SERVER, HOST, DISKGROUP)
ExadataResourceType SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum `mandatory:"true" json:"exadataResourceType"`
// Displays usage unit ( CORES, GB , PERCENT, MBPS)
UsageUnit SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum `mandatory:"true" json:"usageUnit"`
// Time series patterns used in the forecasting.
Pattern SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum `mandatory:"true" json:"pattern"`
// Days to reach capacity for a storage server
DaysToReachCapacity *int `mandatory:"true" json:"daysToReachCapacity"`
// Time series data used for the forecast analysis.
HistoricalData []HistoricalDataItem `mandatory:"true" json:"historicalData"`
// Time series data result of the forecasting analysis.
ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"`
// Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast.
SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"`
}
func (m SummarizeExadataInsightResourceForecastTrendAggregation) String() string {
return common.PointerString(m)
}
// ValidateEnumValue returns an error when providing an unsupported enum value
// This function is being called during constructing API request process
// Not recommended for calling this function directly
func (m SummarizeExadataInsightResourceForecastTrendAggregation) ValidateEnumValue() (bool, error) {
errMessage := []string{}
if _, ok := GetMappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum(string(m.ExadataResourceMetric)); !ok && m.ExadataResourceMetric != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ExadataResourceMetric: %s. Supported values are: %s.", m.ExadataResourceMetric, strings.Join(GetSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnumStringValues(), ",")))
}
if _, ok := GetMappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum(string(m.ExadataResourceType)); !ok && m.ExadataResourceType != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ExadataResourceType: %s. Supported values are: %s.", m.ExadataResourceType, strings.Join(GetSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnumStringValues(), ",")))
}
if _, ok := GetMappingSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum(string(m.UsageUnit)); !ok && m.UsageUnit != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UsageUnit: %s. Supported values are: %s.", m.UsageUnit, strings.Join(GetSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnumStringValues(), ",")))
}
if _, ok := GetMappingSummarizeExadataInsightResourceForecastTrendAggregationPatternEnum(string(m.Pattern)); !ok && m.Pattern != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Pattern: %s. Supported values are: %s.", m.Pattern, strings.Join(GetSummarizeExadataInsightResourceForecastTrendAggregationPatternEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}
// SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum Enum with underlying type: string
type SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum string
// Set of constants representing the allowable values for SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum
const (
SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricCpu SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum = "CPU"
SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricStorage SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum = "STORAGE"
SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricIo SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum = "IO"
SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricMemory SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum = "MEMORY"
SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricIops SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum = "IOPS"
SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricThroughput SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum = "THROUGHPUT"
)
var mappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum = map[string]SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum{
"CPU": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricCpu,
"STORAGE": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricStorage,
"IO": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricIo,
"MEMORY": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricMemory,
"IOPS": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricIops,
"THROUGHPUT": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricThroughput,
}
var mappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnumLowerCase = map[string]SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum{
"cpu": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricCpu,
"storage": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricStorage,
"io": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricIo,
"memory": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricMemory,
"iops": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricIops,
"throughput": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricThroughput,
}
// GetSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnumValues Enumerates the set of values for SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum
func GetSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnumValues() []SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum {
values := make([]SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum, 0)
for _, v := range mappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum {
values = append(values, v)
}
return values
}
// GetSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnumStringValues Enumerates the set of values in String for SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum
func GetSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnumStringValues() []string {
return []string{
"CPU",
"STORAGE",
"IO",
"MEMORY",
"IOPS",
"THROUGHPUT",
}
}
// GetMappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum(val string) (SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnum, bool) {
enum, ok := mappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceMetricEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum Enum with underlying type: string
type SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum string
// Set of constants representing the allowable values for SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum
const (
SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeDatabase SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum = "DATABASE"
SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeHost SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum = "HOST"
SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeStorageServer SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum = "STORAGE_SERVER"
SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeDiskgroup SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum = "DISKGROUP"
)
var mappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum = map[string]SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum{
"DATABASE": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeDatabase,
"HOST": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeHost,
"STORAGE_SERVER": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeStorageServer,
"DISKGROUP": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeDiskgroup,
}
var mappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnumLowerCase = map[string]SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum{
"database": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeDatabase,
"host": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeHost,
"storage_server": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeStorageServer,
"diskgroup": SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeDiskgroup,
}
// GetSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnumValues Enumerates the set of values for SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum
func GetSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnumValues() []SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum {
values := make([]SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum, 0)
for _, v := range mappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum {
values = append(values, v)
}
return values
}
// GetSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnumStringValues Enumerates the set of values in String for SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum
func GetSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnumStringValues() []string {
return []string{
"DATABASE",
"HOST",
"STORAGE_SERVER",
"DISKGROUP",
}
}
// GetMappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum(val string) (SummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnum, bool) {
enum, ok := mappingSummarizeExadataInsightResourceForecastTrendAggregationExadataResourceTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum Enum with underlying type: string
type SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum string
// Set of constants representing the allowable values for SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum
const (
SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitCores SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum = "CORES"
SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitGb SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum = "GB"
SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitMbps SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum = "MBPS"
SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitIops SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum = "IOPS"
SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitPercent SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum = "PERCENT"
)
var mappingSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum = map[string]SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum{
"CORES": SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitCores,
"GB": SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitGb,
"MBPS": SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitMbps,
"IOPS": SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitIops,
"PERCENT": SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitPercent,
}
var mappingSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnumLowerCase = map[string]SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum{
"cores": SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitCores,
"gb": SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitGb,
"mbps": SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitMbps,
"iops": SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitIops,
"percent": SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitPercent,
}
// GetSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnumValues Enumerates the set of values for SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum
func GetSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnumValues() []SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum {
values := make([]SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum, 0)
for _, v := range mappingSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum {
values = append(values, v)
}
return values
}
// GetSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnumStringValues Enumerates the set of values in String for SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum
func GetSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnumStringValues() []string {
return []string{
"CORES",
"GB",
"MBPS",
"IOPS",
"PERCENT",
}
}
// GetMappingSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum(val string) (SummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnum, bool) {
enum, ok := mappingSummarizeExadataInsightResourceForecastTrendAggregationUsageUnitEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum Enum with underlying type: string
type SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum string
// Set of constants representing the allowable values for SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum
const (
SummarizeExadataInsightResourceForecastTrendAggregationPatternLinear SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum = "LINEAR"
SummarizeExadataInsightResourceForecastTrendAggregationPatternMonthlySeasons SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum = "MONTHLY_SEASONS"
SummarizeExadataInsightResourceForecastTrendAggregationPatternMonthlyAndYearlySeasons SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum = "MONTHLY_AND_YEARLY_SEASONS"
SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklySeasons SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum = "WEEKLY_SEASONS"
SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklyAndMonthlySeasons SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum = "WEEKLY_AND_MONTHLY_SEASONS"
SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklyMonthlyAndYearlySeasons SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum = "WEEKLY_MONTHLY_AND_YEARLY_SEASONS"
SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklyAndYearlySeasons SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum = "WEEKLY_AND_YEARLY_SEASONS"
SummarizeExadataInsightResourceForecastTrendAggregationPatternYearlySeasons SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum = "YEARLY_SEASONS"
)
var mappingSummarizeExadataInsightResourceForecastTrendAggregationPatternEnum = map[string]SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum{
"LINEAR": SummarizeExadataInsightResourceForecastTrendAggregationPatternLinear,
"MONTHLY_SEASONS": SummarizeExadataInsightResourceForecastTrendAggregationPatternMonthlySeasons,
"MONTHLY_AND_YEARLY_SEASONS": SummarizeExadataInsightResourceForecastTrendAggregationPatternMonthlyAndYearlySeasons,
"WEEKLY_SEASONS": SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklySeasons,
"WEEKLY_AND_MONTHLY_SEASONS": SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklyAndMonthlySeasons,
"WEEKLY_MONTHLY_AND_YEARLY_SEASONS": SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklyMonthlyAndYearlySeasons,
"WEEKLY_AND_YEARLY_SEASONS": SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklyAndYearlySeasons,
"YEARLY_SEASONS": SummarizeExadataInsightResourceForecastTrendAggregationPatternYearlySeasons,
}
var mappingSummarizeExadataInsightResourceForecastTrendAggregationPatternEnumLowerCase = map[string]SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum{
"linear": SummarizeExadataInsightResourceForecastTrendAggregationPatternLinear,
"monthly_seasons": SummarizeExadataInsightResourceForecastTrendAggregationPatternMonthlySeasons,
"monthly_and_yearly_seasons": SummarizeExadataInsightResourceForecastTrendAggregationPatternMonthlyAndYearlySeasons,
"weekly_seasons": SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklySeasons,
"weekly_and_monthly_seasons": SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklyAndMonthlySeasons,
"weekly_monthly_and_yearly_seasons": SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklyMonthlyAndYearlySeasons,
"weekly_and_yearly_seasons": SummarizeExadataInsightResourceForecastTrendAggregationPatternWeeklyAndYearlySeasons,
"yearly_seasons": SummarizeExadataInsightResourceForecastTrendAggregationPatternYearlySeasons,
}
// GetSummarizeExadataInsightResourceForecastTrendAggregationPatternEnumValues Enumerates the set of values for SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum
func GetSummarizeExadataInsightResourceForecastTrendAggregationPatternEnumValues() []SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum {
values := make([]SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum, 0)
for _, v := range mappingSummarizeExadataInsightResourceForecastTrendAggregationPatternEnum {
values = append(values, v)
}
return values
}
// GetSummarizeExadataInsightResourceForecastTrendAggregationPatternEnumStringValues Enumerates the set of values in String for SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum
func GetSummarizeExadataInsightResourceForecastTrendAggregationPatternEnumStringValues() []string {
return []string{
"LINEAR",
"MONTHLY_SEASONS",
"MONTHLY_AND_YEARLY_SEASONS",
"WEEKLY_SEASONS",
"WEEKLY_AND_MONTHLY_SEASONS",
"WEEKLY_MONTHLY_AND_YEARLY_SEASONS",
"WEEKLY_AND_YEARLY_SEASONS",
"YEARLY_SEASONS",
}
}
// GetMappingSummarizeExadataInsightResourceForecastTrendAggregationPatternEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingSummarizeExadataInsightResourceForecastTrendAggregationPatternEnum(val string) (SummarizeExadataInsightResourceForecastTrendAggregationPatternEnum, bool) {
enum, ok := mappingSummarizeExadataInsightResourceForecastTrendAggregationPatternEnumLowerCase[strings.ToLower(val)]
return enum, ok
}