Diagnostics Pypi
Fawad Mazhar fawad.mazhar@nordcloud.com 2019
Overview
A python package that can be included into your serverless projects. This package is tailored for AWS lambda.
The package generates necessary alerts based on incoming message. It first reads a configuration file and based on that, it returns alerts along with the available translations.
Runtime
Python v2.7
Pre-requisites
You will need to install:
- Python
- pip
Install
pip install kc-diagnostics
Getting Started
from kc_diagnostics import Diagnostics
diagnostics = Diagnostics()
alerts = diagnostics.generate_alerts( dumped_json )
Prerequisites for the consuming application
Install dependenies
pip install boto3
Export required environment variables:
export TARGET_AWS_REGION=
export BUFFERS_TABLE_NAME=
export TRIGGERS_TABLE_NAME=
Make sure these dynamodb tables exist in your desired AWS account.
Add permissions to your lambda function. For example:
Effect: Allow
Action:
- dynamodb:Query
- dynamodb:Scan
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:BatchGetItem
Resource:
- {"Fn::Join": ["", ["arn:aws:dynamodb:", {"Ref": "AWS::Region"}, ":", {"Ref":"AWS::AccountId"}, ":table/${BUFFERS_TABLE_NAME}"]]}
- {"Fn::Join": ["", ["arn:aws:dynamodb:", {"Ref": "AWS::Region"}, ":", {"Ref":"AWS::AccountId"}, ":table/${TRIGGERS_TABLE_NAME}"]]}
Available Translations
German
Spanish
French
Italian
Portuguese
Metadata
Release files for kc-diagnostics 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kc_diagnostics-1.0.7.tar.gz | 135.7 kB | Without provenance | Details for kc_diagnostics-1.0.7.tar.gz |
Release files / kc_diagnostics-1.0.7.tar.gz
| Download URL | kc_diagnostics-1.0.7.tar.gz |
|---|---|
| Size | 135.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4a6efa1a11273e868056da8d8281dd2b3f2974d1b81891db9c9853adb114d1c
|
|
BLAKE2b-256 checksum How to use checksums |
da020f83270bba628ce2d435d4f6ff6fc1485e3e2f46b7912416d2305de57d60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.16
|
Security for kc-diagnostics 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.