Skip to content

Lambda function for ingesting usage metrics relating to ITS DataHub's assets on National Transportation Library into Elasticsearch database or CSV.

License

Notifications You must be signed in to change notification settings

usdot-its-jpo-data-portal/lambda-ingest-ntl-metric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

This repository contains a lambda function for ingesting usage metrics relating to ITS DataHub's assets on National Transportation Library. The metrics are ingested into ITS DataHub's Elasticsearch database for display on ITS DataHub.

README Outline:

  • Project Description
  • Prerequisites
  • Usage
    • Building
    • Testing
  • Version History and Retention
  • License
  • Contributions
  • Contact Information
  • Acknowledgements

Project Description

This repository contains a lambda function for ingesting usage metrics relating to ITS DataHub's assets on National Transportation Library. The metrics CSVs are deposited into an S3 bucket and these CSVs are then ingested into ITS DataHub's Elasticsearch database for display on ITS DataHub.

Prerequisites

Requires:

  • Python 3.6+
  • Elasticsearch (optional if you choose to write metrics to CSV)
  • AWS S3

Usage

Building

Option 1: Build package locally and deploy to lambda manually through AWS console.

sh package.sh

Testing

Run

python src/lambda_function.py

Version History and Retention

Status: This project is in the prototype phase.

Release Frequency: This project is currently in development and updated weekly.

Release History: See CHANGELOG.md

Retention: This project will remain publicly accessible for a minimum of five years (until at least 06/15/2025).

License

This project is licensed under the Creative Commons 1.0 Universal (CC0 1.0) License - see the LICENSE for more details.

Contributions

Please read CONTRIBUTING.md for details on our Code of Conduct, the process for submitting pull requests to us, and how contributions will be released.

Contact Information

Contact Name: ITS JPO Contact Information: [email protected]

Acknowledgements

Citing this code

When you copy or adapt from this code, please include the original URL you copied the source code from and date of retrieval as a comment in your code. Additional information on how to cite can be found in the ITS CodeHub FAQ.

Contributors

Shout out to PurpleBooth for their README template.

About

Lambda function for ingesting usage metrics relating to ITS DataHub's assets on National Transportation Library into Elasticsearch database or CSV.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published