{"_id":"@azure/ai-anomaly-detector","_rev":"96-7a1f58e6aaec67d90159a02e3669b74a","name":"@azure/ai-anomaly-detector","dist-tags":{"latest":"3.0.0-beta.5","next":"3.0.0-beta.5","dev":"3.0.0-alpha.20221207.2"},"versions":{"3.0.0-dev.20200827.3":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-dev.20200827.3","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-dev.20200827.3","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"d59b882d18d49ba80a2b6d01bab9b4aac397060c","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-dev.20200827.3.tgz","fileCount":32,"integrity":"sha512-4ojirKTr62v652JqXl/Zg9TlPw66JIqPTHvt+Veh6mXIEVi0F6f/X23T95OTMAE4AKjvr9pOlDruNj53HQOmvw==","signatures":[{"sig":"MEQCIAW5HE71gnYsSCUQaGu5EE+2KFe7OJJ7ip7WFLTzeDuKAiBlWUIO+hjk7eIfVNXs/ChgZNbVqwC3xRlrbx632QYIPQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR+mLCRA9TVsSAnZWagAAgXsP/0BOvbw4cSjoh+tajYQ0\n5o1CsuoiKOvG4oTJ5X2dsyfF3dMHtSUC5xbahNobdTala4PVT2XxACO08/GK\n5SQvIpYaCcC5WtNYt1sHBdSdgwjIM3I3LRu3DE01fuZKB7WRcvjG/tq+wesO\nSqu/c1Kf3QwChdfxuIzDnCLyrIWFg0A++ntkGQbvxLdodWxmgNKDrKV4CQGq\n3leKTOXuLsFe8/GuRLU7FpLspoLDOQzaaVyvejt9Rx3tz+3nYu6+eRkZaFON\ntqBROdx8xWArvl4MmOdW9bbxh8pQE7V/TJg4KQv431NzXUkB5v7dfMmg3rOv\nftb83b1RpB3H4ssrampiAQemMRXVyjR6gC+44JJyivZkhRoZ82zch6hYM0o1\ni6Q/7VhWH69GY1N+MhgNme7hCGTfM4ETDjiif6qwnM4EaQyEU0FGDGXcWP38\nwy1aoSj9ggrd3tEuDnGbyilpdQkuNx77xfqMPK4fgz/EmWhtxz2Ai7VOwpSK\nsENW19B55lK6u56XMckUo+Ykn+26aue7W4j7mQgZcI7x9UDxOsEW4Al04YcI\na/E7MzGpaD0QIOHcqCVurPO8ctOhU2Wdel2L367tttL820ZqTJvyR/GMZXHF\nJd4zIPo4kCiHGuCO2RHLAh0LO4m8PMb1AQ0+LkOM43XrYseRxyzF5CvfrJMC\nbM1c\r\n=vZ3R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-dev.20200827.3.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts -f html -o anomalydetector-lintReport.html || exit 0","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git","directory":"sdk/anomalydetector/ai-anomaly-detector"},"_npmVersion":"6.14.7","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-dev"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-dev","@azure/identity":"^1.1.0-dev","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","eslint-config-prettier":"^6.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@typescript-eslint/parser":"^2.0.0","@azure/test-utils-recorder":"^1.0.0-dev","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","eslint-plugin-no-only-tests":"^2.3.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-dev","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-dev.20200827.3_1598548362527_0.6896045229360024","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-preview.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-preview.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-preview.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"b7cdf3791a2198d0ef40063616b83a5a0783c90b","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-preview.1.tgz","fileCount":32,"integrity":"sha512-bu5c+4KpNbz2KsGsyaes7Y95vphGiEKw+G4McQ+MkEf803BTaLI9luzYS7lhKIBcRIHQAJo+LygS9SkFmPitmA==","signatures":[{"sig":"MEQCIDJgIxEsRy19kpGdkOoM+xRPFvdiyx6jUx4je89hrFppAiAHey8FPN1tRpZVXwpqwVak8Rk+286GwgSTAF3mQt3MxA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR/ZiCRA9TVsSAnZWagAAqG8QAIW0lYajyPtHEfnXCiaW\n/eJtzKwHeMH9oldPo32fuZizc4++JdIjd3LY9dY30Lnp/cFypDUiBTvARFxo\nJAR6yNfkdQ0n3tN/H2/ONxx/EzIDugqjH92gPujDBcFWpitJ5LyQnfRJfu0U\nEisEJkl3BI8MiL407W8Gp1zkHttE15+6HymNR7SSayI8xEYmdYzD61Yf2EET\no1TEkB6RopOHxjIcx+T4bALhJncv4xgx3RYe4YM3UkUrhT3cSCgyJPo52wdE\n6eSVjHIN9BpcMlJqJlaK54onYs4Y+G7ohiDdu77jgQFqC/1KXTzFFsnAAjO0\n5pn2if9BXbg+FLBNT+dRNzSYtTYhAm7fb+Snhn3dB4DWwqS8GbSIjiOmjT8e\nO6f8XbtcH51pgWGVU2td6ubDFC1eFqy99or3YbB+1+2b3QYmvIdUH1CHLQ8M\nQlcvOES8e9y51GjFFy6cutQ7b8kIlTAj5bMRjIRxMZht0RHI4OJWBcfIZins\nztGaVyA1LoKkCi9z4I8Z+4MOTvV8Pp3TYqIPm+5Ycy5npNt8TfAAM9xJJq7K\nynz6O8dsIUs1aIZBJUVHT8d45McXtX5XGaf0cBnvHvafkdwSlbiUMxyvarMV\n+fzTw4lR35vy7MzwFkWFGLwNsDmytfq/qmYV1eekX+eyBUdqZxntYLnnwrlJ\nY9bX\r\n=AsKW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-preview.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts -f html -o anomalydetector-lintReport.html || exit 0","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git","directory":"sdk/anomalydetector/ai-anomaly-detector"},"_npmVersion":"6.14.7","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"1.0.0-preview.9"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","eslint-config-prettier":"^6.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@typescript-eslint/parser":"^2.0.0","@azure/test-utils-recorder":"^1.0.0","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","eslint-plugin-no-only-tests":"^2.3.0","@azure/eslint-plugin-azure-sdk":"^3.0.0","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-preview.1_1598551650365_0.08344861659414637","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-dev.20200831.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-dev.20200831.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-dev.20200831.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"107299cf2137de98cee6d56a7536022e963ca564","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-dev.20200831.1.tgz","fileCount":33,"integrity":"sha512-KygHp2V3ljDnvPtx03OYjjWJZttTqhQzDR8Q8tCuuBL9ejl2vkjYSx0N18QHKIo64BNuw2XDgJ0KuNAuEAwClw==","signatures":[{"sig":"MEUCIQCqfznJX9non2UsTn9H7PP/er/L2WPVm2r3zVKg4NPlnwIgZhkEWhSqCbHTj0lnz2NJYLBHESV2MwPvOlQV7Fdq4BY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":179638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTTLbCRA9TVsSAnZWagAA/90P/AmHQ7W0vGhPwiBfLrdP\nkvUPeNjTp5iMKsFysIf7LNRW+reRc/PWSmyE30EiTvKLLpKnE8FFDIC/71zN\nsOaVRcKMFe16NSgvYAX2E+ekyQ7KdzAOlC6pQyXhL3YFQ4dALilbW98+8nrt\nalTl4vUfuacD6YhUcLbox1HWe38xC86y0GndjEvbDpbquPdIa7naDEicrrp9\ndbcXH/7I1IBx3SQR0uprfiyPO0vysTRNWHVuROB+rmr9v8PGEPF3tfzLYbks\nmUz07CdQuHVMH5cIBhm1cQq78Kkqf79+VN14sOUM4bpn/zd2sepO+Rb0AtnV\nbiErtzF5RCVdjzAdcYHQFARiZsTDVuslvlIlE8UIDm/a4E5+ZwqyWc8GzHLI\nlDvhszyUG05dv61FqCqetnje07p+mx2nStNOYw8/j+9cvuRRIgVS9hYtkaOd\nCZO1VJe+y5aY9g3Pama8DgmebftWTtLsWOhWQodiNSvy6okRkpD+WRf+qTqZ\nON2IEKu1FIrcw9pvElBurEspH8MTgi2T/6GS9jg9h6m+uqt2Q//8IjXLKxrJ\nqNYGQxQB5vVJV6k6+YLkTME/ZKvbYOwdkAsW0c3gkyUEP0eMUB8JFMC9Zxy4\nxwuEZQJ6hGqViza1eZNcz9XBHxT5al7FRXueECGm5ehjd8tCWCQDIC6M0Op4\nGV10\r\n=Xn9X\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-dev.20200831.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/en-us/azure/cognitive-services/anomaly-detector/) |[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nComing soon (#10865)\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription][azure_sub].\n- An existing [Cognitive Services][cognitive_resource] or Anomaly Detector resource. If you need to create the resource, you can use the [Azure Portal][azure_portal] or [Azure CLI][azure_cli].\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource either in the [Azure Portal][azure_portal] or by using the [Azure CLI][azure_cli] snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the [Azure Portal][azure_portal] to browse to your Anomaly Detector resource and retrieve an API key, or use the [Azure CLI][azure_cli] snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to [register a new AAD application][register_aad_app] and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\nComing soon (#10865)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.7","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-dev"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-dev","@azure/identity":"^1.1.0-dev","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","eslint-config-prettier":"^6.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@typescript-eslint/parser":"^2.0.0","@azure/test-utils-recorder":"^1.0.0-dev","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","eslint-plugin-no-only-tests":"^2.3.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-dev","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-dev.20200831.1_1598894810575_0.595401656153876","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-dev.20200902.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-dev.20200902.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-dev.20200902.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"b5acc8695b82118012d67d0cafefe95d2f511ad5","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-dev.20200902.1.tgz","fileCount":33,"integrity":"sha512-J35jpFcl7o4ASFLpCXiPKQNLyWje79PepOP1gq2zSbwqaLbqp4Xq5MdVAzT6mNJ2SLq43uC1mfswm/tFiKrRwA==","signatures":[{"sig":"MEQCIH6GxC2C8Jb+y5SxwtxiX2+okx1KlNeoYpr9mjU1TkYAAiBZASAjQrD+0cRzzAltsHqnv7Q0+n8SrgylUQsbtGFuiA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":179672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT9HRCRA9TVsSAnZWagAA1ZkP/iQMTxNPbK0uC2MHQLkp\nrSHr7oyGLWv2jHwXGfFohF6blydSwV5wWaesyrSJNbnlE6Wwkp4/Lqe2nk09\nCsjaKN9KldBCsTe4ETU/expP7DrHtPF6DX4Kaw4E2h9sEJP7G2FnXT8vLuJA\n4D69cur5026lGjokjxFUNr0YpySSoBsaRI302sDCd56USSH2TQ8gPL9SzKlQ\nczbAl18yCa4Uw2EGdwtaCQlix8wh/4dcTdG+7PtJfugNXMsWu5KWUT/7q6u4\nsmfuVExiU3n+/qvrxJ3hVRydIbTJO3clfDwVD5w8cosz1LZ/uPEwxtuX3RJv\nq/ZUfQtp5Lrof59ZXXys2JJJ9Dio16le9zwctRCuPwAgCMoaQpXjh4z5uj4y\nUI8r5wd+vQK9BPtCc7+hlApoKQQRupc9zGAi3DOH0edNsicQu5JkBUoWly00\nrSyEyGxJIMA8N6NIgH8HzlieU2Wim2BDW6f576sJW9DTHXC071i0J8kxQXSs\nSxz65F/WCizWiHW575CzNAWn4PvCu2CQcWx+ToQnIjjYhVe2lCGLakqfqaC5\nkwZKzIqHDc9SJ9pBuhM70A8IoU64KRIdtQTESWstXUBq7gbpSk8OzGd9eYJO\nq3lgw0aTCBU6dcq6gPj1EsXf7u/QveiM847WAwAvpEVZZWsm9Q7aPJ18SwJX\nn0LI\r\n=RTGb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-dev.20200902.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/en-us/azure/cognitive-services/anomaly-detector/) |[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nComing soon (#10865)\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription][azure_sub].\n- An existing [Cognitive Services][cognitive_resource] or Anomaly Detector resource. If you need to create the resource, you can use the [Azure Portal][azure_portal] or [Azure CLI][azure_cli].\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource either in the [Azure Portal][azure_portal] or by using the [Azure CLI][azure_cli] snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the [Azure Portal][azure_portal] to browse to your Anomaly Detector resource and retrieve an API key, or use the [Azure CLI][azure_cli] snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to [register a new AAD application][register_aad_app] and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\nComing soon (#10865)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.8","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-dev"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-dev","@azure/identity":"^1.1.0-dev","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","eslint-config-prettier":"^6.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@typescript-eslint/parser":"^2.0.0","@azure/test-utils-recorder":"^1.0.0-dev","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","eslint-plugin-no-only-tests":"^2.3.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-dev","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-dev.20200902.1_1599066577057_0.6641995848947699","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20200903.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20200903.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20200903.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"5798dd3b0dd96e49973650ff72d133d1696a4f87","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20200903.1.tgz","fileCount":33,"integrity":"sha512-WakSHvFkntk2zBn+bMCOBT7RoVy++kLxyjScpz0le83eEZ7YXZuevRhDEUIYDIX3+RL1DxT62xT1kOHndLG+CQ==","signatures":[{"sig":"MEUCIQDbZBgsNh01qzjLOTFWlZRoYxwXgoG7HU1xYwwMATWLvQIgVZbbyG3QFTZLvldqrRvZeJXiS7mJSQYJKKmT1IYrbhc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":179684,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUSSVCRA9TVsSAnZWagAA3S8QAJyR3reJ3xCaEV+jVRwT\ngkR3UHg8VGJUEzyOPkshKtwxiNkP/2wAPeykNAD+JE8GF5puERSEW5uvBWeV\nlf7EQoN6gOtBgsp1aJVOcY2aAL9CmYXR7FvAaf+08ypCHvEFdMAuCYuQNRAb\nxZzBMJUdzyOiZCAZDmoh6uJMbATY+WwEggufascST2CR02OKWPjojma8HC4I\nOWPkfLADunD686N0z9iZ6+6gUAp/mGCr2MiC/Z/KDFekQE2cna/4NMV3HBgs\nVEqIVygRYEu2Dl38S9KYP//PqyQI8fICBDvEnEJMgsNG0ww6rIah++DURv7F\nyxnGvMTgWjoAE2SL2l0Vu3oDEf9xtXJrRAdIn30li0p30nyc2RGRMeOhIqN3\nDSc4zzg0kbxYqtwQhqdRWPkaB0L5gQ98fRPsAj5x1PRac7geO16WFckW4x+Y\n4qMV8YlzfKkWEKUTM0/vVtqE4hdeTae4Qt/1z4rAR+XSBNSSNJlWKJr7u+cd\nSvIefNVmsA3jaPCvp5DpteZKxYTU9JaCoq2RsNIJUDxE3HjGeHqcdckV1A/p\nrGk98pdqrBKoYtyH/BbYO+qjHtlbEixqYfs2rb5GuSS/GSmBQND2jjFmNTL9\nuOw7H423sgqN8UhKdNZDA8AZqhYvfvnwqVuTT6ZoqzJBt8Pa1dtN26MAvCI7\n3SbF\r\n=75Z9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20200903.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/en-us/azure/cognitive-services/anomaly-detector/) |[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nComing soon (#10865)\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription][azure_sub].\n- An existing [Cognitive Services][cognitive_resource] or Anomaly Detector resource. If you need to create the resource, you can use the [Azure Portal][azure_portal] or [Azure CLI][azure_cli].\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource either in the [Azure Portal][azure_portal] or by using the [Azure CLI][azure_cli] snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the [Azure Portal][azure_portal] to browse to your Anomaly Detector resource and retrieve an API key, or use the [Azure CLI][azure_cli] snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to [register a new AAD application][register_aad_app] and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\nComing soon (#10865)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.8","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0-alpha","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","eslint-config-prettier":"^6.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@typescript-eslint/parser":"^2.0.0","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","eslint-plugin-no-only-tests":"^2.3.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20200903.1_1599153301385_0.4695887914579451","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20200904.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20200904.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20200904.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"61a908152745672a23d78438483fb7942782917e","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20200904.1.tgz","fileCount":33,"integrity":"sha512-z4oMtVIwSkQAGusEUjL0scdZsnzd4hfrnyZDJVJRYPT3z1XNUESCx2uR9lXEeIziuAAFnix9PQ1L0uriotm2Kw==","signatures":[{"sig":"MEUCICmOjS1ovEMtPhuxB7zvMwL455iwoL/W49SWSuK+uOo5AiEAtbb4zDH9xq3zWmfMKM1yqc6P6FRkk4OtWD+oxsn2DLM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":179678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUnXgCRA9TVsSAnZWagAA4I0QAJzvsWSu1aX5hDUNMP9B\noEpjptMLmDSWPYmr6BA9LfASXnhuNwUsPwCjZtykd+5WuH7/2JKkk6nzILlT\n6rNZ/0jShL751xTWMwRUmVcfvEDFj6YicHROtNn72a8hSrb/FHpP/XmGoDJ/\n57uaMMULm63PNvu1x8DGx32aQLbgypG6WCRBSImsN3xcEP6GywAxFb4RB3Gs\ndO07a4PummIKpDCW1MGaWoJ6Gxg+t5uHXqWXETWCELBUPA2yS0AOVrm7z/eA\nbUuAGVevkJlHXZtgyXouNd0XLsCJVHHEpIGf1Lid1sUUBcNcCEQKTyxFCFFS\nvh3DYaGGHNTHHK0pgA9Na7Dy28hDIKof0HyWC6r4+fQRpUI/KDeMwbXBzVBV\ntFr05wFahvAARdQ4F2rergkBtdppYOQyaq6M+a4tf+3S1eMWSz5rh2g9X6KR\n4IWF+1+M3fFV1HNrLnQ9rDcNOQV9dsfhBcrhMjDOO69iqBRI48h/RYvlfq9X\nJ2bnHaxZYWtF6s4Dex+hGk2UIGgYjIRjapEHHEtSxNVZddYGbblRFHVlk2WB\n9Q81bvMIlHeGznySi6K5CLScUzLBmbuwzWMFuayivcniBelN6qX3veqvy4mr\nm/yJvuDtC3/Ms+zBQYnprwaXSrhyPesvkzxen9EICS9kesGDJJ86Nmr5zoEf\ngz1w\r\n=5PK1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20200904.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/en-us/azure/cognitive-services/anomaly-detector/) |[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nComing soon (#10865)\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription][azure_sub].\n- An existing [Cognitive Services][cognitive_resource] or Anomaly Detector resource. If you need to create the resource, you can use the [Azure Portal][azure_portal] or [Azure CLI][azure_cli].\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource either in the [Azure Portal][azure_portal] or by using the [Azure CLI][azure_cli] snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the [Azure Portal][azure_portal] to browse to your Anomaly Detector resource and retrieve an API key, or use the [Azure CLI][azure_cli] snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to [register a new AAD application][register_aad_app] and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\nComing soon (#10865)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.8","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","eslint-config-prettier":"^6.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@typescript-eslint/parser":"^2.0.0","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","eslint-plugin-no-only-tests":"^2.3.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20200904.1_1599239647380_0.38843160499769525","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20200918.2":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20200918.2","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20200918.2","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"240799bcc75f896851c88472710d9fe95e14a746","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20200918.2.tgz","fileCount":33,"integrity":"sha512-u9Qlp8258xUbBVQutHOSiJe5JL89hxpXTiv9W7W4KnOxceYyRoKVaAK3MaLAU3TPLRq8jt0NF5d6lIQNbr2GUQ==","signatures":[{"sig":"MEUCIQDi/cj7cEwXBdc9cN8W+OYBuXETruLB8SYc+4Dea6Fx+QIgCU2kiTNDwWZ44bhw2Pk0H89Sb9T/sCLLHTgkKT760bU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":182330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZOnOCRA9TVsSAnZWagAASTAQAJqQ0IUzpVYfOp29jnFS\nJ0+jYiknBmmugwVpuweyFG1D6O/ByC3+6rAHAkjoy5IavHgM3AnU4xsqdOy9\nXLr8IJvsfspQCDfI3cDW+u4imyx7QhD4B3jJROwePOTZ90W4qwgoaOYFqgQW\nyaQjr+WP0BDle/qKVU34snSpzzvRQKDtML07Y3IM0zm+E8sIrLAU/4MNlVyn\niTEUEWcgSEnAVbw0ou85vapukGpFVlxrhxc0Z9R24+PkUkZTOMUSaMozlj8u\nIWTJ/ppa1w/Oy+gAPAh0mu9MtqT6VDa7wAZruuQz3XOQi+zKaOWfiWnr4rCQ\nqltXjT6YBsrPzB16h/n/KXMBkMbRe0Y+8czErpdFRIBF2EJ8SiZK/mAf7StU\nlYHR/owimNOTkGejcxIOpzb82iGKJPpOelFVTdAwxI3Ph1+FL5dndvDCAmPC\nuNFCW2dcG3l2q7QXLRJ8f4pnzWI6GyQ88RHFB0jQIOcIxIuSYQJ8luB+lwsv\nvK4cVjkgU+hbZp3EoEAbgxuQwhDQBJcaB8N2vOfaDfIunxvNofedSjqziaZx\nqr4TkT+N4CEKeaFOj4m0hC6Y/yluPg3nd92o6fYvbd/nqV/LvjrIlSMSEaTU\n9rxIgvD15Eard2MfR1FsTWHIdDrZVs3yt1uRQLIDfDS4Q7EOvqV3r/9KCN48\nGsdB\r\n=X3i7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20200918.2.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.8","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","eslint-config-prettier":"^6.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@typescript-eslint/parser":"^2.0.0","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","eslint-plugin-no-only-tests":"^2.3.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20200918.2_1600448974132_0.1331250295751707","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-beta.2":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-beta.2","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-beta.2","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"7faca3a640e2ef0eedf6eb96b150b72573187ef3","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-beta.2.tgz","fileCount":33,"integrity":"sha512-pJhR/hYuSJvyhWNXo10bNrA1V1/iKMFhBX42TKVLN50Q8zUslLqIgQKPTNGpS+dXeP00Pkj0DM2EsHMyK1mLYg==","signatures":[{"sig":"MEQCICAmzcmZXpkxsQh9X07O/a+Iphzdl54ICuUYxovmay1VAiBkYbEIbxtmr2sOSn82vPoI1znQWMsppY+kqjKYO7yRsg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":182305,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZOxkCRA9TVsSAnZWagAAGZoP/1aKwdoZmNZ1exR4usYr\n7Nuy6LT3kF4jPJTZ7FsukrX6WgHPPHyalo39q7Oiw6EBpbhTZ7anhE+Ry5FY\n5MP2EuHmiojyEksR6NahsCN+JC9K0qyckUu8Dqn1u0aBBsnzF602fF1Y0Nv0\nxzTiU8HG1WX0yaMsKietgAikUpbilE2Txc9xOADZ4To+NqOJEtnMyRqKMCeV\n9NN7JZwmhdAB9l+6hrPeLA622SAVjeJJhM9wy0Boj/6NujKGtCdXfUmVXAgH\nHIOnpPrzUfisFdM+5Ygo5hp8NYIpJGrgfRvFLSYhM3oUp+2OLmdKLFxJYFwG\npKt891Jnd5aihCp//uJtwzBhjCnzV4hg6BnY2nIjStWfXOAN90moodQ3jjXP\n/iNoOwMrwVLmgDc6zenkTGSVkautgw8uLDl73zUgGspDWvV6b4fIN88wZ/CR\nFjIMMVjULlYlpuksmd9IlUShbdDUrY2IWiV2g8xtVFim/RUnpVnI9Y+pXca1\nYa0Byj6p4nEJ3Jgl+fGa8WhdGQHkczR7BzwAsPf4GgciVSro2qt2jSCisYo/\neaHaPID7bsHJeuDrqdLWZU6NWDIH9ywPNiFVV0oxMf+6g8zmtBD5KcojTj5G\nRi8XvMSwqMrgOfRRNHYgQCc+ou2dXFycsKC2z4RogEPEcGLnA+8H2vCmQIHJ\nivIy\r\n=ELIy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-beta.2.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.8","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"1.0.0-preview.9"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","eslint-config-prettier":"^6.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@typescript-eslint/parser":"^2.0.0","@azure/test-utils-recorder":"^1.0.0","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","eslint-plugin-no-only-tests":"^2.3.0","@azure/eslint-plugin-azure-sdk":"^3.0.0","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-beta.2_1600449636318_0.26230710247894384","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20200921.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20200921.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20200921.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"fa81a12e7294dd73de27114bd8494761ae9362e2","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20200921.1.tgz","fileCount":33,"integrity":"sha512-yMN9wVKh0YBOoAogBawy24A7v1Ksd8tp2F0q2xjvGVCqGpXo78yxPc97nFj+qx0sClN9rME/j/6nJ+EYQeBjsQ==","signatures":[{"sig":"MEUCIHvpauXDe46+Xo1wfk83hhoWPpolazdd/SlY6ghMltE5AiEAvvEYqxyuTi1k8ApUk/40rv982zKS3NNJOs4LjAxtOpQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":182345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaOAMCRA9TVsSAnZWagAAsnoP/0tI1fwvypC6Zb6vAXcP\nKYwKxcboE0rBu/Gl4LYuEBMFrk194OXcTl4+0isIhjY31f6XqQlLX9gChB7D\nWVrKTiiVJ9W2ZIAdDSOPlw/iABgxSBS0wlsaqzf9A4QfPecZiwuJBc0a2hE4\nioZhuZPdk+pfCDRiLvKpc5aaWPF7T3BCtFz4gsM+niH+UDbNFH0Bh7f7H+mr\n190bZ+JmqCduTh2flxa2HNKaDuvYh8ldEVQB2Ie6wAcPP++v/1RjAu76GbUv\nvnFm5iDojpRem5mzqDqwP3cvl8dSr2HjezIQGhNe/X7GcDpyJ0RPv0D37jXJ\nMl+8pw+Nbl//hMgJNjuVE1kMWMHun3z8pRDtAbutaKJPIv32gOGb1t2AuZEd\nNjA3j7ClhQ718S17LyJ/7hhTULqrIkMaYNGSxoeNTygL50P84x6EcHb45EHi\nUeurpViwr/3Y4Vbf+UsUBF/FBopTv4X/MAXw2dHikgDaoVxlEiF7N5yr66H0\n7Nt5xY2UI9pBFHjZWH6uDBnRnsD9LQZHfxz0ZSmWfQkNYqCo7waK4/dZvGpU\nafLB5IR27c0An4GWBNT5pqzzdJcQTjSxMii+iDx9vcyW3CsSf1a83gcw9TGT\ncNbPmi5TgI2Gv0aOLwqiOBSVsR6htqA7vA/CcCTuIR/tLI4YizfblpJzhly9\nbp+O\r\n=sWb1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20200921.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.8","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","eslint-config-prettier":"^6.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@typescript-eslint/parser":"^2.0.0","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","eslint-plugin-no-only-tests":"^2.3.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha","@typescript-eslint/eslint-plugin":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20200921.1_1600708619885_0.3357295517352821","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20201005.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20201005.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20201005.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"050f76c5797c8a4648d80000a2289fb238e8eaab","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20201005.1.tgz","fileCount":33,"integrity":"sha512-kxGUBvW9+ifM2pq+x8QDKeNxN2kxta4gODG5ZyyLbv9G2Ar1ZhZpZNZSUvggIRuHwrMfa2SZXMyNOCAuzq3pfQ==","signatures":[{"sig":"MEUCIGqx3VapQmqwZbEF5NKUW9rsOUimrnY5uIJJV5pHhabYAiEA17I/IvInZU/fGBJmPR55sL75MEoWEQS89v9MjAYeDyQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfe1P4CRA9TVsSAnZWagAAlNEP/ibE8dGmbH2TIh8LGphM\np0lnMx1wvPqkDeTWOIS/b0aYfL993dDxY9phmnlwU3BGLKHEw8JuOdzEFjof\n3+kvuOeQno2E2mrhBqkj4kLRXMk+xYj3L727Q1n2TYvmhY+Q65fpSAIZN9zv\nT0wuClTdeAmR9AxrBFFm3F9CdbajZtnwCW1RcPRRjMqLhStnaKEcRiRxMK2M\nj7AFPQE0CmE/JrbOwp2PKhOh24JCFNOgjhCzPq+ioRok3t5gck32Wyx3cguC\n9slZkFGVYOVc3ZViY7A0VGqb6SM7mKytUDGEo8jgJHicynMDSA6xS8nNcgxW\nCTgup6gazO0GRp1/OKgUaqb5vTFGWNGV0ae4ZeVtV1T0N8uFQ3WCfJM70WTA\nCFU3+Nn7YVWuxDZbEz0thT6vaxriDbBNglJqMUnEB3YsIAbA9A0XYi/kj20y\n5kW5KrHqf1FSkrKIfxSJVNcy5G7Msuj/nkxz7DkTytcb+9Ymybfkvdgm7dSy\nCwtHTwlmf4mXmyVr33tUhf/VJgDztcM3SGqc4k6neyjGzUNUB8gFc/4zFAsA\nNhork7GdKcM8Dxci2MBT8VB+Ycte2Qgj3QVkpi/wxBo0y6R5U/hV/gcpcK7s\nAXhNFfOiHZEmGE2XPgDPW39voSsYg11uppA0E5HWJp5UJyWnQ7zxo4+JXtrj\npSKo\r\n=hM81\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20201005.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.8","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.18.4","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.1.6","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20201005.1_1601917944052_0.5178702062253537","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20201102.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20201102.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20201102.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"8ece4df9058e4266aa38f529207241b909d40e14","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20201102.1.tgz","fileCount":33,"integrity":"sha512-FNk0HA1LS5bMgZkfAVqm90CUInZUJ5Gcl8Fng42qV/oTcG7iAU95AXq8KEVNrISuj6/dAumQX4sgzjR444gP/g==","signatures":[{"sig":"MEUCIQDJqjFR5Lbr4x9rxw7NJY5PCQszI+bhZa4jSVmXFJftOwIgBYuGun0K6WytZx/IF8Nu+sRSFxndf4Vkp9J61mE2yGI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181632,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoE2wCRA9TVsSAnZWagAAfDoQAIi62cgs+x94IkuvudAN\nRbJDQ7pjLD+87ro88CnoNM4IKsz86AcGwHpu7pSxOaGSrk3DUB/O7CxkrOpX\nn1WseexJoNFJa3OHqA6YPGe28/pTjFijThkSuNjZF9I3gL75ieS+//qKHK99\nTFsFaF3fFKk8vtuvFyodKdSPj6gBvwOxGG1R2Vu81xgMKuZiAj0O4MaEriAu\n6blxpX7aJQTpP/wGH2kXtwHcizRXZglRvuEgMZHZSYvJS7IfflNTMmQ/lvbE\nzMdqjbff0QRHp0X2DGWhR/zAsfptJuujtJRepJg5Fq7M3M7wx8xHCOFQKeCA\nn/mWGS9RTubuCeqscucnJp9e3I2AZnxYutGly7NLtiTvqL11cJ62zOnlMdzX\niAodF5Xr5+zh6jm6OOciah6KjQxJC2x2o5KrK07Ik7ZLcHR/cfFkV807AB99\nVTrNVRPfkBiJCkdo8iaL9ZyDtTd/O+rQVaa3D6hM9AiFj8W43mbZIlFZbuJ5\nk55MxXdSqy7S1UyuoEJAO/gCg5VYUBeP3tdkchzLNiqF41TGJCPCkAumqD4Q\nDQSYOqMOCNA9But6FpWxtNUaeGAEVE7p/5aGMkjruMqyPC2f+NOtPBP6w2pD\npLuG1hiTn7Jttcuh0MRt62AgPYAkWUtgueKNmnCqaR+0Vqy3bSI637P+Owik\nMJ7j\r\n=Yynn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20201102.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.8","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"12.19.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0-alpha","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20201102.1_1604341167485_0.2255360602530574","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20201110.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20201110.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20201110.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"ef494331467ff002d2b9f4142706399c67692516","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20201110.1.tgz","fileCount":33,"integrity":"sha512-Qvs3C9KMyMA+uaSy3rIg2H1j3yhcfl3szOTETIy34JYbupZXIGufDKPeDX/k6Es8GYGDkkW6Wt/F82d8hCeCLg==","signatures":[{"sig":"MEYCIQCsPsxC678I7lVrlQhcX28eWu+ypUOe5USkeUKe3sg6YwIhALkyrHoIeulDXdQuLaxjbohfl/TS3+yIREGsk8D1CpfQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqtryCRA9TVsSAnZWagAApTkP/2GBRFbcqaZH1FUvQx5N\nYhBTFYKiSIgwtfDj0ORzJGdJkHZuPMP1N+fmn/cXGVdwDVrtOr0pgcDydi1J\nXiZvhC906FcSGb+q4zJp5RJvJmsAzKQctYmph+/K2LFbKVZbSHb+xdBmroYL\nRYfbfreVOU+euS9vQ1F5B/g2YsR5p/mZsgtba9l5QohEsZbCX2O1MtSkfGnZ\nE8NTgPEAajUWGnUr19bD8o3vFOzs9zXk8xY3uBG2O04A+hg7DvPgVFV7OFo4\n3lP7VQQbzBkC9C8oD9oEMvRzfbb9WU9u72Min7YVkt77LMgSYLvSYA48nXOJ\nS4YzvxD+VuVfBMJp3z6QXvfKnbRCIXUvn61ACEFVRfUKI/9EsFLvT2Ewtuhn\nCYcoVwrLmNQZpt0kse1R57wVV6cnB1oVAmeTuyYmjr1Bps6YcEj8Q8HAjcOm\nNXbHtbBFN7e3het4qjSTSuWY1GBelxbsj5PVpgnQlbdnG9ROhm6qfWaOsDCc\nauZT9rU2dMIkyZfL/lXaiNWVGQ4kb4b3IqsledDGqhUHQSHx8BiXxIADntAj\ng3Z/+A0y+CuwKtJynNkGTtiEo+JVMaAkKiIJyGOl8qkkGHpGHMO1RfzIe+xY\nbGqQOiDD/8vwMJHtbBMLQbKbntyq0zU9JblkN7uaCnhXRR1rh+WFbsnhKK/w\nGEmj\r\n=2xU3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20201110.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.8","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20201110.1_1605032690044_0.6055193995366179","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20201211.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20201211.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20201211.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"5431d7e0027cd6449b79846bf96dc12910f521f8","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20201211.1.tgz","fileCount":33,"integrity":"sha512-fRX+Nky+2KIAIioFp9lo5TnHZA5Wz/UubgY5Sp2ZYqw14jjaTRflsDGPSsyFOWJoN2QJaetFOag+ejg0KIxfDw==","signatures":[{"sig":"MEQCIGiKzEV8LMdyzXc2YldmN11yGJDaT79BBGrFco8sRsK4AiAcYbWCMqV4yt/wAQGFPdabwQ85LhWSn7EBpEs1FvxPyQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181653,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf07NiCRA9TVsSAnZWagAAC18P/iz5t0ME8rBt4nsyP675\n96OrCVwwiO+V+NqyoNh/uvqQ/BrwmCho7lg4ok8LX1De/n8Lon4xpvDKEwPv\nVa/cBL0QbL7W9OfrDmO327fKlQo31fel8+ZHm5LFpFjofZSSM8IF9WvcoAP2\nMEuNPCnuprzbewQrPmQj/3wlOAkbdJ6IU75OfieXUX0r4JnO036UYRd7GFtf\ny84pbgffKS6Jd8CTiHn07wxTTcylcx4su+F+djoXqnJPKGu/H54sp+vPtEZ3\nqHiVjHmr1llhf1AuLC5vdjunnRJ45LdTXa0wx9yKIcsVRbZu7Z4Gm2sSjgAY\nZlLVaVQIxi/jtfhq78hbiCKzhQE9okb8GZUnMwpiK1udlj25kmNon2h+Cv0a\ncFTN1a8oWlccWoUCtXoX78leTKcsLXMXwbDNSrSc9Y7jaZYLk9yUWHBsxSKT\nkXHWLOBtwWf1cODIv7xZYTaN1IfiFnKniPH7aQr0uBEkjGOOaI/PNrZoirxm\nL34U5Ms5aCHJY1V/56iu2nKZ8JF2LsU+oXJi+7ZYJU/V4EC+NXDXSn914DPI\nfy0GITMh5ZqJD8ENoGMX09Iy8BIDEAeyngRIsg8n2Q+fCJHImVYmEPGnzsQA\nEr8jCl8htvexXPX+EY+fKyekFKvqphuv0bqcObAOhOyBUx6wWa84FIjJB32/\n76VI\r\n=KYhz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20201211.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.9","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^6.1.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~3.9.3","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20201211.1_1607709537859_0.5139216122047177","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20201215.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20201215.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20201215.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"5403e25864b927f158f614254eca1b77bd04784f","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20201215.1.tgz","fileCount":33,"integrity":"sha512-zMMNB/H5J34BxxG2U1tABiAljUeCa+iNbvqZIYeo56oXTcO7Xt3DHZROoYrMqJhVniwpWh1O4xZtRsNo17Dnbg==","signatures":[{"sig":"MEUCIQCkBPQCN8qyEQSkhtUUH4xvCKY7V2ApBNRiyM4txTUOTwIgdp3k8Vd7lMaKdvcX1l43MCSfXhODhWI0dQrpCpkG8tw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181664,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2PjaCRA9TVsSAnZWagAARTEQAJ8aNjpP3pSTU6Bu73a7\nF+I7+/k8okIiXmgmbeDS8OpxGMfCyG/QLmf7hYjRqG9Oc1luM62SCyoYb27Y\n+C0VbgfFmsPHs6ws9ID5sKOYnoet4OCp03v1DQnIphYu2ThT/XZDpQju6jN8\nqDqo5T2HMebaoLowPTgGhCDsDAWUQ4Qw70w7icDZFw29b0c3hmsVii52JQ5c\nnEAhNouNYJJtw7BCJ6lPQhQHWYJJLJcQ8FBpcmAU6IoQANxWB64umBaE9+rO\n4B3VBqwV5PxqEq00mvCW8vlIPnBzcBgthaita97+C7boArW9utKCy0Tu3/9t\n7kT23Qi7cWlnpMjg5P0YWxTBiA6G3d3rXojGhED9kAJOCven6JgKR8119/nr\n+RuMosXok7LJKUppun205POnqgfe4YGaqsKR0NqRiVOx1RD9q3ls9bUn8a9I\ng6B/jWSBB9l5BVZh1x+UnmAXVvj3a17uLqwLoSAEiHkvVvggjxDZti4it1pA\nD9aKz/umA8b7xstPR31BEg+qgYf17AM/RLLxBtmnN5lzRNIUMkOIIoO1D4Xe\nKeTihAFen45ESxvzQiImhLgQ3zJr7C5KQMdr90Xk1DptFhA1d4JXdKh3hKY/\nqsZGsY63RmJvGtwIIFQidMbNVU7Nx3S9TiM+ZohGZLgz7H7na7W983eTsRPX\ni4Z3\r\n=VsoD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20201215.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.9","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20201215.1_1608055001709_0.5765160337248851","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20201217.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20201217.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20201217.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"5bc36b67507dc1b84d2d75d5958126658776cfb2","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20201217.1.tgz","fileCount":33,"integrity":"sha512-sCaoKUKGcdJDyY7V5B60k2x30LnXWzdEWlzMtp1DmwMVCo91lQLA7jn/ca5EPNHDEcowKOoBmfgm42ApJDUhtg==","signatures":[{"sig":"MEYCIQCaoHzRQP8hBWtu0TGregZSKy+pjswBTkmEgWwi60pg9AIhANBBk0+oPtCuWBLu33PPf14mPxzLuIkkjVEZHCN+cWBZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf25v6CRA9TVsSAnZWagAARSIP/2fTOU+500NetClMda+p\nMne1wLP6In5mPxUjOOVP631qP0YamcLRACenUqWYjWPRkhK4+PYK/tgfG5Qs\n3K1uPou0gp9GK9dfZfxXWEuAKi5/BE+UkTTGQclPgczwghhC4EQhjRDlkTAe\n6mt1PZeglUCHJj50V2vmBIZ5M8CUq6d6UosFgHOqbDVHL4jEd04KT2f9ZslI\n3lqNoIdNsirTcqCsnA72K+t6YzbidrYvG+f3SMhTRJKm4XkyGV4bWI9WEvRh\nor8HPSxtYggXpiPNN2zZ6wya4UrFyCLtEEEwvHqqvxkkIbrYXCSFNMRbudVj\nDn1ZUwR/AHHqEJ0BCwUDAFRQIZTs9jjWuXpLB80UABAODuyibq5bplLfZB7z\n9wDK00C/T19RbsZgFasvjKyhPiKBmGQXCmli1VJcbD0gqD1ozeG2XeRIX5Bm\nFPy+oKaANnNMV39RFxbM1igjoSFWl/7rXA1VWmeYnu3NGD0ZIEXNy2GoQtOY\nNNKG7TAO6MFk+NLXTVwF7RExrzEakzdcXNa7UDX5wzVGnteU07hQWo4S7rKA\nRl0qCMf12+NhTcvCDvbL3EQgjp/FJuggeCGCEPq0pXDzqIMI7Z/L0X2NHSoj\nnncIxh69ALwqNJnC3vY9iItcvTLTJbUkzTjUI8zlO50TDUt53XNivJUS3Rig\nU4aF\r\n=ar+n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20201217.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.9","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20201217.1_1608227834159_0.9533130039787192","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20201218.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20201218.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20201218.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"8e6e79cb06a8782f9eed1f5ae9ebf624b8a79fcf","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20201218.1.tgz","fileCount":33,"integrity":"sha512-4BhnOolOl7EcFkp57Fub7sXAb3iqG2OUuGG+KJWphwSXW5cLncNLK29k27wHU92oYZZCls170DT2OtM+UHq8DQ==","signatures":[{"sig":"MEUCIBY3m37nQtgrRqRn9hAZ/zVYWP2tqf/pFOojt6IdRXWCAiEA9IJDjXnueII+2XOvMROGhWJr363Po2NLUlpYznHeqK4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181621,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3Oy5CRA9TVsSAnZWagAAs9QQAIG4wXiePQLWoExIdx4J\nr5VhHXClbMXbtwYr5+YBQTG4+a3gpXvkZ5hVj9rp/S+UF/QCkLau1HBFTr1D\nh8fGFgdDu3yIKNFVhWz2rqQPIC42D5Yy1BzTuxwC/mCmUl/gj5PgrYWpbHVY\nIPwuATSRA2EtyXhtFp702bYtxeqPKo+3z7JOp9zYQF3nHSN5vxhUepleG3GG\nxWUg61hrKx6cfdPHEmC683rQSzOhZSmOw0f7gHZXZM0/MreLPe1Plz0708EJ\n3fn2FZRTDgiYhMe3/jpqxfuokQvoqWwhvWWUZFKBzSMDtdVEL1ZkGjmoLku0\nDCv3ezXd6Nba2GH2iKAkoaD6Fmsctcyu32xpcE1CFqmGI6J2oXJ+yAohjo2+\nL5o9g1bTaDcaF3lTPzPNprZdvhlniRavEQaCcTJlKTLiZCOr9w267Z/Db9IB\n78pHQno5TZnoM8oFLNpyJ6Vl7f0xr6Fdzdcz01fDDKu2p3Ov3ppoFsAeqYeI\n3hx5xwf508s+qII7MDM72naCzn1X8/2Es4PBQzHDRw72tFUS/2Ckk/dZYEv/\numDqeoEqBkxvSQ8WrFCdIxVgmfS22cv5g//q6nzTcNgMpGG35Fb4OFoe94r+\nDEt8E4Ep3wxn9vWfcE7scBcBxO122tFzfmO5AIhOPhgzhOFE3g4dynt+W6nm\n9Jar\r\n=t50H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20201218.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.9","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.0","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20201218.1_1608314040611_0.39017989515003726","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20201224.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20201224.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20201224.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"39f9c78609723f6fa1573dfa631b440515c65ce0","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20201224.1.tgz","fileCount":33,"integrity":"sha512-/EZn/4uh8XTlTMV8PEI0asZ1YGcgOW5WDNN+/dP97tXtKZP9AXMVghMRCwyto63cYdiEbYi8uLLCQgOZ6+H3Kg==","signatures":[{"sig":"MEUCIGXArpOxD9VQBCHu3ZfpJlUmqtqPGY7OK7UySvK5YaCUAiEA5G9uXzd+AyHb4FT1+j+LmKaHPrYlPHIH7aQ3T+NcbCY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf5NXRCRA9TVsSAnZWagAAOWgQAIQx0vn9u6hlZ84F97OQ\nuWMVxmgKA2bgCzYTAKSAQKVhlhDxJGZJ7TlWQXhWmvS4pP95V8WDZ9aK03av\n9VrmG6B32s/GAxSXoDvF8lEDs4xX9ZXI8l9ByPI+v/PZFw0NmKLqiKsKft4j\nnf6ZM4XtUO7Fw03PX05MRowwH80UJFeZQKs9Pivx+c9T0PP3bFmF2NdArTvS\nfC/TmoAp/CMX8bGXYzfnTLmPvIS/Lpgrj83qkFStr8C1M8+FpXlKaMfNEC1q\n4nrc864Oixq2LJK1+og6SJcFmwRx0kplDx3EvoNohRDtCCtxlTX+CUBtJsig\nY7pzP3MOqVVtygYuHRQMrIEMOz2DHtf00i091usd6DS9AXiIPOL6SASh9INd\nAIuJSARqU8ZicJSD4D9Eu1bFD9Sww2U0w/i0+hftvgzrzT4wRwVMduZReaXt\nc2X64iNsK53bURCyYy2Kp2TOYwtpuhIoSbrfDRUwL9NNIraljkB+3oKxC8Vj\ny5HXW55VmUSSRTFwFHHuu/AISv04DXcl/oKmF5AgrDP1mpN6xpV4mFPBlOaf\nS9QCVJOnHfOvB3WIHfueS5Umxx7q2K0F4Xd+b92Y82qgMzcaid+F3oKx6SLL\n+eIUpyLbC3kG1PVaxqB4AOtw7Bb7Z4/98XOlcqyEieZSp0Vn3gHIkqglMj2Q\n3U/i\r\n=07xo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20201224.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.9","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.0","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20201224.1_1608832465015_0.9947678703758374","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20210118.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210118.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210118.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"0222d6457a8818e5ee85c82900d120893208276a","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210118.1.tgz","fileCount":33,"integrity":"sha512-HzDbCbojFxQXvY4QfSCyo6e37UZUsDEs08WVSdemAhycblwc5XT3SF39jKy2jSOOyDV1BA1RZHS5+Xq5UpxJXA==","signatures":[{"sig":"MEMCIC/YX3GleppWCtAMMSpencpR6rm3IMKJy88GLSQxanMNAh8FCTV6ORXf6J7eVGUBO99IsWb2C/Jge6AfatmHKVcQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181656,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBcvgCRA9TVsSAnZWagAA83cP/0k2RJDxu5Nvbn1u8JB9\nXS11EJ0OJAUcAFzDh3jn1YGLpdhdmOikWa8LvdfapGT4CDVRNnK56ZY5y9u6\neqITDEZI6Po6ut+woQpoGn/UDlocph/LoPCg3I+NjBnraTGkcL6MRguMlKLS\nn8A68YM9L16OrKP9LvHDWxP+bZ7cTYfEj21jYri7EgylLeSGiVbtNcrVyz+P\nc7a93OE9az1nGKqDC2OpE8oBTCLbW59c7bq44rUhoRsnLVkm8yp+Bfzc6t9o\nqVgR6fU+fhzX6yJcRaFrRHEd8lcqhEF+LjeaBK/wx/9jFBcA+Vk0aBiH45JB\naM6Z20ij58Kh5bCmKsRl5tuyZZOJGmu5bc+prKdH5q2eKBpZOLGMAhgwWtph\n2WuMPTMinUtmHwx8plxvxZgb+XbtZrABD/LHBf7sFCaMSWA2+zQ1YtRcQgDb\n4pd/ZKICWKoAtNp6ADPD7xGnvnd4bw+NZVYAarkOg7dfu598Bqtc/tubBOPp\nznBthoE7+haTuTi6aKBa3n8MEDHDRf/UJrVCY1sf0jy0SadJFMuq7e4rHfBT\nMpMiA+mLdPdT5KXFImuFJfKsyktb7L9EyDsYdRDQmg98947JI3KkpAG+dmuR\nhCKuT0wJwOZUhZ5FKMFbOilbgRrpUS33AT2zX/wUQUH4XaJBLBn+sdZJIoDS\ncBlQ\r\n=AYr6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210118.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.4","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-remap-istanbul":"^0.6.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210118.1_1610992607667_0.2767427605104851","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20210125.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210125.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210125.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"74a890fcfe0feabfe8ae0c5c001015825bbcf876","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210125.1.tgz","fileCount":33,"integrity":"sha512-K7cuk3kBTO24Jfx0O0+yOUz4wB75w8ABHuYkPRRa2wsAyoU7keFhHF2A6R2q/utyzPRk0KlixuFd8p8zQuHWDg==","signatures":[{"sig":"MEQCIG6dFC+1ivUppiOFK+7p2+mpgfpTp0Ej89zp3/sw8XbVAiA+qfC6gQ6fapspPBsmcT3elih+TrG86lsRH7CBrmTHUQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDwZGCRA9TVsSAnZWagAA4K4P+wSkkFxLFmNJM+EnW9zB\nIClpmc7gUy78xFcp5AbvI8fvbgF6JNzq5xnhXfPBFj3/7Q63JRcv8aIbXeGI\n8m9/klVZjhADV1QhtT6qjiL67mPYnbCAsEyLt1Bdlrwpe4ljbCrvjsFtWN4s\nhN8JeRw6jKQMoP8Gnnlp/bvxWdewiZBXASDqQIZKVp8Ek0UB2R4R+TVGQayV\nAUv6BbZnb2Yd6o7YB0adrb5ProIDXL1SivTZd5TNSdmGBkzjW3dRBe45+6qn\nXphHkqJehC2myKK+17aEVLH00gF09NFPg9f8XMQHRriLesz5vHRvW9N5ktll\nSxGqcBvNysG65YlH7Oi+IOZiMc6cPZg/4SxZ650L/K8sEQqUUxqu5X6ntoXs\nHPgGWSI6+KiCm0MphDbZY3eNprakym3p0bnx+0zI2vvEQhmsy1HpgBGGDKLz\noqRFcHKfq6lX9yFtHD9ZdXUwBtHlGHltJkqPFQPzKmLAur3CFpGkz+3lkdul\nn0fbjt/E0HknpbaFDKG1MynCePaWLeK54ofPNQ1lzx8Xd2lENtHKLAmXIJuZ\n1eVrbRSxlggAgSGfXd1iCVlAEKN5JzJQEyXj8pmraGXzb4OEbSh2jLjZHUEz\n8CR1C5HXm/xnh8p3X6XiT2na3DWlXB5OAYlm8LvE2H8IqQ82VHjmLtwhjD3w\n8NRg\r\n=seN+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210125.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.9","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210125.1_1611597382429_0.5779976661297952","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20210127.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210127.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210127.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"284df128d92fa011cc921ff1f3300645706b7306","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210127.1.tgz","fileCount":33,"integrity":"sha512-yuS66z4NWTldEnnH1BYvpQNZ4fF2X0V72+1nyx8Hmzp1wU5RecuKPidsHeUgyxVqoHw7uPilVwe0X3XyQileag==","signatures":[{"sig":"MEUCIDHdJ71W4EHhlNm7kgzJ0Ka7qnUcXU77ouDxmtMXLd2LAiEA87nDHUPDnRic/VUgoh5M6UsKLTs8OXw4hRua4dgroFw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEal+CRA9TVsSAnZWagAAmnwP/3jYNmeMMOwxYznOpqHw\nvJ9u6urAaMmQvtYOVW/zsloSSCVwMoaTVMP8z5wfE+17aqud3E4+ZuuJs9JZ\nzWymlQDLBbq8K5WBy681H4acOu8KYI2ayTVtJqzqmjt0Hw8NRDxlXDaBRjNn\nG3SRiJ98WZbs07ZhmPS0MMs/veLeC6lRrxVbzSPL2BLbcaJU8oe82ZJAC31C\nvEg1LMuIv6Hw4kk0IQy0ACkpoNohwdWm5dppz+OdOhoHHW+fv6NXkkDzojgC\nM19vyvWJCaIHoGL5NLi5cbwLwwtWfysAyv/uqQ+M/Y7N3Z/EtGkxi6c6CYmz\n/eMcEd5/uSBbrs8mSaAI7UaDGHEhvna+euyV/CuGH4RqcYYQ09gLO+xDd/0a\nYuplCQH7Mg384cWNIZCsz4ZY1ovjbvBDsI/NlBIdic6KUTgyqou3vROsXiBf\nv13/pntdsrJnqM+JU3MLSa6yrTyX5fnxV9fr5HwuAwyWU/IEKoDNUzAZzcYG\nH+DmR+34+fv7JXj+mKnaWrh1bV6plulmbutn5FbA75j+/OnBBy85hZJPkilf\ngxwwKC8eDXTC1vwZCds/IDIY5Tj5W/pnBWW+tcD7316C9zJl9X8otslQTE+d\nFJRzad/OTg7pMPQjlPIAOj4c4/42GpdBpPeRJqfcqKl4m6eOXuFFKVHxbqgS\noIbp\r\n=hV9R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/home/vsts/work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210127.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.4","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210127.1_1611770237872_0.7298349616189741","host":"s3://npm-registry-packages"},"//smokeTestConfiguration":{"skipFolder":true}},"3.0.0-alpha.20210204.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210204.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210204.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"629ad7dfc6853a643d4f0e567864c0b8330b3a27","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210204.1.tgz","fileCount":33,"integrity":"sha512-op7+zuJfExgYI8HaeVM9kQ88eCBD5PRcOV9AR1XJXnbKJuaQzGsdFegtUQ0sSORuEfTVoYca6Yizhl3qE3QjfQ==","signatures":[{"sig":"MEUCIFHy29RnxFkrCMNnvzVMRfjK1/aFPPOnqTXPxMIHp3HGAiEArDr2xV54CcptisbpBv7bv2LXHNnI8Sl9jrAj7Xd7TNY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHDS9CRA9TVsSAnZWagAAT+0P/iCcC3iu7+7E3+gMrHzw\nFq2HsrvnnFKUMQhwys05VDRBvDuTsBEuis+9fratmldXO56vSKHM/kqSy9yM\n4vePeDBS/9QRrN7qVWfIfVW73GO06OCVoJaPjffdfDvOpO9JHWOi6oDr6iYE\n1uwspzPz0wzzBrwEcpyzS1XTXFUR2WMI4JMt8A66GnWFuEYO/K/umJbVVK/Y\nbyOl8DP3TRAjhsdmYuT93p0rRDxC98Xu2Lx+l2RkikqYzO36dqgK8+5uUltt\n+7TUMUpoP4k5+J8IIsYlH6x5jiyD332Jmii+MAumdugiuL4t9F3FOOWVcFDu\nDwap36WljMaehq53ub4nOVcSZzaFS8sWjOdadvLHRtjabnGiNxRsoZB3UQla\nsx1CaoMQSW+rUIs9Ke379bFmjAJNANKqUvkgFYC97VzqcED+P6wi413nL0dN\nnlJEP6af+V8dM041XLH+XOvxw9tSHF96j3W8E/9EXqztLpYPhikYakyQqGrL\na+1WrSDxS8mQmNvhjJMOOtbuEb4K99FRjcLCXbUAGz8oDPN1BnxcTL/ySkD6\nukIwa5mlhZ+XUWmOkXP5it+DLbtKbvXQ5pKUXrIi3uRyOaXAAFrlNz/L96zF\nl6lLw5y3sxR4VUX/LXlyZuVY6cz4dCTioxzQwaXbUTdlV8V8hMrR+4AQh0fU\nC0TD\r\n=sUA0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210204.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.4","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.1.3","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210204.1_1612461244876_0.3766727668412826","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210210.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210210.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210210.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"a0b6cb1e24b41696a4cea0913916bec261b6ed2f","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210210.1.tgz","fileCount":33,"integrity":"sha512-Kj8FeR5FJ72SvFPUY7x2h9XV3qCZoj4Ms83sBygZ+NcQ9h+zB4UMZZrTuQ8Zs05FdG5QZChRhIHdF34pi+/giQ==","signatures":[{"sig":"MEUCIQDLlDpi06ZAON4HCaHfHTW9KeB6x2A28DlUKdZsWILA+gIgeL55wDDL5W6K+/sDeemONZErAq+otRsuU5O+y/NmSwY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJB5jCRA9TVsSAnZWagAAa9YP/0PE8RtMe0wFtF2fWgO6\nKOp2igOWMUjqo2gvzwEKgblolAdrkBFSGsJwLm8PZBU5NlhwX3KDaym3kR+l\ni6EfDqa95YyVvsMWPr5yPsf/SYLZi0X9Z6etWEJ+brPuKXaXUH985Pn7n80f\n/mbk/5ahYY7R4j11+I2Nw3hQQ071+Xl6XX7Pnr8OhEE/H8NUX7XBNxOJHebr\n94dZeev10kw8eWxBvV/BxkCv3OpnR6cel2swcQgDt5WKhS1tN6yjKyhtmWCL\ngnPYgq8X6V5YJfwMep7b4lP4zljhjfx5eQxT+m4X+A5WqN7N6nXA/k0lU3LW\n5LubaurQK46bSyZZN/M5VLg2VUW0ko4Jb6YA0cgTaBuqj7Pw8D1EQkyXLyB1\nrEaI7BzZKXSqIvbfUx+Ci3fTPxgm+R376qFQ5IdQ3iYsqTxtnhSlIGoS10pU\njgW3h04VGNrDhKNT7J8c/5ekbvFdqg3+eIDIfMoGaJGsDWp5AsZpvARHQ430\nqHRHCxPg1Ry/7dFZHMbMVlWdoJ19udCC2y28lZ0S//5NDmZFPmkNBWen5du4\n+kBcaCwc4xdRCJnFpm9mQwuQDMO6bHVVbJrLikukKJ6jjH0srYxcFGpVriSq\nQIip3KJZ+LanfIzS7KXh6AxGjaE1w7kyfwb+pxHLHmi/4sNBnAuwpTT7f9uX\nQB6c\r\n=xptA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210210.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://aka.ms/azsdk/net/docs/ref/anomalydetector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.10","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.4","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.2.0","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210210.1_1612979810936_0.1760443205777229","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210222.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210222.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210222.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"dfd41eff0a872695a0c88a528a2ac54b1de9be01","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210222.1.tgz","fileCount":33,"integrity":"sha512-0FucDIXVNXq8r38K9rwOfgHB/hdsLuPsl3f/rKIY46TV4EyiaD6A1aIohlAeJ9bAyOlbiCMKRbC9oLJDdfSJAA==","signatures":[{"sig":"MEUCIQCQTEE4/X3iv/l34dCArWEQkWLqq9HgfMwuMllH2t9iKgIgYqVIoxtAIwQyNZWIhLYDFAmWc/Qh7kaAETOi+2KDzUI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":181626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgM/AhCRA9TVsSAnZWagAAtZcP/ipAdLoCCtMOCnF9YmGT\nnallaqeUFtQHmVis0TpjGovyNxmNVs5Uiu3mE6NyMp3vuSqyupLNOi/MQlPV\nKkbDaIicfCaqGEM0eyQdbknE2Yj7KbZImHgv0jTyUU5mb/7/OcScn+Fb8b95\nR+zqrtNAVfdM2WmlaFqkqt3Xkt7JkzKRdM1+CWc1p0e/3RhzLSjQjaEbPrtF\nZe/ST9GTaKx1v5tivTH5D3jaKXdc/98dkHomqrqXDDzxpZAAb5cHKiSEaO4K\ndUqDa1Hyjq3MCK3nq6H/GfDJBnU7P62ljsnQsVQGKal50WQXMKGkybpHEQQN\nvInGeoU/VxHTfEIaPHEnTluatgNoN4vPI6ZcwWu40U44/zSfQJXMNyto2gbX\nwys/Vu3i1fKd/PUnFybgglpWQ3c0Cjfny8w7lXbwjXlUAJmZQ/MAlbG8sqJ5\nfFvaleismsf8t9aH9tPp5dUilC8tJAMUx2ozBV2DUlOJexAzDMA0QgV7NO87\nwjx4GCz8Etb2o8K+7gApjTOha8LjKbdYz7rBcyu0Ggjxz2uOLeh/8sjPXV7j\nLz8H8nW+yF1j+pjJfyBdz0hA4QPdLehCx4APiWBUzzTUCrOL+7rUepq0OgyC\nk+XpCnVv0uI0LCLGzm0C/54ycZgINdqUDWtQgEMTkc3W3VI6cIAgK2IkNYwN\n8iyN\r\n=dtaA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210222.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.5","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.2.0","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210222.1_1614016544978_0.04490796620788107","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210226.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210226.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210226.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"9a7dbd7b3c521bc77d810f2d0f334ccfb3130b22","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210226.1.tgz","fileCount":33,"integrity":"sha512-J2szrmj8DnIJlsXcFegaSBnxOH9r6KNZDl4VVeX8680uQwnnV/3j7HodzJduQQIN1DMFWCNC5c52WkBS7gJv9A==","signatures":[{"sig":"MEQCIHVchpXB0pYKLbewJ6VvAcFfSxwNlIhBF910YGkbEIXXAiAfgsXin0/Uz2iY2os1mUVPRe4ZGngG7bi6TzpV9S7tvg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOTXyCRA9TVsSAnZWagAAisIP/3chYtdDfz4Zbyz3HoS8\nJaDEq5u8H/NzibQJP/ysz/oAZJ9RodHzTcaEANyNcUemD85mkdQ9omwCm9KJ\nFsisTQ23iHjpeRDm57rH7OcA7qmWtnWQtb7PMvsYrTep8d6bE0u7K6oT/Sxm\nAs5kAO9n6gh7Q77m0C5KEzAO2A+dzSUnuAEMg5msiS+lwtgWoXW/jZ/TJjPm\n2wcZIA6Lv3s0Si9EHn4rUMv5/vG+I4cIaOs3b34mTLKuaFVwwyMExoD+VF1C\nhZJ2ywHozxjBjRQnag0iIU6ymRwaw/OlEWppXlED3cPf0h7c82auIdA91mWD\nG25bMMtClzJkNY2U3fwNqk8adEVFBJUElhIqMjkP6sz7WXN/0YDbLBIEoDno\nAk/11WGpIw+jpEowrwd2IaOKCfCIABm+bBcj5IjOP4MnNyXQ9NUwi5mfOjjT\nxUAHB10CQL7iGTuclCkQp7dvRWUBgSS+GYmpFNI0vJN1YESLEREwWlL+Bsnq\nWPV+IyyxmIlnX2aw7ljkwzgu0t2sBf74NEiQlotKg+UDHvsn+NDEUtdSDWRq\nXWRr63QfA17DN7+hwd3ConQHjn9ZB0XEi9LXc2r77kK4XJxvp7ihFfrj5zBb\naJ0qhuHY/hV7WpnbG+Ebmv1jvm+tNMpeZvauBfNfmWrgzVv+nkemdJ7vIdaU\nb6k+\r\n=I9N2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210226.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Enable logs\n\nYou can set the following environment variable to see debug logs when using this library.\n\n- Getting debug logs from the Azure Anomaly Detector client library\n\n```bash\nexport DEBUG=azure*\n```\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.5","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.2.0","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210226.1_1614362098446_0.8916366618127574","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210301.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210301.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210301.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"2868c782977b6d9ae165436107928f6441752641","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210301.1.tgz","fileCount":33,"integrity":"sha512-wHbfZzqzGEWsiISFrPQvpWmKjf1TwYnCtICfG3O6/xtvBuTyKUIv3LU/VLILMYEhiHmn2MukHgejNiXTGz9Hzg==","signatures":[{"sig":"MEUCIQC1yYNjmOgduLavPtqlVvU+GfERKdwgZzTOPMHPKTIeOAIgZDEd/y8PhBc59BBbukF7r3swkFyueRDy1vP3TELoCUU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPSqrCRA9TVsSAnZWagAAdSYP/0hUni8GuzvZhUrfS3cE\nOoDiplrhxI8pZ6XJoVdib9wPzg829StyKDdRGeeN5zDYWxhSZEV5SUrcpElR\n0axKrlnlXz/CuBe3QEhPyLfqKXbyfG2vMrEi4kbLdf49M+X54GxitB27Wi2I\nDKNrtxOhZtBWtXyoQfKbukzTaehhOPaprPjLEz36z6UBni1obZEnfBb5tmnr\noTbCMC0+jDm6Dxuhs6RJYULuzJaspo08D675OgYv9TdgytYEpIgZyvc/bhz9\n7wQJYlZ7twIlNc0UGHMOYSREZ/JCkbuacJzEi0Msk7JrEB5oE80XsJdoY7z8\nzljoKgSndtZgBAFxioRY940LyI84t5GWUvfq2xcPx9iL55AF+ZHNh+AYU55i\np4uxMJPmLwiBK+cl0jzOVc+PFs+zkDAwtoE92mNjIZIIgdBA1wVS7FFtiYMq\nenMoO6aANMl+zyoXcbm99gMChvz09rE6+hNchHAOQJaaMPADhSpakdZ7zAax\n5fXnqsTF0ushqSAOkSxEVZmkGWXttOnxWMlFOrh96faOuc1EPaW9TLp4+31k\nxPFnElj0bj1yfssBITpBBhzDKYDtKpDluZ+f1NaWN6faqnTVeQ7Mc+TBfA3o\ns5Eg852xeV7bi5UAaVmZSVF0267uS3SNEWL/6tF8PkfozC/6Lq16ZAeD06My\ndjvQ\r\n=kOsu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210301.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.15.5","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.2.0","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210301.1_1614621354362_0.630665931618084","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210304.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210304.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210304.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"3fdc1cb58090de35820b9d3ba162d88d3f12c0da","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210304.1.tgz","fileCount":33,"integrity":"sha512-aFiR0w6j6SOvgHA/U8d8rZz6razeDAhR2kNntFjhMhzGx43q6M5oU5XwI6TkU/DUuTcR+jyhQ7vvr+I1d4f7dw==","signatures":[{"sig":"MEUCIQCobYBZW3vBkEeEIVfAChg3oua2ks2U8esiLfvAzGP54QIgVGa8fm05h4p4VaWfrx9cunFL3nkrpvOrwbgi2QYz2B0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175815,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQR/HCRA9TVsSAnZWagAAMi0P/RdCLFZSTZIFdXy8wZCL\nY8mexcU0FF1dJacC6/DUAA58r2K4PVumRrRSWg55pkcxRbxtYTcGetbn/kN6\n3BFHmFzw4kdFkSiSa/jEuMRbE6ckmhTj5vAJdenq3NGRWx7KJyfykFL6c+GI\np2GmA/StP1rruF6kWwDKUm1J5Ku4z+kkZgK8VTsMalVTfJdt5kBCZzRTpFnj\nMgRJVvwIfEKGmVr85h7QiL+SF+PdHKy8u2GXQ8zb2BCThfGeqndWqc7nXFz2\nftbmmb+4iPTobHo0k5vTL5xRQsiESXzh6DPhykTGpv5LVfV1GODNqYbVmxMd\nNopOooqGtIT2aAisnNM8D5pFdTJV2aIND++mdYitmS8FNduFYJAog1OfOfkP\nxbGaiUCDd9CuT+r3C4HDcDODE2AdvbN/DmbopIMT3+0QhQt/SLbJXz1ZRGiS\nt4gy/PSZNm0lNmpfiarMo4646FCh1ErAB+XgPMOt9JxZnHQVVzPXgRzDJd0D\n08LIR4lFotIc4QIvy44epVLER28ggx2S12TdEmcpno80hFLkCoxCCmVTacUJ\nmp8c9rMSkNGj75h2zrqREyroeiERO3usbb+aCOnl1p0Clwjzk4Z7YwgmRf0R\nziolE+5HzLyyoTb8dka78zKsftXvGHXl4TF81PzeozOPUU+8lll8RcARcR08\nveet\r\n=uaeZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210304.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.2.0","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"dev"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^5.1.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210304.1_1614880710494_0.9204123435118077","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210312.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210312.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210312.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"f2235792d3cd01f0afa468cd8995da9be2c27c2c","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210312.1.tgz","fileCount":33,"integrity":"sha512-jBsCLOxIxAJMD8I8hs/M6BREzCs+NgDaWV3Rp/ZgaXZOOST34cX3v52QrVVMxXAav0TqqAUpC99gLlnsIK7NiQ==","signatures":[{"sig":"MEUCIHBAMz5RmgHgOIWL4kEJ4oBsOA+4D+mEFoAMnkAD7bOkAiEA8FoxMrKycyhR+OhJy8g1MCmDA3MiJz7WulwqUVkZ6kc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175815,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS6vdCRA9TVsSAnZWagAAPqgP/1XGkPnmLKkfeUGb+Hq4\nhmwT9XxG+6U2IC1bPYKqhfoNzcbyAprvuCulnx3d+f4981RcUM4sPzQbLnIn\np5xKBePn2Qz3WSPcXi5QxEZmBUAHnnj0S0vTZtJAf2AV/dhWcR7N1RVFDa87\n2vpGp0/m6Et5ff8HO+aueu1qufK9yLwS75qkL1ivg8xnHjLdtYiCk4T9vcmX\n1n/qmYtBOs2MX/lkjD/CJd0J8u6n/5qaXPf9rrL7e9+/wx2RzaW1OWVbL8UT\n8mztTCIuWuRZVNZOqNl0K4FFT84CTOydCTJmkEgEyOH8r3LcYvYPnhwOqnBN\nRT5c1mvAoQWtMl7RWmEJlLrFtWxHgJLM2UW4p0rbQAPamRwInYTB2Ced+PkM\ncpkL42Xpl5ZYnCdywEwz1sRVrkLVquW7ZkTQ8DWs0wE384E90054VfyHYcMy\nLdRW1mmc79WiCcaKJRI3pC2M5RTMVvj+Lr0IIe/EKhamnnfcre86plAHSrLD\nEuciiMCiZcWncUTmhenSAkTmYJXcyY0693Inr2zkdP5JCLlWRt7Ih24UDt+I\n6clyE+vwgiovy3RZTLIW4mYR0QiPZg/ONtDYEaxqDl+fsbU70QXmDOAiw3Gk\n+Ipf4i+2K86Fnj4pPhBzwWzV5CsEMkxfnX9hTxBb2y6RE3/Pv/RR8vRheXBW\nPMWr\r\n=BEQH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210312.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.2.0","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"dev"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210312.1_1615571932747_0.08492495756958718","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210316.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210316.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210316.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"13ffd8c787f7dce425a901b661e621926bcfacc9","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210316.1.tgz","fileCount":33,"integrity":"sha512-x7zya/a7JI8LVYdIJJY5bcczTbxRB3d3KB53EfzggBU81VGd5gGtMmBfq5vU0b3GqPeUHI3Lq7oh2nOBegTdBQ==","signatures":[{"sig":"MEUCICNw0CHp+k2tEbZ5Fdg6GQBD7PJuEAu7fYoYodTYmYvLAiEAhvbbdztnZUiKdFr7ij2v0AYtpOESzQdmS+Nh9Sa/w8o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUONxCRA9TVsSAnZWagAAH7AP/R/vDcmZUZG9oTUsEo2D\nITxxnu5QrDYq+eBprrZ0y+4Wnc8zApt6PAYlBQ3evkFJM3GFA0OiTXpm/wny\ntELjPICpaMjmj8F/7kybwEH4IeVo0cU+AGxSx1mGdDpWnCUeASVce1xYrbh4\nN0TisEucIVI4GH91JHF4p06gb6B5fe9w7w0gf0hEngIFZrY/raghPpEHhUq0\n6KPF0EbZJZuasvxVf7I1o2IN97JM/Ad/9ox1ANAzG4VIGMnqPp+dtOyODj2Y\nBTpjMpsrgbd2DA82s3iRwt3BKSbd62LxKMqU2JZawKgJ/5m6A7+bHq/MHJbK\nYDw23KV1WkBmpF6J4+3itUhuchThVTuWW0DL66rZ5Zpq89fxQUAk0fsJ7/tU\nUC2IJfdu1tsDpTAFUsz1mrJavd+fE01temJElhE0EUKnRHP8l5LmPbKgKQZu\nL9BZG9/ljCsRQlkZ/uuke4DzN8xdiwqOeKnO9FH5/CbLwIe/hQmYoag5yGKn\nYH3MIELyLlaUXHTbq0wymoaI9OAAcZaepEI0XzHgUPkOrrnUwx1lRjaMJnW3\nkX+eMpcxRUZXj/L5D99ll6OD5KxC+eq8lAuxLkpAb9RO7BjFKjyPdojDB3yr\neL7K6pyeJrVa1TrQBITqTZpVzb9BGRhFxP0Cv+Y6U7CjcEeA0UMPjdK4N99I\nogkv\r\n=4JTV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210316.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.2.0","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210316.1_1615913841220_0.18875513313058367","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210322.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210322.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210322.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"1f2862c2babef33e0e2e040b7b779a0b943801f3","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210322.1.tgz","fileCount":33,"integrity":"sha512-j2YJ3zb4PieDeP2f0r6Vzg7SDG15XDd57Vy/pLxNgAQ425PtvgQ5w7K7QlK/Ubm0dZtrUmS8yuitdzhqbE/dtQ==","signatures":[{"sig":"MEUCIG00Q57W7Dg9bfhJjVEreAs44j6uf+G/GFb/cBxv+OqjAiEAwIO8NbjCblSRi3vZyCRDfPQsVgyX92S/79WnTsxl2ec=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWNDmCRA9TVsSAnZWagAAfeEQAJBJEA/t7U6VEBOTBZvB\n0kkBqBAlBaiDfqq4faWM9v600ahmMtKDPysQZzIinPQHez1K9qP7lf1Troo6\noYqej094cbGgL7DLT+WWmwJt8Ae64Cl8KW2sIEb3RuHTwgDzuyKFRB0tAm6I\nGxSahzAtSOvsxeNn94vq4O/P8IT468HE2BguJvOoQacDy1kAgZvGVTc5jBwT\nrMEz/mQn64pXr8SW37iC7mZm649bZzTcx/Cv8NfhCSB9gJ6fZhrYf3wh3/wv\nP7QXMMuIlhAr3q5lXPy1ECPF+PEd93M1GwIZG/TbkJB9HH+Ee3BLbhu/+FH4\nvgHCcFHqcvavqu2VPaxrNz7ZHUZnm6H0JoXxoNa+asNWtVzqAmqENjFl+xcb\nUBvXz+15OZF6Te2VM3opuUtORFjFi860Z/lMzv1ptus3WY9J+szjf8OFXzdl\nvZIqtOfOPc8XI6CktchCIEj6PDWO4I8/iNH8Li+UPpaNeK8EsajwaGTDoEE8\ncV6mLXbm36noomd9jg3zqkS+Eon1eD4LZ3MxVnpX09dbAMm8LkEgTU9R4i9d\nj+9bWr0P3vYDkb/ljUHUPMhNuHwQ3w725ZOhAWHYOl2NyD+QshNgNJinlky4\nmEX+VJp3Nt0ovjVj0ngKISBrF7qfJ5zcVbSrMQ0evy8CL2N4XuHnGyqDE9rw\niCxK\r\n=3SRu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210322.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.2.0","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.1.2","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210322.1_1616433382340_0.5240927824577768","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210323.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210323.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210323.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"d2ccc3663c52c54e4910b4d4fc1d19474403de9c","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210323.1.tgz","fileCount":33,"integrity":"sha512-c1Jc4r5xzRK09rHPI2M9ibw3zKL9sgvq1Nku+CYbLUZIe8fdbDJhYHzDOVkBxHM8ff542NdAKw8xctbxAfddcg==","signatures":[{"sig":"MEYCIQCud8prp3VnDMHlTOUUYSpuBd5zySBl85PreCZxzRIAfwIhAP05X87TnH2pSx66QF7pqR1Q1BbCG1b8R7QzOEKpPHIR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWh3vCRA9TVsSAnZWagAA7/0QAIq5hlp7b7CEUwjQSGAJ\nvd5eUN9TyWLwONWoWBoLZ71kPTig2XufsoGFc8jXiziKFX6kebAYM2FkLY6a\nm3EYWKFCY39Ej7dUHjHGQpRsNtvSlgi8BgrqTzAte4yAOqmp++iK4147v3Yb\nz8PQ+ZyZ/ad/URjp9X5rZkXBkHe/aWJhy7Q5MWBxQn60rrdsgo53h4AY3K6/\nSL5jTXJezxo8TYTCcynqMkBFtgu8V9CAzm3ebJrwSTJB0A2y261R4wV/q5bs\nrQVqvhEFAQCmmeBMpK4QMF/iclynN1G7Af2HcADcTT10vthzXCbXKO0Ij8d3\nydEGMZ4aKAoFSCYvfXaNCBfa5HlQeASBf8bx0YVYM44Bg922XiLliQlsPOl2\nUVPcVdcRJoSeucQnsoamAWU3wtOgNfJaZeUZOAC1Uj4ByrHIjP9nc1MmXOi/\nm5h0/McPqtlzZ14idnSalH+TpsmlsjIcjDSZic6EtPIY0JzMp4Jlp37cNrKy\ndfRzxOeZgK621kk+ekkgy0DgQo75spA8rEVG8Xkc3k/93Gf8+/3bjrCOK4fe\nX+eqEC9KsJm2zKZMLhscagaz6bFdKH/3FGNODYeQwoXmF3wNz0tJQOT1wIuC\nN3FyjKmCXupBqJN/PMocROwo0ihmEkeH0WMjlyBsTMZm2IXiH0IXNoTs6c1+\n7+UO\r\n=DaUJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210323.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.2.0","@azure/core-http":"^1.2.0","@opentelemetry/api":"^0.10.2","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210323.1_1616518638698_0.487723668649646","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210330.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210330.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210330.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"643ba546b279675a315055ab8ceec0dc790f74f0","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210330.1.tgz","fileCount":33,"integrity":"sha512-+shkKpjS0oG1UVrVM97+cdH7KY5ljQBVcJKcHUI8yM8y4I39kizBdpoky7W2EZDtNZW/AAc7jqh3YXnE0HovdQ==","signatures":[{"sig":"MEYCIQCmisurph1Bcvow5WWbGeTYiQdtFmG/ftawa5iI9JFg4QIhAJ16DaYlDN/TrohiGt1qtV13Agtt/MCvFMIYRSAsovVU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgY1ggCRA9TVsSAnZWagAABqkQAJLBq/I2WNeJIbYP4sQ4\niQo4lScU4YQoQPNUzFr+IcD5GtX/i1v/ii2fbT8ZI2yEMaDjL+f9kd4LPlsa\nJ/Ew/rH8z/oM3F+gRVqvd/nlUj7uh14GxsWPKnUuUOoHOmiuV8v/+THpqwdR\nIZqjyaxrV7wgYzs4hIZXBU9d+6Gs1GmNm/POzYVO5udV0evJ2O5qCu9iNsNp\nIPZps4fibTD4YhfERyh42cBAXofBqlATy1nY5D+2hvBkA8F+wNErExxv/Wqx\nzafimsRyzbgAXMvnTkKKbK8U0QKyhCS/5AeIRP28fKkgFvFm0C3JynWVXkx8\neOZPsq2xuBkVLokLQup39NBULBIytZgL2KW4edePS9VX39ST6ggsk2/ZiqTv\nWoQRYxDRSA8RYdwm6B+L006H8XWMJ+YZxRR6+8iPftOVAKy+76LbaIqXPPiq\n2UJAnr+SpnMfhyMRYeckj9fcaSmx1b1pnb0Tq81YkZJ39NJF8WlKoA5j6L4t\noqPl3R0mdG83qgq0ACLYZ/BEXZhTqha1ENirtvfseYnhwoFUfctZnfDC7FpY\nIlG81PJosSeeqT47X2x5YHJNsjjhq7LB+oRhPDqZgkj/k4PeI6h4/0wDwMfe\nMHk8Hkqbrr4ZZ7PnpjRE3cnjooLxbvEBVAboeTQvrtrQxRBsXbsGjSRrKL2o\np2Wa\r\n=/FHb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210330.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0-alpha","@azure/core-http":"^1.2.0","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210330.1_1617123360334_0.1395634524425653","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210402.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210402.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210402.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"7b98ce223e791fd43bbfa8737193a19153da4977","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210402.1.tgz","fileCount":33,"integrity":"sha512-Xd12TICEmcrYnOASxWpwVEzu6yrsc5HQTlcvhp0MoDlVIb82mpFLUKyDL+Ht2InqkGK5O2k1KybvRVAbblQ5lw==","signatures":[{"sig":"MEYCIQDDpznfJbUzglK1N3bRFnK1PvwJXRFpN6U9YixwA9RngAIhAJvPdCbeY+Gla+hBlsDgVrJkwS2bWPpY1s2pLcVd1p+u","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZ0xpCRA9TVsSAnZWagAA8iwP/1wW5j01uXky/T7mRLeo\nWYMjQxktnETzltTRlM4dmqK4xZZhKJo/3+0m2gHjVCtjyai7nrwanWwTtNko\n9fNWtOSkhibgBA2cha4voZVs/b6N9B3NAoJJfp49NhfaNaHpfKgHQCQJET9T\n6h6UBAwWPyszdO65sDM+WLw4tY+SMcwJ4erTbdmqP87fvMQjLtYG7bIsq9Jd\nMnbM7HbSPWLYu3r7VwdPWiPFckJ0HsAcNEKPwN31KiC+xr9WjwSuH5O5crjM\npuLi4Uuqz+M8DDEhD187fF+/j1bjy9BISh7fkMcXpHdIoKr/wfPoTizrJRxQ\nkdoO+l2PAltWl4J62TOMqB98BUiJVF8eiO+BOe0nCAqeW+2uLkYPjL8Luu/R\nJjfMt0qaibFnztJPD8y+DmAxN5k95t7wqyh0TelHKGj5g58KRNk5HBIs+38d\nyG8lSJau5qA4xaLk2qQKLIRMRP38TRZapwSz7Cx+b9CVnpQXs9g/hFC8j0ax\nYtenYCr0/Px4WYgmNe/U/dqkfC4lg0Le/jsHnyLZ+al40LOZmRy54TS256gF\nSAlY4K19+pH+JNBi+yyfzJe073MFnszsy5mXwRP1vjKaEyZxUn+Hn5RhPr3W\nKWGGz7wJVgJjGTl1dQWAvUey+o6HP5AGuVw3ZXaRmaBeyUTzf2z1EnPxaD7z\nz4Aj\r\n=V+Ej\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210402.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* test-dist temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210402.1_1617382505322_0.6803849463283387","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210408.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210408.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210408.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"19498fedf06fe3bd4ce6add663656217f6a76b21","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210408.1.tgz","fileCount":33,"integrity":"sha512-tzBDfsvw3RbONYAaj41ycWO2E5WN9jP91wr9lfbJmM8YF4hxROH3F/2w75d/Xt/cIQRztazfXAG2koSlN87/6A==","signatures":[{"sig":"MEYCIQCVFH2ON25X8xJsCl9VKxVpawSOyEADKyIoAsRGcsQGVwIhAJS6DSEgIfFEI5ulOQ/I2cW5kPuaZrYglNt757UZ/3nq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":175773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbzahCRA9TVsSAnZWagAA79MP/3bDAAqB/+2D3HDcidzs\niZ2lj38DHUJIbS3W4+RLo/sGHe5/JnWzaKF6+thXayhnjXgyRtsesouMw0SO\nK8GX4SooLiFUs6b1GPW4EIzBdlyMHN2yZCfA/qFpShHngPc3WkpmgrXfYAPU\nUh+Ypu0mwOtNAKfRgTy3/RkavJ89e1PgshBDehnv6WJEYNo4Ix/ndw50TBU3\nSqfdP8xnuG5TCQZqa8H9atSrstA4W033ao0LCbqh+tVRWV1b0gLoQrwg4KJE\ncaqMKk8F/K+vgEGu+AaV98/KFKr1QC7O1G3YK4LcamCRoNhj8ZX8CTmctdAj\nl5q81JLrphxA0mXm7IeUWjek1dNXHnKFSO2Zw9NbTpiDipPErGd+JUTHRx0L\n8GsEq7kqr1DTgICct/DE0fy9PsBhRam9EtwDlK+Nqtdjp2xFlbItm541IDUj\nnKwufhvNifpbaNKE3LBjF20Eu+7e5vH677IA/neAIy8yudCwlJdx4Em94NXP\n7dWti/W1fmTHwmh01MWiS9xD9ZGaSCtXu3p52RtDATRxQQce+VvDv01oEFOM\nrX+Tm4fVLsjb4yvOb/zJAdjR8RMQCARHP/gC2SUS6Bpr+CWuCYNWWbrafoGQ\nZL5Qm38YvitzfSlg0JKu25DX1yw7VSB8o/9v6f4Ec50GNzi/N1DC+vcbkYaG\niHUt\r\n=MCYz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210408.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"dev-tool samples prep && cd dist-samples && tsc -p .","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.11","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"skipFolder":true},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210408.1_1617901216816_0.575473035687504","host":"s3://npm-registry-packages"}},"3.0.0-beta.3":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-beta.3","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-beta.3","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"eaa8e127cadc2f5c810acc9169f45aa7ebbcf3e1","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-beta.3.tgz","fileCount":33,"integrity":"sha512-dUDYzHdvtlmA3hJgT1FXu3DJoMbHVrMekoGOHoMPQPFGBCXfeMip++LDYAVOwRg/d73NwW2aAv+A49BFnyXw1g==","signatures":[{"sig":"MEYCIQDkVwyaYxCjSkcU/VXA86n480hlP/xutEgBxpVZ1BffZAIhAKl7ULJoA9+DEM1EnmtCs0tepptNWAQgqJkZyQ5aE2Nz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":370022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeidwCRA9TVsSAnZWagAAqQQP/iRPZRhQdBROlwBaThWS\nAFWIqc8EC7HdmtAgMd7pmaVKxlErUwel9ph+Q+sJH33WE9qhzmL2NCc3c+Wi\nkgDsTwhenS4gNFFzAfhZzlOjAB/kqhsEcPqQXXmEqwuNxnjBl29yDmGQ8bfV\nHe6lMpJOmNOAYa0qtX9izklQa25uMrG0pc6Mk0JpZlX9qOPmiHNsP9KgZxY/\n6gCngKstKHBBDoqgNjfx/WlGA9dj/p2cA0UtXVEe0xO5Aho0kM9cgpijfdcG\nb4t8ld7k7Ko5b3Q7O1GlCMwOeZiUbJ4WyGFRbl9HHhvcgiTVV499y0phqkmM\n5rBg6uPmFPkmi7Zdp5iY1HFjJjlHfvz3cjwWT1M3fFO4USy7h7ZXnELoPNsa\ndJEGK2gv9wOrCEfe18uutOMdwYRV2FY8tLYmKYUpQ1Lf4jT4WPH7xf6hI2l5\nszOJafe3slqzXYuHq+McggvBpROJ0d7iFLg52CnTCmm0OIerAY+S5RnOahCV\nmMHuRefOh3fZksPk/mqPxFfkfFg4Gg0SwP6KywMlvnyc1q70jM2OfKvrOx5C\nVfzItVIKH0x1TubkhlhFTvbJbf7K1qhi7XPDlKrg2MJx/j8o1wKP1dXQnEpW\nqYWjxsxnm0aeP9Il4YZL48+YQrCi6spbfQXLB0w0hYWJnyOgeZouEG/nvZ3K\nkyU8\r\n=/YWo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-beta.3.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.12","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.11"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-beta.3_1618618223775_0.9905291098260092","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210422.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210422.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210422.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"bce89081f104035959b376be09a729cf4bf3283c","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210422.1.tgz","fileCount":33,"integrity":"sha512-m+Xl41WC2Lv4y4z0l3Hw3Ssw9wqr/N6GlMOr8SH96TS10Q31NkXNx4ZfXK1m3HPy10/xLYqQ7rSvGTVDaISsyw==","signatures":[{"sig":"MEYCIQCbJ1RRPUCQd7F4a6mk1wMCcPO2Pjb0CdYqJnnr5wJDAAIhAPXp+vBv69yBRnGczyv1qjo7vnkdvhp4z7jyIfkxpBFA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":370046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggapCCRA9TVsSAnZWagAAdHYP/0IhMeEWQNIuU1ziFqQi\nJLujH40un+hj5OAk/V2a+sr+dPCuKb1yX2O/XrFa5sMjjtnZHBmfZzT25U9Q\n/jXKX7Nbxd+jfwO53SBZOaMjQ7pj01UB0y/AY/gDB1SdQIql6p3VaWYX74wR\nWXEYQ6Oxdp2iRd9JxksgXggv5JAAxW4fkOJ82Lp7ZUVws8uvBMx4ajrIdodi\nKZvFFPY1hNyibpUKiwlzbs+7y++mldV15yUDlLK2LsJsk6Op5BabYy0atj0q\n2dK4pOZfZ/MQe8lHhV+uAVqOqYjmRUF+FsR+vg+ayiQYzIosyb3DFbVg3i2c\n10uzreXGmXIWaOlbCx0K5JBWWIgEPz9eUIGm4niyHLsV5dFwuAey4qg0uCfy\nyEd5jgHSycnJe5jzCG0dawyHnylX+tq0hjOiju69rQ48qStm/Tz9AfiQiGWt\nssH27ojwkHkNsGTAXdrlgGkk2dgAU71AZ2A4d8u0LRJp4Inbj8uklkACUkzd\no3xdzz05AYaHLX/Vbs6kOe3FgkxxMXaiVcujBKn1vZ4ZcBZS1FcSHWQgWlsP\nQGxszXZAV/w7qx9jf/fANItitsAQ7PmF/moG8LzQ2R7nglUO36R2ylSu9ya6\nJhtbs1fGqjaa+0+Ytc8VRlXINht4m8lGyVkNWEu9XLTYwelJQO/u1pVvnBQd\nWKq6\r\n=257k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210422.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.12","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210422.1_1619110465494_0.6563792818785428","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210427.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210427.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210427.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"f3eff3ced9eea015d44602b271ac09f662c24d19","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210427.1.tgz","fileCount":33,"integrity":"sha512-4vYF4CXKFQgqLtev9967DjIzjFfFb7C0MwlubCsUj66q6pNyk/Mf6KDSgwkSuIpupBtnUCs305Ltgh+UC7872A==","signatures":[{"sig":"MEQCIEQEXfVkDbRUBI4cKCYzHVNxY4CU/+9tpkjkM7Lp2oYrAiBzOa2vPUFPsh55gqBr/lUK+gXn/Pi2U2HtQae+2qHr+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":370046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiEH6CRA9TVsSAnZWagAA5poP/1EMkVAisWXB4Ci/up/Q\n/w9lsHjIAP0ecLuNDdw5HFND5qjqOqZuSm+dxCdo/j+CNmq5CQnBgstXtB/b\n2bdsyQ9sOarI5R6BvogHvLnTPhf3rNsmc0VpnGRCMvqDHUvRy+yIfv8mAcwI\nrSw3wPSeb+x5j01P6qJUXpbMw3nZwDDFfXd0OPpCehX+PZ47XIaXKWFlrJSL\n3t8p3b6BkRPYwKqUk1QNrugVtFO2qbQNrw5T//9jwKJTyZpvIKgUBeleE9tr\nIMC/pghv8K+rQXXbwFwq0lMACrx+2p7GrZBbjRyVQ22g5SFJa4uMA8IKftRr\nMwJaC0Gs1oOznQ35rOqUBzVQMdFEacHblyimEVD3d1OQQkcLsouoOx2EX9w4\n2z7nfvgvWpee+TCV/hHWl61zRnzymnLcCoQriXmCO1vO4Nn0ucr39zmZpEE1\nR6BE5VzdkGNcvFbCzjdq6CEi/YPKx3uA0Nyo2KbVYA6YCPRAsZbV1fiv7IIN\nQI6rXvD0kCky39WrYYttRRALz+3IclVnSEXZbN7vZVFLU1M2NGv6GJk+mFOk\nqaC07ug044DR+wX49NJ6vN5kW4ZJgIiKMxPx8zcA53Hr0Y/0dHGyr1wQnJIq\nXqz3c7SP+82SSw+qte4yTX124GSWS34gG3ORj1FNJSNZhxMnOt8ASBC13eOF\nVppl\r\n=gVhc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210427.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.12","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"~1.3.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210427.1_1619542521565_0.6172005851856535","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210505.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210505.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210505.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"256e7e1513d5b538f14bddda61e62c5d73593e21","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210505.1.tgz","fileCount":33,"integrity":"sha512-hqn9sMxiE2dgXuUF4qCyKkwRonKrc85519A9zvCwBdRjw4VLNbg5I4yUHVv5S1jx8/0pMIZOILo1yp+RkEdIbw==","signatures":[{"sig":"MEYCIQD6H5LgY+LhOkc+f8K+7YhySy5h7Bc9KiM5BlBM/1a8kgIhAJixeNodjySzkanQuU9BOOK9pO9cYkBqhOMGPn6P4TgJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":370046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgks6tCRA9TVsSAnZWagAA+gMP/0qwlovRlKnQxBC5AHlO\nJEWj/E7WcWtVSIMazVxSg+BcsKZywzWoJ28B0a9TJZYWTlS6VEcrexUc2LmY\nqpQ4lGb8tea8MN0kc5JXnrW8hAR5ms6KE6u0wzJReTfFKKWijoEpLTIG/p0X\nE9R0PFeb7llii0Vcs+uf/V4J2FzTiyaNwGTgR2dSAmmvkwmlkzLH/ymJp9ap\nKPlI89/EAjggqPs86QGYzkG7NYe+VDpKUBJHzlXLXiIuaXlLavwjhAiGtMHM\ndI4ZUNcwJAjOr568m4A96tgm4ahSGFG6NM/8AlcAD4PVSV870uNBDpL1cHTl\nuOD3Auvii5riFNKUeVky8l0m7J21n5/1dLspWMYjtSIpH0oAlmQf8Ne5W+fb\nwPAz9GMOjvnI1eMAtiXlHtSnaxcpqo8D+MxGa3byigt9/cXbVY8IxswV0Mp7\nCNURuRxVtrKNls/L6eguLt03XedulGTsQHm6q+qaLsZgGEdiMlBoVqPOM+8Y\nvgAOeG+eQS/PDaNZuj/4fJyKK2zwOHttwZqD1ZPoMsSOK8saZu1oObM8gM1L\n9FdWLs0oSvtJvCynm2vJdqay5EhhumqqcLHaglRGKlpPSNlwrqzvlz4V2/jB\n/47nUBG3YpYgRnbRwmLm7AcTS4IqPtBgTurUVI3/2bK0GM7PWSFnMzQoxEVg\nJ4MK\r\n=OsR5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210505.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.12","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210505.1_1620233901101_0.6962907833505878","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210517.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210517.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210517.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"ce89dafa6fbaf6098e75166f3a1a92792a075055","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210517.1.tgz","fileCount":33,"integrity":"sha512-NTcqRuqVvtxy1SCpo1am5pZJ8gIpVfONT/KLiiZuwIVVOsdNOjBZY1TNFmg9vogBWoSYL1syCQFXf5Nt+zAV1w==","signatures":[{"sig":"MEYCIQDSqOkZXWQUy8TeOShZzbZLT4Y7WOR4UkW5VVqLJG4N5QIhAO2uNopDa4x8D1XeSA44pkKQ0bFJmOiVsl7MgXzgZa1H","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":370050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoqCICRA9TVsSAnZWagAAl6sQAIDHibajJ4ELtJsDotWY\ngHg/AQvleuGpXCy+amfxAfihb43fsC6tvle6Odl3C3JUKZlD4S/On2cMLatF\nNgxh9Oz3NyoVpXs9Wq+jjxtaWOTripT8lWWIqpx07E5U7E7FUrCfZ6LDpOZQ\nfCm+HpglYYTCJd1prvH7IUiFCZCW/gia+zZP091fgo+O8PPnU667cs0DlrSR\ntOy97XhqwRnqk8sWEPLNCSjKThgqtoofMNXlAua6+CYxFye0zH6ryfOUncKl\nUnMZ5vMsl1bAmsFZw0LVjZ8GsuQA/GtzfTnx04xpEaN8hlET59E9ff8JHN2e\nIwp/rP2uU/RyHTFGjWfc1/eCDWnI2xYFtALaZnohXPtN0cnMOqxgxAZbqPU6\n+hz9Ut/3kVK2qswPILRS5YDS4vZQ5hR4wlcn19ly8scoxY51P9xTj+ey6sWd\nUDQ06JZSSH3dQ3gpcLdH+CnerjSJwJ/MuCPk+o5KGmpi6lU5hSirLlPnag/0\n7uVW4zfSOS4zUz0p9HXaqrhsrZ8C/K2DVW2vNLzEfealRJ7OhoXgtvjD7IYk\nLq5KNIUbjXKhMXe36wSAbQFLBGgsfhDu+qwORHF3/pBJPBcu/mJ+xZg2MHgK\naC7QIk9ANBiC0q83evBhalvDry89T/d5aTbm8SS+0clxEg5WExpYxlcSQ5D1\nzZRB\r\n=T3c0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210517.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.12","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.16.1","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.11"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210517.1_1621270663884_0.21808558007583745","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210609.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210609.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210609.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"5e3499c19ef8fb200995c58ee77304ce310bf47c","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210609.1.tgz","fileCount":33,"integrity":"sha512-uXoqXsZnGt6GyhdyyV98bCsR8+KmSVlPDzEPazHlbLcfK+1d/UnUpdWqzA0YHreUHn7djP+8WwyFayFL1fw04w==","signatures":[{"sig":"MEQCIGod2pM4SbN2uImr0XbKHusN3X2QJxKK8bh/oPFxyYM/AiBGT3YSEnOHRuefJ+1tCbBEYqEJdAg/JzfJopMWBmx1Ww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366471,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwPP4CRA9TVsSAnZWagAAUzYP/j8nmc31xugI1UQpc3x1\n92EVcRp9TcUST0H2m3qAlAwh4hDLIdUgFhkbV6xAaT7SlMVkymlNtjzAgNEY\ndZE+jEvwWPWGkGDeJCpo9IjEHIkpSzIjCumX46CKCRpiiWGsg9j2WSdieNeU\nuEcl7FpqqQ03jCGRk+1TMCqAkVmPVTNgQ4sGw95ZY+R+xRRqww6pFH/tg/pz\nBdo0hYvLAwjO1bUPa4z1Lht5njPBIaqti8BjJhw3HZWwiAH4StIDxYzySSfE\nrlHGlRTuZWeixeyI2MlH/dhBSJeafuvDnGHBvofHAM3ypqFxVlusQcC7lLQI\nEiEaV9RtemyaeYVR5qWhxGM/geyQ1MyuRiUS/Te+EXJa3fKyyg9ZeLlXovdw\nL31sbYnojalVQDw/r8W6bwfYVBDMn3BPlJ1wEisfHPQ2k8zozFgY8edjFAEz\n5ts2LGuEYCOWXh1jlrQY3FFlHYqJ1Os0HOI2+NKhsi2QDvAnNszxVMnHjedo\nu2tbmhW6tSzUfLnveDgZ6VCnmsuUbNy2MCf74ASn3vaPl/UJdtHJYAnu5drt\n2hiYShR0Q2wjXZsGzwZMMP2ErihGONdDar+h2NIHIGpSsdWLQ0Gwr8aryoIQ\n/nNyIFwPKTGHkdyC8Pyfs/3F7Iqg8LCnvBMDdfofjPJEYFjDD15Y5bjkO9E4\ncKbw\r\n=m3wS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210609.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.0","dependencies":{"tslib":"^2.0.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.11"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210609.1_1623258104328_0.88891816926323","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210614.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210614.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210614.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"7d7095054df83e56744d1fce3469995abaf818f8","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210614.1.tgz","fileCount":33,"integrity":"sha512-vkNmjljDbypbhlCGGQ56Ooq2SRTfQbKx9AkNTOfc1unMrt42yeW2MRjh+M2o0exeIRjlGOPU7CeZWjgL2WVt2g==","signatures":[{"sig":"MEUCIQDowsc5kz19J/oXmwpExJjJGQm4nrc94zPoSD9Lrhsk8AIgRpApJ6tmekf3ymrKeJr1WS7650qQo+iQph+7oUThLt0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366471,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgx4qQCRA9TVsSAnZWagAA8xYP/0Ye52GWhDzxixF52zEl\n/fu+VCLXYhgH8r3W5A6p5GmaxdwuMsOI7U7JUHflzQ6FhvDYVQGx/mhCwj4/\ngK+AIooGJIcqeOeWMOufj4HvoNrJX+/oObPALdNlfiyBeICGxsJnrWGbbteC\n2E8d48PgjfMnHp9XqhGBFbHb9NJ5T1kCxkBMwDRexsTXkxdODQXjdbfEzMV6\nKJReJRh7GeC5GQXaWPxxxhgRFAI61mkha9ZX/PK5YEBqj5ZWi+435dVdGhNA\noqolz3ChzKiX/1KfMAVRDagsPkY1SyF4ncNhn5TT86V9ap3qCiBrf4do4AqX\nVnxPy3K6omufegCmQVeBFuvQYukGWznHCmO4zNyQaRQ2IFBUyKGFB4NrLirH\nCdRGtgeCTkbQJVT+OcxFTkfxBwKGwKk+3ay4XdwNuB/uyPdbxo0i1sXK0CZx\nSS5E7yYjPdPbPUEHUaAdqOdAkbShii0OglMEUjlNcsRLc/Vdl+lIRDboIgE9\nnWeEPCEUj0nLGXNxeR5PUhLwIoD/slVvwO9lC+AxRom3qEuSQNYfvoyJBvpz\nJ+gEA6cI6DL464K4RrNHm2+zxfBDPw8GcqG9UxfwErABxGCBrfEhtcye/mue\ny/anQvLFgr2wNIPnVo7nyK6SDWq99+PVfiNdRNZlMGCg4dToi3kuy7X45yN4\npdbj\r\n=u6Dz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210614.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.11"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210614.1_1623689871817_0.005515274590867758","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210621.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210621.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210621.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"9c06cbf7e580dfb72cf765ada4b35d97a83e8756","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210621.1.tgz","fileCount":33,"integrity":"sha512-6IhoRm/05xSorzwwLq+Ri/4rg6r7aTHTzuds4Iu+r8Ax69ZQI+pvkqqmeUP9QTOERD8rGo04776HZbShb+claA==","signatures":[{"sig":"MEUCIQCO+1R5G1ZAXSspH35bOQZ5d61euqIKlj1xabpwc/RfzgIgf5k+FmvZexTc7PwivdfoZOPjMEdpxuagsvBMFK/sLsw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0MUaCRA9TVsSAnZWagAAMbUP/jpNnqgOr4xiPf8lYQo1\n5WAAJpQ8/hYTyaOYiogKjagVu3nYSvSeFebuKj3Pu/BDjF3aUdXYCqQb88e1\n7apxL8r+AeLcGQAfIN1RkxVT5uePcHHBatg1INMAZjNLSIriMVMdLxd9hG8s\nSdlsUOXSS6pdytNXUezdSw3oBA2qd7re2SKEWNSEHnpydn1GbsXTh880XNtO\npwPmD1GQuHVRyTLVvRxDZUL++98zT7aF1IoaGAkFncoSDksiBDXY1ZfzWock\nzq7bq+BZI/ZWRBY0/Uebqzf0yk3IWFD2CxVl3wEujxbWsR+9urE6SgZfEZ9O\nksqLBI5D+n1AbIWhIk5cetai8hTaTMP4fBvEITjGw19s6nukqjaFTqEHurnh\nx5uoaOgGAZ0u5U041M0CVjV6RQm2JGWZQHIWAHvsdyiF1KV5VfQZXVc32aLN\nbBbjCxYlTKrhdxzR7x7VQ/MX4T8G558VQuY0v1ICOJYTtAeZBGSJ5nTtnDCT\na7x7s5e78y9C3w6zdREVyyeoGU/14xwoWnKjvBh/w0Xq62haeI81HND8gCWE\nnZN4eQJC1ChRVjRA5CIOcIBuZP9oWJBN/kf4F5Mqw449LeXXMr4Au/HN6CM2\nrOVT4uxvypku8QXgpUSVgMKGGlaLLyZ355aKzMdttmHlflB1p1vSJIkn1Bso\ndIVp\r\n=VCda\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector-3.0.0-alpha.20210621.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210621.1_1624294681666_0.1444649594709002","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210623.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210623.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210623.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"b59aa106c11c9e026fbef1d43d1039cb20581106","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210623.1.tgz","fileCount":33,"integrity":"sha512-GIY5c/zLylxRMZzOi6o8kOFVAzYtY9ubsRPYhtjJd+NLfc7OGtzf4hSlzHJwKe3zWhpnTiFb0yuYW9LEM74tqA==","signatures":[{"sig":"MEUCIFNLXpIHK/hbO0N03CBfQQ9fQRbtlCU+x3gM5xksb81DAiEArVQXvck90HCasjuXul2Byu3OqSdxzZ2tmMZ56QW498g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg02gFCRA9TVsSAnZWagAAuVkP/j/zwTy7MGfAD4M1x0ty\nSMExTUbrQszG2h5ysKMoO+/9huW788TGCSCYxMQkZYVYhFJ0im191XiNDfOA\nzLDCgO1C3Czlqrvoq6TZnDiid6eQ5q4GpEPvmQG1Biiira4dY3gOk5bJc4YB\nrQosKQ+0D32T/wQIemS2BKyLLyoWdcX74VP4mfqSTqtMkPnT3Ok1lRQBlB5I\nJD7tsBVZ1Bfu1HwM78TQ0WWbKAtSi3CTAswDy7c+ZJXnQ7u25HXXDGUna5GL\n0e4M4A2Vwm4iFE3Ud0LiqvttjJeP0K0lQ3EiLfCm4xPR6a10yzqJ/PtuC09C\nJqrx454IusKTn+mbmsVdyldY8KwRv8y1Q31ACJ4XMZ81hsW+V+U0/d1Yiqsh\nrOC2/+d4bBCT6yZ9sVDQH5qwkJV7W7zRh6UrmxPbD14cjphiunKl9U8r4hib\nCuU+YM25IqxxH0ISHYjeP90pKXBYzAQoGkmioq6+7eBnZJKJ1Gy2wHJ8VgL0\nUo7y/B97Laq3GtNV9YYI67AeNClSsIfmaECeK9k5yL8ywK+vRbknuJ9nSJ43\n6jeFCbh8QKjEScZ7JxLZ08uCl93Xxmvs0UmP+NXWsggROuIGLU22w+21jJ4C\nruPQljl2C7oU9SCWvPABZgxNkqjXt0QoxnB/T7yF5YUc5sK6lMC2EN4PBzYz\nwXWJ\r\n=uiSt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210623.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\n[Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/) |\n[Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector) |\n[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) |\n[Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) |\n[Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^1.2.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210623.1_1624467461283_0.1519748128560079","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210625.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210625.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210625.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"118fd885cdfa07375b22415a8dd3ae69684b874d","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210625.1.tgz","fileCount":33,"integrity":"sha512-5txIRqoAzRjWnPpdYXo2tAQmInK1I7r9nx1hfC5qJ5MnpnBquI/cm2+fPpq+2bhn0hmGN3EyqzfE7Op7MjG9Ag==","signatures":[{"sig":"MEUCIQD9mF3UASrUfeM8NsnMzSnYGSLiDTgta/tRsvNKOkd+AAIgSwRQwCOJnFXcTHX3L2rNXwSX8tEbZCLtWnEGbImET1A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1g1rCRA9TVsSAnZWagAAY4cP/jbhDlZnKgN6rwmVVGmY\nnTy+iMz+XkyZ2qlROf/C+8SUdHmhA4gwUHGwQMeQmlpngsZXUMQpC1VLgfT3\ndCidEnWrPkULn8olZWDtrQBiaqwAM/YBb5YkicC5qvyxKxDbwazKl9lPJ7mP\nO9gLkJBzADRqv9gbSWxcefpagOycs6ObT/zK8b+5OUTCjIBpcuKaVMstmBxS\n/q3T3ZuzGTxFhjMwky0FbhdhuWL6XegCnrmt5fRV1cO7txBHAIbYaoMRxq+i\nEbJuE+zsqyOdNid5nDTUiXof3aKixNOpxUzt7P99XMIHeIKCqiMcSsJn9J5c\nBYndQ2uC2jiahLCX3fLZ/3fZ5lPi6K5I7UCq3nqD20wOCZgkZexjHMEBdDkI\n3r1jtnA/aittFebqOUs0/5va1SVvHHApAwR4BD7OxHcCbJidLt7teeT5WIki\n/IywgtqKttmioTfYuhGrT2Z/67NZyFsoRVvlMOBCCcBPrXiSY4YQDT7IrABr\n/XFV9rmO4JZZymxZ3GTwv3uSOf9r99qQVcZwp18IRPTOiUi3g9r0A7uMvqNE\nsIG6OCdovIlzo93YWI5QM024ul/7XTLNGmeA7ZkwD4U4P2pOCcHI94d4I1RA\nbjJyaVHc4CJQWX52neprYwcOP1BzU0A3FMvzEr1jzQ71x7KTTtSwrkfyXagN\nAT6o\r\n=ePeK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210625.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector) \n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) \n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 8.x.x or higher\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0-alpha","@azure/core-paging":"^1.1.1","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210625.1_1624640874994_0.6172368181346264","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210628.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210628.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210628.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"87ddb09bdaa35deb6d79faafce6d0c4f386f4c8e","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210628.1.tgz","fileCount":33,"integrity":"sha512-Tgv8/h8edbCpoTjjPvQ8F2Csp87aY432OaQnXPaEzWiv6N9hGBrDqb2AR69ciOBjFH3YSpASKaKKPd87RtdYlw==","signatures":[{"sig":"MEUCIBrTuA0mqouhm7TETzjIINfQz8uDSOcA9H/JnVbqKPipAiEAyr0sGjNhJqQP9lt3HG/0KNTmGCEJG0SfNyGMc9B7aX0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2gAdCRA9TVsSAnZWagAApkYP/3ghrvaHUaN/c1AHBLVJ\nq6NtWt3uJymY4Ns47LudDP06NNIwEjPR0li7WajVkd+sjITr7/rmNbQhjcJv\nbSDSrkLQ5jDjTEbu1NGfCd6kQz73NhxRIcapzZgk5rOlJVF5DwnpmyehY76N\n8ue7H3YtUJ0yEpptNoDLDQcz88Jj+tTrOux410FTOcAgUGoyxufRCsdcs7+Q\ndvRNiu9BcY4Yw/a/KdnOW8zvXBKU8sAHupeggL5t4jOitJAnZAJaIgTdAe3S\n2wA95KpYJh6wII8tqqa9pbCtzgPlPXN/Q1FcpV4gLxXqXprIv3gXzLkktNsC\nuu4juGJYMuTiOnTGDitUuSxbagiStaDWKWM3ov8V+SfbYRRSnYTiTOccnFNG\naihEp/DC6LDgoMMMFlNfd5iMq4DnX57NZ9+pr6PkxSfvoq/uSItwgStm9ML/\nqIvje1GeeFhA5Er/+bDib76YRYI1FIVwAIcJyrRnQB/5wTQjgcXXtX2rhdNp\n0aMlpXWKC6AcW+tMh1ur6ztumZgqndN49GE1WJcDYv+wTeAGkal3vAuvN2Sr\n/6FdGrU7CnI+NdSH4/pzsXPKSM2u8x3l4iaYDmY/w4P75k22/Lahp6c3UBai\nqfvaCfWPUm+hhc6Ti7pKM5aigNqT7SsWldPLZ4J7x2aaoyBv8Miaw/JBRtaP\nIFW3\r\n=Nxxa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210628.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0-alpha","@azure/core-paging":"^1.1.1","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^8.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210628.1_1624899613256_0.044533634449615","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210629.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210629.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210629.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"cc87526faac32c07759a7cdfd424cd2ab04fd2eb","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210629.1.tgz","fileCount":33,"integrity":"sha512-xepr3A1XH9/hQxaWugRdfIU+D8hI2/zeXE0XkWa5WhoqeY0kcvQTmHb8NIpSTEdG3NRiEiMAAZGh8F/7xym0Pw==","signatures":[{"sig":"MEUCIEY4c3JZrotyo6f3JzSh6ekgvQ6CL3Nza99zq/9pYOBmAiEA9jvaxdmCsHRkNWWZgKDFYXaVdB3eE1guGi7KtXnmd/Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366671,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg21EQCRA9TVsSAnZWagAA50QQAJfwWEAVRULcD5Kwrvkl\na1qO23gkjyb4RP0FF6BTDAVWwwfQdAw2xGB6yBkM4aQJhLjuZnVkWQeaagkI\nixm/bkd+p9DUH8IvCuuH1DD/r/yU8xhrjkaYKmhFsNzMAdjLW2bc8nSnJvaL\nLWkctf4DJe9aaNMdXR1gKEINm6qplZ1Yohx8Q7IzSCrPIeqyHHDtTWP6HFfI\nuGWr/1mCZ9CQWbJL2qy+MQkuLKIi4XiIUuNSIrkO4HjcEKHlOP8O+F7CL9tF\nzT0VNPZnpilEY7VYJblR5rBrzxZjHPq8V1tu5aBiabSwofXZOWEGptOuxIec\nj9qSglF6i8qYwlMCTX88KGAlxrMQxsEKTJbcbHF1SOidlPC5IbadG18lR2DM\ngAi6bE513QSjAsMsQuHaDLceXvlLjs3g5aaoDUK3hk/2+sP0wf5VmjbZ6nr/\np707AI4UppJbDWXYO5p62aXiKdeoWLUDWsByCc6lZDLjzG+y9Ib4Ol1ECMmi\nN5cx1Q1aIzcbKpCk+53qCA0KEoEKImqwGQP4+z/J1DgIT/S35crMeyTuoBEm\nfri09yu+2tU7MjZnT646QWZv9CtU4PH7fnwIOLNQkv9pbWsihNJ1t7Y8DLI/\nPjqrGo8t0CjtkV3fU3tfvNzgirCZy6mn2hXYoXrwBXGRspKrZhQ2u7ACxFUZ\nRlKr\r\n=XR7w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210629.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0-alpha","@azure/core-paging":"^1.1.1","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210629.1_1624985871733_0.6302789089939445","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210701.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210701.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210701.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"d3f4eed6fabfa227b7f52a6a8f0b7673066d5c5e","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210701.1.tgz","fileCount":33,"integrity":"sha512-/QhAGL00y+fO8U0fmy9PHfVt+iROizct1Jp/o/CLYfUjt02oi63tppB8eoeebvPLh/iJgtus29XOrb7qJI4L3w==","signatures":[{"sig":"MEYCIQDvFtC95OBP8/cHL+rR0yN2mNulIr7OqXALeeNKmoQxwQIhAJjsjEw+KB0EhlH8FaB9/obdygjAvPFQYXygCHMC/T7W","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3fVtCRA9TVsSAnZWagAAG1oQAI+AyAZjYikD7tKMgVEq\niL1vLHg1t2c5B6Noq+KvjMwm1iWqxjBcTL8ZhXfrDNx0qsWug4ysfy9cZSGO\n3kqX2ZrZ/3sti249Fuh+wHdo2rWkckdem2fba/dVe0xJdQL7M6r+Afvr5ijv\n+0Cpt0sK/C7riATTNwqAL5Ov+IfjebHjnsajA/ttEoFuzBe/jicfw8JDmIvh\n2/6c3jxfapevx57y8N3XI+qv5fCin8NffQDhUI4LNpy/T41I6tvMLgpH2WRQ\nqRWeMsiVwt/tLirRYMEmTIRuf8M/0QI+RgSXKS436DD0GC5iCas+KgFyrjcZ\nQ/o+nJD8BjXwAEcNRYUnL9xat9mmwVIDSpUJd7F8UgpzyRF7XvyNddlc19Ju\nwzF08ViHGb+EhqxGsRrlC4QuZRZwJwFW1nkfozURfnqITXRSIsGH4R/2aQFN\n8Yvy6W3YVJKV38yEpfM8trgIDzSEnpaDFvcTUYyyDtZh4w76Zlb5Ja8yBaKB\nNqc5biD0jzcylBv0kPRvFmBYwE2S8tiUFHyoLtZP19eKNS9PjPRDwlCNwSEf\n3BiUAukOrEnCJkrAXrPeY9Mh/gmb+m7FE90eFWidva0JNA20ag7yQoP34AJO\nRg/v1Ke3BT0HvCl92grDlM3uCCNx1EC5Hz33k7QbFMf3AC+q6d0xeC2nOzi4\nOOhp\r\n=a1D5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210701.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.12"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210701.1_1625159020521_0.96684452549691","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210706.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210706.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210706.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"c34b28cde99c97a2f99090f6f22cfe480ad0d6a5","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210706.1.tgz","fileCount":33,"integrity":"sha512-4o85rZaDJ2SYCFvWw418G7rBsx/6kr1Uyp0qNIBv/+MAJ48SYn6Dn5wjmFJyR7h8idIH4dsUAvI4kClg/61Sxw==","signatures":[{"sig":"MEUCIAN3+c8m3/bwTolo2ACQhJgxopTKYZcKfGbCfcG7Oo4KAiEA3aiwJ6uT4tBjSXieLsRYWOZYCneklJ4Y6yef2VIjs24=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5IwWCRA9TVsSAnZWagAAVL8P/3OgXl9Gf1Fx40CbmfVo\nSr6CH1dIvim72GUAnj3q7yJ4kY6F1+NdGFZZ6cvjWyQ7qMu72msUz8ayfqeb\nHVS4AyS51XvlbGRW6DarKLaa5Toly0FYppNUgVm3xJZZhcLCs8I6XmI76qmu\nG4EpSmNyXH3sU+5NIYPVckIMBP96mjpDTDNM3Ffo45QcU3VH/g/81s29BtKR\nVrSmudVRaG1AziH2xLthLnOIdGtQOKC2Td7n5XVZ3ta5oNXCfQYovotXQ5ht\nYlTMi/NAzhXb70P4L9EYrmCRGEM20q7XttfyMbc7sLptvTLa/EhkjalVY9UV\nMN9Aw7+NIXBtLKNAKsLAh3zvGkjz21XcFAyHgUfvC0em+7LEQu9HTT1Hnoqv\nT9kwKHz9kXVZCaiToHUg7DDNO8GmYPRZ26y6UghLHHyr2PFOFiwAQWNmzGPj\ni9SbpraWOG9MKygiBXV2RXFkGkKmp+Q4ALW5SuFvLueZDYtqshEh+Qz6VtBb\nQ7gCsMlqLuAZQagL3UZUJajVjSyzXW6nlhPPaLPTN0h76cdaqNDckQ0XEGug\njovV4AwkIo/+wGTMUn0E3dlYXcf+xg3/oDUeOTlVdrDgEhlXFulJos3MwGts\n3IyAnyJ/SRwAutOhkR3fOo3Eb7DUndtFhJMTc02xT4t+21yHwRSKEPy3kxpc\nk6Ij\r\n=j9yR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210706.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.12"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210706.1_1625590806141_0.42994812185937636","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210715.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210715.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210715.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"4e37bc7562e461e06b63dd5ff1c85de24472d2e3","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210715.1.tgz","fileCount":33,"integrity":"sha512-pDRz+6gjOXynRKCTxHhQzQ+lAYFi1WtX84QsEVUiGEJeicBpgXiILhUrFAEr+Fe0h+r7UZO4kZv8WvNKjHuVWQ==","signatures":[{"sig":"MEYCIQDJyBYZwRHcBjPrkuvvy8o5e0ZkY745Zre1abojS0MDkwIhANW4KBHCe+VIiyIQ2oS9+5vNBWPr8GjarlvtKydMXZIX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8Go/CRA9TVsSAnZWagAAu08P/ium86AzmEVAr18Av9DX\nMKiVZJAfYNc6ZYg8owIIABdbl5oV7eIYpfIdF8pKtBOIkKl6z9SzjcKoYztx\noFGhrSawQvwe4tMOJkwGTJj5QB0cvCBIYGjt55xtpBhXUYU1AZhtWYC8fRf8\ncoJRWzahiVB1slZeAnV/R0vetKVtbJCvkk7z2dtITvlgWp7jgLuib05ch9EM\nDieVJRQfr+CAB65DYuzdGbMDz4V33FTK3RDj9TteBajqZEoLQb2VvKWPLPU1\n4Hqz8+Kv/nxw3jVtyD4XpT6PpfL63LTHMAn5XFEQgdcbWzoRHIBsvMdcqrYM\nbX8+E/sc3i7J2hJZOUA70OgLrX/g8oTAqKCPYJdlZ1q7YOZ8Uimeul5JB8u8\ncqPcSmWojEeKPQYbrkBCodlvjIQSgwwEEXJVdUb+/kfEITr3sDgN+Z6+C/pW\nnYgYjiA2uWWYPhiGuXNrGG0uAsC+9653ILVAkksYzrQ5H6tC0gyQknDkMs2d\nf49xYZxN144T0xbf/caNdRiKzYfF3nbcuitopKcKD8p0xmYJkpob6kJvdDEK\nQcFD+Zy86MjyJTgHqquLsNZiT/2l1eZd0e6qYv2PPfHxRJSnLQ2j95Gx7f4P\nKDrmTCmuKKR0f5A5h+JtgpouVCLqmYQAkeMhDxAKFA9YyiPzivteeQHQyD88\nmBgd\r\n=4Og5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210715.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.3","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"^1.0.0-alpha"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210715.1_1626368575492_0.8746546278430094","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210716.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210716.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210716.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"be7d8bfde3ad7d6ba5d4dd2a25b3d52b4c7dc331","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210716.1.tgz","fileCount":33,"integrity":"sha512-7wVab+/lZ6DaZ0OiGePxo6SxtRgBCDWitHQudAGDmj9QYF1IveSMEcChnDtyBz1KtNrCJKIP1yCJtJKRc6N6hA==","signatures":[{"sig":"MEQCIFnH826H9o2206JvHF6IE2/W/AuVfZREQ6UHCOOQ34VPAiAm7LXwMHdjhzILWM6F05DUzada/XConDR98idHDNmxeQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8brBCRA9TVsSAnZWagAAbFIP/3KcWkW7j22yRhA56OUe\nUuLA2L5jdQXHGI1VBmtxpal6J19ZuAH63ZLswhD1+8AunpYHfHc4RIJofv7S\napIqfqNyekSXy7AxCNyekdpWxWQqeI319YePrpk4Kxb6omtxSL+dD77YcsZ1\n6s+z1uRPAnSut7NTfYI8IuCYyvTwmDsRaeEgMbSq5TlfNMrhW4dA/kglTJmJ\nag8IAvNuzS0WNP7zfL4Bg1Cty3x3riB5PnkV9wDGVvgHFLOFTKWcv/GaTX58\n1PVL7oC5I9gCZne34w5rApxr98SMFBIbTzEC9GkQ1KPbnTaxSkvmTE9hfK1n\nAoqkhl7Iw7JsO4VOV4ydRZSnNDJ56uDvtM1QN68W/zwlSoTe+V9Sl8QbOGOz\n4sgE3H0srVsw3eNlac9JFcOh2WgGc6ZgfpNUlXIbv0DG3A0s8ZYOHewlK7pT\nQ2dfVpbcKo5pG1ryTeL4ZxWSgShR8n7uA4ZN3Sj0BwQ5P8DwoBBvbOIbSAtP\nphz1OuOLy9KEOMfeqJ/qITan9UU1IKAxOIhJcQUmvQaLmNpeyj+528OBigp+\nTFwuGvrAtb0wAp0Egw8gMKOqEzd0T2bVIVomd11K9I+sz02LSlZcq4OBnB8T\nQb9zAmCA1IcCGGAyTPQYmefy0vV0us6XInrz8WKi+vfx624b1bjAg41V+8VY\nyniD\r\n=K+Ot\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210716.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/generatedClientContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.13","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.3","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"^1.1.0","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210716.1_1626454720949_0.38524625964823667","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210803.2":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210803.2","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210803.2","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"b3773000041718125e3f37a261fcd1c34c654cce","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210803.2.tgz","fileCount":33,"integrity":"sha512-iq/K4OVcc0PTrb3i/Ao/ezl8t833jG3NCR3Foiue755CZ5MQjhyDolZh0LQfddD9DAEeam7kjPHcL25Gc3Ge9Q==","signatures":[{"sig":"MEQCIF4Kq+gM4F9K2XkB5FfEUmM4AzwJIkSSku6whfhpJdpsAiBqigOkrUZXmuX6MQkwhgOuwaBGMLT3rOxyTdDpgmPJJA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366702,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCXXECRA9TVsSAnZWagAAJGsP/R7J5hlKueOnqaNmkXz0\nx4ZLHxFyv+ZNEuKowFf7XbrkKjYNn5PkU4ZfLwN+UJYQeD3AcHmJXxsWbL0T\n3EPg1EfO1kAvPr5ySRzCIJPTUmHu7LF1ZU0/I8WkMJPCtP9FQohMpV+wQP0a\nHp1PTQoahLN5cOvu0CLCYgLiaGVAZT26LuOeASOig3QRLwXvlbKCdSKfwmf4\n3FwJVxEolTtft5tUC2SZnJZfvsX5nrNwKOldVBm3sVHGDavFP4BipCjNvFaQ\nk9fU6SDikk+QjFBegATuz05FWTch7HJsiiehFnV08f7qxMabVKoXvVVXRQCz\n9y0BvsMqZau7RcJ7UZ8hEdArXQt8LjldAl8i/2fqKDcn3UvL9qANHWyvrqax\nSqmG2cVqX9DVHzHbQk/2RUouZ65Bs/sGg6VMz3l1ZEmn0NMoSn+JjCAfIQXm\nezS1RyV2IkZEr3Efy271PdflfpJgxxYXoFd7nCdC4FVO3zqU+GdbhzXJofAY\naF+bKubUw4fmZTaGywZPOrybALxL3q4PejKpiysTj/gfszsBhbJLHcIjeeat\n6wKHeFh62nHXWtubPcCc3L12eEKd52YwPbN3kSHyU2hnSXjANndBFqqc63i0\ntr9wJEOUZszUMQqpWhtFemR1WoiDatB4kG72MkXviJNvyxsRhHh/yboYwhI4\n9J1j\r\n=v2U/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210803.2.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.14","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.4","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0-alpha","@azure/identity":"2.0.0-beta.4","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":"^1.0.0-alpha","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0-alpha"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210803.2_1628009924586_0.6968081905669796","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210816.2":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210816.2","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210816.2","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"a2f9c8eb9df90429ea3c31b57c090b7169438ebb","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210816.2.tgz","fileCount":33,"integrity":"sha512-FR4QSKG0kZmRCeG8vUm1kymzxvEFEE2+OBQ823alfVmvqjAvWSIFoWMagvqCfgUJMrjVvqmmRCJsIRNTEVdIEg==","signatures":[{"sig":"MEUCIQDI1oBXfkrxrf0pO8iuKSJ8I0VtFmdTi5zXMRHqWclmPQIgD5IubiQcYADjnnmkCPHf1Cncy9bowgsUpUIFNXwYxYw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366744,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGpmYCRA9TVsSAnZWagAAboQP/0eI4uTNuuxooJ4uF71b\nIxbw3Q537gjLs5Y+KsQVPtLt9jK3llf36NVUbVGfcuLd0eKXdPVBvl0Pwn1K\nTW5R5qTfSJjOLVIvGjZp8yWBICdyAxSTWGkW31l2sQLiECGX9iJA/UgYn3A/\nDgGLnTzp7SBFoqlEmXXcIdNyE7q0JjNzRQtnA2Xd+DoEB/V8nvs9s7QAO+p9\njqSRfRtLyJxyST9YzrQ8l4jA1UOhaI1IQly8XXKvm2YYN1UcBFkzJ9rmMA5J\nYiV40hoe6p4BSevccFVzk9JqCFL03tICtRkJxmXyxSwrR61WXXQcid+RzNEm\n7+GN4nwNHbnU+1cllaIlysI19HzP+FnNPL9K1L5TKnchxYG0TXXQ771YWiIa\n2qJ2KjphWB8UkqkJCjbIozjlyIzmgpaiK8zxC4a6Z+IC7roVceYy3WnkS6Mc\n4NO5Su+eyNPnyR9gA8K2ATm5/DYqZA5F7MVBplNVaUpcHzm/SznmyfKTQPhB\njYgO3Y3swynjKY9TLzfyqXodjP6mvgeri+lC/WqbQo99GLRAixRqRbJl+piL\nyZoJnO4xcdUCvs3bEQHT3qULv+CnJ3B+CyyzyQVSZx5fj0w8wlI/5XEPqJo8\niJ3oxG3izkmF2BZXGQr/pKhZ7hclhs50EJbvoYwXfIyDKGwx0zshuGGppTje\nsJaf\r\n=TJSX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210816.2.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.14","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.5","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"2.0.0-beta.4","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":">=1.0.0-alpha <1.0.0-alphb","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210816.2_1629133208138_0.4934718642591984","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210819.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210819.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210819.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"b265fb75251b6a875b79c1c37e43a87ac587ea82","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210819.1.tgz","fileCount":33,"integrity":"sha512-OWL7cMaSW2FeAB9FIY0HfQCep66bSpowJSv/VObbOBRTX2/Rj+RtB2TWEuSSW5AB2iXX8DXHxY59zncioG8nyg==","signatures":[{"sig":"MEUCIBCZVuoPeLlp9XwcZWEUeda41aV1EA2e6F++f6ZPhEJUAiEAkF9+hV+0yfA4iuBy0K6r1m7tSmbQzY8cKpe1lQ82+b0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366758,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHo5cCRA9TVsSAnZWagAAHCoQAKMCPosJocTj9BqwKxLj\n/Iss6hDf3zREt2IZDZH/q0RlBUxLrgray1WjIIUsoOFiYLk/jbDcHQDVmds6\nogD+wjVYl7rOWE0gmhU2E1j9lvcHlc44yXhZBb5vY2iyj+2oCOJE/aygRSDG\niV3kX9XXFr81eNnfBZiCdSQSYkpxouw0+m37ZTDMaKYvG839WcEpREmiKM62\nKyE0scJuGdkg89xs4TuSwwr/QbWMyzqunrvEua5Ti480im+pMT3IMzdX34NF\nQYOpWbtHLmuSjdlX1PDWKhKRN/TkGn20Uq4l3zYfkROIaTKwrXaOM+vRgbwd\nR8AkJWMufoGiqXN9EnYpUo1+1P5q9PkkDvc8yzwuB8i/rKmSGHO0ZhWZYiBi\nCAcCJ8hoyMWvpOMkrwgj0IdD+Em2KGqZkvRnv9ojF+53StQp8MbY4Xy5MgMB\n2k+rrxA41Nv26nS4lu5tgF1raHpfY+ec+AoagmXI1wV4npF/jC89Y+cigkkZ\njt2evb0MhYDtTDo+ygZZdZFWhePn2KfRGSRyR2guIcXJn5Qk/o4PC1IFLsU9\nY1CrbirQF1cBmQm7SmW3drxqwgHzbOfMGukS/cf06PEBeLJ+93j1ruK8c08q\nsdHJDkII3xPhOpHTY0HgJLjxOE2mW5IecZZUUQRHh6sSt1xMMsTZimBSGMFA\nop87\r\n=HKZ6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210819.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.14","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.5","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":">=2.0.0-alpha <2.0.0-alphb","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure/test-utils-recorder":">=1.0.0-alpha <1.0.0-alphb","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210819.1_1629392476127_0.8365308141300392","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210827.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210827.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210827.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"f3a431d2dedd1b44935d5c1973827f013958784c","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210827.1.tgz","fileCount":33,"integrity":"sha512-BW3hWZr9tV+2riWVRDQQQ5JNzLTWC0HjMP1z85ineJQQfoC7d5tkIMFx9JRRgsttQih88LHHiJV3YRJbuAsrhQ==","signatures":[{"sig":"MEQCIG2/5mGYkx37mNiuMLduafLD8InNoj9Z+2iHINe3WTFSAiBe5LHr6IhUqcIo1tngKxq/hMuRJh27Ywgrzz7eghfF6g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKRuWCRA9TVsSAnZWagAA3NYQAJ4nzP+CaoBi7BIXrLKo\nBZuISnjIeZJMQrAEUSdOfzYpcnUNxhazTSsqx9B33igCptE6zRftBDmx2UER\nGFvgNAjKgQG4B4ZUGhEC+xfc4VIFz+3sa9QyoB4/NoV8QcZ3FqtGWsFZGAJt\nA80Os2IJ4wp47bNCxH84s9aioQASZk3kW01AJTM3zVr9VgQmP2uvwFLVs1Fi\nYaDMnGRT0wP0gmM2z2GlO0MFnv183jMlCBV++ud1U2pzXvTC3yNPwCYiMRAQ\nPgOklfhCavK6a5silYWn7QX70KNu2iAVQFjX8mZGFawoJ7Pc1qQ73OBVfH6J\nEfW+uxo6UoAVxXxPw+CHiQtoVF800QD1aH2YrWV9jpC/sq6YXSJX69OkWlqN\nImhfg57C7RwtPdD1CBI7eC+cuMukwcPxJTjXLjniNs/F2j3H8M85tJnSZzL/\nnua2L1Z6tOMWWfdpK9hvVxDTlofFB+2Sqm0MxTm6YKR416cAuDoft8FSwW8t\neaQCRN7LVcOoQKHJE5QorOw0AjYal+/WjbOEnzp33z+EnDwiZS+/LbNHug22\nQHqbnqNW+H7JsuhWLcnp+IHvG5+5x0gnuaWFiWcFsp2dRORedwJpUJU3vFrx\ndPQFrwYehCvHAgZrGecngWNwdU0P63PUaiUzBMinBAE0O82OoLKPkZb/PUy8\nVIlt\r\n=ldCh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210827.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.14","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.5","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":">=2.0.0-alpha <2.0.0-alphb","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure-tools/test-recorder":">=1.0.0-alpha <1.0.0-alphb","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210827.1_1630083989783_0.9503573195180954","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210902.2":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210902.2","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210902.2","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"22be948d6aa4b388fc64ee1df2685120f41b24b9","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210902.2.tgz","fileCount":33,"integrity":"sha512-g9mUq74TS5ZHMSJaHXOnOTfoxfpI+YuaYxx19RZjitXK6B7Bi0ANaVr6sEogTEKqzWwevzUrh/iIwFs9pYsn2w==","signatures":[{"sig":"MEQCIFNxrBSWWRImRg/dzlr3PSoD/g/Osw11/IGC6dBZhrkpAiBiatoAkVWUgmMYOwEAljBPrieq6/c0gAA8MzzLWBRgQw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366722,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMQMqCRA9TVsSAnZWagAAD74P/0DhUMs72i4mr6gQg3w/\njBVTget0MPNV6z3BwI0XlD7CmuINjI0tyuQSMwPUYQOvjgAtuMqTs3ZRE3CX\nuluFAokmvjcm5Ntf9qNYVwPoFCX36DZu8gw7pi7raj+vqs/glmvoUuJooX4A\nUDRT/cXZmPMwe9ar+hV5WijXeOhpk6C3584sjE45r22Ag72f4i7jq8ATEVyk\nsxcsywQ7jjW8iWagk9/V4dtrzoiKWugNNqSJ8Rl1QQAvGUXhi9Yi9swdWYZI\nD7Jptu8wsKJNTKuhJOBI5m3z+ZLpIpPatTddQ5S29hYQ01kChkysso4UpbXL\nKx481SK/GPjKRvYrNS6FcsnscZZAWKM48onAfwPbMIeD7l7CtVoTeENj5ZTc\nZ5E+JyuZpUS62V+RXG7Nak2Cahh1nZvW+iDrv8CztylAiwhTy+oPITaF6eWz\nCsxeHTtvA6ywCeUx4e0DTaL8LMIBmzMf2lUNK4AyMwVLWpYHmFe5WCtG1NKa\n+ghUJmnAjr8ktu3enJGX7KLSBDobbk60FaenwVLRPMJhszSubFL8QMFzo4/7\n1yRmjc1FCdYfL6rRbpCUixuv4R5xhx9p2aKsmvlFYyYbQ4OzinTArmQ8dk+o\nqXHKqdvtENAKqgTpIFNziDQRnbf5mQrlFOfRX9XDja+YPhZff+Vcz6OR4S7g\nC13v\r\n=d/E6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210902.2.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.15","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":">=2.0.0-alpha <2.0.0-alphb","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure-tools/test-recorder":"^1.0.0","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210902.2_1630602026307_0.7078470067544822","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20210915.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20210915.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20210915.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"827c2855cdfb5ac45f79d10ad1c878cd9764ea41","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20210915.1.tgz","fileCount":33,"integrity":"sha512-p4fPwtbcb+Ntnv0QV0Y0VjeaWt4CkRI5opvuW3k5MSsx2tofITXvDlBXxwzFCTgC1RvfclV/hUEo1NyfQcBGKA==","signatures":[{"sig":"MEUCIC34Vduf4ETbd+4nVcTa3KDvJ6WgTw4aVDd0jlnxbzIHAiEAxzrWN7lyG1KXl9IsIm4OMW8gYQRlu3q59KsoLfpJ47o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQia8CRA9TVsSAnZWagAAOiUP/2raFy4tGOxy40rKh2di\nqQcHeSJUsfSpHvK1h9tSqVPzarp5Ubp1ZqDUluAj0VH62wQDfAPz49+xRkBb\ny+hjsppdSnHyc+tQ+035q+ePa5gxh3PeFL1wIjOToFqhfZuvoKuOuM1QVyTC\nxJyDpUxaXmmKPM3aSGEZa0D4qdiCNbc2bkuflf8phpWn7LzCWRdTxJAJ/OcY\nk100CC6tGuraA6/hZZkf0pCks1SnbWfS4Kwshe62LTxU/sp/U91zAAOEN0jx\nqOe+KXyf3A2ztZ2/0IeFFF0vKngmIH28N94i9Cp/r1Z/f18hXURhEVL1UCBO\nwYaAhXVXLHggfCuMumMY4BN1sBXNaMnKN2QHlVG3gaUE1SC7M3HhrNjtrtsv\nlrJ3cHK2S5uT8AuaXakgBBi4TiIVaoltjqWawnsrg0g2bqtvn9Cst1fjThNi\nOZBb1aQjGn8x7o3F9gQe3g4dDSUDh6Ut0a5JlfdeE7Lpyt/M6g2aT3AAb+yf\nYY3n7SU1NrAB03GOKHxO4J5CeOvDR14cu4l0fF8CTOQ1j8fomGWAx+2Ah9i+\nx//7m1kxqKwwaFeLqQlll4RQZ8aKjxzgG9+vMEVyNCL9aCA7vZP0d7Lq15Xr\ndEjpAEHdsLrsVt5KQR1krE/IzaXTZMbvMbfwLwpJNSldY/B+zQfMzjhu5AtL\nNTLF\r\n=Chre\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20210915.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.15","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.17.6","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"2.0.0-beta.6","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure-tools/test-recorder":"^1.0.0","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20210915.1_1631725244548_0.46807445009007886","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20211001.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20211001.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20211001.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"c2da4273db85736e5156cda4e475086754822e2e","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20211001.1.tgz","fileCount":33,"integrity":"sha512-R65nAhi3geaxup4eXKiiQVmhiE2BN8e5QX5Ds/vW2RAmbZ4QRcLxSlOfYKNc/7loL/ePxOl4HW6rcrMUqweYdg==","signatures":[{"sig":"MEUCIQCbVxqDv2Hnjocvu66wUZh61B1TMt0lvTSfiFwHQuxrowIgGMV66SLJ56RwPeqOMneNlFzrARGlP06EBE8zFX4Dj94=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366712},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20211001.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.15","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.18.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"2.0.0-beta.6","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"^7.18.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure-tools/test-recorder":"^1.0.0","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20211001.1_1633107809910_0.7158667431536201","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20211102.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20211102.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20211102.1","maintainers":[{"name":"southpolesteve","email":"southpolesteve@gmail.com"},{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"76d99018c886de963d58496ad923610ff1b0176e","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20211102.1.tgz","fileCount":33,"integrity":"sha512-Tm6qHINgo+73lwJbJU0uWixkth4PJkn032+tG4mmUOoqnem/eGUHdzZ+Kk/QIn3Qi/+g/XraoBryOeqDPSUhcg==","signatures":[{"sig":"MEUCIQCxAqFBxBnUGRc60UOv/c1qJVyIkNBkfoGOOesykMMGggIgTTHL9N9jOrkLZ+lxA6vvYLo79pGT49KTapYdqL2HtHw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366706},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20211102.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-test/index.node.js","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/**/*.spec.js","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.15","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"14.18.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","rollup-plugin-shim":"^1.0.0","@rollup/plugin-json":"^4.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.0.0","@rollup/plugin-replace":"^2.2.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"^7.18.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@azure-tools/test-recorder":"^1.0.0","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20211102.1_1635872793625_0.7851719928496688","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20211210.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20211210.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20211210.1","maintainers":[{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"5f538f903a2e1532b94fa1ccec42788129f93119","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20211210.1.tgz","fileCount":33,"integrity":"sha512-OQ8emo8xyT0SghHIGGX2IWFk8qJD26wKQPmRXgSH1t5Nsul5RAWgliHLl6+t23R8O04esKT6y4lbZoSA+YBYcA==","signatures":[{"sig":"MEUCIQDdTyBm2tcDtjnJcEHRZFyasFzRpOSzFLDm63aKQkQoWQIgT4qhfTyPIi/2bTUKKO6FWr5xoylDch1E1rpHWu0+dEM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhs5UiCRA9TVsSAnZWagAAZ5QQAIJzTEDZ5cfbWZelFDXL\nU9vWZz6AdsMUNGWvbKQ/K85AcKUmQJzY2mFc5+tVm51CRXLxmXIxf/500A6+\nnU7XwN9C+1HGGSVuck48e8ab01c3djMxc6HEyHgbn2WHsq4HWpUIdhKZVhfY\nIRolnpAZGUZm6wt9x81DGQEYnKnBqQl0suV0XJmWRBkoj53AdXr1Ky0SsJix\nwKIJfolYwJXncoPZBrFNrgAWsUoeSGhIVKP+w8mkEyrxQ0O0kM4kFug9poqz\nPMmUgsInlwH2UtnIxnTxgCzI31V/Gecc1bAxBkVjjUI2TV+rnEqNYY6uBCRY\npeGCJSGlQpekjPQHz3YsgNPKaUXf8AdCZeLW1+odf4sc/8cRGlIBrizxfm+q\n/d8IqIZHn75cZjQjKI0ibf8jTqtWgwl26BMCsmKkur5rI1pzFEAffttfuxhb\nc7/tCuJpFIKbaknHAlPcK/FWKm3CjUn3GJQJ/kFVvOM9GaGpJ3yibwi/W6To\nq+lfT6hQuY4mFUG3PZ4pGzMz4vN5j1OiM0ywKFPoddvl+TRNv+kx14sUSlp6\ntINAy9bB4mUP46rYU9TNdPU8gX9F/e54alHEPf+owPYt5hBjTFJob4nEAPNp\n/5K1thJfQ2mnlfod+7XmLwcLMMcDGLwh7FJ6tjb90JLib2KrREmAlTivEwz/\nV5f0\r\n=3U4n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20211210.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20211210.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-OQ8emo8xyT0SghHIGGX2IWFk8qJD26wKQPmRXgSH1t5Nsul5RAWgliHLl6+t23R8O04esKT6y4lbZoSA+YBYcA==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.1.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^1.18.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20211210.1_1639159074680_0.591474511501763","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20211214.2":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20211214.2","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20211214.2","maintainers":[{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"831b8e317093df4852c0c3e328dbd8038ff2e674","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20211214.2.tgz","fileCount":33,"integrity":"sha512-Msrt3ohAZW2ImDqNPsvsTYbDSwwjYywaWORRy8AOjhzzGKxDscX3ZH44E1al9LP+xOohiNKzR2ON0QUKXPLatw==","signatures":[{"sig":"MEYCIQDkE4TullqdTiyz6ySso0NTJ2nrIVd7GsfvuXOosvN/5gIhANQjA75ln0h/dLTK/r/yMUXE71NchI8I5ftiJlP9qO3n","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuNrwCRA9TVsSAnZWagAAeHwQAIV4B8V6vBHEpuXkR8Tz\nrJXrmHSku8jHEcmvLJEcRoc9RGdX+O+hfIqDbBFqYKEsi676PO46nBaZ5svW\n93B1uCU2kaZgrCNR1ZQOOXA4EFvmjdJaXxb5cxYYcVTN3eNvf27WMM6UUe55\nw8HfyzmRYgbUWKiIxVXs4iLMEvokDuEtMfcK7X85eme3m5hX+BCLig9nIqoc\n6m9EW0aMYIW63R0baNR9IKkG1TVtVWlqmzr9pGG9epR0gLFSDiLA/WN67i64\n86buabPdb4ior+vWcs0veQijon8HOiWneNFBEnTVHy9LWPrlRXoRA4DFyPZP\n6+0UAH9+prn/1LSMrWn7t4qgbkkqghguzeHDKcgcrGQzPvuZHzBhMwj63MkF\nrQiPmgCZ5d4F8vuivDKie01VBgezJkCLCqVm6oipjec25zKSP2E6BdQpoRec\n9j4ONhJ4Hvs1SAfDbmnPn25glZozNMBG4LJb7PRTJEJavqAI4QeAp7va/D53\nXqMNH7AJSSQkxm2LcA69qQpSshxtsblTEbPXuJwk4h0MOmK0WzDdERtiOWNS\nvj+NkTSVe1kuv1KTozyuAtIj4GXP8L6O97vWeQcQk5G6/HXdqKmurEgESZUH\nXqoP3SyrTXvxUgvx1JkSk1IgldDlKx72boW1CxzTDGMlOjdi8cGEB37N4MhO\n1nWB\r\n=V53B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20211214.2.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20211214.2.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-Msrt3ohAZW2ImDqNPsvsTYbDSwwjYywaWORRy8AOjhzzGKxDscX3ZH44E1al9LP+xOohiNKzR2ON0QUKXPLatw==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.1.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^4.4.0","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20211214.2_1639504623824_0.006837458070265701","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20211222.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20211222.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20211222.1","maintainers":[{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"5c5d5df95b2f4c22cf54733bb28af30d331b830c","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20211222.1.tgz","fileCount":33,"integrity":"sha512-d23nafDcReJq0dnYoLkMKxXt+HNz4S4kyzHDHEgSTzxWwKJ+onrLMjvDXKBadstJI4Zm88PwovJauf5MEwt/ZQ==","signatures":[{"sig":"MEUCIQDVnDDx4CCH4wXibIaBkc+7ZBuAjNOqzAtNiQgzMzlJ8AIgfabjFkxtWReEwp/O26qpdfWJYAOYmkAcDhD0mmlmT2w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhw2h/CRA9TVsSAnZWagAAbcQP/AtgKA+uNBn72sn+lDy4\nJTnIhgOGl5iRlN8pYZik3YbStBk2whkThdU4eVpeR9TzrAtEveyf3zSsrBR+\nd3HhLUWk8hk2e7lUVovQ3vuPF6JdwgVShQY6R54eKH8sE0JAmz9gRD6AYUeg\nrAfMkSHBh1aROP8FOqMEpbkopIAVXbo3GJ7R/BaFmWsDJOGUnCQVZfRAJzz5\nqCAVez1WnyyIAXONZXGkWGcYd/uGFWe0rbdHeRTXJrZ4N+RyCsKm7EhrIi3q\n61KwKCUXJDNClBEkK8yv7+55+TC1S2hMOwpnepAW1vTu/JEXMG1BFBhyEPRU\nXR8TK0nudoadPZe6goixr7Rbfi+sPTihhxX2XrJx25DalRjH+iqLfJss6kju\nQ9EhTibHkUXeV8DemlsLAOKcKz8NYZekOOkzzwgiFFYXQGgQT0kYArfLYoJC\n+BftMU70tzLpIEYAvqOsFyowhiNdjtJxLMPQi0DK5tsH+r4W2tFrBviGw5Zh\nbA5oDR41SXFMkB2cjIUuZrXUw10T4NxK1UNePCnsotADT9buwfw8BO59rE6W\nfyjkkhDW8GTv9e60SM0mocQ2wEUloxI5UcxaFSnjK3L2b7ymDtSz/5LhUc2y\nOyYbqKyYPCMBIJoqo+HfUfPkh60rY4XdYJMpPntBqAmrYv44XOqkg6GjqIdW\nr55N\r\n=snaG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20211222.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20211222.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-d23nafDcReJq0dnYoLkMKxXt+HNz4S4kyzHDHEgSTzxWwKJ+onrLMjvDXKBadstJI4Zm88PwovJauf5MEwt/ZQ==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.1.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20211222.1_1640196222783_0.2666619954383438","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220111.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220111.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220111.1","maintainers":[{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"0ef1ef551c7abed010aaa319c94f15dc55a281fb","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220111.1.tgz","fileCount":33,"integrity":"sha512-MRZpDMIOPTjr7L/foxEMkRf9OKnHqznVLTh0zqDdw0FTJ+QBFa4Ep2G1Zlb2kgvb1h8rx+d5CKSGW2XYDAHY5A==","signatures":[{"sig":"MEQCIDm5n2FIWeTslSeCWBHqEeMCis0k6kC4oQsa55HIkJ00AiAe2MrgiWcD/GIUrftEKKtPpFapZMyuLqPhVjpzyvvwKw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":366223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3cU4CRA9TVsSAnZWagAAgY8P/1Pgo+14BcHHYuYuFVuK\nZOl4GG+LTN4ShXyycDua5sp9qiphBkrE8RaVGfvOUS6pBNXSYqSeG/Nq7xez\nWeYPvynWG2HuobG7sKt4Qy5fnZUmxSul/myztPKnBmn4HJbpVTB1L9s/tE0q\nT+w/tQ6mSq+HmAfIbz7GkGYEhhZMcAToW10Kgd5Br1nezA/MyBsRLq0G+B9p\nRauDQZCZvm1Rtf0k1CLdTnql5flM5iDluOfRdd1Wt2WOXYpjS412SCk7HHUC\nWPscGdPrp26nCXaDyNRIyFm9FprvnQl/PV5hWCytIgLnXn3nn0SCxsgVsHwF\nZkvDQFIsKXZggE+wHe3QCkkZIIBwQtjmkC7yBKIOJItjNBO6zJdcnt9Id1B0\ndQ3fuoYy8FUn/eUgNDfIyFm2agmfIGwZWy4Ex175bH9byTmUPHLEkzv3CG58\nduH1iIG0I+zKHAD1H+TtBet38KUoGG05THBm54zWmb8o/2XaM2Cy0gDHUkOv\nIu9cETuN17i5W6OaFASW5a6mHYlIjrzO2D/WOLNdvIMSWnTcei+CMGFVAl1o\nWuClvTG2sRGWxGInyagFSk3NpKPb+4Un/2TNx34olJ8rpWRKD/KYsqruuNYy\naMEYq9K3S086UyG27S7eo54vtmLJ/3SEChTlDEKAScGEM8IcsRtOJWpmiGLy\nqWG6\r\n=IJuf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220111.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220111.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-MRZpDMIOPTjr7L/foxEMkRf9OKnHqznVLTh0zqDdw0FTJ+QBFa4Ep2G1Zlb2kgvb1h8rx+d5CKSGW2XYDAHY5A==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.1.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220111.1_1641923896829_0.9016930292439098","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220114.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220114.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220114.1","maintainers":[{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"35983bcb07dbae7c9d93a2d95a3bb07e27979953","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220114.1.tgz","fileCount":33,"integrity":"sha512-cZaHy7uWe8jXAWOKebiUrJMS4XZD/SkAQ8TrNwTaFLOXimBjrzSZYWoWKCCFw00qVylu28szCJZXT5mwcfNF8w==","signatures":[{"sig":"MEYCIQDxFWZkgCkZXf/huy+SymZmlpNIpD7NyS4MTq2AjabcDgIhAMDroPB2w/8DEcaFt1HwiYqizaQiJEqPCd6Bjg4Lcnsq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":442212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4bsGCRA9TVsSAnZWagAA6QAP/j0v+p84+QyIm7IhnJ5n\nhMsGpL4EGH/nKWG8jPM+GoZlLQUtS6cEcyF67HnD2dWgCxTVzgLrUuhRXXFR\nLNg4PI/oW1+OuIJHPTAJ2yQcqR1mrIHegndcQAWlmxbNz2wjnBy/ugx74zHG\nC8cUzbWBieS0OvYThbYUqwL9FAQTZuZf4JzJbMyzQuNJGpzSKFyZ2uQnRfJI\nC7aCO9QtxZnqPBs5y7BZC3+a1HV18bWA7TU0EMKAy2OeckLhvyd24f4thi38\n8njxlGbffmOgVSqAOCoPsYIwuZAZgFhLkCbY+sHvLu5qW04wU8Q6yKtDP+FK\nCGv4rmupeinX9xtla02zDIHFl996/FQ30wSW7bUE2YI/ppMoNbakwIBcmHwo\nTN6+MivdHsVUXjOKQVKBOpr74CNj3v1wLBqb+o7+5TTFHzuYv31tYH7F17ha\nz4GLD5odPNZUoYxB8/ylQCjmD6jfsuv7xQ3NBoentUESSnF0e8HOQkn8bAiw\nHOlWq3uzy+jIjN7BjwnqpvVWHKQL4WCbs5cUr0hayDOdvoCTXeZjqujlAqXZ\n6Pf77aBdjCDhAxAT20jwNS9ghLR5I3Mh8uOPDYMxbDBlHj+LoY+tng/ZkXzR\nRRymp7BnlMjSVVP5qyryxaQ2GMRLLYOE2FnsqNbwyvmU8OvDKFkMiGnguZf8\n65cr\r\n=NfKw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220114.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220114.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-cZaHy7uWe8jXAWOKebiUrJMS4XZD/SkAQ8TrNwTaFLOXimBjrzSZYWoWKCCFw00qVylu28szCJZXT5mwcfNF8w==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.1.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220114.1_1642183429927_0.5166606231659658","host":"s3://npm-registry-packages"}},"3.0.0-beta.4":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-beta.4","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-beta.4","maintainers":[{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"684b7318e69904e0bc69ed547bdcb110f29e3f80","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-beta.4.tgz","fileCount":33,"integrity":"sha512-U9aLM73Fn4osceitnvhtIOzZHfSfxKn+V5a6vVzA0SbgO2xyQa36blBilW6JTzNs/V2YDGRyIrWPDs8WcgIr2w==","signatures":[{"sig":"MEUCIBDc5OE0Ik41pWvrXLZtWLjsiaRm5UAG9Pf5X64ZWYZSAiEApmr9+jpxbVfn8rOEN7kW6rwa9OTY7ibOj/zhWJdk+Xc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":442162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5P2SCRA9TVsSAnZWagAAzPsQAKIuAjCtpUoVadzsjnQ5\nqaHOJG9wHgclW3TPrXTSX7BxXeOhnJd1kdve/TsMSSXWBnunpSWhQXc2GSI7\nFMSsytJAy0UjmPvTszdYQpL8lUiZkfRSF3XKWCDNiFT7nKxhEb4arJgWzw4K\nAMYBvWX9auGHcc1givro0GeH8BmVGkz+BJkE2pFOOQr7KqbbbADmdKc/EiuB\n1qwgmhrm60WRTDvlJ5bolYFJfazsiuKMXKeWqi+n6kBsN7uLQvi2dQKQ/OtE\nVy9vgTXN41DeBET+3oZC82GhkwrZBMIS0MH5Fc2+AZg0dNEJ7m9aZfZHkEH9\nkvvTlYIlCn6a3roj0/LWSjjMu1mAl9byaIoBJMS5IVZG68FwGDK2LIW/695E\nenZEvfJtEi2Y+RdHv1rGc7uFQ7CNoe7CubZGlH4EGpCVvgmQdkC179mj6nIO\nfwfiSqGFYbmkx9lkPtmbQyP3W+ozRVJAivLBKLvWNaEgxAh9TFkIInth7xaV\nOGh0Ng00EsG+CAKt088xjK4ZYlwtfdFIlxOZua8Ys3PbezKiKKuRQULQb7oq\nB8Uxpa9C3rf5HepU5267Kf4WA5oD5464dkw3eiNqPtjRnd8FeQRUKpFk57Ui\nnqmTUvZ6gRpyqsiVCw/IhaYk3uSUBtqrXwkG7I6dRyRLVSLVV9uuDFxeGwkv\ndh9d\r\n=HL9y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:D:\\a\\r1\\a\\artifacts\\packages\\azure-ai-anomaly-detector-3.0.0-beta.4.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"D:\\a\\r1\\a\\artifacts\\packages\\azure-ai-anomaly-detector-3.0.0-beta.4.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-U9aLM73Fn4osceitnvhtIOzZHfSfxKn+V5a6vVzA0SbgO2xyQa36blBilW6JTzNs/V2YDGRyIrWPDs8WcgIr2w==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.1.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-beta.4_1642397073876_0.19642674735800947","host":"s3://npm-registry-packages"}},"3.0.0-beta.5":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-beta.5","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-beta.5","maintainers":[{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"f9707f073ddd8340fd861076a9f79a9daf0f94fb","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-beta.5.tgz","fileCount":33,"integrity":"sha512-xov5GqZGeFoIQ7Pibb41bMe2CifqMqacUhnitEwSz1RTcx+aD0pHYgqLh2qKp+kz6BOepos+67OzMxKqcM4Fww==","signatures":[{"sig":"MEUCICHXSV32NH3GVllVdAHnldzMSoHfonSJ/44BNEC5oqynAiEA+vm/5agJj4SgVjyM1SiCIhrrd+NFYOvVT49z0wnRQg8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":442214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6vt9CRA9TVsSAnZWagAA9CgP/1ub4rZVIk8VZETI+pds\nqZEZ+UXu6YEWBNKpW6+Ef5S/PkRStvTfVAAnP+Z9D3D+I/42WNuqQax57zav\nlEwMmS57uUse1O70N9tsqgdg9pZgMmJEKHCKHj0W/sz/9VJtcKWh/ZacM6HS\nS2Wmql4kq+KpwlH99KZpHaoZAhPTM1+Q4IbDFNt1IJ7n/HSVDapUlKHpS5Pq\nSlDP7sQvjQ7KN8BlwFIZXjPAmIbHbqhm4OYXDOGif7R7zJqIYx0RnnHHcX/y\nRQWPFRtLwZUrOIA6OQSsdA5QyOTYQzi7jtaVbN4ODw7IiYtJKLBOtGGKleM5\nBvvWSulQEL1Yb37ffRABcLvpIaEZSnq804qEYb3r6yDf8FqxziyvSIzqzh+e\ncoi3Bj5bCKkFjPly+8NTCi9TD/kZJwUPrm+PSFdc0o+Q/Z8WfLAYsyPnPlil\nNV/Fa+mUHxa7mVto9CKkc3E6K5pKOsYWfrdSdG8Gqkvn3H5O7HQ118Jw1Cgx\nB3mU/JicpUNwU2hpWxV85RA418v1Lt/8wMzGYUQT5VwbHOhcgaNhfcX3Pgze\nx0V+Yyj1G6rw4UXl+GT974Z8k0QEDmrrnSj348bybpb5Pz6xdD2LPBb07AIr\n86Hg0FG0okTQSaFTEfaRvHD+jLCcOLhknPifscnVXe4LNlNIVlutEgklW/Zr\nAfYs\r\n=IaTq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-beta.5.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-beta.5.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-xov5GqZGeFoIQ7Pibb41bMe2CifqMqacUhnitEwSz1RTcx+aD0pHYgqLh2qKp+kz6BOepos+67OzMxKqcM4Fww==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.1.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":"^1.0.0","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-beta.5_1642789757541_0.08400401018888193","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220124.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220124.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220124.1","maintainers":[{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"4ae721e4632086691dfd3327873fa241742bd8f5","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220124.1.tgz","fileCount":33,"integrity":"sha512-VAWbzO4Y2wvCHsPiOVR05J1zE9rKu6JcgxTIDQWN8IptRyq22G9GEMAxBSP6RCUBZlQMzsA1OOheBom2qwSWNg==","signatures":[{"sig":"MEYCIQCrKEkEbxcx1/7ShsJcDwjmxKrodvU95WLWACJ4ng29FQIhAObGOpN2HcLzgMOdHAdUXbbuClYKBqdyfrWORvUdXEAw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":442371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7umjCRA9TVsSAnZWagAAe+YP/iWNDbFDEQMgnKvExsto\n4EhFyota/QtLsAdur20NxngSibBj55eIfUaMJViAPlMMxmj3ow8a3xKnk9kJ\n6PvoGH6XKLkIB7j4OEsAb6TnEzWwgqSA2y0zVcfipDCxDQ7kdPj8t0/Cp8sR\nIPyjkCA4zYdIcC4AwwgUsDm84oomHkwTqMYLymyOUdJpfve338zpN9XEVOOA\nxmh/mRCk2Q/j7e+D53cAENofAOb82Ny0uZzFEbssaTFiFRFR6ekobTRpNanS\npAqQDpuYmpDG3nNsOebXJjTKnufw+8dQH0vTcTpOhmvXFeNFLNQqqvPKXNI1\ndHfw8yMlwYgnSRKrwSnJdySiTPIE/GgByUtmcDhm2+ESLTsccg/bKq+uH95w\n1825Fo6V9qulBNlll6hvG1wZp0Bg5IgUts5dA10Eo7slOvYFStI6hL6rGpao\nWUAad7efzwgITVyBwp7AK1nbTH2vVKjOVhKqia1+XDh+YAol1bTiQLRJltxX\nkWRmXl+pFCwduJsGR5OiQwFxco5juu7uSKGNT/emYJKF8mJq/SqT1FFGhCJs\nBpBFV4tedmNeKACLg+7Xr4W6lOX2+yboC0cPyhU4fb68s+Oy+DspDHqR/wOx\n11NDJsTzB2h1HMxK/uhZyx/UXkHVNJCdhzZl20BWj8uBmXFqxa+XWX8a7OPO\n5oPP\r\n=zWzG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220124.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220124.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-VAWbzO4Y2wvCHsPiOVR05J1zE9rKu6JcgxTIDQWN8IptRyq22G9GEMAxBSP6RCUBZlQMzsA1OOheBom2qwSWNg==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.1.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220124.1_1643047330862_0.7271648149284708","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220131.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220131.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220131.1","maintainers":[{"name":"christopheranderson","email":"chrande@outlook.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"38942a2a23ff656b741602fb6163013fcbb0de75","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220131.1.tgz","fileCount":33,"integrity":"sha512-l7L2wek2vrN6EWnj5DIe7bzToq95Vw4oi22XK0AZwZVhuFFCXgyjQym9DdEri9S3Y4R8dl8cKhX8Z/pl671EgQ==","signatures":[{"sig":"MEUCIQCMURyxdrC+rTc6gDgfawPiPNNawWrGus0nISs3irWJQQIgHFLsj+DjwnMuWslQ+Y34E72MWW086kdJZA8LwTh4ZIs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+CMDCRA9TVsSAnZWagAAKr4P/2UqgU+hUdv5qns781z9\nvYv85RdOqEA4TuGZ+LmJ55zRxfbd/MXFvLSvDqti2HnNTdSb194aO3jvBQEs\n9SHw/3EhMo4zDkLgGtECKN8m9DMCdzIMHY9BsS8q8hp1rOnSE/IDSMLGnHS4\nOiyvQqGWIcQmz8Lxo1+n7IJfEQT6ND+FeqrvZoq75wMWzwA6+TtWRJ93M8fn\nuzsOwTKsF1dRnLEWkZF1Csa3Dw1J+MRgE3am4Rumg16zwk5rcwQplRdxetqA\n7wy4k8b7pKn7Nu6xcW0yihq++g/xxnbmooudtillXdPMTmDUcZjwkdJtMDU8\nbPDA4jfwqxdTUKdluqL+hfFOz3atH4go1BtECxUE9c0UoTPIFqok2qiMi1hg\nDn3HYWEb2wz824FSfiZNNq30PkrOd+Xgj4DHeDwc+vSr9/bAH/k71ADG4HvC\nb1z9rHDhqBLFmKBY5jCMLHchJfZEAblGAUZl1+ji+2tHolpjBUxpb1MWJVrt\nlBgqfoQSxzg36t6pfkv1ZqZiWBm0OuucSejFkpV469Q8pOPqM4thYzY9eudP\nRyIQ6ZUHN5OoRPhoyCSdse7JJ62Hz2nMY3K/mXgeYye4q7MRayldHI369mNR\nQx6kMYejzDfZg2wiu6RnTVmuk4zOpn6Re33WW7y0SPv1EUZn7im8QlP6+cWw\ngOHp\r\n=I9yu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220131.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220131.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-l7L2wek2vrN6EWnj5DIe7bzToq95Vw4oi22XK0AZwZVhuFFCXgyjQym9DdEri9S3Y4R8dl8cKhX8Z/pl671EgQ==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.1.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220131.1_1643651843624_0.28612511202436397","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220308.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220308.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220308.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"0bba568a4eba309b7b2ccad81103233b4dc96b1f","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220308.1.tgz","fileCount":33,"integrity":"sha512-v58I39bVHNvqwUnrAkDukUVix3V+4Dt7+eiCV1dOiiJ7sCRWoLkWgkAqDbkyrWQwxMFIFVQgRTAGRA9LhMFkUg==","signatures":[{"sig":"MEYCIQDsx2bwg9AYMNK/gfZD4msDmF1i6JnHM+GwAr5tANWccgIhAJ1lJ68Bb5pU/i1RWREwRGAWDH49M5H1jE5B/NQbPi0M","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":452474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJ5ozACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9og/+OkG1mzDE023LybyWoX6KFAltp6bvBRZ3tyrMD/w9u0nswJ/u\r\nylzQ/tVyWsipYSfzzq/FPIBUnHAhK0TI6yj4OhkOBtPyEw7MrQEgRYikDVIx\r\nFDZea33aiwE0novSAJnpEz2vhZhHUVmxsKe3dtDtMR8UNkWqWb7h4I98NKni\r\njUm4FaCITTw5pRLOVwUJz6FKvFsHOvrAnoU0I6jedkrGH2Ixu4WDdM1GVxM7\r\nF80NsJDmYV17y6XHnxnI7J/1Sf1RqGDKK5s1q6JVTCvokBty+hNlay53mvbP\r\nf2YGuUxTkaAkF+h6v1kt+DQ99X5Hi7foRTnTOO5rTermonHyLdaOesagb1kL\r\nYAGDAqXuvq7KPoWWAeOyaMvgvb+eer89M6dk19BscEqSlcHbvieCsM6kXFPY\r\nNpXN9eFq8jSWsnM0FjZVgBFhdR6vdsZmN2Ry8eE2OgpJU7cpdc073NlVKzFo\r\n0gXzAdNaxRLH2V2/FQAg2QCeR3m+Gu2RzW1s9BeKYAjJwk/9AQJXZllAM5Xn\r\nif2SLjEX20H3htuk3pTxkv+swn4v6AXSgRDbY8y/mJbjNuGV2h2hAfs4mccw\r\n7IfAQNHR7Ev/REP2zdTblKt57HTTtBKaQqMI2m6aagGqNYvEMzpWV9oIQy+F\r\n74Q5htq56fpXUlaGsUfDRwzfR41Xm/Q18G0=\r\n=3jKS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220308.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220308.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-v58I39bVHNvqwUnrAkDukUVix3V+4Dt7+eiCV1dOiiJ7sCRWoLkWgkAqDbkyrWQwxMFIFVQgRTAGRA9LhMFkUg==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.3.1","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220308.1_1646762547436_0.2720257635403054","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220309.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220309.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220309.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"e50d6c701e236f15b913ed6f969219f3513eccdf","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220309.1.tgz","fileCount":33,"integrity":"sha512-lttB43jC2I5SFzkXnlTeAXNONV1l/TaUqXHXolx1K4ZvR61JstnO/yVFcyN9Vm0zMtVvq/pH+WOD7UQyM7JxQA==","signatures":[{"sig":"MEYCIQDtYhmeL+4ur8DZLutQnKn5VBhmFv0eroN5gf9IC8xG1wIhAL2ycuvQYqFNdwWb++NI4zO4ESmrhc93qrUEsNj268tj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKOqSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoctxAAkUP2P1I9EUl+Zn9DIYi8EBW/2ohd5yAW1lke2pO+UBl4vKfF\r\npxD5cMhSdQXLdxLT0zMR/gNfDJPs8Q4ceozyUE6MjA1LYMrFp7o0oZB1m7Nb\r\n8UF1chypRtuZj7ZJLV2incKD8o6boYC47thEoY6Kx5jSgApXJWNnBfedxKPu\r\nObfiM0L+nHqk2NQKTAYQT1PHkfhK+C1qg25y2lRYi9LvvJ7MR6CNFcKpBPd3\r\n7CS3JU26sxaE/nuP0qNfa/2p53f4dALw2RdBpQrGg+th4yYiGvyiJHIPoJOe\r\niwiKbccwTZqXeaT5tOX8l2Ip1Udp7xts2UWIk25a0AoirOnU3y3ymc4pries\r\nW+9cxSOMmxLlSPphj0PrjjAL8NiWaEYJqtg6seYrMMfxpth1ahp4ixCVENut\r\naXsZN+k0++Xm4HVwoiPTVaigKgL9AFUQT6bz4OAgD4HVcPV5IjddRUyS4cmZ\r\nbg2xP1zkGSqIPkVMOfbB2MRMR7WQZxMXcrJZcF/aG6ZRNiUWvOA9T8pyviYB\r\nRgRlltYbFwpaPZcmyJ7emcK8js5yWY/d5Qvxyr/Wag7Qha+Dkh1Jn7LQPCuZ\r\nHcC5aT5yYDx5UrZlBPAN3qSAjHl5Ohf5fCrVkCUzsYQkjmPgCRglqMjWMIaG\r\nAk8UmlUrrEZEorLxmlwak0u63hwR3AToFN4=\r\n=ih9S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220309.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220309.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-lttB43jC2I5SFzkXnlTeAXNONV1l/TaUqXHXolx1K4ZvR61JstnO/yVFcyN9Vm0zMtVvq/pH+WOD7UQyM7JxQA==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.3.1","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220309.1_1646848658584_0.8864266384274573","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220310.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220310.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220310.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"b872fee83cf6ba00de31d5d984fc4743263d1f70","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220310.1.tgz","fileCount":33,"integrity":"sha512-Oz7ZgeeJT3RXL5adljh8/+R6J/UPTn4hEfy557ZzygGNePdKwbMCblXjALqrTYBanfQv5j9gI/iW8Cw18JHtYA==","signatures":[{"sig":"MEUCIByWM+seYtpyamWV5eHuvmR0LgTfPikB/a+oZ4F5Z4PXAiEA2IXfDzmNA0fTmD4zQHdAUTjSIDAANyDjk8s3gW8s8sI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":452474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKjzsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRug//YOdoiakCmPbznvF7kI5ppg1c13mBF7ZMhLl65kM5D4RWKNFg\r\nW8jW9Tz4p6flVD78gIUKAFbyGWm6OqHPvcThJrmixcCsrGYOYyY4X0vnshly\r\nrYUBncojoD4D51DlgBKnhCZ/vj1ERkbCWwnjQ80FaC1xTIjXObGsRt5YwAW7\r\ngNN50bX+/rhDIruUv6Yai8j7ali/d+huuZ0wKGwbP0a380a5sqnRq7CiNL6X\r\n+MkXVAngnJMoS48bBrODMSQntHpa+NTUq0ShoISJ2dJzvD1sMKj0pZ3wz/ci\r\neHuOZnO26NqGv/VAX9jcFBN1W5mFs645Er2CB/u4Dc3kliCtif/vhHY5fP0I\r\nnD/KdHknLDXaOHjK7VP6gxL8coLKZUPpt34OQ81nR2LO0mPkjlwLVgCLguRW\r\nn2wdfZNJek9GmKh2rozYNxwPywPfbqAE5AclMjy+yt4KW3XrwV/zbZY49iK6\r\nZiukzGjRlZWVTc6s1OW+cYlgVXTRgYZcbmNtjIB4paqBonYp5Eo8MyzRBf3Q\r\n3PadxbQOkCudMzIkFIu/LA1fS8qJUSPvPVVbdzLbaM9arfPaDPjIf7bF2Uq8\r\n19zOwsKDnBu6JDHjImBBZT7n8tS6WTndfDeuSRRNM5KpnTsTSpMCqI1RCT0v\r\n9W+PPxT6DNEvagHGp7mBEsY4cL8ud+kgJ6c=\r\n=P/E8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220310.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220310.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-Oz7ZgeeJT3RXL5adljh8/+R6J/UPTn4hEfy557ZzygGNePdKwbMCblXjALqrTYBanfQv5j9gI/iW8Cw18JHtYA==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.3.1","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220310.1_1646935276390_0.47559000626085224","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220315.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220315.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220315.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"bae521845871a01ee28442134cdbd3a5eb0d1249","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220315.1.tgz","fileCount":33,"integrity":"sha512-DsnLmOvm9AsaUwhiWL/DqIEc9/Ystd3aIUNEWNPMwmhTx18AkWdnYYQlHJwWpLCZbH+/FOwgUUK8TP1x7lblKQ==","signatures":[{"sig":"MEYCIQD3o85rkqn1EdfQFXuJtqx2ULi+ecABYcYHBhmXU/SK1QIhANJq+ZkU2U0qMzXhdQvdoE0T/NlWDNf9oxASoMZ2BBXB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMMXMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq16A/+LupOaIaeYh9HJfwKTDLmoJ1cCvIqUbun/fCf9ziEeYDjW6eB\r\nq7NPUu3zkBRu+FfTk0+LctjQ4xEmOWgO1dJjGvdDlB4G2J9t1OREnauSOSAy\r\nRMmMwTODrfnU7uCb8/WwbMtnbSbOKxKUJfSQHp7yxxBe+IosZtYgTdIZ21AB\r\nk2YsYZPD658heX0yZOx5fODSJjPUKu770VnZwLDm2ZPKIEBEDenRZtg3ikGi\r\njE4S2Gp5TLxR9g3d9v/7roWcOZ+1grCc/CZIOLHggK7w8QLvtbz/MgFznACu\r\nJStCB/3wLRWBMhkaPHboOVpZ/2nSwnpn50epU3HV/H/wJhSiDSCWyixWM3IP\r\n85WFRY8B9bfPzO40DLoT9YXAg/tHuIR521wIAkZstNuaBKdSIRZWUHB0lZ2J\r\nonBgagmsch/cuOTdmnrt5cRe5OpAF8ZNRMWXNlntF5qxHkusOSw4zrIbewTD\r\nVFhs/F7apWNEG2zxmC5dghBx2hUFFepV/Y8Pnrn6jZAp9Eyz7JggBAcNTWkk\r\n1XQS8D3CK3kiz1fR3ksOkbalcSKk3I9Qbf2gqVvvqawSPFRMQbm0Y/Q9rgNe\r\n/CfpOBpC80VP4tvsumpGOMv61vXHLVJbcj7SAIY088Y13PfSbgKegeSuDsgn\r\nwZs5QYGB2ugfzaQmKN3l53x5d57vKCkAMWQ=\r\n=hJil\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220315.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220315.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-DsnLmOvm9AsaUwhiWL/DqIEc9/Ystd3aIUNEWNPMwmhTx18AkWdnYYQlHJwWpLCZbH+/FOwgUUK8TP1x7lblKQ==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.3.1","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220315.1_1647363532763_0.109816212627039","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220321.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220321.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220321.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"7c518792b8b813b1e83604322524d62ff60a302f","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220321.1.tgz","fileCount":33,"integrity":"sha512-5qnJOjsXJU8UhH05Y8D99dr9VSbKbA/TcpZJR5t7K3NfL2nZN0CJ0SNu0vBdHC42sd4mjEbgxH1bEL3R2bOpew==","signatures":[{"sig":"MEQCIC1ZrL2XsKbNE+f5Quz78SJxy4i19iQGdfeotcw/5UDTAiAfy0Q9IV3dqXmGrNrx8ZQO0/qI3NJF65H72DEjv7G6PQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":452474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOK6HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0ZA//Q0Vz9C/0p4SoGP4bJ99Wp6MNclor/TkR74iKdjttw5Ow4qW8\r\nREVFsjTkimQVfK8nnyzn6wO4seM/Ar3+tvfTDVi0l/mtRhfk1hvHjkqNWZls\r\nq/Ijwk/bF9OizSH6/5samoHlWtaDFC7aa8HmqEQfIW4Iabyq1nu9+0FEFlQo\r\n2dTNtX9vKLuE2k/bfPIvCA7WTD8qmCRMz86qCI3ZxXZoy/ybHirNDFzoueN5\r\nekLxpxQVlknj9/UuwZEp615qihWPsFxYeq9FCCDC4DLuYjSa5khMYc4V1bh/\r\nErcs2WoBTsS0yZBYvVZU2s+xSrGlOiTXQO2vwFxKMz+y4AF+uDb7BEI+Bmgb\r\nkCKovtIiuyFQrwEOeUiYR+K/d5q39UqZokvJXANrF3GctBLVlJo6n6tpmnD1\r\nJjTXlz67TXL3UAUfPuR51fQ0gyS9xKYX1IQC1fVh7nbDZf/uhm2N28Z5rSBU\r\nLVjbePTDuGpimXAFE24XfyZsgIn0SkzjIMFO6p2fS4K2xTZTt0Mm2g1MIjbB\r\nXbuDycSVZgSh97vhQgXRyc8SkNyu23MWtzfmuMCuoR/nxz4MIesAG+XIsOfv\r\nEx+Qoecjcd5S26p0UDue+HG2YE7v9obhqwy5sNyG9BYnHCVdmfuJAAu4db9z\r\nWn04ZFVrTvgLTvKmgaE/uAdhgqtPgw5i9Us=\r\n=QuTv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220321.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220321.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-5qnJOjsXJU8UhH05Y8D99dr9VSbKbA/TcpZJR5t7K3NfL2nZN0CJ0SNu0vBdHC42sd4mjEbgxH1bEL3R2bOpew==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.5.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220321.1_1647881863007_0.6077095029697082","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220331.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220331.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220331.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"d387f6a48fc1c77e960abab15e40c3d0ba811978","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220331.1.tgz","fileCount":33,"integrity":"sha512-MrMYP9t8hjET25Y1dIXV+HZhyGaFpdE9SJ1VWgiAYLch+QapECRK8oaGa2LldXvM0jp6CnOgkgqmxCMx8W3Z9g==","signatures":[{"sig":"MEUCIQCWPwsdQ2GH2xqc3hSBJdJMrf/gc73KePx0MKtpgrIw1QIgGWNXMVU+2wm1SJEpWp7uwNOs5LtmRj3HjKsgem5htB8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRd4WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmou7A/+K+lj7G/9psrKs7SMTc3MorL9liTP02VgB7qsrmMt9ONER4PV\r\n8SSI4JnUGfDst1HNjKFhlnZs/LR7hn3fEOwCc7rXpZ+xnxkAAijwzfdR1QLG\r\n5+4axaTOLcsrd3xUz6BZ1t6sm7sMVEtMLNXDcP8XxQ4842SQd3r+pniz/vIR\r\nThrvKL8HMr4f9T3vrx9R1SiIldIlu1O1wTpRo/0G8flhnlwdyXPAqxUGbFkT\r\nLiq9QAYvr8yPjcK9oDpK9uZ4WKHhS2aQ+2+cEelt6Y5IqMcm5jaFVPsUbqwc\r\nwb4IeYkgMurnj8z6uT0nkNzckDD7BhyWQ0GmystmxJVWylcc0EswKpgDLXNt\r\nul+sTArhVMDu+w2VSZdb/fYpxWD7YMxqaLbuBc1Ie9hRxQltzxs5klsPXKh8\r\ngtrTWXEWK33rznAaSAKErGNia6+0mP9dOiOULY/xBus19E1Sc1GkD7xLJpNi\r\nL/gYclyKBoC2OQaqsh8fDxZtfsSbvBrZ5vJ1NGGtjuGPxJBJ8rL/CVXk3utB\r\nQBcPSNtxqaX2wuR8tC4uG9Q1dADiynp4bh0pFX0slIIGSKkkLQy4B05/VmEr\r\nB3IH+9A0zhqKxgVxxYpPDHrEDR5Nsmu6kJqIDqh6hiFkVFPmSkS2Nd6PrwtI\r\nHHjzOr+JD25/lSr4fvrwKL0CR7x8PrRrMM4=\r\n=rsOM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220331.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220331.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-MrMYP9t8hjET25Y1dIXV+HZhyGaFpdE9SJ1VWgiAYLch+QapECRK8oaGa2LldXvM0jp6CnOgkgqmxCMx8W3Z9g==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.5.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220331.1_1648746006194_0.2637926715410921","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220401.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220401.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220401.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"62c09e2f95656b922531b9cce6ca15c3d2223c8d","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220401.1.tgz","fileCount":33,"integrity":"sha512-e0FIpq6390mz/YFjDyYl/cuxPl27CMmosw1WRpzR5Yr7a+Kvy4JWYtqqbWa7xLCFSbuwitS87r8QwW5ORr2zZQ==","signatures":[{"sig":"MEQCID9spEaWw1lsjKjwd+PF9aw9m3N4XkT3UWJYhuclK7o8AiBj+5n5wcep9vYHnqqGL+aACfHWhudj7kO/ohxLdOluvw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":452474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRy+3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMsBAAjL3pyoH7foCyDfSwcmbiw7rdxmtEYHqE660K+KhDk5CpABs7\r\nWFR7vOZVj/IRg3MQWIpPtJ1DeVmtj1waPRgW15DVq/k9egAizw5dSFG7DAg1\r\nhbDk33hjiULD5tEsCkITv+I4bgM5vbhGlgD/fn4BrAKEkX2wU3w2S+yoSTCL\r\nMY0vOivqLJbT8x34eaxjHgc/VyPhsgPS5Pvfd3i4Wo6UBotHge+SetnQb/WY\r\nqm3I2TRTEGzUbTzW0JYkKPnr8q4rerDuo4bsPHoOaHUe0TfLuselVgf9LNyH\r\nW4apIaU7K390HWGE0a8gMitqiSXqjl6XnjVpDIMiBb2mXk98h5DE/AKXt52G\r\nRQV3MQSars/GhuALmMs1eds0x+/E2v9fyidYaR1zU2hWXhD4zX7zahQK3tQ5\r\nTIK+75H87MXlesZxaX84S0mpxqQRvWVqcDmtBQnQWPm/fSEnhcd8V2+tjyr4\r\nMY6ieucMBmjVZdhJRSLBdgjkgppoXAFHoCfTIc8q6xuhGXM6kHqaVCccGBvm\r\nSOt8PNuwxhzWR9io6ooOBF19BNulzsOgz6WkTT7G+o7Kh6sUyVX2lgCUVY44\r\n4XbLlIdLHwAJ5uthon2GzY3WWjFvUgVAY8IkQM6qgFyFqQUsbXW72UQwDy3N\r\nKACmSiEFGFk8/l1eJy6F0paSSkaN5i/0Vf0=\r\n=++35\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220401.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220401.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-e0FIpq6390mz/YFjDyYl/cuxPl27CMmosw1WRpzR5Yr7a+Kvy4JWYtqqbWa7xLCFSbuwitS87r8QwW5ORr2zZQ==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.5.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220401.1_1648832439590_0.5816205788609885","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220406.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220406.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220406.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"15a4a06bd10f7a5afd61c214053673db44e109cf","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220406.1.tgz","fileCount":33,"integrity":"sha512-F+D3SkbQRem8qgKXVGF8PeKMFKjMhuswDCKhb1jWgtUuyRfA3pcrqAr16ENCUmeLPhkVY6AMrCaeL2f+a0bXpg==","signatures":[{"sig":"MEUCIBu/pBRCyvInsXG5g2tAraOj2Pdb18MHcQ3AO2FVbq8aAiEAr01gnCbXKWVD3E2lxsah2TsNTMsBlkGPab97/ejvy6o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":443120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTcdDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMuA/+NCCdGOpp0mAD47lJ99yo4fLJ/xBV5RKwPZ11VZzTKECCNQwW\r\nrqqNPSASWjHv8WWfldZ/WmyIqnrWEY8C0JnRivwRgubggW8jTOt3LopbjtVC\r\neKjmsbCI8qDOlz5WD9wkMMcJYVMnqLOc3LQWyUsFliIeZeu71z05TGDVaMY9\r\nhz4WUGDleRlytwDmjtWNzw59EJ+dlS+9XDtJHp5SkDAkvCWaF4MEo6RghfHd\r\nt75bwAYJZwAh2aw8rc5Hy9Zh/+NmKrNibjS79Jcd6nRllJw0TSrh0EQqY3To\r\n0TBGoBi1NHQKcIYg/pnyMHMONg71fxYo6riqYYqg+kHetZYtFqZhWFb9qSfs\r\nNt6RrVfUmu6lD4EML+aOYitSddhdG6AdQYPITY52a4TUa42qE1yifneKVxGU\r\ncPLqHKCfoLxBfN6o2MH5uxDTx0AITWoCBAz3m5tAZCPlyJlOGbHKIQbVPmWo\r\n3dxY8R9l4t1ebms21O7y6ut2JSzu36QfcpaO2I2pl+Sw7WFFK2k+nbcPl2zg\r\nKL5LDmkLk4PSosF9MswlCgPMF5WJnMSd6OEXtQ9VxtXUSrFscM37Yk/BFXMT\r\newlTDB1UjSYEovIWLhbVno28B8JtxA/CY7dSphyaKYARTmjeql3/PPnUYj7Z\r\nOKhfq+S1A8O+p7AMCfbFv317hGgRQ0Cwkh4=\r\n=ohb7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220406.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220406.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-F+D3SkbQRem8qgKXVGF8PeKMFKjMhuswDCKhb1jWgtUuyRfA3pcrqAr16ENCUmeLPhkVY6AMrCaeL2f+a0bXpg==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.5.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220406.1_1649264451073_0.7813359133354361","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220407.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220407.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220407.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"9d0000dbc5e82cbca9a9750bf91af6817e75a6e0","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220407.1.tgz","fileCount":33,"integrity":"sha512-nrVzaLYH89Xks52o7YCz4f2Q/9t+Uf7m4o3CqY2X9TJDvHC2rE7bKRPV484T0LGXLAK34ZGlGdgX5jJR5Lx4mA==","signatures":[{"sig":"MEYCIQDd/NOf71967yb0RgFN1tdfXF2twX8CNTnVtXfyQfok4gIhAIIJvuTdHiz0hGhWM7r67giBzc3feTI0tlWi69MAA/Ds","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":452474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTxnJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3hA//TQdZ1xITxPM8QwVQqLqRVMgULCDBAsCdjR7htZTCiLBfltUf\r\nhObazrbRaLNkmRrp2+CGD2ClOXBMdPGdsQemtaZGPXUfNFgdZtmqN0xBPagt\r\nEpoaMXNk8Wm2daAXS+nnn69yFsyOv9dTHFHcM9TOtbXVtrLlsTQ4tDzyi9FB\r\nQ+0ApIFSxeIS4szWZnEBH91Mzf9H7jtUPmYf5StgBSGZN6uDbQ9PS4am1SoN\r\na4fa4x3vfmIm3l4TawS7mL5a67gftyCfSzxO7UCfVfhQ9QkFX2mATpFOYEx7\r\nHWDRlzPqMcAXGHL5tyb9WaQiyohi5JxoHCdKPmHa1j5HU/3VC7K6gpKhWZQt\r\n8LBUhZAApDaJf1N1+1U4O3QXGVPG6n84Ttv0E/FVlx5nywgZPYI+3oX9MgJ6\r\ncz5uZN+dpNk1Lb87OuENFkVLK13du7cmnZNT1LORemeX4zwZ3420Gwb9+yxW\r\nujTX4CNVZX2QwGhGH1rSwAv/ZQK2kmUEfAnsBiD4GWJZRUxO+3r4dcSzdaoI\r\n8Qd8fdHchJTGWdigSJV+PLbl5RaaQ3ZHnVpoKcQqnC0C8j5IhjLBY0Nh/eBR\r\nJwh8bAuQRkazVMqeFRiclUKMPlXlgdlPaUfdNkG2r5JXl+diOFCeftN62JtF\r\nMYtv9bbRAbi+th3mUFJXgLeUFiykbsi0oBk=\r\n=AWWL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220407.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220407.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-nrVzaLYH89Xks52o7YCz4f2Q/9t+Uf7m4o3CqY2X9TJDvHC2rE7bKRPV484T0LGXLAK34ZGlGdgX5jJR5Lx4mA==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.5.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220407.1_1649351113160_0.8010854495851347","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220420.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220420.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220420.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"1ab25c56cfdc794b6627b28eca81cd705c2aeef6","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220420.1.tgz","fileCount":33,"integrity":"sha512-moRMDx//1s/2yg5sn66carw46Z7MJ16AeHz4muQTFtAjkht/yznQHITWolmycAw8rRNqt3xhyMGWtetKNt+TNw==","signatures":[{"sig":"MEQCIAxnhHQvI5iMsKZXP8PF2N12L4lsmqdGmK6mFwwMg8f+AiALGX6D4nKCR5uStS/m6P3ju5Uc7oFd56nlGAL3UR3ntA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":452618,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYDurACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogBA/9HNTF4PAKt8IOEfpO2jHk/7LaaRtcZizYSFZxYN90aNeMF3v0\r\nXjISxD8YPU50mHb+I5haFRTydbuyGjk0KTpVyWpR42Vz9PNK803Ym1PrgDlV\r\nP52y0dEdzIsQOw4jz8E1JpoVGom0z/MOwCtpLiA70uFVEVJWewxMH5fEOcT6\r\nvdROq85xruKEgHkiFfrxho/34tWyPquNfi+/OqrBYQghTtSlfOn3Qc4Rzitn\r\nKCkUQjsqKqoKuzZkTR2r2Bs+lVRlZeTe85dRnnyuf40Q+tvVAYxMPkBbP+ho\r\nVq0Xame27AmdxqK53WVJ6U1tf6TC9SDCh2kiKCVY5GcMSP/hf7dvI8Va/Pul\r\n8p+9ZSuDPdnehJ9zsoqNp2zSCqmz0mIzvAlonPgKy9O18MVxr7AxbDgN9xMm\r\npHJ1csL7+vQ2TTWS0jrHkKJ5es+9v2q/Qg7zhU818+IpvLl7Q5mVXX6OzXwK\r\nZBBYt8MViFwpfrSmdHqxY44JbZLp5TZoz5X4kp10atB06zqvOchNZpW55Gp5\r\nsa+AJyfvkn+g4RziKDUsWE3xiEDf/eeT7kT00FvuL4TyMXBkJ40ZCif2m5rA\r\nlR893/iM0ApV8QtLSQkNUT7y/zy2PLUq89GqcsUMs9WR8Oyz2IbjhUwmhWB8\r\ntPcumMDhUy2vy57SXA/rdaPAw/eROATDOh0=\r\n=iEmG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220420.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220420.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-moRMDx//1s/2yg5sn66carw46Z7MJ16AeHz4muQTFtAjkht/yznQHITWolmycAw8rRNqt3xhyMGWtetKNt+TNw==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.5.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220420.1_1650473899827_0.26148015174247496","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220421.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220421.1","keywords":["azure","cloud","typescript"],"author":"Microsoft Corporation","license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220421.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"4fadbf2302f8769e8eb805b1a8ff76103615f9eb","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220421.1.tgz","fileCount":33,"integrity":"sha512-BdA/93GsOXe1OF1m2IATnY5J3dr4WR0w139YKfAMAmR4b+ein5vxh5ENPsj3a5XNmVsvjWBPaiZoNMAyCHlRmQ==","signatures":[{"sig":"MEUCIES6/V2R5LvkBrDBlowWI2Y7TbcSbKpCQ1G+MmEKNK1GAiEA3PX/Uk17XH945i2Ep28Gxum3kJoW/yrkrfdENVJ4zTc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":452617,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYY2VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSMQ/+I2PqV9+Gc/2Zc5qR3jOTBJV9slpRCZIHNC7ytBaL/q0Y4VjH\r\nTWeWacaQ3jnKLTFC8JvkEjqfg1cFRU/jkq2N2Ph669CShA1B3ceyBlBCo6M2\r\nLUdVaqdKaJvprMsKHztYE+ewhpzDho0W6q8MJa35YidlICRuQEHD5EcT8473\r\nSlAAaWLaU0j9NjvIssIaLhv84LnNLe+aQ2NU9eGwhEyk0QzLa4rZn6nnaqdN\r\nQQOPv8Jbl0I3nRtBUpFepe6ae7duKdtl5HyYiRyPDNJRWPT9xI5NKSzryKQO\r\nbggV9mcUxOa+LjzEaBhZlhzmNqyYeooFmFGxRFcfllZXxVruB2m4H+4uKnFV\r\n9zcPRMtiTUu0xDOC3EnTHOCTFbuQyVNCxAGjr8ge/5kTp9jp1iFP3BQHpwJG\r\ntDKd8Vc6wV95By9tRdBpf0tlc9FxPnx8KsxKxsBGhBGblIH2dcoa0VAMZZJe\r\nG/mczOEDaHStmAgA1wJBNJpnVEKvo0HtyTwaPKQxVxbXDlISQD8eWH8jjFbB\r\nZhKPTsLBG8AbjFhHTfwd+9o+Kvb4GPLRnm4h+iyceJIhFHm8hC9yIIj/dI3x\r\ngi/B4mP7IRy61pBIfsEE0HXW8ApMqcVLj8O/3wPXmb+bU9KZsj0WhlNvkQ6b\r\nf6qn9AxL1XXgFk21MR9MMTnQUyMCeACnfxg=\r\n=fISi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220421.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220421.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-BdA/93GsOXe1OF1m2IATnY5J3dr4WR0w139YKfAMAmR4b+ein5vxh5ENPsj3a5XNmVsvjWBPaiZoNMAyCHlRmQ==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":"github:Azure/azure-sdk-for-js","_npmVersion":"8.5.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.14.2","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220421.1_1650560405241_0.5212455601713368","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220517.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220517.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220517.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"ec64eb5607ecfc9526757522437055f4d7596a4f","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220517.1.tgz","fileCount":32,"integrity":"sha512-pj19yjmETmbdg8Fc0oKwOGQa2prAVWTp0nRaEBzuQBnimiTRKe56qyVibJ0G+8n7LU9PP5bsPAhtFymCUo6FlA==","signatures":[{"sig":"MEQCIFgkKPZUHi6REeKcJNI8+sJ+91HZbs4Ttenj3Vu9SPf2AiBmn1yPqt5v/8eIL136Z/iY4vU634wR3LANPsxXGpDatA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":451088,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJig9Q3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAyw/+N3wXKzx3uEsbTSRzYeNZuZdcxZ1ADV6WPm+Bl6lnP6sBOLa7\r\nrxdCXfaFoLD4M2p8P+R9s0kmWetoyloGKh+zo2RJIHP8cffV5w/Au57Wp4V2\r\nc7r00v3LtWSrax1FBdczdjR3NIM6u9BdPkGPxF8IykpFGy8rXjPEegJjk43G\r\nDv3XuZgvWSeJdSm4uNL0NCeoAHtu2/uTULtSnOTa8TB2W0azVyUhx3EuWNbn\r\nrkXYfSMhyxVFnAdnWCky1lxKmbytqelyS11diXJTdHC6v37acmEjQ0a3IuZG\r\nBt6DpVU7iKb/YWfM9sjTDhboP9D7+FoIG6y84a4QzEfVIzZAi1Av1jwKN3SQ\r\nFIWgMtYMP+dXj9jPML9SUg+G99OYUAhkkph9LrOLojaJOrFlsi5ZK1uYxV7W\r\nXaxZY7dMtpicaAGwC8/YWW/BjOaCkzv4u9a22mwCFi3raufWdBp5dlZDsCBG\r\nQXN9kIWC6aRWQCaOMKyBGcoV1Ho3McGRaHhNydS2gb7W2geBaQfNA/pei28O\r\n53HqTi9YTRpnCRSmiGppKl3jrESAxNHiqFSb4mj+BV+DKc9mLNur2A7nXSxP\r\nL+rjxjsFtIB0NryZjEIey4Z3t/s1YpJJKvJGs2NgFrrdsbJ059SQhkl4pJWD\r\n+dcFAZC0ra5SDq6+ta66XVHZUtpmw1O+gws=\r\n=oyLE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220517.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220517.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-pj19yjmETmbdg8Fc0oKwOGQa2prAVWTp0nRaEBzuQBnimiTRKe56qyVibJ0G+8n7LU9PP5bsPAhtFymCUo6FlA==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"8.5.5","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.15.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^7.15.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220517.1_1652806711436_0.597815967834904","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220523.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220523.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220523.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"ada386e21b52a68f4392b74164abf4cfe9cee92e","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220523.1.tgz","fileCount":32,"integrity":"sha512-5STOx2dlp97HPFOhr6OfuGYTfMDy18TND17LZlRkpiNbLahkb1b0UvJhsIFCMgcaH9IelNL3eatK4NmEfmzZuA==","signatures":[{"sig":"MEUCIQDlIWA5jIvYbT/apuVRvPog+AGQB7wvhzAWWhs0FwxKQQIgVtS/qGRZovmxkNgOiG6zgHxHJA1YjPQiPp7rv8yPbAU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":451087,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJii71XACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo30w/9FKatRh5NrdululThHwZX4hvRy6PcT1sD6hJktWIJZoKRlNSX\r\niM5To7smIpRHqkxCfpcs7+LH1PQKzBYyyBYq0cEUrY/87YfJ4gSCDhtTci+I\r\nKsgDSJOFpjsDGbZvY2r99Q7CWdnSUpXBaA2ocodRyt7PQzWSph+hG4uN0f37\r\nRWVF+Vc8KO1T95H6G1tWxHCGTWs0T3QVmboa+vXR094Quxuko6FP79oPjLK1\r\nCRwJjX7LzQ1rma/4tUB4bHzyLNss282kUCHKjvx2bEgX7rMgjyj64VCF+6n+\r\nX/c4Sqj1arNf7C2ZoQDUMQjS4JNfO2k6P4ARAvw5/cJsc81AiCimoIG9B7jZ\r\n9ACDKuxsV50miOYGpGWmZUmMmuI/cA/ouyZdm/gkAkcqvI5KVhjFLs8y7saF\r\nSX+3hKbR/mZ82oES/RpvHNyw3+FwWzCcjFzOKKhr+Igdpjc+mSFFg7cJiYf+\r\nDAfmbTRUAwWZ3u5vY9Rr7xBHlCNMjidW6KXMezJ5RngqFmsTmq6DMDiDz+7x\r\n0fH1iR+u3962RoxVLDHKWvdujssukm14wjN2mhw2vKOrdSlRonRoXdC/TL3Q\r\nBhsZocMP2OH18mzEJPhH5uVl55f5wn9jSa6wAMlO3CtevCwRqCjbszMSLZo6\r\nQGpceRlR+CLriXDzxrotwQ0fNEmNp7riarU=\r\n=1Ls9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220523.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220523.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-5STOx2dlp97HPFOhr6OfuGYTfMDy18TND17LZlRkpiNbLahkb1b0UvJhsIFCMgcaH9IelNL3eatK4NmEfmzZuA==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"8.5.5","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.15.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^8.0.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220523.1_1653325142945_0.16541542436134682","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220525.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220525.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220525.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"15a6db9ffe917324c62665d78764d6d78ad6e996","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220525.1.tgz","fileCount":32,"integrity":"sha512-i4fXZAm35Lg/+f9MI2xZ2DAfKdZ85nZgFDzmwoBd3vVxn7CfKrbnolW+f3I0WQ0OGoZjqNYYZN42eFNVtzL5uw==","signatures":[{"sig":"MEQCICMbI4ZVCvs5+x8hqjcO0Q/AJ3H/PfRTlNTFuVjbCcRcAiALuq5i+naZ13IbbsWw3nODMp1+1NDOW2zU67gCo/KDCQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":451144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijl/hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqfow//Wk61FAb9MRHWgVHLnPZJ04pdWyJDlQVJKdEEo5DcbLNyUfwx\r\nmRunb2yb1S/E9xEBQ2v7KrPaJlHP0gRzQ4Zhyn+uQzHDJpYU+WkvRdQ7qbju\r\nqnsHW9yU3+UuvYc1QjwWyqpiYSQ9UXyV5HVkqCt5Z42DjPjkMHbF+Wd7B6tj\r\n5raA3DOP2Sa6+frwvCKDgxt4Gme73Oy1+5e+faByby7s36X/u4/74r9rNwLB\r\nrtBMmJf780EGr8nWq7vPO1UJ8ng94nF/Iu91Y0bCajxKwo2tjetZE6/sRwM4\r\n9vfp2dqSTpgXumeO2o6F6P+Wk6B1C3yHvQHZT+J/x9dSDbt4M1NDqi5PM5k4\r\nkzjyZF4wO8Q0GtxK9n0oDSWxq9wwCBXqQ74GJnb3iTEl1GwIKh75vz0M22SK\r\n/nb5TcqUAlhf54Po/KZtL0e+1G92F7zVbhlf7nObTSSy19AYDXlBo29aZEfi\r\njcigFKWquF29osSpJJXQbxWRNHbrmS+nLsTa0b2vyiX4qJJ5W+/DsyZehoPG\r\nw0VLsV07dInjM2HQhuCbaX7VZN1O8skYn87kxYk2qGdVBQ4MkXRBw7Lis6FZ\r\neu5Ijwd7VRnkUU2ni6Lp2Q4FZRQZdJuBaap51Kj036FeMy300b4kK7sPIm1S\r\nuTsaLFcqSVeO1iXw0MrQ3hZxO+sWnghh32A=\r\n=xEsE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220525.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nconst { setLogLevel } = require(\"@azure/logger\");\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220525.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-i4fXZAm35Lg/+f9MI2xZ2DAfKdZ85nZgFDzmwoBd3vVxn7CfKrbnolW+f3I0WQ0OGoZjqNYYZN42eFNVtzL5uw==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"8.5.5","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.15.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^8.0.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.2.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220525.1_1653497824906_0.25880499076673","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220725.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220725.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220725.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"69eaf6c7abdd7ecf5393ee18a75eddfa94cfd70a","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220725.1.tgz","fileCount":32,"integrity":"sha512-ctRpkLqsTppmP+sZaiZDwiXnzQChkZSjK1y+WQ30E4PTJXdq7gmLAiEaI+mN+yK3+TWlx9o1m5GcHUVQ6uHylw==","signatures":[{"sig":"MEUCIQCMT8nWssiSIMzJL1Gg84drPKh+wTomJcS/1RiiA7bMtgIgEG0cwctuOND0P25v/T/70uKB5j8obRXACBlN8Ap1+Yo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":451144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3s+YACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqbKg//ZkujvjFSwUvQcZxxz7YLhE5Nx9hbv/JXSAyF5Qg65kjz4qPB\r\n1dMbWEJVWJsSdWF2z7GUrIvVtV6cWAgkixeHTpGtZsmYcshV6MiNczelBlPn\r\noR2XkBo02f1v/1yY5Rgn16DY+217CcfOoxEwAWd0TQkIkKctooW09k+kvdXx\r\nDio0y2+DzcVSHOL2Omk3PwUyFkbXPA/3Lf00BK54/yEuA7WNL4M7Lo86c9pQ\r\nfMCQyfMdWrrlQPRNL9NJMZum0FeKo5Yxd3UVnm1SnxgRoPcHHhmZLWG2h1IZ\r\n4mJEqLRU9Ev4PQ4Z+WkZVNlNad/scmB3ylfBUmYklPJ6gYzW7HiiPiqBG2i8\r\nwnzfvGNyd2jIT3y+TcKNzXc8Xv41VjNv8N2BNCh1gu0/qVFAQQcZrdD69Ght\r\nVqMNyZgbMIhvhkdE9MD1QPwe4BteTYpT/BsLIhU43UtetwYvG1C8VjSO3xr5\r\nEo7IZUBVjyOE6HnjqQnk7kOF7YxpEWK5LIK86rrtzAnB3Dme0rt0WPpyIYte\r\ngbxaicHCOd2TBb/W4ug64EQWwvlG4ypIWET0Pqp1EGhIccYq1WSadCjBrBoh\r\nwgZUkmyTXuLC/o+2o6rXAQ6NsnHAnoJb/BEbfKT89Twnxw1N9N+u8pYQzg1Y\r\njBndR/Qhzt7iF5hQcmqfmfcnjGnNMn53V9c=\r\n=uuh/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220725.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://nodejs.org/about/releases/)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nconst { setLogLevel } = require(\"@azure/logger\");\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220725.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-ctRpkLqsTppmP+sZaiZDwiXnzQChkZSjK1y+WQ30E4PTJXdq7gmLAiEaI+mN+yK3+TWlx9o1m5GcHUVQ6uHylw==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"8.11.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.16.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^8.0.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.6.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220725.1_1658769304259_0.26667419359545685","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220920.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220920.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220920.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"a71d658fc2fc6262a49e69cecaf93880ae6cd757","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220920.1.tgz","fileCount":32,"integrity":"sha512-SaB0E7fNcDa5NoYfIABPpm8POfHZjlNYQeG/IQ2K8XZBBfL25Kg+e5KJKpsFqm2ORNqFVoSQ33UY2zeZf27cSg==","signatures":[{"sig":"MEUCIAW1zm+Ln8TTHbsxmTCnK+RGAx69KqDCUDyBuYFjKWqXAiEA3r+TZhsI58eg9CXAf73oAyyi1WEyjQYStEDVJ8KfoVg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":451160,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKfJXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqB1RAAo4bo24DLUJ9w8QDxvffB+rJCsTvODkLgA1PmDJdt1Bfl4hdX\r\nFPUpFUstugS+4oEcwY9RiwLpB6ypiV0aS1ke003I9TudexSppQLjlCYGHYLy\r\ntG5F9Iq101zgOgLfFUOdYbJhD9c1VTLXBIBwrxpbrSnd9qKyJVpZkbGBWo0V\r\njfsb1RNhWqbG0k/uQx/3tiMNy3YWNkYPdGSkTOJiQA0FZzR5auFCKJKCTae0\r\nZIodRomqydz+NMLsGHR/FHLSzV2JM9KI5V6k4sKCuRtO09bQ7vFp+d9IVcw1\r\n4xkaGoZWqi8oA467yanZvxa6uKZoy3OjVdBC/cGjwxM0s8hPkYrFnD2uiep0\r\nUDVGcMrNe55G14OyplJ5mMiW3DAz47HURTllRMRE1+EpTn07GkZPZP4zJn6M\r\nLzHh6psKgyJgkOGBcd99WMa9TFPhcE1BDpGPe3N7q2+Gtf9el+x7epE5n+QM\r\nciM459S2I+VTEf4yo7VAKmV3/IbAHkrDCecS6TG0m6v0oGMSeez0x1CzUjBg\r\nUvEit4lf5MbdU5YK70Xtq20wNdusm19WUz3ySX+hCfnkGwncuwCRqDN3TMFA\r\nmEg+YS0yAqxRf4NXfFinU/iqAwWLOVZ4f7FH77B56BcKZ5i2C99ELwlpajpp\r\nOCrQeU2DpWerxbuLpVqx/S0YppwzR+FFcdI=\r\n=idKM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220920.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nconst { setLogLevel } = require(\"@azure/logger\");\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220920.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-SaB0E7fNcDa5NoYfIABPpm8POfHZjlNYQeG/IQ2K8XZBBfL25Kg+e5KJKpsFqm2ORNqFVoSQ33UY2zeZf27cSg==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"8.15.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.17.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^8.0.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.6.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"7.18.11","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220920.1_1663693399394_0.6390470728234279","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20220923.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20220923.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20220923.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"dfa2b5cad7c51352a5958a43559da5be54dd3094","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20220923.1.tgz","fileCount":32,"integrity":"sha512-f9zZFHDL0DWrKB+0R0R5GhtD0qUOXP34BMf4ukMuuWXKiYj41BvdzPt6Kf+7OmbcI+hhWrgHKXoR6gZLMLiM5w==","signatures":[{"sig":"MEQCIDMmIHb3FjJVV7K98kEQAxtkJEs+SmJO5ZQv4ruc1l03AiAFAMI9pj6ze+vxwWokwjBhgvlkRuRY7hu81FZpRCfkiA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":451160,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLearACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMRQ//fmXWo5FabdONVQW9O1+PEpavaV78UeszGFpd3ueIGce52KPX\r\n5qxahTRlNGDrZunAZPRiU1AODvCHBCRFZub/PvANDU+HnfX1P47YUTJWuBy2\r\n1PvirSnhx5DkGj68ifLYRypFqAem5CsEPSrldUAIGKIAducJY4MpJ8xvjHAv\r\nTD3M6F6gM51zdPNNGeVoFXfzRdMYRHyGzlelGBYRlMXGboVoTGOtypgOhhnR\r\ncgWLeR/8Ls+n4zTua0ExvMWfFECIAWHi3wTMNOVwPHvpoKinfdz6NasPXzPo\r\nAenB+bWTozBWYQylXuYd0HOtlXEaSXr/FA9cE9pIMd2cgL4whuuUWKR4jXRl\r\n0VBIS3FOCJh52d76CP3U0tN9f1COIqBQCBlCuV699cHiv0DH/7oMYeRqmkF9\r\nWzr77CXKU6UBH3tNYRFZs8qLu9NCS4sDXBOaW5FYda2VCA/PI699EdClOMPJ\r\n5KsD27WtxG3R+W9RyBv9yPYvxymbgzBf1BitZE+O6guKDe3ByuNXZqfo71Kz\r\nBDmbUCJR3V4284W8xbXdLb2xYLzc1g+4EFbnbeXrB2PQDRKkIbE44XZ3mwUz\r\n+iZXNRJNdMfScbYOsiCpwccF/Af2JzIZHx8wpTaPdJGaPK/4ZMc6cAr1Kpbm\r\nrQ9h4dRl5e0j1JeZ0r70TbmYvUO5nr2fvGA=\r\n=OwHU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220923.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nconst { setLogLevel } = require(\"@azure/logger\");\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=12.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20220923.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-f9zZFHDL0DWrKB+0R0R5GhtD0qUOXP34BMf4ukMuuWXKiYj41BvdzPt6Kf+7OmbcI+hhWrgHKXoR6gZLMLiM5w==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"8.15.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.17.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^8.0.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.6.0","@types/chai":"^4.1.6","@types/node":"^12.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.31.1","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20220923.1_1663952555096_0.008561585231842361","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20221017.1":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20221017.1","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20221017.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"61bbdba73177957fb62f8ceaf9bf90494f4b8ba4","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20221017.1.tgz","fileCount":32,"integrity":"sha512-wws9kyXv01Z2fvVCCpwjQU9w4Ii96rRKrukUNhinWonG5eE32EyUEt1nFNMxsUI/Emis1vHO2grW+BVLiC02dw==","signatures":[{"sig":"MEUCIFoOuN2E6K/mWQLOjjtSq+EbiU8gz4iV8fSnVP9T/4rnAiEA6cKlUJ78DlyK3flYQ4dXc9hbhhqGg4Af8z5bzTvyBVo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":451160,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTYrZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpvsg/+OrS5e5tbU20VRW+C+Q0CnROWOV72KK8pmDjkO0w3C5hXcm6f\r\n6gDkQpteR/6sn2EOFI90K3JroMAlsLruRI2tWU9mZcAt/o8/ggPrYkTDQJhQ\r\nYRNOP2WsH0PgiD/znynFX6l0zsMLl6p5QkmjPz21Lrk34ABV/mH7keYOaEMI\r\nw3ja0U22lAePx1hsUDCuJNz2ic0dbgWOOJU55UwiOBitGL43yjJfprZSh+Rd\r\nzb9akcnT4IFnY+B21qdYT7jlzEP8Yxjn3Q+ELwgSaAU6VN1hrAj5Y5x/Vhak\r\nnKo/WGELjCaC6By4N27tIBjQc4bu+hbIRsc1jQ7FW/5NCrtjDiQtlZ1KBFON\r\nZgT0LZJMx2Jfb7o4iUwNy51N2ncfcb4gnevC0ee4ohOkjLUDCKZcp0OqZS6p\r\nnUebqVGSlFa4PkJ0Ak0VNMAevNMUptBmvGBceiO4mAQ4JRvTY/Q9bMD66TyB\r\ne9AVpJHRD9Lp9sQJbCtEhYa9CiRHWSxaJcpUXqpEC0QxIsw3RdCJ34trOHFg\r\ntYOebhWxvylSKxfPizhbIfAdZuuGvOIZAhEHVlhRvmumg0pkdtMzFSTNPtt8\r\nraJb6FTdynhXjIMPTg02Y1ntsSjXIfFKQJmlujDGX/KEJ8D/fph5lGi/qpyk\r\n6KGvMw5oqk72uFc4z1u+kjclbTRxHu1JRyg=\r\n=vJNn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20221017.1.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nconst { setLogLevel } = require(\"@azure/logger\");\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=14.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20221017.1.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-wws9kyXv01Z2fvVCCpwjQU9w4Ii96rRKrukUNhinWonG5eE32EyUEt1nFNMxsUI/Emis1vHO2grW+BVLiC02dw==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"8.15.0","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^8.0.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.6.0","@types/chai":"^4.1.6","@types/node":"^14.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.31.1","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20221017.1_1666026200936_0.5229618366778468","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20221107.2":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20221107.2","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20221107.2","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"5c7f86144b3c0711e36d6837755eac946191eba0","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20221107.2.tgz","fileCount":32,"integrity":"sha512-KsJn+GL6j1wYB6WV0iHmwCpal4i7iymOt7mBkUfuQPkOpGpFxOZmxWbW0pPjEL/t3L+vs/Ks5lZoEUjD0yeRWg==","signatures":[{"sig":"MEUCIQCRRtX6AI0KiT/tMH/By2Rxp2r60FxTr39Ny8AjGI8eLwIgGmZSlC5ouCYMVb1jRod18h3z2NJFIAxuw4FTxthCPzo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":451160,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaUfnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeKA//QoNZHAZTpLNnxhF1r6ixvGn7FgKJo1sAmAEaSx1jdGpYDeq5\r\nGeVXVhStQTeIsOSDh3ti666yZxjr0bfdjFQikafEnYzghbISWxJygs9mobOw\r\neHbnH7iIDD3eytVpZLHpEXP4URvoYvS8EoQQHED/QrOG79JsABQYF+TnuCnV\r\nXP/sAbiw+HNmhS7AuAUmuauFp5RBqM1H+NFgvusmq07WTWKVktLIuPYQFwv7\r\nZdVQ53cOYOmfXGwXdoirCe+pn8jpZSHCGQ4YEt8jEAFCU413VDvXvKptFnZX\r\nNRIUuGSZ54j9A2+d4M5FJLp+5fGMll6HmyZyRVXGqEjj7cMQ/AbL5BFBRBgR\r\nbHPFHJyTUU6IiTjMo+kYGyY1RKtZrcdibzvsRv1XU6qIxQGtDJacmqJjCoFw\r\nk5r44cQ/GYnc3hUYNUPFR6BPbTs5nF38C8+gwxWxjXxv3O9ykp7nUSzI50r5\r\nYYeZR4sko4E4zr9f2NtSZMuNkid5o8YOjinyEbxY5mMIXD5RhD5ZhGYbDJ/5\r\niLHXH/S1r3Vxo70xB6eN8FsuJpCXyRUo2QYgcc0LLSxYyQZMrXSpJiovlp5J\r\nHdtjQASg+l4zK3o6mG6QN2aWViZxVnc2c2pyRzFgE/jwU6/1Ba3KfzDEANpb\r\nAomYMq5fjEAh1DE+UkvEg8u2NfBU3ZjPmvE=\r\n=jmoG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20221107.2.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Anomaly Detector client library for JavaScript\n\n[Azure AnomalyDetector](https://azure.microsoft.com/services/cognitive-services/anomaly-detector/) API enables you to monitor and detect abnormalities in your time series data with machine learning.\n\nKey links:\n- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/)\n- [Package (NPM)](https://www.npmjs.com/package/@azure/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/ai-anomaly-detector)\n- [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Key concepts\n\nThe `AnomalyDetectorClient` provides methods for anomaly detection:\n\n- `detectEntireSeries` - Detects anomalies on an entire data set\n- `detectLastPoint` - Detects anomalies in the latest data point\n- `detectChangePoint` - Evaluates change point score of every series point\n\n## Getting started\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)\n- Latest versions of Safari, Chrome, Edge, and Firefox.\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/).\n- An existing Anomaly Detector resource.\n\nIf you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:\n\n```PowerShell\naz cognitiveservices account create --kind AnomalyDetector --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\n### Install the `@azure/ai-anomaly-detector` package\n\nInstall the Azure Anomaly Detector client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure/ai-anomaly-detector\n```\n\n### Create and authenticate a `AnomalyDetectorClient`\n\nTo create a client object to access the Anomaly Detector API, you will need the `endpoint` of your Anomaly Detector resource and a `credential`. The Anomaly Detector client can use either Azure Active Directory credentials or an API key credential to authenticate.\n\nYou can find the endpoint for your Anomaly Detector resource in the Azure Portal by clicking `Keys and Endpoint` under Resource Management in the menu or by using the Azure CLI snippet below:\n\n```bash\naz cognitiveservices account show --name <your-resource-name> --resource-group <your-resource-group-name> --query \"endpoint\"\n```\n\n#### Using an API Key\n\nUse the Azure Portal to browse to your Anomaly Detector resource and retrieve an API key by clicking `Keys and Endpoint` under Resource Management, or use the Azure CLI snippet below:\n\n**Note:** Sometimes the API key is referred to as a \"subscription key\" or \"subscription API key.\"\n\n```PowerShell\naz cognitiveservices account keys list --resource-group <your-resource-group-name> --name <your-resource-name>\n```\n\nOnce you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:\n\n```js\nconst { AnomalyDetectorClient, AzureKeyCredential } = require(\"@azure/ai-anomaly-detector\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new AzureKeyCredential(\"<API key>\"));\n```\n\n#### Using an Azure Active Directory Credential\n\nClient API key authentication is used in most of the examples, but you can also authenticate with Azure Active Directory using the [Azure Identity library]. To use the DefaultAzureCredential provider shown below,\nor other credential providers provided with the Azure SDK, please install the `@azure/identity` package:\n\n```bash\nnpm install @azure/identity\n```\n\nYou will also need to register a new AAD application and grant access to Anomaly Detector by assigning the `\"Cognitive Services User\"` role to your service principal (note: other roles such as `\"Owner\"` will not grant the necessary permissions, only `\"Cognitive Services User\"` will suffice to run the examples and the sample code).\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.\n\n```js\nconst { AnomalyDetectorClient } = require(\"@azure/ai-anomaly-detector\");\nconst { DefaultAzureCredential } = require(\"@azure/identity\");\n\nconst client = new AnomalyDetectorClient(\"<endpoint>\", new DefaultAzureCredential());\n```\n\n## Examples\n\n### Detect Change Points\n\nThis sample demonstrates how to detect change points on entire series.\n\n```javascript\nconst { AnomalyDetectorClient, TimeGranularity } = require(\"@azure/ai-anomaly-detector\");\nconst { AzureKeyCredential } = require(\"@azure/core-auth\");\n\n// You will need to set this environment variables in .env file or edit the following values\nconst apiKey = process.env[\"API_KEY\"] || \"\";\nconst endpoint = process.env[\"ENDPOINT\"] || \"\";\n\nasync function main() {\n  // create client\n  const client = new AnomalyDetectorClient(endpoint, new AzureKeyCredential(apiKey));\n\n  // construct request\n  const request = {\n    series: [\n      { timestamp: new Date(\"2018-03-01T00:00:00Z\"), value: 32858923 },\n      { timestamp: new Date(\"2018-03-02T00:00:00Z\"), value: 29615278 },\n      { timestamp: new Date(\"2018-03-03T00:00:00Z\"), value: 22839355 },\n      { timestamp: new Date(\"2018-03-04T00:00:00Z\"), value: 25948736 },\n      { timestamp: new Date(\"2018-03-05T00:00:00Z\"), value: 34139159 },\n      { timestamp: new Date(\"2018-03-06T00:00:00Z\"), value: 33843985 },\n      { timestamp: new Date(\"2018-03-07T00:00:00Z\"), value: 33637661 },\n      { timestamp: new Date(\"2018-03-08T00:00:00Z\"), value: 32627350 },\n      { timestamp: new Date(\"2018-03-09T00:00:00Z\"), value: 29881076 },\n      { timestamp: new Date(\"2018-03-10T00:00:00Z\"), value: 22681575 },\n      { timestamp: new Date(\"2018-03-11T00:00:00Z\"), value: 24629393 },\n      { timestamp: new Date(\"2018-03-12T00:00:00Z\"), value: 34010679 },\n      { timestamp: new Date(\"2018-03-13T00:00:00Z\"), value: 33893888 },\n      { timestamp: new Date(\"2018-03-14T00:00:00Z\"), value: 33760076 },\n      { timestamp: new Date(\"2018-03-15T00:00:00Z\"), value: 33093515 }\n    ],\n    granularity: TimeGranularity.daily\n  };\n\n  // get change point detect results\n  const result = await client.detectChangePoint(request);\n  const isChangePointDetected = result.isChangePoint.some((changePoint) => changePoint);\n\n  if (isChangePointDetected) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.isChangePoint.forEach((changePoint, index) => {\n      if (changePoint === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n  // output:\n  // Change points were detected from the series at index:\n  // 9\n}\n\nmain().catch((err) => {\n  console.error(\"The sample encountered an error:\", err);\n});\n```\n\nMore Samples can be found [here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nconst { setLogLevel } = require(\"@azure/logger\");\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nPlease take a look at the\n[samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector/samples)\ndirectory for detailed examples on how to use this library.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=14.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20221107.2.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-KsJn+GL6j1wYB6WV0iHmwCpal4i7iymOt7mBkUfuQPkOpGpFxOZmxWbW0pPjEL/t3L+vs/Ks5lZoEUjD0yeRWg==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"8.19.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^8.0.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.8.0","@types/chai":"^4.1.6","@types/node":"^14.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.31.1","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20221107.2_1667844071427_0.20053092120941796","host":"s3://npm-registry-packages"}},"3.0.0-alpha.20221207.2":{"name":"@azure/ai-anomaly-detector","version":"3.0.0-alpha.20221207.2","keywords":["azure","cloud","typescript"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/ai-anomaly-detector@3.0.0-alpha.20221207.2","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"2426324df5a4d2553d7256a2881d43954376c79c","tarball":"https://registry.npmjs.org/@azure/ai-anomaly-detector/-/ai-anomaly-detector-3.0.0-alpha.20221207.2.tgz","fileCount":32,"integrity":"sha512-PcVBHug/P17Obc7l6S5kovJDE6ReuMfb3rLdqxfUMMFGvDcN42tZH7cifUTFz/d2IfO9SDkGj/rMjz7y9pTH9Q==","signatures":[{"sig":"MEUCIQDc27FKPGz88shlQSNfuZ3CCnLmP1S6/IJ/sn7BN493kwIgDaM/HgyP+ITLHZuBiSHGYsmk1zSQ929w0k+TWH5z3WY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":457086,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkNceACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPNg//cBlM7ChmFcbBXKx00VjnQVcuRUvvWyMTPSf2UQjUJVZ1SA64\r\nyAmjkMevnvFFRDxQeg0SwVBRdc8d57oBtaweY7i+wwhvZoD18cJsIsGXatTo\r\nNqypHErtLGBdLIhy9DG1xOkgbHaGpcnmt6FuO8w7urTmsTCoYwYJapNKDFpF\r\ny5cGlQUXxZCUVXPVwdVAt++yZ/HfyBDvr5QtGPhcCV9IawcnDUrfIi68LHQ5\r\n6VNumNeIQc0ESjIRin9iyZAk0zizMES7iTt3shN5Djewv/+mCMzqry/YgUVN\r\nxgM0kHRvEbKC4atyIlNqDsjF1DAG6wROH+T6vuaifON1v3Y5UzYlV6qviBe9\r\nT3h3Wg93ZcEn3E8vm9KM8LdwqWMsMEnyawF1Cl/Bx9MJJ2cYaUjQXyhNcklR\r\na1Db65LbsfndyQkGKkruDxVamiHAv4Y2xW3UJBADaAN0Zf389Hd0Q3cx9JcV\r\nWkQOSJ4zllzfXXIuptIAPn/EHHRj5s3zb8pwlnvqStvuo+BC/1XtuP79v03b\r\nfHmdE7SugpW6kyXsfM30goVPsbT5heF8vPYwqwQsvDKUVKrNo4N2ahI93Z1Z\r\nXEdW//JIxh2SfQ5OV/KFJ8Yuc/GdLFp1ceDYl+e8lBT+4EwOwDWJeeC2Prpz\r\nXjsaqWMQif0hBbQQGo+61ASwdqHKI96eBdc=\r\n=AgCv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20221207.2.tgz","types":"types/ai-anomaly-detector.d.ts","module":"dist-esm/src/index.js","readme":"# Azure AnomalyDetectorRest REST client library for JavaScript\n\n[Anomaly Detector](https://learn.microsoft.com/azure/cognitive-services/Anomaly-Detector/overview) is an AI service with a set of APIs, which enables you to monitor and detect anomalies in your time series data with little machine learning (ML) knowledge, either batch validation or real-time inference.\n\nPlease refer to our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library.\n\n## Getting started\n\n### Prerequisites\n\n- LTS versions of Node.js\n- You need an [Azure subscription][azure_sub] to use this package.\n- An existing Cognitive Services Anomaly Detector instance.\n\n### Install the `@azure-rest/ai-anomaly-detector` package\n\nInstall the Azure AnomalyDetectorRest REST client REST client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure-rest/ai-anomaly-detector\n```\n\n|SDK version|Supported API version of service |\n|-------------|---------------|\n|1.0.0-beta.1| 1.1|\n\n### Create and authenticate a `AnomalyDetectorRestClient`\n\nTo use an [Azure Active Directory (AAD) token credential](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token),\nprovide an instance of the desired credential type obtained from the\n[@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library.\n\nTo authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity) \n\nAfter setup, you can choose which type of [credential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) from `@azure/identity` to use.\nAs an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential)\ncan be used to authenticate the client.\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables:\nAZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET\n\n## Key concepts\n\nWith the Anomaly Detector, you can either detect anomalies in one variable using **Univariate Anomaly Detection**, or detect anomalies in multiple variables with **Multivariate Anomaly Detection**.\n\n|Feature  |Description  |\n|---------|---------|\n|Univariate Anomaly Detection | Detect anomalies in one variable, like revenue, cost, etc. The model was selected automatically based on your data pattern. |\n|Multivariate Anomaly Detection| Detect anomalies in multiple variables with correlations, which are usually gathered from equipment or other complex system. The underlying model used is Graph attention network.|\n\n### Univariate Anomaly Detection\n\nThe Univariate Anomaly Detection API enables you to monitor and detect abnormalities in your time series data without having to know machine learning. The algorithms adapt by automatically identifying and applying the best-fitting models to your data, regardless of industry, scenario, or data volume. Using your time series data, the API determines boundaries for anomaly detection, expected values, and which data points are anomalies.\n\nUsing the Anomaly Detector doesn't require any prior experience in machine learning, and the REST API enables you to easily integrate the service into your applications and processes.\n\nWith the Univariate Anomaly Detection, you can automatically detect anomalies throughout your time series data, or as they occur in real-time.\n\n|Feature  |Description  |\n|---------|---------|\n| Streaming detection| Detect anomalies in your streaming data by using previously seen data points to determine if your latest one is an anomaly. This operation generates a model using the data points you send, and determines if the target point is an anomaly. By calling the API with each new data point you generate, you can monitor your data as it's created. |\n| Batch detection | Use your time series to detect any anomalies that might exist throughout your data. This operation generates a model using your entire time series data, with each point analyzed with the same model.         |\n| Change points detection | Use your time series to detect any trend change points that exist in your data. This operation generates a model using your entire time series data, with each point analyzed with the same model.    |\n\n### Multivariate Anomaly Detection\n\nThe **Multivariate Anomaly Detection** APIs further enable developers by easily integrating advanced AI for detecting anomalies from groups of metrics, without the need for machine learning knowledge or labeled data. Dependencies and inter-correlations between up to 300 different signals are now automatically counted as key factors. This new capability helps you to proactively protect your complex systems such as software applications, servers, factory machines, spacecraft, or even your business, from failures.\n\nWith the Multivariate Anomaly Detection, you can automatically detect anomalies throughout your time series data, or as they occur in real-time. There are three processes to use Multivariate Anomaly Detection.\n\n- **Training**: Use Train Model API to create and train a model, then use Get Model Status API to get the status and model metadata.\n- **Inference**:\n  - Use Async Inference API to trigger an asynchronous inference process and use Get Inference results API to get detection results on a batch of data.\n  - You could also use Sync Inference API to trigger a detection on one timestamp every time.\n- **Other operations**: List Model API and Delete Model API are supported in Multivariate Anomaly Detection model for model management.\n\n### Thread safety\n\nWe guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads.\n\n## Examples\n\nThe following section provides several code snippets covering some of the most common Anomaly Detector service tasks, including:\n\n- [Univariate Anomaly Detection - Batch detection](#batch-detection)\n- [Univariate Anomaly Detection - Streaming detection](#streaming-detection)\n- [Univariate Anomaly Detection - Detect change points](#detect-change-points)\n- [Multivariate Anomaly Detection](#multivariate-anomaly-detection-sample)\n\n### Batch detection\n\n```typescript\nconst apiKey = process.env[\"ANOMALY_DETECTOR_API_KEY\"] || \"\";\nconst endpoint = process.env[\"ANOMALY_DETECTOR_ENDPOINT\"] || \"\";\nconst timeSeriesDataPath = \"./samples-dev/example-data/request-data.csv\";\n\nfunction read_series_from_file(path: string): Array<TimeSeriesPoint> {\n  let result = Array<TimeSeriesPoint>();\n  let input = fs.readFileSync(path).toString();\n  let parsed = parse(input, { skip_empty_lines: true });\n  parsed.forEach(function (e: Array<string>) {\n    result.push({ timestamp: new Date(e[0]), value: Number(e[1]) });\n  });\n  return result;\n}\n\nexport async function main() {\n  // create client\n  const credential = new AzureKeyCredential(apiKey);\n  const client = AnomalyDetector(endpoint, credential);\n\n  // construct request\n  const options: DetectUnivariateEntireSeriesParameters = {\n    body: {\n      granularity: \"daily\",\n      imputeMode: \"auto\",\n      maxAnomalyRatio: 0.25,\n      sensitivity: 95,\n      series: read_series_from_file(timeSeriesDataPath),\n    },\n    headers: { \"Content-Type\": \"application/json\" },\n  };\n\n  // get last detect result\n  const result = await client.path(\"/timeseries/entire/detect\").post(options);\n  if (isUnexpected(result)) {\n    throw result;\n  }\n\n  if (result.body.isAnomaly) {\n    result.body.isAnomaly.forEach(function (anomaly, index) {\n      if (anomaly === true) {\n        console.log(index);\n      }\n    });\n  } else {\n    console.log(\"There is no anomaly detected from the series.\");\n  }\n```\n\n### Streaming Detection\n\n```typescript\nconst apiKey = process.env[\"ANOMALY_DETECTOR_API_KEY\"] || \"\";\nconst endpoint = process.env[\"ANOMALY_DETECTOR_ENDPOINT\"] || \"\";\nconst timeSeriesDataPath = \"./samples-dev/example-data/request-data.csv\";\n\nfunction read_series_from_file(path: string): Array<TimeSeriesPoint> {\n  let result = Array<TimeSeriesPoint>();\n  let input = fs.readFileSync(path).toString();\n  let parsed = parse(input, { skip_empty_lines: true });\n  parsed.forEach(function (e: Array<string>) {\n    result.push({ timestamp: new Date(e[0]), value: Number(e[1]) });\n  });\n  return result;\n}\n\nexport async function main() {\n  // create client\n  const credential = new AzureKeyCredential(apiKey);\n  const client = AnomalyDetector(endpoint, credential);\n\n  // construct request\n  const options: DetectUnivariateLastPointParameters = {\n    body: {\n      granularity: \"daily\",\n      imputeFixedValue: 800,\n      imputeMode: \"fixed\",\n      maxAnomalyRatio: 0.25,\n      sensitivity: 95,\n      series: read_series_from_file(timeSeriesDataPath),\n    },\n    headers: { \"Content-Type\": \"application/json\" },\n  };\n\n  // get last detect result\n  const result = await client.path(\"/timeseries/last/detect\").post(options);\n  if (isUnexpected(result)) {\n    throw result;\n  }\n\n  if (result.body.isAnomaly) {\n    console.log(\"The latest point is detected as anomaly.\");\n  } else {\n    console.log(\"The latest point is not detected as anomaly.\");\n  }\n```\n\n### Detect change points\n\n```typescript\nconst apiKey = process.env[\"ANOMALY_DETECTOR_API_KEY\"] || \"\";\nconst endpoint = process.env[\"ANOMALY_DETECTOR_ENDPOINT\"] || \"\";\nconst timeSeriesDataPath = \"./samples-dev/example-data/request-data.csv\";\n\nfunction read_series_from_file(path: string): Array<TimeSeriesPoint> {\n  let result = Array<TimeSeriesPoint>();\n  let input = fs.readFileSync(path).toString();\n  let parsed = parse(input, { skip_empty_lines: true });\n  parsed.forEach(function (e: Array<string>) {\n    result.push({ timestamp: new Date(e[0]), value: Number(e[1]) });\n  });\n  return result;\n}\n\nexport async function main() {\n  const credential = new AzureKeyCredential(apiKey);\n  const client = AnomalyDetector(endpoint, credential);\n  const options: DetectUnivariateChangePointParameters = {\n    body: {\n      granularity: \"daily\",\n      series: read_series_from_file(timeSeriesDataPath),\n    },\n    headers: { \"Content-Type\": \"application/json\" },\n  };\n  const result = await client.path(\"/timeseries/changepoint/detect\").post(options);\n  if (isUnexpected(result)) {\n    throw result;\n  }\n\n  if (result.body.isChangePoint === undefined) throw new Error(\"Empty isChangePoint\");\n  if (\n    result.body.isChangePoint.some(function (changePoint) {\n      return changePoint === true;\n    })\n  ) {\n    console.log(\"Change points were detected from the series at index:\");\n    result.body.isChangePoint.forEach(function (changePoint, index) {\n      if (changePoint === true) console.log(index);\n    });\n  } else {\n    console.log(\"There is no change point detected from the series.\");\n  }\n```\n\n### Multivariate Anomaly Detection Sample\n\nTo see how to use Anomaly Detector library to conduct Multivariate Anomaly Detection, see this [sample](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector-rest/samples/v1-beta/typescript/src/sample_multivariate_detection.ts).\n\n## Troubleshooting\n\n### General\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nconst { setLogLevel } = require(\"@azure/logger\");\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n\n## Next steps\n\nThese code samples show common scenario operations with the Azure Anomaly Detector library. More samples can be found under the [samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/) directory.\n\n- Univariate Anomaly Detection - Batch Detection: [sample_detect_entire_series_anomaly.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector-rest/samples/v1-beta/typescript/src/sample_detect_entire_series_anomaly.ts)\n\n- Univariate Anomaly Detection - Streaming Detection: [ample_detect_last_point_anomaly.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector-rest/samples/v1-beta/typescript/src/sample_detect_last_point_anomaly.ts)\n\n- Univariate Anomaly Detection - Change Point Detection: [sample_detect_change_point.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector-rest/samples/v1-beta/typescript/src/sample_detect_change_point.ts)\n\n- Multivariate Anomaly Detection: [sample_multivariate_detection.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector-rest/samples/v1-beta/typescript/src/sample_multivariate_detection.ts)\n\n### Additional documentation\n\nFor more extensive documentation on Azure Anomaly Detector, see the [Anomaly Detector documentation](https://learn.microsoft.com/azure/cognitive-services/anomaly-detector/overview) on docs.microsoft.com.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit [cla.microsoft.com][cla].\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct][code_of_conduct]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments.\n\n<!-- LINKS -->\n[cla]: https://cla.microsoft.com\n[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/\n[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/\n[coc_contact]: mailto:opencode@microsoft.com\n- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector-rest)\n- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/ai-anomaly-detector)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure-rest/ai-anomaly-detector?view=azure-node-preview)\n- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector-rest/samples)\n","browser":{"./dist-esm/test/utils/environment.ts":"./dist-esm/test/utils/environment.browser.ts"},"engines":{"node":">=14.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local","clean":"rimraf dist dist-* temp types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle","build:test":"tsc -p . && dev-tool run bundle","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && dev-tool run bundle","build:samples":"echo Obsolete.","unit-test:node":"mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"","execute:samples":"npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"karma start --single-run","integration-test:node":"nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"","integration-test:browser":"karma start --single-run"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-ai-anomaly-detector/azure-ai-anomaly-detector-3.0.0-alpha.20221207.2.tgz","//metadata":{"constantPaths":[{"path":"src/generated/anomalyDetectorContext.ts","prefix":"packageVersion"},{"path":"src/constants.ts","prefix":"SDK_VERSION"}]},"_integrity":"sha512-PcVBHug/P17Obc7l6S5kovJDE6ReuMfb3rLdqxfUMMFGvDcN42tZH7cifUTFz/d2IfO9SDkGj/rMjz7y9pTH9Q==","deprecated":"This library is no longer maintained. Please use @azure-rest/ai-anomaly-detector instead.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"8.19.2","description":"An isomorphic client library for the Azure Anomaly Detector service.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.1","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/core-http":"^2.0.0","@azure/core-paging":"^1.1.1","@azure/core-tracing":"1.0.0-preview.13"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","util":"^0.12.1","karma":"^6.2.0","mocha":"^7.1.1","dotenv":"^8.2.0","eslint":"^8.0.0","rimraf":"^3.0.0","inherits":"^2.0.3","prettier":"^2.5.1","cross-env":"^7.0.2","csv-parse":"^5.0.3","typescript":"~4.8.0","@types/chai":"^4.1.6","@types/node":"^14.0.0","karma-mocha":"^2.0.1","@types/mocha":"^7.0.2","karma-coverage":"^2.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","@azure/identity":"^2.0.1","karma-ie-launcher":"^1.0.0","karma-edge-launcher":"^0.4.2","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha-junit-reporter":"^2.0.0","karma-chrome-launcher":"^3.0.0","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-sourcemap-loader":"^0.3.8","@microsoft/api-extractor":"^7.31.1","@azure-tools/test-recorder":"^1.0.0","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Anomaly Detector","productSlugs":["azure","azure-cognitive-services","azure-anomaly-detector"],"requiredResources":{"Azure Anomaly Detector instance":"https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/quickstarts/client-libraries?tabs=windows&pivots=programming-language-javascript"}},"_npmOperationalInternal":{"tmp":"tmp/ai-anomaly-detector_3.0.0-alpha.20221207.2_1670436638674_0.6328032709578006","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-08-27T17:12:42.322Z","modified":"2026-03-19T19:47:33.975Z","3.0.0-dev.20200827.3":"2020-08-27T17:12:42.637Z","3.0.0-preview.1":"2020-08-27T18:07:30.529Z","3.0.0-dev.20200831.1":"2020-08-31T17:26:50.677Z","3.0.0-dev.20200902.1":"2020-09-02T17:09:37.237Z","3.0.0-alpha.20200903.1":"2020-09-03T17:15:01.482Z","3.0.0-alpha.20200904.1":"2020-09-04T17:14:07.491Z","3.0.0-alpha.20200918.2":"2020-09-18T17:09:34.295Z","3.0.0-beta.2":"2020-09-18T17:20:36.450Z","3.0.0-alpha.20200921.1":"2020-09-21T17:17:00.072Z","3.0.0-alpha.20201005.1":"2020-10-05T17:12:24.224Z","3.0.0-alpha.20201102.1":"2020-11-02T18:19:27.617Z","3.0.0-alpha.20201110.1":"2020-11-10T18:24:50.174Z","3.0.0-alpha.20201211.1":"2020-12-11T17:58:58.053Z","3.0.0-alpha.20201215.1":"2020-12-15T17:56:41.922Z","3.0.0-alpha.20201217.1":"2020-12-17T17:57:14.258Z","3.0.0-alpha.20201218.1":"2020-12-18T17:54:00.768Z","3.0.0-alpha.20201224.1":"2020-12-24T17:54:25.155Z","3.0.0-alpha.20210118.1":"2021-01-18T17:56:47.809Z","3.0.0-alpha.20210125.1":"2021-01-25T17:56:22.587Z","3.0.0-alpha.20210127.1":"2021-01-27T17:57:18.004Z","3.0.0-alpha.20210204.1":"2021-02-04T17:54:05.037Z","3.0.0-alpha.20210210.1":"2021-02-10T17:56:51.084Z","3.0.0-alpha.20210222.1":"2021-02-22T17:55:45.150Z","3.0.0-alpha.20210226.1":"2021-02-26T17:54:58.663Z","3.0.0-alpha.20210301.1":"2021-03-01T17:55:54.612Z","3.0.0-alpha.20210304.1":"2021-03-04T17:58:30.686Z","3.0.0-alpha.20210312.1":"2021-03-12T17:58:52.933Z","3.0.0-alpha.20210316.1":"2021-03-16T16:57:21.492Z","3.0.0-alpha.20210322.1":"2021-03-22T17:16:22.493Z","3.0.0-alpha.20210323.1":"2021-03-23T16:57:18.830Z","3.0.0-alpha.20210330.1":"2021-03-30T16:56:00.457Z","3.0.0-alpha.20210402.1":"2021-04-02T16:55:05.461Z","3.0.0-alpha.20210408.1":"2021-04-08T17:00:16.973Z","3.0.0-beta.3":"2021-04-17T00:10:23.933Z","3.0.0-alpha.20210422.1":"2021-04-22T16:54:25.717Z","3.0.0-alpha.20210427.1":"2021-04-27T16:55:21.700Z","3.0.0-alpha.20210505.1":"2021-05-05T16:58:21.270Z","3.0.0-alpha.20210517.1":"2021-05-17T16:57:44.062Z","3.0.0-alpha.20210609.1":"2021-06-09T17:01:44.437Z","3.0.0-alpha.20210614.1":"2021-06-14T16:57:52.005Z","3.0.0-alpha.20210621.1":"2021-06-21T16:58:01.799Z","3.0.0-alpha.20210623.1":"2021-06-23T16:57:41.419Z","3.0.0-alpha.20210625.1":"2021-06-25T17:07:55.187Z","3.0.0-alpha.20210628.1":"2021-06-28T17:00:13.416Z","3.0.0-alpha.20210629.1":"2021-06-29T16:57:51.885Z","3.0.0-alpha.20210701.1":"2021-07-01T17:03:40.712Z","3.0.0-alpha.20210706.1":"2021-07-06T17:00:06.324Z","3.0.0-alpha.20210715.1":"2021-07-15T17:02:55.664Z","3.0.0-alpha.20210716.1":"2021-07-16T16:58:41.135Z","3.0.0-alpha.20210803.2":"2021-08-03T16:58:44.724Z","3.0.0-alpha.20210816.2":"2021-08-16T17:00:08.267Z","3.0.0-alpha.20210819.1":"2021-08-19T17:01:16.326Z","3.0.0-alpha.20210827.1":"2021-08-27T17:06:30.040Z","3.0.0-alpha.20210902.2":"2021-09-02T17:00:26.516Z","3.0.0-alpha.20210915.1":"2021-09-15T17:00:44.715Z","3.0.0-alpha.20211001.1":"2021-10-01T17:03:30.120Z","3.0.0-alpha.20211102.1":"2021-11-02T17:06:33.982Z","3.0.0-alpha.20211210.1":"2021-12-10T17:57:54.836Z","3.0.0-alpha.20211214.2":"2021-12-14T17:57:04.012Z","3.0.0-alpha.20211222.1":"2021-12-22T18:03:43.159Z","3.0.0-alpha.20220111.1":"2022-01-11T17:58:16.972Z","3.0.0-alpha.20220114.1":"2022-01-14T18:03:50.132Z","3.0.0-beta.4":"2022-01-17T05:24:34.069Z","3.0.0-beta.5":"2022-01-21T18:29:17.760Z","3.0.0-alpha.20220124.1":"2022-01-24T18:02:11.096Z","3.0.0-alpha.20220131.1":"2022-01-31T17:57:23.766Z","3.0.0-alpha.20220308.1":"2022-03-08T18:02:27.650Z","3.0.0-alpha.20220309.1":"2022-03-09T17:57:38.785Z","3.0.0-alpha.20220310.1":"2022-03-10T18:01:16.558Z","3.0.0-alpha.20220315.1":"2022-03-15T16:58:52.889Z","3.0.0-alpha.20220321.1":"2022-03-21T16:57:43.207Z","3.0.0-alpha.20220331.1":"2022-03-31T17:00:06.385Z","3.0.0-alpha.20220401.1":"2022-04-01T17:00:39.708Z","3.0.0-alpha.20220406.1":"2022-04-06T17:00:51.213Z","3.0.0-alpha.20220407.1":"2022-04-07T17:05:13.305Z","3.0.0-alpha.20220420.1":"2022-04-20T16:58:19.959Z","3.0.0-alpha.20220421.1":"2022-04-21T17:00:05.377Z","3.0.0-alpha.20220517.1":"2022-05-17T16:58:31.658Z","3.0.0-alpha.20220523.1":"2022-05-23T16:59:03.200Z","3.0.0-alpha.20220525.1":"2022-05-25T16:57:05.027Z","3.0.0-alpha.20220725.1":"2022-07-25T17:15:04.542Z","3.0.0-alpha.20220920.1":"2022-09-20T17:03:19.598Z","3.0.0-alpha.20220923.1":"2022-09-23T17:02:35.301Z","3.0.0-alpha.20221017.1":"2022-10-17T17:03:21.160Z","3.0.0-alpha.20221107.2":"2022-11-07T18:01:11.641Z","3.0.0-alpha.20221207.2":"2022-12-07T18:10:38.802Z"},"bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"author":"Microsoft Corporation","license":"MIT","homepage":"https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/anomalydetector/ai-anomaly-detector/","keywords":["azure","cloud","typescript"],"repository":"github:Azure/azure-sdk-for-js","description":"An isomorphic client library for the Azure Anomaly Detector service.","maintainers":[{"email":"azure-sdk-npmjs@microsoft.com","name":"azure-sdk"},{"email":"npmjs@microsoft.com","name":"microsoft1es"},{"email":"microsoft-oss-publishing@microsoft.com","name":"microsoft-oss-releases"}],"readme":"","readmeFilename":""}