1.0.0-alpha.2 • Published 6 years ago

egg-sls v1.0.0-alpha.2

Weekly downloads
10
License
MIT
Repository
github
Last release
6 years ago

egg-sls

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-sls --save

Usage

// {app_root}/config/plugin.js
exports.sls = {
  enable: true,
  package: 'egg-sls',
};

Configuration

// {app_root}/config/config.default.js
exports.sls = {
};

see config/config.default.js for more detail.

Example

API

Project

  • createProject
  • deleteProject
  • getProject
  • listProject
  • getProjectLogs

LogStore

  • createLogstore
  • deleteLogstore
  • getLogstore
  • listLogstore
  • updateLogstore
  • getLogs
  • getHistograms

Shard

  • ListShards
  • SplitShard
  • MergeShards
  • PostLogStoreLogs
  • GetCursor
  • PullLogs

Index

  • createIndex
  • getIndex
  • updateIndex
  • deleteIndex

Config

  • createConfig
  • deleteConfig
  • getConfig
  • listConfig
  • updateConfig
  • GetAppliedMachineGroups

Questions & Suggestions

Please open an issue here.

License

MIT