HTTP Type

 

  • Server Information
    Hive Analytics Log Web Server URL is as follows.

    • Sandbox server: https://sandbox-analytics-log.withhive.com/v1/server-recv
    • Common server: https://analytics-log.withhive.com/v1/server-recv
  • Header Information
  • Method: POST
    • ContentType: application/json; charset=utf8 (required)
    • ContentEncoding: gzip (optional item to put a compressed binary in body)

 

 

  • Body Information
    • JSON type. Send data as the format mentioned below.
      Some field requires designated key values.
    • Essential parameter (Required to send the below fields from the logs)
      appId String AppId designated on Hive
      logBody Array Log Array
      logBody.catagory String Category designated in log definition
      logBody.dateTime String Log time with YYYY-MM-DD HH:mm:SS format in KST, or ISO-8601
      logBody.guid String Random key value

      Put each value in the relevant row of logBody by following the log.

    • Example
      • Call

      • Request

      • Response

      • If HTTP response status code is 200, sending log is success. Unless, it is failed.
        Key Type Value Description
        success boolean false False is fixed unless HTTP status code is 200
        message String See below Error message
        requestBody String Request value The origin log transmitted

        Error codes in the message field are as follows.

        Message Description
        no json body No parameter
        json parse error JSON format error
        json format error = required field {col} not found Essential column ({col}) does not exist
        [logBody] json format error = required field {logBody.col} not found Essential column ({logBody.col}) does not exist in logBody
        unknown category key : {logBody.catagory} Category not supported is in use