組織 ログ API

概要

ログに関する API です。過去のセッションやコネクションのログを確認できます。

セッションログ一覧

API URL:

https://api.sora-cloud.shiguredo.app/orgs/list-session-logs

直近 3 日間分のセッションを最大 1000 件取得します。利用転送量の単位はバイトです。

$ https -A bearer -a <API-KEY> \
    POST https://api.sora-cloud.shiguredo.app/orgs/list-session-logs \
    project_id=<PROJECT-ID> \
    -vvv

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

{
    "project_id": "A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9"
}

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

[
    {
        "timestamp": "2023-12-21T10:13:59.947433Z",
        "channel_id": "channel-1@A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9",
        "session_id": "DM2ASQDRF90H9DPS5S5ABKWTKM",
        "total_connections": 1,
        "max_connections": 1,
        "created_timestamp": "2023-12-21T10:13:21.731452Z",
        "destroyed_timestamp": "2023-12-21T10:13:59.947058Z",
        "duration_min": 0
    },
    {
        "timestamp": "2023-12-21T08:05:21.073115Z",
        "channel_id": "channel-1@A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9",
        "session_id": "4HW0G1Y65H57519CFEHTGP5ZG0",
        "total_connections": 1,
        "max_connections": 1,
        "created_timestamp": "2023-12-21T08:03:24.052625Z",
        "destroyed_timestamp": "2023-12-21T08:05:21.072713Z",
        "duration_min": 1
    },
    ...
]

コネクションログ一覧

API URL:

https://api.sora-cloud.shiguredo.app/orgs/list-connection-logs

直近 3 日間分のコネクション情報を最大 1000 件取得します。利用転送量の単位はバイトです。

$ https -A bearer -a <API-KEY> \
    POST https://api.sora-cloud.shiguredo.app/orgs/list-connection-logs \
    project_id=<PROJECT-ID> \
    -vvv

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

{
    "project_id": "A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9"
}

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

[
    {
        "timestamp": "2023-12-21T10:13:42.909631Z",
        "channel_id": "channel-1@A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9",
        "session_id": "DM2ASQDRF90H9DPS5S5ABKWTKM",
        "client_id": "96NA2SW34N4HB948FZQATMKNV0",
        "bundle_id": "96NA2SW34N4HB948FZQATMKNV0",
        "connection_id": "96NA2SW34N4HB948FZQATMKNV0",
        "total_received_bytes": 1500758,
        "total_sent_bytes": 2272,
        "created_timestamp": "2023-12-21T10:13:21.938754Z",
        "destroyed_timestamp": "2023-12-21T10:13:42.909534Z",
        "duration_min": 0
    },
    {
        "timestamp": "2023-12-21T08:05:04.017143Z",
        "channel_id": "channel-1@A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9",
        "session_id": "4HW0G1Y65H57519CFEHTGP5ZG0",
        "client_id": "J7DSDH13392X797FS0Z8A35R34",
        "bundle_id": "J7DSDH13392X797FS0Z8A35R34",
        "connection_id": "J7DSDH13392X797FS0Z8A35R34",
        "total_received_bytes": 7200849,
        "total_sent_bytes": 10596,
        "created_timestamp": "2023-12-21T08:03:24.262361Z",
        "destroyed_timestamp": "2023-12-21T08:05:04.016977Z",
        "duration_min": 1
    },
    ...
]

API ログ一覧

API URL:

https://api.sora-cloud.shiguredo.app/orgs/list-api-logs

直近 3 日間分の API ログを最大 1000 件取得します。

$ https -A bearer -a <API-KEY> \
    POST api.sora-cloud.shiguredo.app/orgs/list-api-logs \
    project_id=<PROJECT-ID> \
    -vvv

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

{
    "project_id": "A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9"
}

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

[
    {
        "timestamp": "2023-12-21T10:19:57.8Z",
        "url": "https://api.sora-cloud.shiguredo.app/orgs/list-connection-logs",
        "status": 200,
        "elapsed_time_ms": 6
    },
    {
        "timestamp": "2023-12-21T10:19:57.784Z",
        "url": "https://api.sora-cloud.shiguredo.app/orgs/list-session-logs",
        "status": 200,
        "elapsed_time_ms": 5
    },
    {
        "timestamp": "2023-12-21T10:19:57.769Z",
        "url": "https://api.sora-cloud.shiguredo.app/orgs/get-past-connection",
        "status": 400,
        "elapsed_time_ms": 5
    },
    ...
]

Sora API ログ一覧

API URL:

https://api.sora-cloud.shiguredo.app/orgs/list-sora-api-logs

直近 3 日間分の API ログを最大 1000 件取得します。

$ https -A bearer -a <API-KEY> \
    POST api.sora-cloud.shiguredo.app/orgs/list-sora-api-logs \
    project_id=<PROJECT-ID> \
    -vvv

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

{
    "project_id": "A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9"
}

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

[
    {
        "timestamp": "2023-12-19T07:28:23.248Z",
        "sora_target": "Sora_20230628.TerminateSession",
        "channel_id": "channel-1@A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9",
        "status": 200,
        "elapsed_time_ms": 2130
    },
    {
        "timestamp": "2023-12-19T04:12:05.857Z",
        "sora_target": "Sora_20161101.StopRecording",
        "channel_id": "channel-1@A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9",
        "status": 200,
        "elapsed_time_ms": 5
    },
    ...
]

ウェブフックログ一覧

API URL:

https://api.sora-cloud.shiguredo.app/orgs/list-webhook-logs

直近 3 日間分のウェブフックログを最大 1000 件取得します。

$ https -A bearer -a <API-KEY> \
    POST api.sora-cloud.shiguredo.app/orgs/list-webhook-logs \
    project_id=<PROJECT-ID> \
    -vvv

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

{
    "project_id": "A5J467N5AWTQHFSA2VIKVNGDB2VK2DC9"
}

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

[
    {
        "timestamp": "2023-12-21T10:19:50.009Z",
        "type": "connection.created",
        "url": "https://example.com/event",
        "status": 200,
        "elapsed_time_ms": 4
    },
    {
        "timestamp": "2023-12-21T10:19:49.792Z",
        "type": "session.created",
        "url": "https://example.com/session",
        "status": 200,
        "elapsed_time_ms": 3
    },
    ...
]
© Copyright 2024, Shiguredo Inc. Created using Sphinx 8.1.3