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 /greeting/
curl -i -H 'Accept: application/json' http://localhost:8080/greeting/
GET /`
curl -i -H 'Accept: application/json' http://localhost:8080
HTTP/1.1 200 OK
HTML Page
GET /dogcount
curl -i -H 'Accept: application/json' http://localhost:8080/dogcount
{ "dogCount": 16 }
GET /catcount
curl -i -H 'Accept: application/json' http://localhost:8080/catcount
{ "catCount": 20 }
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
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
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
will create a log of type issue valid input for issue are CRITICAL,ERROR,DEBUG,WARN,INFO defalult log will be of type info