You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

elasticsearch-watcher

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch-watcher

Watcher API plugin for the JavaScript elasticsearch client

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

elasticsearch-watcher

Watcher API plugin for the elasticsearch.js client.

Install

elasticsearch-watcher is available on NPM:

npm install elasticsearch elasticsearch-watcher

bower:

bower install elasticsearch elasticsearch-watcher

Or by simply downloading elasticsearch-watcher.js and including it in your project.

NOTE: The elasticsearch-watcher.js file uses a UMD wrapper to greater compatibility and exports a global ElasticsearchWatcher variable when neither AMD or Common.js module systems are detected.

Usage

The elasticsearch-watcher API is a plugin for the elasticsearch.js client. To mix it into an instance of Client we pass the entire module like so:

var elasticsearch = require('elasticsearch');
var elasticsearchWatcher = require('elasticsearch-watcher');

var client = new elasticsearch.Client({
  plugins: [ elasticsearchWatcher ]
});

Doing this will add the client.watcher api to the client instance:

client.watcher.getWatch({ id: 42 })
.then(function (resp) {
  ...
});

API

Documentation for the watcher api is available at elastic/elasticsearch-watcher-js/docs/api.asciidoc for the time being.

License

Copyright 2015 Elasticsearch

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

FAQs

Package last updated on 20 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts