Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-timestream-write

Package Overview
Dependencies
Maintainers
0
Versions
386
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-timestream-write

AWS SDK for JavaScript Timestream Write Client for Node.js, Browser and React Native

  • 3.721.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created

What is @aws-sdk/client-timestream-write?

@aws-sdk/client-timestream-write is an AWS SDK for JavaScript package that allows you to interact with Amazon Timestream, a fast, scalable, and serverless time series database service for IoT and operational applications. This package specifically deals with writing data to Timestream.

What are @aws-sdk/client-timestream-write's main functionalities?

Write Records

{"const { TimestreamWriteClient, WriteRecordsCommand } = require('@aws-sdk/client-timestream-write');\n\nconst client = new TimestreamWriteClient({ region: 'us-east-1' });\n\nconst writeRecords = async () => {\n  const params = {\n    DatabaseName: 'myDatabase',\n    TableName: 'myTable',\n    Records: [\n      {\n        Dimensions: [\n          { Name: 'region', Value: 'us-east-1' },\n          { Name: 'az', Value: 'az1' }\n        ],\n        MeasureName: 'cpu_utilization',\n        MeasureValue: '13.5',\n        MeasureValueType: 'DOUBLE',\n        Time: Date.now().toString()\n      }\n    ]\n  };\n  const command = new WriteRecordsCommand(params);\n  try {\n    const data = await client.send(command);\n    console.log('Records written:', data);\n  } catch (err) {\n    console.error('Error writing records:', err);\n  }\n};\n\nwriteRecords();":"Write time series data records to a Timestream table. This is the core functionality for storing time series data."}

0

FAQs

Package last updated on 02 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc