LookoutMetrics.Client.
get_sample_data
(**kwargs)¶Returns a selection of sample records from an Amazon S3 datasource.
See also: AWS API Documentation
Request Syntax
response = client.get_sample_data(
S3SourceConfig={
'RoleArn': 'string',
'TemplatedPathList': [
'string',
],
'HistoricalDataPathList': [
'string',
],
'FileFormatDescriptor': {
'CsvFormatDescriptor': {
'FileCompression': 'NONE'|'GZIP',
'Charset': 'string',
'ContainsHeader': True|False,
'Delimiter': 'string',
'HeaderList': [
'string',
],
'QuoteSymbol': 'string'
},
'JsonFormatDescriptor': {
'FileCompression': 'NONE'|'GZIP',
'Charset': 'string'
}
}
}
)
A datasource bucket in Amazon S3.
The Amazon Resource Name (ARN) of the role.
An array of strings containing the list of templated paths.
An array of strings containing the historical set of data paths.
Contains information about a source file's formatting.
Contains information about how a source CSV data file should be analyzed.
The level of compression of the source CSV file.
The character set in which the source CSV file is written.
Whether or not the source CSV file contains a header.
The character used to delimit the source CSV file.
A list of the source CSV file's headers, if any.
The character used as a quote character.
Contains information about how a source JSON data file should be analyzed.
The level of compression of the source CSV file.
The character set in which the source JSON file is written.
{
'HeaderValues': [
'string',
],
'SampleRows': [
[
'string',
],
]
}
Response Structure
A list of header labels for the records.
A list of records.
Exceptions
LookoutMetrics.Client.exceptions.ValidationException
LookoutMetrics.Client.exceptions.ResourceNotFoundException
LookoutMetrics.Client.exceptions.AccessDeniedException
LookoutMetrics.Client.exceptions.TooManyRequestsException
LookoutMetrics.Client.exceptions.InternalServerException