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 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// A timestamp, and a single numerical value, which together represent a
// measurement at a particular point in time.
type DataPoint struct {
// The time, in epoch format, associated with a particular Value.
//
// This member is required.
Timestamp *time.Time
// The actual value associated with a particular Timestamp.
//
// This member is required.
Value *float64
noSmithyDocumentSerde
}
// The information about a dimension.
type DimensionDetail struct {
// The identifier of a dimension.
Identifier *string
noSmithyDocumentSerde
}
// A logical grouping of Performance Insights metrics for a related subject area.
// For example, the db.sql dimension group consists of the following dimensions:
//
// *
// db.sql.id - The hash of a running SQL statement, generated by Performance
// Insights.
//
// * db.sql.db_id - Either the SQL ID generated by the database engine,
// or a value generated by Performance Insights that begins with pi-.
//
// *
// db.sql.statement - The full text of the SQL statement that is running, for
// example, SELECT * FROM employees.
//
// * db.sql_tokenized.id - The hash of the SQL
// digest generated by Performance Insights.
//
// Each response element returns a
// maximum of 500 bytes. For larger elements, such as SQL statements, only the
// first 500 bytes are returned.
type DimensionGroup struct {
// The name of the dimension group. Valid values are as follows:
//
// * db - The name
// of the database to which the client is connected. The following values are
// permitted:
//
// * Aurora PostgreSQL
//
// * Amazon RDS PostgreSQL
//
// * Aurora MySQL
//
// *
// Amazon RDS MySQL
//
// * Amazon RDS MariaDB
//
// * Amazon DocumentDB
//
// * db.application -
// The name of the application that is connected to the database. The following
// values are permitted:
//
// * Aurora PostgreSQL
//
// * Amazon RDS PostgreSQL
//
// * Amazon
// DocumentDB
//
// * db.host - The host name of the connected client (all engines).
//
// *
// db.query - The query that is currently running (only Amazon DocumentDB).
//
// *
// db.query_tokenized - The digest query (only Amazon DocumentDB).
//
// *
// db.session_type - The type of the current session (only Aurora PostgreSQL and
// RDS PostgreSQL).
//
// * db.sql - The text of the SQL statement that is currently
// running (all engines except Amazon DocumentDB).
//
// * db.sql_tokenized - The SQL
// digest (all engines except Amazon DocumentDB).
//
// * db.user - The user logged in
// to the database (all engines except Amazon DocumentDB).
//
// * db.wait_event - The
// event for which the database backend is waiting (all engines except Amazon
// DocumentDB).
//
// * db.wait_event_type - The type of event for which the database
// backend is waiting (all engines except Amazon DocumentDB).
//
// * db.wait_state -
// The event for which the database backend is waiting (only Amazon DocumentDB).
//
// This member is required.
Group *string
// A list of specific dimensions from a dimension group. If this parameter is not
// present, then it signifies that all of the dimensions in the group were
// requested, or are present in the response. Valid values for elements in the
// Dimensions array are:
//
// * db.application.name - The name of the application that
// is connected to the database. Valid values are as follows:
//
// * Aurora
// PostgreSQL
//
// * Amazon RDS PostgreSQL
//
// * Amazon DocumentDB
//
// * db.host.id - The
// host ID of the connected client (all engines).
//
// * db.host.name - The host name
// of the connected client (all engines).
//
// * db.name - The name of the database to
// which the client is connected. Valid values are as follows:
//
// * Aurora
// PostgreSQL
//
// * Amazon RDS PostgreSQL
//
// * Aurora MySQL
//
// * Amazon RDS MySQL
//
// *
// Amazon RDS MariaDB
//
// * Amazon DocumentDB
//
// * db.query.id - The query ID generated
// by Performance Insights (only Amazon DocumentDB).
//
// * db.query.db_id - The query
// ID generated by the database (only Amazon DocumentDB).
//
// * db.query.statement -
// The text of the query that is being run (only Amazon DocumentDB).
//
// *
// db.query.tokenized_id
//
// * db.query.tokenized.id - The query digest ID generated
// by Performance Insights (only Amazon DocumentDB).
//
// * db.query.tokenized.db_id -
// The query digest ID generated by Performance Insights (only Amazon
// DocumentDB).
//
// * db.query.tokenized.statement - The text of the query digest
// (only Amazon DocumentDB).
//
// * db.session_type.name - The type of the current
// session (only Amazon DocumentDB).
//
// * db.sql.id - The hash of the full,
// non-tokenized SQL statement generated by Performance Insights (all engines
// except Amazon DocumentDB).
//
// * db.sql.db_id - Either the SQL ID generated by the
// database engine, or a value generated by Performance Insights that begins with
// pi- (all engines except Amazon DocumentDB).
//
// * db.sql.statement - The full text
// of the SQL statement that is running, as in SELECT * FROM employees (all engines
// except Amazon DocumentDB)
//
// * db.sql.tokenized_id
//
// * db.sql_tokenized.id - The
// hash of the SQL digest generated by Performance Insights (all engines except
// Amazon DocumentDB). In the console, db.sql_tokenized.id is called the Support ID
// because Amazon Web Services Support can look at this data to help you
// troubleshoot database issues.
//
// * db.sql_tokenized.db_id - Either the native
// database ID used to refer to the SQL statement, or a synthetic ID such as
// pi-2372568224 that Performance Insights generates if the native database ID
// isn't available (all engines except Amazon DocumentDB).
//
// *
// db.sql_tokenized.statement - The text of the SQL digest, as in SELECT * FROM
// employees WHERE employee_id = ? (all engines except Amazon DocumentDB)
//
// *
// db.user.id - The ID of the user logged in to the database (all engines except
// Amazon DocumentDB).
//
// * db.user.name - The name of the user logged in to the
// database (all engines except Amazon DocumentDB).
//
// * db.wait_event.name - The
// event for which the backend is waiting (all engines except Amazon
// DocumentDB).
//
// * db.wait_event.type - The type of event for which the backend is
// waiting (all engines except Amazon DocumentDB).
//
// * db.wait_event_type.name - The
// name of the event type for which the backend is waiting (all engines except
// Amazon DocumentDB).
//
// * db.wait_state.name - The event for which the backend is
// waiting (only Amazon DocumentDB).
Dimensions []string
// The maximum number of items to fetch for this dimension group.
Limit *int32
noSmithyDocumentSerde
}
// Information about dimensions within a dimension group.
type DimensionGroupDetail struct {
// The dimensions within a dimension group.
Dimensions []DimensionDetail
// The name of the dimension group.
Group *string
noSmithyDocumentSerde
}
// An object that includes the requested dimension key values and aggregated metric
// values within a dimension group.
type DimensionKeyDescription struct {
// A map that contains the value for each additional metric.
AdditionalMetrics map[string]float64
// A map of name-value pairs for the dimensions in the group.
Dimensions map[string]string
// If PartitionBy was specified, PartitionKeys contains the dimensions that were.
Partitions []float64
// The aggregated metric value for the dimensions, over the requested time range.
Total *float64
noSmithyDocumentSerde
}
// An object that describes the details for a specified dimension.
type DimensionKeyDetail struct {
// The full name of the dimension. The full name includes the group name and key
// name. The following values are valid:
//
// * db.query.statement (Amazon
// DocumentDB)
//
// * db.sql.statement (Amazon RDS and Aurora)
Dimension *string
// The status of the dimension detail data. Possible values include the
// following:
//
// * AVAILABLE - The dimension detail data is ready to be retrieved.
//
// *
// PROCESSING - The dimension detail data isn't ready to be retrieved because more
// processing time is required. If the requested detail data has the status
// PROCESSING, Performance Insights returns the truncated query.
//
// * UNAVAILABLE -
// The dimension detail data could not be collected successfully.
Status DetailStatus
// The value of the dimension detail data. Depending on the return status, this
// value is either the full or truncated SQL query for the following dimensions:
//
// *
// db.query.statement (Amazon DocumentDB)
//
// * db.sql.statement (Amazon RDS and
// Aurora)
Value *string
noSmithyDocumentSerde
}
// The metadata for a feature. For example, the metadata might indicate that a
// feature is turned on or off on a specific DB instance.
type FeatureMetadata struct {
// The status of the feature on the DB instance. Possible values include the
// following:
//
// * ENABLED - The feature is enabled on the instance.
//
// * DISABLED -
// The feature is disabled on the instance.
//
// * UNSUPPORTED - The feature isn't
// supported on the instance.
//
// * ENABLED_PENDING_REBOOT - The feature is enabled on
// the instance but requires a reboot to take effect.
//
// * DISABLED_PENDING_REBOOT -
// The feature is disabled on the instance but requires a reboot to take effect.
//
// *
// UNKNOWN - The feature status couldn't be determined.
Status FeatureStatus
noSmithyDocumentSerde
}
// The available dimension information for a metric type.
type MetricDimensionGroups struct {
// The available dimension groups for a metric type.
Groups []DimensionGroupDetail
// The metric type to which the dimension information belongs.
Metric *string
noSmithyDocumentSerde
}
// A time-ordered series of data points, corresponding to a dimension of a
// Performance Insights metric.
type MetricKeyDataPoints struct {
// An array of timestamp-value pairs, representing measurements over a period of
// time.
DataPoints []DataPoint
// The dimensions to which the data points apply.
Key *ResponseResourceMetricKey
noSmithyDocumentSerde
}
// A single query to be processed. You must provide the metric to query. If no
// other parameters are specified, Performance Insights returns all data points for
// the specified metric. Optionally, you can request that the data points be
// aggregated by dimension group (GroupBy), and return only those data points that
// match your criteria (Filter).
type MetricQuery struct {
// The name of a Performance Insights metric to be measured. Valid values for
// Metric are:
//
// * db.load.avg - A scaled representation of the number of active
// sessions for the database engine.
//
// * db.sampledload.avg - The raw number of
// active sessions for the database engine.
//
// * The counter metrics listed in
// Performance Insights operating system counters
// (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights_Counters.html#USER_PerfInsights_Counters.OS)
// in the Amazon Aurora User Guide.
//
// If the number of active sessions is less than
// an internal Performance Insights threshold, db.load.avg and db.sampledload.avg
// are the same value. If the number of active sessions is greater than the
// internal threshold, Performance Insights samples the active sessions, with
// db.load.avg showing the scaled values, db.sampledload.avg showing the raw
// values, and db.sampledload.avg less than db.load.avg. For most use cases, you
// can query db.load.avg only.
//
// This member is required.
Metric *string
// One or more filters to apply in the request. Restrictions:
//
// * Any number of
// filters by the same dimension, as specified in the GroupBy parameter.
//
// * A
// single filter for any other dimension in this dimension group.
Filter map[string]string
// A specification for how to aggregate the data points from a query result. You
// must specify a valid dimension group. Performance Insights will return all of
// the dimensions within that group, unless you provide the names of specific
// dimensions within that group. You can also request that Performance Insights
// return a limited number of values for a dimension.
GroupBy *DimensionGroup
noSmithyDocumentSerde
}
// If PartitionBy was specified in a DescribeDimensionKeys request, the dimensions
// are returned in an array. Each element in the array specifies one dimension.
type ResponsePartitionKey struct {
// A dimension map that contains the dimensions for this partition.
//
// This member is required.
Dimensions map[string]string
noSmithyDocumentSerde
}
// An object that contains the full name, description, and unit of a metric.
type ResponseResourceMetric struct {
// The description of the metric.
Description *string
// The full name of the metric.
Metric *string
// The unit of the metric.
Unit *string
noSmithyDocumentSerde
}
// An object describing a Performance Insights metric and one or more dimensions
// for that metric.
type ResponseResourceMetricKey struct {
// The name of a Performance Insights metric to be measured. Valid values for
// Metric are:
//
// * db.load.avg - A scaled representation of the number of active
// sessions for the database engine.
//
// * db.sampledload.avg - The raw number of
// active sessions for the database engine.
//
// * The counter metrics listed in
// Performance Insights operating system counters
// (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights_Counters.html#USER_PerfInsights_Counters.OS)
// in the Amazon Aurora User Guide.
//
// If the number of active sessions is less than
// an internal Performance Insights threshold, db.load.avg and db.sampledload.avg
// are the same value. If the number of active sessions is greater than the
// internal threshold, Performance Insights samples the active sessions, with
// db.load.avg showing the scaled values, db.sampledload.avg showing the raw
// values, and db.sampledload.avg less than db.load.avg. For most use cases, you
// can query db.load.avg only.
//
// This member is required.
Metric *string
// The valid dimensions for the metric.
Dimensions map[string]string
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
|