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 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
)
// Represents a cross-account destination that receives subscription log events.
type Destination struct {
// An IAM policy document that governs which Amazon Web Services accounts can
// create subscription filters against this destination.
AccessPolicy *string
// The ARN of this destination.
Arn *string
// The creation time of the destination, expressed as the number of milliseconds
// after Jan 1, 1970 00:00:00 UTC.
CreationTime *int64
// The name of the destination.
DestinationName *string
// A role for impersonation, used when delivering log events to the target.
RoleArn *string
// The Amazon Resource Name (ARN) of the physical target where the log events are
// delivered (for example, a Kinesis stream).
TargetArn *string
noSmithyDocumentSerde
}
// Represents an export task.
type ExportTask struct {
// The name of the S3 bucket to which the log data was exported.
Destination *string
// The prefix that was used as the start of Amazon S3 key for every object
// exported.
DestinationPrefix *string
// Execution information about the export task.
ExecutionInfo *ExportTaskExecutionInfo
// The start time, expressed as the number of milliseconds after Jan 1, 1970
// 00:00:00 UTC. Events with a timestamp before this time are not exported.
From *int64
// The name of the log group from which logs data was exported.
LogGroupName *string
// The status of the export task.
Status *ExportTaskStatus
// The ID of the export task.
TaskId *string
// The name of the export task.
TaskName *string
// The end time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00
// UTC. Events with a timestamp later than this time are not exported.
To *int64
noSmithyDocumentSerde
}
// Represents the status of an export task.
type ExportTaskExecutionInfo struct {
// The completion time of the export task, expressed as the number of milliseconds
// after Jan 1, 1970 00:00:00 UTC.
CompletionTime *int64
// The creation time of the export task, expressed as the number of milliseconds
// after Jan 1, 1970 00:00:00 UTC.
CreationTime *int64
noSmithyDocumentSerde
}
// Represents the status of an export task.
type ExportTaskStatus struct {
// The status code of the export task.
Code ExportTaskStatusCode
// The status message related to the status code.
Message *string
noSmithyDocumentSerde
}
// Represents a matched event.
type FilteredLogEvent struct {
// The ID of the event.
EventId *string
// The time the event was ingested, expressed as the number of milliseconds after
// Jan 1, 1970 00:00:00 UTC.
IngestionTime *int64
// The name of the log stream to which this event belongs.
LogStreamName *string
// The data contained in the log event.
Message *string
// The time the event occurred, expressed as the number of milliseconds after Jan
// 1, 1970 00:00:00 UTC.
Timestamp *int64
noSmithyDocumentSerde
}
// Represents a log event, which is a record of activity that was recorded by the
// application or resource being monitored.
type InputLogEvent struct {
// The raw event message.
//
// This member is required.
Message *string
// The time the event occurred, expressed as the number of milliseconds after Jan
// 1, 1970 00:00:00 UTC.
//
// This member is required.
Timestamp *int64
noSmithyDocumentSerde
}
// Represents a log group.
type LogGroup struct {
// The Amazon Resource Name (ARN) of the log group.
Arn *string
// The creation time of the log group, expressed as the number of milliseconds
// after Jan 1, 1970 00:00:00 UTC.
CreationTime *int64
// The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
KmsKeyId *string
// The name of the log group.
LogGroupName *string
// The number of metric filters.
MetricFilterCount *int32
// The number of days to retain the log events in the specified log group. Possible
// values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827,
// 2192, 2557, 2922, 3288, and 3653. To set a log group to never have log events
// expire, use DeleteRetentionPolicy
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html).
RetentionInDays *int32
// The number of bytes stored.
StoredBytes *int64
noSmithyDocumentSerde
}
// The fields contained in log events found by a GetLogGroupFields operation, along
// with the percentage of queried log events in which each field appears.
type LogGroupField struct {
// The name of a log field.
Name *string
// The percentage of log events queried that contained the field.
Percent int32
noSmithyDocumentSerde
}
// Represents a log stream, which is a sequence of log events from a single emitter
// of logs.
type LogStream struct {
// The Amazon Resource Name (ARN) of the log stream.
Arn *string
// The creation time of the stream, expressed as the number of milliseconds after
// Jan 1, 1970 00:00:00 UTC.
CreationTime *int64
// The time of the first event, expressed as the number of milliseconds after Jan
// 1, 1970 00:00:00 UTC.
FirstEventTimestamp *int64
// The time of the most recent log event in the log stream in CloudWatch Logs. This
// number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00
// UTC. The lastEventTime value updates on an eventual consistency basis. It
// typically updates in less than an hour from ingestion, but in rare situations
// might take longer.
LastEventTimestamp *int64
// The ingestion time, expressed as the number of milliseconds after Jan 1, 1970
// 00:00:00 UTC.
LastIngestionTime *int64
// The name of the log stream.
LogStreamName *string
// The number of bytes stored. Important: On June 17, 2019, this parameter was
// deprecated for log streams, and is always reported as zero. This change applies
// only to log streams. The storedBytes parameter for log groups is not affected.
//
// Deprecated: Starting on June 17, 2019, this parameter will be deprecated for log
// streams, and will be reported as zero. This change applies only to log streams.
// The storedBytes parameter for log groups is not affected.
StoredBytes *int64
// The sequence token.
UploadSequenceToken *string
noSmithyDocumentSerde
}
// Metric filters express how CloudWatch Logs would extract metric observations
// from ingested log events and transform them into metric data in a CloudWatch
// metric.
type MetricFilter struct {
// The creation time of the metric filter, expressed as the number of milliseconds
// after Jan 1, 1970 00:00:00 UTC.
CreationTime *int64
// The name of the metric filter.
FilterName *string
// A symbolic description of how CloudWatch Logs should interpret the data in each
// log event. For example, a log event can contain timestamps, IP addresses,
// strings, and so on. You use the filter pattern to specify what to look for in
// the log event message.
FilterPattern *string
// The name of the log group.
LogGroupName *string
// The metric transformations.
MetricTransformations []MetricTransformation
noSmithyDocumentSerde
}
// Represents a matched event.
type MetricFilterMatchRecord struct {
// The raw event data.
EventMessage *string
// The event number.
EventNumber int64
// The values extracted from the event data by the filter.
ExtractedValues map[string]string
noSmithyDocumentSerde
}
// Indicates how to transform ingested log events to metric data in a CloudWatch
// metric.
type MetricTransformation struct {
// The name of the CloudWatch metric.
//
// This member is required.
MetricName *string
// A custom namespace to contain your metric in CloudWatch. Use namespaces to group
// together metrics that are similar. For more information, see Namespaces
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace).
//
// This member is required.
MetricNamespace *string
// The value to publish to the CloudWatch metric when a filter pattern matches a
// log event.
//
// This member is required.
MetricValue *string
// (Optional) The value to emit when a filter pattern does not match a log event.
// This value can be null.
DefaultValue *float64
// The fields to use as dimensions for the metric. One metric filter can include as
// many as three dimensions. Metrics extracted from log events are charged as
// custom metrics. To prevent unexpected high charges, do not specify
// high-cardinality fields such as IPAddress or requestID as dimensions. Each
// different value found for a dimension is treated as a separate metric and
// accrues charges as a separate custom metric. To help prevent accidental high
// charges, Amazon disables a metric filter if it generates 1000 different
// name/value pairs for the dimensions that you have specified within a certain
// amount of time. You can also set up a billing alarm to alert you if your charges
// are higher than expected. For more information, see Creating a Billing Alarm to
// Monitor Your Estimated Amazon Web Services Charges
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html).
Dimensions map[string]string
// The unit to assign to the metric. If you omit this, the unit is set as None.
Unit StandardUnit
noSmithyDocumentSerde
}
// Represents a log event.
type OutputLogEvent struct {
// The time the event was ingested, expressed as the number of milliseconds after
// Jan 1, 1970 00:00:00 UTC.
IngestionTime *int64
// The data contained in the log event.
Message *string
// The time the event occurred, expressed as the number of milliseconds after Jan
// 1, 1970 00:00:00 UTC.
Timestamp *int64
noSmithyDocumentSerde
}
// Reserved.
type QueryCompileError struct {
// Reserved.
Location *QueryCompileErrorLocation
// Reserved.
Message *string
noSmithyDocumentSerde
}
// Reserved.
type QueryCompileErrorLocation struct {
// Reserved.
EndCharOffset *int32
// Reserved.
StartCharOffset *int32
noSmithyDocumentSerde
}
// This structure contains details about a saved CloudWatch Logs Insights query
// definition.
type QueryDefinition struct {
// The date that the query definition was most recently modified.
LastModified *int64
// If this query definition contains a list of log groups that it is limited to,
// that list appears here.
LogGroupNames []string
// The name of the query definition.
Name *string
// The unique ID of the query definition.
QueryDefinitionId *string
// The query string to use for this definition. For more information, see
// CloudWatch Logs Insights Query Syntax
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
QueryString *string
noSmithyDocumentSerde
}
// Information about one CloudWatch Logs Insights query that matches the request in
// a DescribeQueries operation.
type QueryInfo struct {
// The date and time that this query was created.
CreateTime *int64
// The name of the log group scanned by this query.
LogGroupName *string
// The unique ID number of this query.
QueryId *string
// The query string used in this query.
QueryString *string
// The status of this query. Possible values are Cancelled, Complete, Failed,
// Running, Scheduled, and Unknown.
Status QueryStatus
noSmithyDocumentSerde
}
// Contains the number of log events scanned by the query, the number of log events
// that matched the query criteria, and the total number of bytes in the log events
// that were scanned.
type QueryStatistics struct {
// The total number of bytes in the log events scanned during the query.
BytesScanned float64
// The number of log events that matched the query string.
RecordsMatched float64
// The total number of log events scanned during the query.
RecordsScanned float64
noSmithyDocumentSerde
}
// Represents the rejected events.
type RejectedLogEventsInfo struct {
// The expired log events.
ExpiredLogEventEndIndex *int32
// The log events that are too new.
TooNewLogEventStartIndex *int32
// The log events that are too old.
TooOldLogEventEndIndex *int32
noSmithyDocumentSerde
}
// A policy enabling one or more entities to put logs to a log group in this
// account.
type ResourcePolicy struct {
// Timestamp showing when this policy was last updated, expressed as the number of
// milliseconds after Jan 1, 1970 00:00:00 UTC.
LastUpdatedTime *int64
// The details of the policy.
PolicyDocument *string
// The name of the resource policy.
PolicyName *string
noSmithyDocumentSerde
}
// Contains one field from one log event returned by a CloudWatch Logs Insights
// query, along with the value of that field. For more information about the fields
// that are generated by CloudWatch logs, see Supported Logs and Discovered Fields
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html).
type ResultField struct {
// The log event field.
Field *string
// The value of this field.
Value *string
noSmithyDocumentSerde
}
// Represents the search status of a log stream.
type SearchedLogStream struct {
// The name of the log stream.
LogStreamName *string
// Indicates whether all the events in this log stream were searched.
SearchedCompletely *bool
noSmithyDocumentSerde
}
// Represents a subscription filter.
type SubscriptionFilter struct {
// The creation time of the subscription filter, expressed as the number of
// milliseconds after Jan 1, 1970 00:00:00 UTC.
CreationTime *int64
// The Amazon Resource Name (ARN) of the destination.
DestinationArn *string
// The method used to distribute log data to the destination, which can be either
// random or grouped by log stream.
Distribution Distribution
// The name of the subscription filter.
FilterName *string
// A symbolic description of how CloudWatch Logs should interpret the data in each
// log event. For example, a log event can contain timestamps, IP addresses,
// strings, and so on. You use the filter pattern to specify what to look for in
// the log event message.
FilterPattern *string
// The name of the log group.
LogGroupName *string
//
RoleArn *string
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
|