Giter VIP home page Giter VIP logo

issue-generator's Introduction

RestApp

This rest app you can use for generating log and metric data using api as well as UI also for

  • API List

    • /greeting
    • /issues
    • /dogcount
    • /catcount
    • /logs?type=''
    • /issue?type=''
    • /warn?type=''

Get a html page

Request

GET /greeting/

curl -i -H 'Accept: application/json' http://localhost:8080/greeting/

GET /`

curl -i -H 'Accept: application/json' http://localhost:8080

Response

HTTP/1.1 200 OK
HTML Page

Rest APIs

Request

GET /dogcount

curl -i -H 'Accept: application/json' http://localhost:8080/dogcount

Response

{ "dogCount": 16 }

Request

GET /catcount

curl -i -H 'Accept: application/json' http://localhost:8080/catcount

Response

{ "catCount": 20 }

Request

GET /issues/

curl -i -H 'Accept: application/json' http://localhost:8080/issues?issue='INFO'

GET /logs?type='INFO'

curl -i -H 'Accept: application/json' http://localhost:8080/logs?type='INFO'

list of request param values 
   - CRITICAL
   - DEBUG
   - ERROR
   - WARN
   - INFO

Request for specific errors

GET /issue?type='OUT_OF_MEMORY'

curl -i -H 'Accept: application/json' http://localhost:8080/issue?type='OUT_OF_MEMORY'

list of request param values 
   - OUT_OF_MEMORY
   - STACK_OVERFLOW_ERROR
   - FILE_NOT_FOUND
   - ARRAY_INDEX_OUT_OF_BOUND
   - NULL_POINTER
   - STRING_INDEX_OUT_OF_BOUND
   - NO_CLASS_DEF_FOUND
   - NO_SUCH_METHOD_FOUND
   - NUMBER_FORMAT
   - ILLEGAL_ARGUMENT
   - CLASS_NOT_FOUND

Request for specific warnings

GET /warn?type='GARBAGE_COLLECTION'

curl -i -H 'Accept: application/json' http://localhost:8080/warn?type='GARBAGE_COLLECTION'

list of request param values 
   - GARBAGE_COLLECTION
   - DEPRECATED_API
   - VERSION

description

will create a log of type issue valid input for issue are CRITICAL,ERROR,DEBUG,WARN,INFO defalult log will be of type info

issue-generator's People

Contributors

luthan95 avatar vknarayan avatar opsmxdemo 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.