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

@aws-sdk/client-personalize-events

Package Overview
Dependencies
Maintainers
4
Versions
411
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-personalize-events

@aws-sdk/client-personalize-events client

  • 1.0.0-alpha.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
307K
decreased by-55.62%
Maintainers
4
Weekly downloads
 
Created

What is @aws-sdk/client-personalize-events?

@aws-sdk/client-personalize-events is an AWS SDK client for Amazon Personalize Events. It allows developers to record events that are used to train and update machine learning models for personalized recommendations.

What are @aws-sdk/client-personalize-events's main functionalities?

PutEvents

The PutEvents feature allows you to record events such as user interactions with items. These events are used to train and update machine learning models for personalized recommendations.

const { PersonalizeEventsClient, PutEventsCommand } = require('@aws-sdk/client-personalize-events');

const client = new PersonalizeEventsClient({ region: 'us-west-2' });

const params = {
  sessionId: 'exampleSessionId',
  trackingId: 'exampleTrackingId',
  userId: 'exampleUserId',
  eventList: [
    {
      eventType: 'exampleEventType',
      sentAt: new Date(),
      properties: JSON.stringify({
        itemId: 'exampleItemId'
      })
    }
  ]
};

const command = new PutEventsCommand(params);

client.send(command).then(
  (data) => console.log(data),
  (error) => console.error(error)
);

Other packages similar to @aws-sdk/client-personalize-events

FAQs

Package last updated on 16 Jan 2020

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