{"_id":"@aitox/aws-monitoring","_rev":"1-8be637d6089573e800f0afd647e76345","name":"@aitox/aws-monitoring","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@aitox/aws-monitoring","version":"1.0.0","description":"This package is a wrapper around the AWS SDK to manage AWS.","main":"index.js","private":false,"scripts":{"publish:public":"npm publish --access public","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/anthonyissa/utils.git#main"},"keywords":[],"author":{"name":"Anthony ISSA"},"license":"ISC","homepage":"https://github.com/anthonyissa/utils/tree/main/aws-monitoring","devDependencies":{"jest":"^29.5.0"},"dependencies":{"aws-sdk":"^2.1386.0","dotenv":"^16.0.3"},"gitHead":"8551466a9aff803a59cbab6ce7c149c7634ee348","bugs":{"url":"https://github.com/anthonyissa/utils/issues"},"_id":"@aitox/aws-monitoring@1.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-L7rNBse4NrM3NUsa/V/dpyZy4eMwbqs3EYpoTgNuy0+n1/BoaaqCYyVzOCA8mPAuRVAtysUDAn9ZS6mtzOndVQ==","shasum":"9b210211975727a5aae86b3413e757a7062c664b","tarball":"https://registry.npmjs.org/@aitox/aws-monitoring/-/aws-monitoring-1.0.0.tgz","fileCount":4,"unpackedSize":3457,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECbKQr4L4Mbfth03CjunHBTDHHCQWGm8yAyszsbVNZ1AiAIMOjUBMYHvxmtVlhjsnoF+saEOsYMIS9g1+HZXNmwiQ=="}]},"_npmUser":{"name":"aitox","email":"anthony.issa@hotmail.fr"},"directories":{},"maintainers":[{"name":"aitox","email":"anthony.issa@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-monitoring_1.0.0_1685285008754_0.1487163485333438"},"_hasShrinkwrap":false},"1.0.1":{"name":"@aitox/aws-monitoring","version":"1.0.1","description":"This package is a wrapper around the AWS SDK to manage AWS.","main":"index.js","private":false,"scripts":{"publish:public":"npm publish --access public","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/anthonyissa/utils.git#main"},"keywords":[],"author":{"name":"Anthony ISSA"},"license":"ISC","homepage":"https://github.com/anthonyissa/utils/tree/main/aws-monitoring","devDependencies":{"jest":"^29.5.0"},"dependencies":{"aws-sdk":"^2.1386.0","dotenv":"^16.0.3"},"gitHead":"0409d0833908a3d2edb756c05f667415430a1f9f","bugs":{"url":"https://github.com/anthonyissa/utils/issues"},"_id":"@aitox/aws-monitoring@1.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-ZNIF/ZnsOaDKeJ1S2d9FFR2G77DbCqr24u99JyNrQFTLUZhvRcnfT8naYpMb1Pqy9gr/nPfNZ5F3ej+pbi4p2A==","shasum":"25654fd84bf8b5177b6165519b3c62de5f399c93","tarball":"https://registry.npmjs.org/@aitox/aws-monitoring/-/aws-monitoring-1.0.1.tgz","fileCount":4,"unpackedSize":3652,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHknQcrhsLe4LNRcidtfCoPbL2NAUChoshJDaoftCXa6AiEAqUzd5CYr4QJHbwvC+qpw/GzK0tJIGnGbSZo9nk5v5cw="}]},"_npmUser":{"name":"aitox","email":"anthony.issa@hotmail.fr"},"directories":{},"maintainers":[{"name":"aitox","email":"anthony.issa@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-monitoring_1.0.1_1685285215455_0.3100404696296719"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-28T14:43:28.689Z","1.0.0":"2023-05-28T14:43:28.914Z","modified":"2023-05-28T14:46:55.897Z","1.0.1":"2023-05-28T14:46:55.618Z"},"maintainers":[{"name":"aitox","email":"anthony.issa@hotmail.fr"}],"description":"This package is a wrapper around the AWS SDK to manage AWS.","homepage":"https://github.com/anthonyissa/utils/tree/main/aws-monitoring","keywords":[],"repository":{"type":"git","url":"git+https://github.com/anthonyissa/utils.git#main"},"author":{"name":"Anthony ISSA"},"bugs":{"url":"https://github.com/anthonyissa/utils/issues"},"license":"ISC","readme":"# AWS Controller\r\n\r\nThis package contains AWS controllers to monitor your apps.\r\n\r\n[Installation](#installation)\r\n\r\n[Usage](#usage)\r\n\r\n[Contributing](#contributing)\r\n\r\n[License](#license)\r\n\r\n## Installation\r\n\r\n`\r\nnpm i @aitox/aws-monitoring\r\n`\r\n\r\n## Usage\r\n\r\nI would recommend putting the call for the cost watcher at the beginning of the main file of your app. \r\n\r\nWill print in the console when the 10$ threshold is reached.\r\nwatchAWSCost(10);\r\n\r\nWill exit when the 10$ threshold is reached.\r\nwatchAWSCost(10, true);\r\n\r\nWill exit when the 10$ threshold is reached. The watcher will be launched every 6 hours.\r\nwatchAWSCost(10, true, 1000 * 60 * 60 * 6);\r\n\r\n## Contributing\r\n\r\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or a pull request.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License. See the LICENSE file for more information.\r\n","readmeFilename":"README.md"}