The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Paws::TimestreamWrite::WriteRecords - Arguments for method WriteRecords on Paws::TimestreamWrite

DESCRIPTION

This class represents the parameters used for calling the method WriteRecords on the Amazon Timestream Write service. Use the attributes of this class as arguments to method WriteRecords.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to WriteRecords.

SYNOPSIS

my $ingest.timestream = Paws->service('TimestreamWrite');
$ingest . timestream->WriteRecords(
  DatabaseName => 'MyResourceName',
  Records      => [
    {
      Dimensions => [
        {
          Name               => 'MyStringValue256',     # min: 1, max: 256
          Value              => 'MyStringValue2048',    # min: 1, max: 2048
          DimensionValueType => 'VARCHAR',    # values: VARCHAR; OPTIONAL
        },
        ...
      ],    # max: 128; OPTIONAL
      MeasureName      => 'MyStringValue256',     # min: 1, max: 256
      MeasureValue     => 'MyStringValue2048',    # min: 1, max: 2048
      MeasureValueType =>
        'DOUBLE',    # values: DOUBLE, BIGINT, VARCHAR, BOOLEAN; OPTIONAL
      Time     => 'MyStringValue256',    # min: 1, max: 256
      TimeUnit => 'MILLISECONDS'
      , # values: MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS; OPTIONAL
      Version => 1,    # OPTIONAL
    },
    ...
  ],
  TableName        => 'MyResourceName',
  CommonAttributes => {
    Dimensions => [
      {
        Name               => 'MyStringValue256',     # min: 1, max: 256
        Value              => 'MyStringValue2048',    # min: 1, max: 2048
        DimensionValueType => 'VARCHAR',    # values: VARCHAR; OPTIONAL
      },
      ...
    ],    # max: 128; OPTIONAL
    MeasureName      => 'MyStringValue256',     # min: 1, max: 256
    MeasureValue     => 'MyStringValue2048',    # min: 1, max: 2048
    MeasureValueType =>
      'DOUBLE',    # values: DOUBLE, BIGINT, VARCHAR, BOOLEAN; OPTIONAL
    Time     => 'MyStringValue256',    # min: 1, max: 256
    TimeUnit => 'MILLISECONDS'
    ,   # values: MILLISECONDS, SECONDS, MICROSECONDS, NANOSECONDS; OPTIONAL
    Version => 1,    # OPTIONAL
  },    # OPTIONAL
);

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/ingest.timestream/WriteRecords

ATTRIBUTES

CommonAttributes => Paws::TimestreamWrite::Record

A record containing the common measure and dimension attributes shared across all the records in the request. The measure and dimension attributes specified in here will be merged with the measure and dimension attributes in the records object when the data is written into Timestream.

REQUIRED DatabaseName => Str

The name of the Timestream database.

REQUIRED Records => ArrayRef[Paws::TimestreamWrite::Record]

An array of records containing the unique dimension and measure attributes for each time series data point.

REQUIRED TableName => Str

The name of the Timesream table.

SEE ALSO

This class forms part of Paws, documenting arguments for method WriteRecords in Paws::TimestreamWrite

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues