Git Product home page Git Product logo

agent_testing's Introduction

Служба постоянного мониторинга REST/RPC точек. В конфиг (configs/config_agentSite.json) нужно прописать каждую проверяемую точку. После запуска каждая точка будет проверяться исходя из параметров конфига.

[{ app: string, // name of service
name: string, // name of endpoint
enable: boolean, // skipped if false
protocol: string, // rest or other
url?: string, // first part of url
method?: string, // http-method - post, get, delete
endpoint?: string, // second part of url
endpointAuth?: string, // for PAG function - url for post
endpointGet?: string, // for PAG function - url for get
field_jwt?: string, // for PAG function - name of field store jwt
post_body: any, // body for post request. If empty - must be {}
response_code: number, // success http code
response_type?: string, // arr or obj
response_details?: string, // required field
response_error_path?: string, // field with error for alarm
response_data_path?: string, // must be data or more
message_error?: string, // message for sended of transport
timeout: number, // for axios
need_result?: boolean, // что считается успехом
status?: boolean, // matching response and need result
transport?: string[], // type of transport
transport_address?: string[], // address list
repeat: number, // interval for repeat in ms
last_check?: Date, // not put manually, date of last check
}]

Из транспортов доступны:

  • запись в log, вывод в консоль
  • telegram. Для этого транспорта необходим токен - задается в configs/.env, параметр - BOT_TOKEN

agent_testing's People

Watchers

Almas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.