組織 トラフィック API

概要

指定した期間の同時接続数や帯域の情報が取得できます。

指定月トラフィック

API URL:

https://api.sora-cloud.shiguredo.app/orgs/get-traffics-for-month

組織単位での指定した月のトラフィックを取得します。

  • 最大同時接続数

  • 最大帯域

  • 転送量 (Ingress / Egress)

$ https -A bearer -a <API-KEY> \
    POST api.sora-cloud.shiguredo.app/orgs/get-traffics-for-month \
    year:=<YEAR> \
    month:=<MONTH> \
    -vvv

POST /orgs/get-traffics-for-month HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Bearer <API-KEY>
Connection: keep-alive
Content-Length: 27
Content-Type: application/json
Host: api.sora-cloud.shiguredo.app
User-Agent: HTTPie/3.2.0

{
    "year": 2023,
    "month": 12
}

HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Type: application/json; charset=UTF-8
Date: Thu, 21 Dec 2023 09:35:10 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
Transfer-Encoding: chunked
Vary: Accept-Encoding
alt-svc: h3=":443"; ma=86400

[
    {
        "date": "2023-12-01T00:00:00Z",
        "max_concurrent_connections": 2,
        "max_bandwidth_mbps": 2,
        "ingress": 203222648,
        "egress": 149065812
    },
    {
        "date": "2023-12-02T00:00:00Z",
        "max_concurrent_connections": 2,
        "max_bandwidth_mbps": 2,
        "ingress": 124288260,
        "egress": 122220468
    },
    {
        "date": "2023-12-03T00:00:00Z",
        "max_concurrent_connections": 0,
        "max_bandwidth_mbps": 0,
        "ingress": 0,
        "egress": 0
    },
    {
        "date": "2023-12-04T00:00:00Z",
        "max_concurrent_connections": 1,
        "max_bandwidth_mbps": 1,
        "ingress": 7292024,
        "egress": 29912
    },
    ...
]
© Copyright 2024, Shiguredo Inc. Created using Sphinx 7.2.6