

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 目的地和 AWS IoT Greengrass 串流管理員
<a name="destinations-gg-stream-manager"></a>

AWS IoT Greengrass 串流管理員可讓您將資料傳送至下列 AWS 雲端 目的地： 中的頻道 AWS IoT Analytics、Amazon Kinesis Data Streams 中的串流、 中的資產屬性 AWS IoT SiteWise，或 Amazon Simple Storage Service (Amazon S3) 中的物件。如需詳細資訊，請參閱[《 AWS IoT Greengrass 開發人員指南》中的管理 核心上的資料串流](https://docs.aws.amazon.com/greengrass/v2/developerguide/manage-data-streams.html)。 *AWS IoT Greengrass Version 2 *

**Example ：資料串流訊息結構**  
下列範例顯示串流管理員傳輸的必要資料 AWS IoT Greengrass 串流訊息結構。  

```
{
   "assetId": "string",
   "propertyAlias": "string",
   "propertyId": "string",
   "propertyValues": [
      {
         "quality": "string",
         "timestamp": {
            "offsetInNanos": number,
            "timeInSeconds": number
         },
         "value": {
            "booleanValue": boolean,
            "doubleValue": number,
            "integerValue": number,
            "stringValue": "string"
         }
      }
   ]
}
```

**注意**  
資料串流訊息必須在其結構`propertyAlias`中包含 (`assetId` 和 `propertyId`) 或 。

`assetId`  
（選用） 要更新的資產 ID。

`propertyAlias`  
（選用） 識別 屬性的別名，例如 OPC UA 伺服器資料串流路徑。例如：  

```
/company/windfarm/3/turbine/7/temperature
```
如需詳細資訊，請參閱*AWS IoT SiteWise 《* [ 使用者指南》中的管理資料串流](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/manage-data-streams.html)。

`propertyId`  
（選用） 此項目的資產屬性 ID。

`propertyValues`  
（必要） 要上傳的屬性值清單。您最多可以指定 10 個`propertyValues`陣列元素。    
`quality`  
（選用） 資產屬性值的品質。  
 `timestamp`   
（必要） 資產屬性值的時間戳記。    
 `offsetInNanos`   
（選用） 與 的奈秒位移`timeInSeconds`。  
 `timeInSeconds`   
（必要） 時間戳記日期，以秒為單位，以 Unix epoch 格式顯示。分數奈秒資料由 提供`offsetInNanos`。  
 `value`   
（必要） 資產屬性的值。  
`value` 欄位中只能存在下列其中一個值。  
 `booleanValue`   
（選用） 布林值 (`true` 或 ) 類型的資產屬性資料`false`。  
 `doubleValue`   
（選用） 類型為雙的資產屬性資料 （浮點編號）。  
 `integerValue`   
（選用） 類型整數的資產屬性資料 （整數）。  
 `stringValue`   
（選用） 類型字串的資產屬性資料 （字元序列）。