This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from nanliu/pluginsync
Update from Intelsdi-x pluginsync 0.1.8
- Loading branch information
Showing
17 changed files
with
612 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
Thanks for filing an issue! Before hitting the button, give this a read. | ||
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead. | ||
If you suspect your issue is a bug, please add as much context as you can using the template below. If it is not a bug, remove any sections you don't need and explain how we can help. | ||
As a basic rule, if you cannot provide enough information to continue addressing the issue within 7 days, a maintainer will close it. We will, however, reopen it if you later provide the information. Thanks again. | ||
--> | ||
|
||
**Snap version** (use `snapctl -v`): | ||
|
||
**Environment**: | ||
- **Cloud provider or hardware configuration**: | ||
- **OS** (e.g. from /etc/os-release): | ||
- **Kernel** (e.g. `uname -a`): | ||
- **Relevant tools** (e.g. plugins used with Snap): | ||
- **Others** (e.g. deploying with Ansible): | ||
|
||
|
||
**What happened**: | ||
|
||
|
||
**What you expected to happen**: | ||
|
||
|
||
**Steps to reproduce it** (as minimally and precisely as possible): | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
|
||
**Anything else do we need to know** (e.g. issue happens only occasionally): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- | ||
If this is a bug fix, make sure your description includes "fixes #xxxx", or | ||
"closes #xxxx" | ||
Please provide the following information: | ||
--> | ||
Fixes # | ||
|
||
Summary of changes: | ||
- | ||
- | ||
- | ||
|
||
How to verify it: | ||
- | ||
|
||
Testing done: | ||
- | ||
|
||
A picture of a snapping turtle (not required but encouraged): | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# File managed by pluginsync | ||
pluginsync_config: '0.1.8' | ||
managed_files: | ||
- .github | ||
- .github/ISSUE_TEMPLATE.md | ||
- .github/PULL_REQUEST_TEMPLATE.md | ||
- .gitignore | ||
- .pluginsync.yml | ||
- .travis.yml | ||
- CONTRIBUTING.md | ||
- LICENSE | ||
- Makefile | ||
- scripts | ||
- scripts/build.sh | ||
- scripts/common.sh | ||
- scripts/deps.sh | ||
- scripts/pre_deploy.sh | ||
- scripts/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.travis.yml: | ||
deploy: | ||
access_key_id: AKIAINMB43VSSPFZISAA | ||
secret_access_key: | ||
secure: HR6qmfCseb4InR1VQCV+vnanXCgG1W+i4Gh4rpnU+5yFQJQv72AdLsYCViAVwgcfNc8yHl82hMz0vrPeuSGKVHIV1dkKy86PjFDpfs5FwiOW79Y7Q5ELOVtuwaMg6/Ur/8TQlMqyyltITA8o3Bgsslpysmze899L+NIdiIMgLmROKrN4EuslyWtLppJQ8xa///o9Hp1hBgHVAVtvzlpH1Ku/5Jnli82pJ7xCVoW/rTnJ/V//9OqTXS65/sFoz82wpF98H7kF+cFocrfQlfRHZtzh8EzBnSIKeVkSFxmW2JCqPUsgmdF32t78UsaQquQXdGGsDYC0N3D4N4rLCk5SVxxuiXU0uliZRNh1QsM6X3K2C4j+uQbGZHUWQM5+RDMoXKuwVwInYlXK5YCNf8AzQYr8jxAypBXe34WQCuupRdvMWpcvr2MSiOnWsgk10lUETvRuBpMVPKtTKxMUb8iQqsz06mGFwjLRPhEuazEJD3MN9KOesTiEzNU94+gKfUIJ40qdY+t88gxQaNXH9FaMg9jWX9C14XWwTL1UAZXUaRezkjXbDfzpOTbtinaebvdnbqEnHiFa0yaiWyAL0DRt0S66DazUvs2eRwupQDUo9lUzHKZ8xeyFuRKnLI+w7XzdywIKjoFskRkqfXhvoXpt2gzkP1K2wQu/+s2Zwfa8cSM= | ||
api_key: | ||
secure: I9GxllmmOFHbKWS176bkHGeaSf3+axWuJAmS4aBgVc2Qv/JEC3v9n/nIu8xR+brGFnVjskrj+zs06iKySu8cud2b5nvldwusG1Da8Rie12D0T7c5Pljs18/oK9MYFTsNvuXM5gS1/vHnK0331hMzYISHc3JIzgVgaBEbL1tojKzX9Ad2m/vIQucEeNczeUv+dvpMhz7uGPIo6QlO1PPkhNIa5mNnhfkROvG6+tgflDETvayhtBFhUbCNk5QZLuCiQLRt5xkj2rO7bBLqCAKArFMadct5qRFKIm5OgRfaWJHWY47ELIKCpSrmVmTGIDZ6H7YfMKWvzec4kOnW5J9nIFTgZFtxVtuwD4IYogYVU3hiht38cPXKc48JIMYSiFaJvDHDBGIazqVrcNPDchzcsbCLS0rnCHbiW5RGJnDv0QjF4kHlMEB6E9SPHXGWV1VE1xEP857aeQQGth/Tt1+PQWo5mIk/Tfkul6bJZjncz0jXUPF+6CN2KkDmFoHL/d4oCxBoH3KHsCc8oh9Ltg3sePn404dQyptOtpLoSntrjYkULw/vmg1l01ODvsc8m4NblRpT/muBx6RsRfI6YyqETOL7Jw3geDKoRg1CIAmudOPagj4oP5Y/xAiaDdX5/+t5flRhtqQIKu/yr7Nyg1ArP20HK/Zv+fkomI5dwLD78D4= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,69 @@ | ||
sudo: required | ||
services: | ||
- docker | ||
# File managed by pluginsync | ||
sudo: false | ||
language: go | ||
go: | ||
- 1.6.3 | ||
- 1.7rc5 | ||
before_install: | ||
- go get github.com/tools/godep | ||
- if [ ! -d $SNAP_PLUGIN_SOURCE ]; then mkdir -p $HOME/gopath/src/github.com/intelsdi-x; ln -s $TRAVIS_BUILD_DIR $SNAP_PLUGIN_SOURCE; fi # CI for forks not from intelsdi-x | ||
- 1.7.3 | ||
env: | ||
global: | ||
- SNAP_PLUGIN_SOURCE=/home/travis/gopath/src/github.com/intelsdi-x/snap-plugin-processor-anomalydetection | ||
- ORG_PATH=/home/travis/gopath/src/github.com/intelsdi-x | ||
- SNAP_PLUGIN_SOURCE=/home/travis/gopath/src/github.com/${TRAVIS_REPO_SLUG} | ||
matrix: | ||
- TEST=unit | ||
- TEST_TYPE=small | ||
- TEST_TYPE=build | ||
matrix: | ||
exclude: | ||
- go: 1.6.3 | ||
env: TEST_TYPE=build | ||
before_install: | ||
- "[[ -d $SNAP_PLUGIN_SOURCE ]] || mkdir -p $ORG_PATH && ln -s $TRAVIS_BUILD_DIR $SNAP_PLUGIN_SOURCE" | ||
install: | ||
- export TMPDIR=$HOME/tmp | ||
- mkdir -p $TMPDIR | ||
- cd $SNAP_PLUGIN_SOURCE # change dir into source | ||
- cd $SNAP_PLUGIN_SOURCE | ||
- make deps | ||
script: | ||
- make check TEST=$TEST 2>&1 # Run test suite | ||
- make check 2>&1 | ||
notifications: | ||
email: false | ||
slack: | ||
secure: VkbZLIc2RH8yf3PtIAxUNPdAu3rQQ7yQx0GcK124JhbEnZGaHyK615V0rbG7HcVmYKGPdB0cXqZiLBDKGqGKb2zR1NepOe1nF03jxGSpPq8jIFeEXSJGEYGL34ScDzZZGuG6qwbjFcXiW5lqn6t8igzp7v2+URYBaZo5ktCS2xY= | ||
before_deploy: | ||
- "./scripts/pre_deploy.sh" | ||
deploy: | ||
- provider: s3 | ||
access_key_id: AKIAINMB43VSSPFZISAA | ||
secret_access_key: | ||
secure: HR6qmfCseb4InR1VQCV+vnanXCgG1W+i4Gh4rpnU+5yFQJQv72AdLsYCViAVwgcfNc8yHl82hMz0vrPeuSGKVHIV1dkKy86PjFDpfs5FwiOW79Y7Q5ELOVtuwaMg6/Ur/8TQlMqyyltITA8o3Bgsslpysmze899L+NIdiIMgLmROKrN4EuslyWtLppJQ8xa///o9Hp1hBgHVAVtvzlpH1Ku/5Jnli82pJ7xCVoW/rTnJ/V//9OqTXS65/sFoz82wpF98H7kF+cFocrfQlfRHZtzh8EzBnSIKeVkSFxmW2JCqPUsgmdF32t78UsaQquQXdGGsDYC0N3D4N4rLCk5SVxxuiXU0uliZRNh1QsM6X3K2C4j+uQbGZHUWQM5+RDMoXKuwVwInYlXK5YCNf8AzQYr8jxAypBXe34WQCuupRdvMWpcvr2MSiOnWsgk10lUETvRuBpMVPKtTKxMUb8iQqsz06mGFwjLRPhEuazEJD3MN9KOesTiEzNU94+gKfUIJ40qdY+t88gxQaNXH9FaMg9jWX9C14XWwTL1UAZXUaRezkjXbDfzpOTbtinaebvdnbqEnHiFa0yaiWyAL0DRt0S66DazUvs2eRwupQDUo9lUzHKZ8xeyFuRKnLI+w7XzdywIKjoFskRkqfXhvoXpt2gzkP1K2wQu/+s2Zwfa8cSM= | ||
bucket: snap.ci.snap-telemetry.io | ||
region: us-west-2 | ||
skip_cleanup: true | ||
local-dir: s3 | ||
upload-dir: plugins | ||
acl: public_read | ||
on: | ||
repo: intelsdi-x/snap-plugin-processor-anomalydetection | ||
branch: master | ||
condition: $TEST_TYPE = "build" && $TRAVIS_GO_VERSION = "1.7.3" | ||
- provider: s3 | ||
access_key_id: AKIAINMB43VSSPFZISAA | ||
secret_access_key: | ||
secure: HR6qmfCseb4InR1VQCV+vnanXCgG1W+i4Gh4rpnU+5yFQJQv72AdLsYCViAVwgcfNc8yHl82hMz0vrPeuSGKVHIV1dkKy86PjFDpfs5FwiOW79Y7Q5ELOVtuwaMg6/Ur/8TQlMqyyltITA8o3Bgsslpysmze899L+NIdiIMgLmROKrN4EuslyWtLppJQ8xa///o9Hp1hBgHVAVtvzlpH1Ku/5Jnli82pJ7xCVoW/rTnJ/V//9OqTXS65/sFoz82wpF98H7kF+cFocrfQlfRHZtzh8EzBnSIKeVkSFxmW2JCqPUsgmdF32t78UsaQquQXdGGsDYC0N3D4N4rLCk5SVxxuiXU0uliZRNh1QsM6X3K2C4j+uQbGZHUWQM5+RDMoXKuwVwInYlXK5YCNf8AzQYr8jxAypBXe34WQCuupRdvMWpcvr2MSiOnWsgk10lUETvRuBpMVPKtTKxMUb8iQqsz06mGFwjLRPhEuazEJD3MN9KOesTiEzNU94+gKfUIJ40qdY+t88gxQaNXH9FaMg9jWX9C14XWwTL1UAZXUaRezkjXbDfzpOTbtinaebvdnbqEnHiFa0yaiWyAL0DRt0S66DazUvs2eRwupQDUo9lUzHKZ8xeyFuRKnLI+w7XzdywIKjoFskRkqfXhvoXpt2gzkP1K2wQu/+s2Zwfa8cSM= | ||
bucket: snap.ci.snap-telemetry.io | ||
region: us-west-2 | ||
skip_cleanup: true | ||
local-dir: s3 | ||
upload-dir: plugins | ||
acl: public_read | ||
on: | ||
repo: intelsdi-x/snap-plugin-processor-anomalydetection | ||
tags: true | ||
condition: $TEST_TYPE = "build" && $TRAVIS_GO_VERSION = "1.7.3" | ||
- provider: releases | ||
api_key: | ||
secure: I9GxllmmOFHbKWS176bkHGeaSf3+axWuJAmS4aBgVc2Qv/JEC3v9n/nIu8xR+brGFnVjskrj+zs06iKySu8cud2b5nvldwusG1Da8Rie12D0T7c5Pljs18/oK9MYFTsNvuXM5gS1/vHnK0331hMzYISHc3JIzgVgaBEbL1tojKzX9Ad2m/vIQucEeNczeUv+dvpMhz7uGPIo6QlO1PPkhNIa5mNnhfkROvG6+tgflDETvayhtBFhUbCNk5QZLuCiQLRt5xkj2rO7bBLqCAKArFMadct5qRFKIm5OgRfaWJHWY47ELIKCpSrmVmTGIDZ6H7YfMKWvzec4kOnW5J9nIFTgZFtxVtuwD4IYogYVU3hiht38cPXKc48JIMYSiFaJvDHDBGIazqVrcNPDchzcsbCLS0rnCHbiW5RGJnDv0QjF4kHlMEB6E9SPHXGWV1VE1xEP857aeQQGth/Tt1+PQWo5mIk/Tfkul6bJZjncz0jXUPF+6CN2KkDmFoHL/d4oCxBoH3KHsCc8oh9Ltg3sePn404dQyptOtpLoSntrjYkULw/vmg1l01ODvsc8m4NblRpT/muBx6RsRfI6YyqETOL7Jw3geDKoRg1CIAmudOPagj4oP5Y/xAiaDdX5/+t5flRhtqQIKu/yr7Nyg1ArP20HK/Zv+fkomI5dwLD78D4= | ||
file: | ||
- release/snap-plugin-processor-anomalydetection_linux_x86_64 | ||
skip_cleanup: true | ||
on: | ||
repo: intelsdi-x/snap-plugin-processor-anomalydetection | ||
tags: true | ||
condition: $TEST_TYPE = "build" && $TRAVIS_GO_VERSION = "1.7.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,57 @@ | ||
# snap publisher plugin - anomalydetection | ||
# snap plugin processor anomalydetection | ||
|
||
1. [Contributing Code](#contributing-code) | ||
2. [Contribute Elsewhere](#contribute-elsewhere) | ||
3. [Thank You](#thank-you) | ||
2. [Contributing Examples](#contributing-examples) | ||
3. [Contribute Elsewhere](#contribute-elsewhere) | ||
4. [Reporting Security Issues](#reporting-security-issues) | ||
5. [Thank You](#thank-you) | ||
|
||
This repository has dedicated developers from Intel working on updates. The most helpful way to contribute is by reporting your experience through issues. Issues may not be updated while we review internally, but they're still incredibly appreciated. | ||
This repository is primarily **community supported**. We both appreciate and need your contribution to keep it stable. Thank you for being part of the community! We love you for it. | ||
|
||
## Contributing Code | ||
**_IMPORTANT_**: We encourage contributions to the project from the community. We ask that you keep the following guidelines in mind when planning your contribution. | ||
|
||
* Whether your contribution is for a bug fix or a feature request, **create an [Issue](https://github.com/snap-plugin-processor-anomalydetection/issues)** and let us know what you are thinking | ||
* **For bugs**, if you have already found a fix, feel free to submit a Pull Request referencing the Issue you created | ||
* **For feature requests**, we want to improve upon the library incrementally which means small changes at a time. In order ensure your PR can be reviewed in a timely manner, please keep PRs small, e.g. <10 files and <500 lines changed. If you think this is unrealistic, then mention that within the issue and we can discuss it | ||
* Whether your contribution is for a bug fix or a feature request, **create an [Issue](https://github.com/intelsdi-x/snap-plugin-processor-anomalydetection/issues)** and let us know what you are thinking. | ||
* **For bugs**, if you have already found a fix, feel free to submit a Pull Request referencing the Issue you created. Include the `Fixes #` syntax to link it to the issue you're addressing. | ||
* **For feature requests**, we want to improve upon the library incrementally which means small changes at a time. In order to ensure your PR can be reviewed in a timely manner, please keep PRs small, e.g. <10 files and <500 lines changed. If you think this is unrealistic, then mention that within the issue and we can discuss it. | ||
|
||
Once you're ready to contribute code back to this repo, start with these steps: | ||
|
||
* Fork the appropriate sub-projects that are affected by your change | ||
* Clone the fork to `$GOPATH/src/github.com/intelsdi-x/` | ||
``` | ||
$ git clone https://github.com/<yourGithubID>/<project>.git | ||
``` | ||
* Create a topic branch for your change and checkout that branch | ||
* Fork the appropriate sub-projects that are affected by your change. | ||
* Clone the fork to `$GOPATH/src/github.com/intelsdi-x/`: | ||
|
||
``` | ||
$ cd "${GOPATH}/src/github.com/intelsdi-x/" | ||
$ git clone https://github.com/intelsdi-x/snap-plugin-processor-anomalydetection.git | ||
``` | ||
$ git checkout -b some-topic-branch | ||
* Create a topic branch for your change and checkout that branch: | ||
|
||
``` | ||
* Make your changes and run the test suite if one is provided (see below) | ||
* Commit your changes and push them to your fork | ||
* Open a pull request for the appropriate project | ||
* Contributors will review your pull request, suggest changes, and merge it when it’s ready and/or offer feedback | ||
* To report a bug or issue, please open a new issue against this repository | ||
$ git checkout -b some-topic-branch | ||
``` | ||
* Make your changes and run the test suite if one is provided. | ||
* Commit your changes and push them to your fork. | ||
* Open a pull request for the appropriate project. | ||
* Contributors will review your pull request, suggest changes, and merge it when it’s ready and/or offer feedback. | ||
|
||
If you have questions feel free to contact the [maintainers](https://github.com/intelsdi-x/snap/blob/master/README.md#maintainers). | ||
|
||
If you have questions feel free to contact the [maintainers](README.md#maintainers). | ||
## Contributing Examples | ||
The most immediately helpful way you can benefit this project is by cloning the repository, adding some further examples and submitting a pull request. | ||
|
||
Have you written a blog post about how you use [Snap](http://github.com/intelsdi-x/snap) and/or this plugin? Send it to us [on Slack](http://slack.snap-telemetry.io)! | ||
|
||
## Contribute Elsewhere | ||
This repository is one of **many** plugins in **snap**, a powerful telemetry framework. See the full project at http://github.com/intelsdi-x/snap | ||
This repository is one of **many** plugins in **Snap**, a powerful telemetry framework. See the full project at http://snap-telemetry.io | ||
|
||
|
||
## Reporting Security Issues | ||
|
||
The Snap team take security very seriously. If you have any issue regarding security, | ||
please notify us by sending an email to snap-security@intel.com and not by creating a GitHub issue. | ||
We will follow up with you promptly with more information and a plan for remediation. | ||
While we are not offering a security bounty, we would love to send some Snap swag your way along with our | ||
deepest gratitude for your assistance in making Snap a more secure product. | ||
|
||
## Thank You | ||
And **thank you!** Your contribution, through code and participation, is incredibly important to us. | ||
And **thank you!** Your contribution, through code and participation, is incredibly important to us. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// +build unit | ||
// +build small | ||
|
||
/* | ||
http://www.apache.org/licenses/LICENSE-2.0.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// +build unit | ||
// +build small | ||
|
||
/* | ||
http://www.apache.org/licenses/LICENSE-2.0.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// +build unit | ||
// +build small | ||
|
||
/* | ||
http://www.apache.org/licenses/LICENSE-2.0.txt | ||
|
Oops, something went wrong.