取得可設定價格的使用統計資料。
HTTP 要求
GET https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/configurablePricingUsageStats}
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
| name | 
 這是必要旗標,要擷取的 ConfigurablePricingUsageStats 名稱。格式:projects/{project}/locations/{location}/configurablePricingUsageStats | 
查詢參數
| 參數 | |
|---|---|
| timeRange | 
 (選用步驟) 使用量匯總的時間範圍。如果未設定 endDate,系統會預設為目前日期。如未設定 startDate,系統會預設為 endDate 前 30 天。 | 
| metricTypes[] | 
 (選用步驟) 要傳回用量的指標類型。 | 
要求主體
要求主體必須為空白。
回應主體
[EstimateBillingService.GetConfigurablePricingUsageStats] 方法的回應。
如果成功,回應主體會含有以下結構的資料:
| JSON 表示法 | 
|---|
| {
  "name": string,
  "metricUsages": [
    {
      object ( | 
| 欄位 | |
|---|---|
| name | 
 ID。ConfigurablePricingUsageStats 的名稱。格式:projects/{project}/locations/{location}/configurablePricingUsageStats | 
| metricUsages[] | 
 指標用量清單,每個指標用量對應一個在要求時間範圍內有資料的要求資源類型。 | 
授權範圍
需要下列其中一種 OAuth 範圍:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/discoveryengine.readwrite
詳情請參閱Authentication Overview。
TimeRange
使用量匯總的時間範圍。
| JSON 表示法 | 
|---|
| { "startDate": { object ( | 
| 欄位 | |
|---|---|
| startDate | 
 (選用步驟) 使用量匯總的開始日期 (含)。 | 
| endDate | 
 (選用步驟) 用量匯總的結束日期 (含此日期)。 | 
BillingMetricType
用量統計資料的帳單指標類型。
| 列舉 | |
|---|---|
| BILLING_METRIC_TYPE_UNSPECIFIED | 預設值。 | 
| DAILY_MDN_QPM | 每日搜尋要求 QPM 中位數。 | 
| DAILY_MIN_QPM | 每日最低搜尋要求 QPM。 | 
| DAILY_MAX_QPM | 每日搜尋要求 QPM 上限。 | 
| DAILY_SEARCH_REQUEST | 每日搜尋要求總數。 | 
| TOTAL_STORAGE | 索引核心的儲存空間位元組總數。 | 
MetricUsage
一段時間內指標的使用情況。
| JSON 表示法 | 
|---|
| { "metricType": enum ( | 
| 欄位 | |
|---|---|
| metricType | 
 指標類型。 | 
| datedUsages[] | 
 這類資源的用量清單,依日期排序。系統會針對每日匯總的指標 (例如 DAILY_MDN_QPM) 填入這項資料。 | 
| totalUsages[] | 
 這項資源類型的總用量清單 | 
DatedUsage
特定日期的用量清單。
| JSON 表示法 | 
|---|
| {
  "date": {
    object ( | 
| 欄位 | |
|---|---|
| date | 
 使用日期。 | 
| usage | 
 當天的用量值。 |