Upload Logs¶
UploadLogsRequest¶
Topic: josev/cs. Used by Josev to request the CS to upload logs to a remote server.  | 
|||
type  | 
object  | 
||
properties  | 
|||
  | 
type  | 
string  | 
|
format  | 
uuid  | 
||
  | 
const  | 
upload_logs  | 
|
  | 
const  | 
request  | 
|
  | 
type  | 
object  | 
|
properties  | 
|||
  | 
type  | 
integer  | 
|
  | 
enum  | 
diagnostics_log, security_log  | 
|
  | 
type  | 
string  | 
|
pattern  | 
^(https?|ftps?|sftp)://  | 
||
format  | 
uri  | 
||
  | 
type  | 
integer  | 
|
  | 
type  | 
integer  | 
|
  | 
type  | 
string  | 
|
pattern  | 
^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}:\d{2}(\.\d{1,3})?([Zz]|([+-])\d{2}:\d{2})?$  | 
||
format  | 
date-time  | 
||
  | 
type  | 
string  | 
|
pattern  | 
^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}:\d{2}(\.\d{1,3})?([Zz]|([+-])\d{2}:\d{2})?$  | 
||
format  | 
date-time  | 
||
Example:
{
    "id": "86bfba63-a44f-40cc-8b4b-dc4c9d771e52",
    "name": "upload_logs",
    "type": "request",
    "data": {
        "request_id": 12345,
        "log_type": "diagnostics_log", # security_log
        "remote_location": "https://josev-logs.s3.eu-west-2.amazonaws.com",
        "retries": 3, # [Optional]
        "retry_interval": 60, # [Optional]
        "oldest_timestamp": "2021-11-10T17:29:37Z", # [Optional]
        "latest_timestamp": "2021-11-10T19:29:37Z" # [Optional]
    }
}
UploadLogsResponse¶
Topic: cs/josev. Used to acknowledge the upload logs request.  | 
|||
type  | 
object  | 
||
properties  | 
|||
  | 
type  | 
string  | 
|
format  | 
uuid  | 
||
  | 
const  | 
upload_logs  | 
|
  | 
const  | 
response  | 
|
  | 
type  | 
object  | 
|
properties  | 
|||
  | 
enum  | 
accepted, rejected, accepted_canceled  | 
|
  | 
type  | 
string  | 
|
Example:
{
    "id": "86bfba63-a44f-40cc-8b4b-dc4c9d771e52",
    "name": "upload_logs",
    "type": "response",
    "data": {
        "status": "accepted", # rejected, accepted_canceled
        "filename": "josev-2022-09-29.log" # [Optional]
    },
}