REST Resource: projects.locations.applications.instances

資源:執行個體

說明 Instance 物件的訊息

JSON 表示法
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "labels": {
    string: string,
    ...
  },
  "displayName": string,
  "description": string,
  "inputResources": [
    {
      object (InputResource)
    }
  ],
  "outputResources": [
    {
      object (OutputResource)
    }
  ],
  "state": enum (State)
}
欄位
name

string

僅供輸出。資源名稱

createTime

string (Timestamp format)

僅供輸出。[僅供輸出] 建立時間戳記

採用 RFC3339 世界標準時間「Zulu」格式的時間戳記,精確度達奈秒單位,最多九個小數位數。例如:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

updateTime

string (Timestamp format)

僅供輸出。[僅供輸出] 更新時間戳記

採用 RFC3339 世界標準時間「Zulu」格式的時間戳記,精確度達奈秒單位,最多九個小數位數。例如:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

labels

map (key: string, value: string)

標籤為鍵/值組合

包含 "key": value 組合清單的物件。範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }

displayName

string

這是必要旗標,解決方案的使用者友善顯示名稱。

description

string

這個執行個體的說明。

inputResources[]

object (InputResource)

目前應用程式執行個體的輸入資源。例如:inputResources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

outputResources[]

object (OutputResource)

與一個應用程式例項相關聯的所有輸出資源。

state

enum (State)

執行個體的狀態。

InputResource

在一個應用程式執行個體中使用的輸入資源訊息。

JSON 表示法
{
  "consumerNode": string,
  "inputResourceBinding": string,
  "annotations": {
    object (ResourceAnnotations)
  },

  // Union field input_resource_information can be only one of the following:
  "inputResource": string,
  "annotatedStream": {
    object (StreamWithAnnotation)
  }
  // End of list of possible types for union field input_resource_information.
}
欄位
consumerNode

string

接收輸入資源的圖形節點名稱。例如:inputResource: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a consumerNode: stream-input

inputResourceBinding

string

如果只有 1 個輸入繫結,則可以忽略會使用目前輸入資源的特定輸入資源繫結。

annotations

object (ResourceAnnotations)

包含資源註解。

聯集欄位 input_resource_information。這是必要旗標,指定應用程式執行個體的輸入內容。input_resource_information 只能是下列其中一項:
inputResource

string

直接輸入資源名稱。如果執行個體類型為 STREAMING_PREDICTION,輸入資源的格式為「projects/123/locations/us-central1/clusters/456/streams/stream-a」。如果執行個體類型是 Cloud Storage 輸入容器中的 BATCH_PREDICTION,輸入資源的格式為「gs://bucket-a」。

annotatedStream
(deprecated)

object (StreamWithAnnotation)

如果輸入資源是 VisionAI 串流,則可改用 annotatedStream 指定相關註解。

ResourceAnnotations

說明資源一般註解的訊息。

JSON 表示法
{
  "applicationAnnotations": [
    {
      object (StreamAnnotation)
    }
  ],
  "nodeAnnotations": [
    {
      object (ApplicationNodeAnnotation)
    }
  ]
}
欄位
applicationAnnotations[]

object (StreamAnnotation)

將套用至整個應用程式的註解。

nodeAnnotations[]

object (ApplicationNodeAnnotation)

註解會套用至應用程式的特定節點。如果應用程式和節點都套用相同類型的註解,系統會在全域應用程式註解之外,新增節點註解。舉例來說,如果有一個用於整個應用程式的有效區域註解,以及一個用於 Occupancy Analytic 處理器的有效區域註解,則 Occupancy Analytic 處理器會定義兩個有效區域。

ApplicationNodeAnnotation

說明應用程式節點專屬註解的訊息。這則訊息是 StreamWithAnnotation.NodeAnnotation 的複本。

JSON 表示法
{
  "node": string,
  "annotations": [
    {
      object (StreamAnnotation)
    }
  ]
}
欄位
node

string

應用程式圖的節點名稱。

annotations[]

object (StreamAnnotation)

節點專屬串流註解。

OutputResource

在一個應用程式例項中使用的輸出資源訊息。

JSON 表示法
{
  "outputResource": string,
  "producerNode": string,
  "outputResourceBinding": string,
  "isTemporary": boolean,
  "autogen": boolean
}
欄位
outputResource

string

目前應用程式例項的輸出資源名稱。

producerNode

string

產生輸出資源名稱的圖表節點名稱。例如:outputResource: /projects/123/locations/us-central1/clusters/456/streams/output-application-789-stream-a-occupancy-counting producerNode: occupancy-counting

outputResourceBinding

string

產生目前 OutputResource 的特定輸出資源繫結。

isTemporary

boolean

僅供輸出。輸出資源是否為暫時性資源,也就是在應用程式部署期間產生的資源。系統會在應用程式解除部署期間刪除暫時性資源。

autogen

boolean

僅供輸出。輸出資源是否由 Vision AI App Platform 自動建立。

狀態

執行個體的狀態

列舉
STATE_UNSPECIFIED 預設值。如果省略狀態,系統會使用這個值。
CREATING 狀態為 CREATING。
CREATED 狀態為「CREATED」。
DEPLOYING 狀態 DEPLOYING。
DEPLOYED 狀態為「已部署」。
UNDEPLOYING 狀態為 UNDEPLOYING。
DELETED 狀態為「已刪除」。
ERROR 狀態為 ERROR。
UPDATING 狀態更新
DELETING 狀態為「刪除中」。
FIXING 狀態修正。

方法

get

取得單一執行個體的詳細資料。

list

列出指定專案和位置中的執行個體。