forked from oracle/oci-dotnet-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SummarizeDatabaseInsightResourceForecastTrendRequest.cs
223 lines (201 loc) · 9.71 KB
/
SummarizeDatabaseInsightResourceForecastTrendRequest.cs
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
/*
* Copyright (c) 2020, 2021, 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.
*/
// NOTE: Code generated by OracleSDKGenerator.
// DO NOT EDIT this file manually.
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Oci.OpsiService.Models;
namespace Oci.OpsiService.Requests
{
/// <example>
/// Click <a href="https://docs.cloud.oracle.com/en-us/iaas/tools/dot-net-examples/latest/opsi/SummarizeDatabaseInsightResourceForecastTrend.cs.html">here</a> to see an example of how to use SummarizeDatabaseInsightResourceForecastTrend request.
/// </example>
public class SummarizeDatabaseInsightResourceForecastTrendRequest : Oci.Common.IOciRequest
{
/// <value>
/// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "CompartmentId is required.")]
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")]
public string CompartmentId { get; set; }
/// <value>
/// Filter by resource metric.
/// Supported values are CPU and STORAGE.
///
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "ResourceMetric is required.")]
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "resourceMetric")]
public string ResourceMetric { get; set; }
/// <value>
/// Specify time period in ISO 8601 format with respect to current time.
/// Default is last 30 days represented by P30D.
/// If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored.
/// Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M).
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "analysisTimeInterval")]
public string AnalysisTimeInterval { get; set; }
/// <value>
/// Analysis start time in UTC in ISO 8601 format(inclusive).
/// Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ).
/// The minimum allowed value is 2 years prior to the current day.
/// timeIntervalStart and timeIntervalEnd parameters are used together.
/// If analysisTimeInterval is specified, this parameter is ignored.
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "timeIntervalStart")]
public System.Nullable<System.DateTime> TimeIntervalStart { get; set; }
/// <value>
/// Analysis end time in UTC in ISO 8601 format(exclusive).
/// Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ).
/// timeIntervalStart and timeIntervalEnd are used together.
/// If timeIntervalEnd is not specified, current time is used as timeIntervalEnd.
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "timeIntervalEnd")]
public System.Nullable<System.DateTime> TimeIntervalEnd { get; set; }
///
/// <value>
/// Filter by one or more database type.
/// Possible values are ADW-S, ATP-S, ADW-D, ATP-D
///
/// </value>
///
public enum DatabaseTypeEnum {
[EnumMember(Value = "ADW-S")]
AdwS,
[EnumMember(Value = "ATP-S")]
AtpS,
[EnumMember(Value = "ADW-D")]
AdwD,
[EnumMember(Value = "ATP-D")]
AtpD
};
/// <value>
/// Filter by one or more database type.
/// Possible values are ADW-S, ATP-S, ADW-D, ATP-D
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "databaseType")]
public System.Collections.Generic.List<DatabaseTypeEnum> DatabaseType { get; set; }
/// <value>
/// Optional list of database [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "databaseId")]
public System.Collections.Generic.List<string> DatabaseId { get; set; }
///
/// <value>
/// Choose the type of statistic metric data to be used for forecasting.
/// </value>
///
public enum StatisticEnum {
[EnumMember(Value = "AVG")]
Avg,
[EnumMember(Value = "MAX")]
Max
};
/// <value>
/// Choose the type of statistic metric data to be used for forecasting.
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "statistic")]
public System.Nullable<StatisticEnum> Statistic { get; set; }
/// <value>
/// Number of days used for utilization forecast analysis.
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "forecastDays")]
public System.Nullable<int> ForecastDays { get; set; }
///
/// <value>
/// Choose algorithm model for the forecasting.
/// Possible values:
/// - LINEAR: Uses linear regression algorithm for forecasting.
/// - ML_AUTO: Automatically detects best algorithm to use for forecasting.
/// - ML_NO_AUTO: Automatically detects seasonality of the data for forecasting using linear or seasonal algorithm.
///
/// </value>
///
public enum ForecastModelEnum {
[EnumMember(Value = "LINEAR")]
Linear,
[EnumMember(Value = "ML_AUTO")]
MlAuto,
[EnumMember(Value = "ML_NO_AUTO")]
MlNoAuto
};
/// <value>
/// Choose algorithm model for the forecasting.
/// Possible values:
/// - LINEAR: Uses linear regression algorithm for forecasting.
/// - ML_AUTO: Automatically detects best algorithm to use for forecasting.
/// - ML_NO_AUTO: Automatically detects seasonality of the data for forecasting using linear or seasonal algorithm.
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "forecastModel")]
public System.Nullable<ForecastModelEnum> ForecastModel { get; set; }
///
/// <value>
/// Filter by utilization level by the following buckets:
/// - HIGH_UTILIZATION: DBs with utilization greater or equal than 75.
/// - LOW_UTILIZATION: DBs with utilization lower than 25.
/// - MEDIUM_HIGH_UTILIZATION: DBs with utilization greater or equal than 50 but lower than 75.
/// - MEDIUM_LOW_UTILIZATION: DBs with utilization greater or equal than 25 but lower than 50.
///
/// </value>
///
public enum UtilizationLevelEnum {
[EnumMember(Value = "HIGH_UTILIZATION")]
HighUtilization,
[EnumMember(Value = "LOW_UTILIZATION")]
LowUtilization,
[EnumMember(Value = "MEDIUM_HIGH_UTILIZATION")]
MediumHighUtilization,
[EnumMember(Value = "MEDIUM_LOW_UTILIZATION")]
MediumLowUtilization
};
/// <value>
/// Filter by utilization level by the following buckets:
/// - HIGH_UTILIZATION: DBs with utilization greater or equal than 75.
/// - LOW_UTILIZATION: DBs with utilization lower than 25.
/// - MEDIUM_HIGH_UTILIZATION: DBs with utilization greater or equal than 50 but lower than 75.
/// - MEDIUM_LOW_UTILIZATION: DBs with utilization greater or equal than 25 but lower than 50.
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "utilizationLevel")]
public System.Nullable<UtilizationLevelEnum> UtilizationLevel { get; set; }
/// <value>
/// This parameter is used to change data's confidence level, this data is ingested by the
/// forecast algorithm.
/// Confidence is the probability of an interval to contain the expected population parameter.
/// Manipulation of this value will lead to different results.
/// If not set, default confidence value is 95%.
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "confidence")]
public System.Nullable<int> Confidence { get; set; }
/// <value>
/// For list pagination. The value of the `opc-next-page` response header from
/// the previous \"List\" call. For important details about how pagination works,
/// see [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine).
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")]
public string Page { get; set; }
/// <value>
/// Unique Oracle-assigned identifier for the request. If you need to contact
/// Oracle about a particular request, please provide the request ID.
///
/// </value>
[Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
}
}