Event

Catalog


POST Log

Request path:

https://observer.aiursoft.com/Event/Log

Request example:

https://observer.aiursoft.com/Event/Log?AccessToken=yourAccessToken&Message=yourMessage&StackTrace=yourStackTrace&Path=yourPath&EventLevel=yourEventLevel

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&Message=yourMessage&StackTrace=yourStackTrace&Path=yourPath&EventLevel=yourEventLevel 

Request form:

Name Required Type
AccessToken Not required Text
Message Not required Text
StackTrace Not required Text
Path Not required Text
EventLevel Not required A magic type!

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

GET View

Request path:

https://observer.aiursoft.com/Event/View

Request example:

https://observer.aiursoft.com/Event/View?AccessToken=yourAccessToken

Try

Request arguments:

Name Required Type
AccessToken Not required Text

Possible Response:

{
  "logs": [
    {
      "message": "an example string.",
      "first": {
        "appId": "an example string.",
        "message": "an example string.",
        "stackTrace": "an example string.",
        "eventLevel": 0,
        "path": "an example string.",
        "logTime": "2020-09-26T00:31:24.2471709Z"
      },
      "count": 0
    }
  ],
  "appId": "an example string.",
  "code": 0,
  "message": "an example string."
}

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}