Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loggy - S3 Uploader #1

Open
Void9711 opened this issue Apr 21, 2020 · 1 comment
Open

Loggy - S3 Uploader #1

Void9711 opened this issue Apr 21, 2020 · 1 comment

Comments

@Void9711
Copy link
Contributor

S3 Uploader

  • Sample Request
{
    "batchDataId": "xxxxxxxx-xxxx-Axxx-Bxxx-xxxxxxxxxxxx",
    "batchTimestamp": "2020-04-21 20:23:44.123",
    "channel": "sunit",
    "deviceId": "12321312dsf",
    "os": "android",
    "osVersion": "9.0",
    "deviceBrand": "小米",
    "deviceModel": "mi",
    "packageName": "com.sgsdk.client.channel",
    "appVersion": "1.0",
    "appVersionCode": "232",
    "appId": "1037",
    "buildNumber": "20201104171013",
    "sgVersion": "1.0.0",
    "deviceScreen": "1280*720",
    "network": "1"
}
  • Sample Response
{
    "message": "OK",
    "uploadLogs": {
        "url": "https://pirates-dev.s3.cn-north-1.amazonaws.com.cn/gperf/upload/logs/client/2020/03/07/641b85e755c2b7e049f1552e7dec9e2d8fdea9ac.gz?...",
        "method": "PUT",
        "headers": {
            "x-amz-acl": "public-read",
            "content-type": "application/gzip"
        },
        "compression": "GZIP",
        "expires": 1583560579
    }
}
@zhiguangwang
Copy link
Contributor

batchTimestamp 这种时间戳,格式要标准,两种选择:

  1. String 类型,ISO8601 格式。举例:2020-04-23T10:45:26.559+0800
  2. Number 类型,秒级精度的 Unix Timestamp。举例:1587610008

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants