> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# アプリケーションのステータス取得

> アプリケーションのステータス情報を収集します。

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  アカウントの API キーです。これは[アカウント設定](https://squarecloud.app/ja/account/security)で確認できます。
</ParamField>

### Parameters

<ParamField path="app_id" type="string" placeholder="Application ID" required>
  アプリケーションのID。アプリケーションのダッシュボードのURLで確認できます。
</ParamField>

<ParamField path="rawData" type="boolean" placeholder="true or false">
  生データが必要な場合に指定します。True の場合、値をバイト単位で返します。
</ParamField>

### Response

<ResponseField name="status" type="string">
  呼び出しが成功したかどうかを示します。成功した場合は `success`、失敗した場合は `error` です。
</ResponseField>

<ResponseField name="response" type="object">
  レスポンスの内容。

  <Expandable title="オブジェクトを切り替える">
    <ResponseField name="cpu" type="string">
      アプリケーションのCPU使用率。
    </ResponseField>

    <ResponseField name="ram" type="string">
      アプリケーションのRAM使用量。
    </ResponseField>

    <ResponseField name="status" type="string">
      アプリケーションのステータス。
    </ResponseField>

    <ResponseField name="running" type="boolean">
      アプリケーションが現在実行中かどうかを示します。
    </ResponseField>

    <ResponseField name="storage" type="string">
      アプリケーションが使用しているストレージ。
    </ResponseField>

    <ResponseField name="network" type="object">
      <Expandable title="オブジェクトを切り替える">
        <ResponseField name="total" type="string">
          アプリケーションの合計ネットワーク使用量。
        </ResponseField>

        <ResponseField name="now" type="string">
          アプリケーションの現在のネットワーク使用量。
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="uptime" type="number">
      アプリケーションの稼働時間（ミリ秒単位）。
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
      "status": "success",
      "response": {
          "cpu": "0.01%",
          "ram": "31.79",
          "status": "running",
          "running": true,
          "storage": "2.72MB",
          "network": {
              "total": "602 KB ↑ 134 KB ↓",
              "now": "14 KB ↑ 3.3 KB ↓"
          },
          "uptime": 1662927833666
      }
  }
  ```
</ResponseExample>
