

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# GetPropertyValueHistory
<a name="API_GetPropertyValueHistory"></a>

Mengambil informasi tentang riwayat nilai properti deret waktu untuk komponen, tipe komponen, entitas, atau ruang kerja.

Anda harus menentukan nilai untuk `workspaceId`. Untuk kueri khusus entitas, tentukan nilai untuk dan. `componentName` `entityId` Untuk kueri lintas entitas, tentukan nilai untuk. `componentTypeId`

## Minta Sintaks
<a name="API_GetPropertyValueHistory_RequestSyntax"></a>

```
POST /workspaces/{{workspaceId}}/entity-properties/history HTTP/1.1
Content-type: application/json

{
   "componentName": "{{string}}",
   "componentPath": "{{string}}",
   "componentTypeId": "{{string}}",
   "endDateTime": {{number}},
   "endTime": "{{string}}",
   "entityId": "{{string}}",
   "interpolation": { 
      "interpolationType": "{{string}}",
      "intervalInSeconds": {{number}}
   },
   "maxResults": {{number}},
   "nextToken": "{{string}}",
   "orderByTime": "{{string}}",
   "propertyFilters": [ 
      { 
         "operator": "{{string}}",
         "propertyName": "{{string}}",
         "value": { 
            "booleanValue": {{boolean}},
            "doubleValue": {{number}},
            "expression": "{{string}}",
            "integerValue": {{number}},
            "listValue": [ 
               "DataValue"
            ],
            "longValue": {{number}},
            "mapValue": { 
               "{{string}}" : "DataValue"
            },
            "relationshipValue": { 
               "targetComponentName": "{{string}}",
               "targetEntityId": "{{string}}"
            },
            "stringValue": "{{string}}"
         }
      }
   ],
   "selectedProperties": [ "{{string}}" ],
   "startDateTime": {{number}},
   "startTime": "{{string}}"
}
```

## Parameter Permintaan URI
<a name="API_GetPropertyValueHistory_RequestParameters"></a>

Permintaan menggunakan parameter URI berikut.

 ** [workspaceId](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-uri-workspaceId"></a>
ID ruang kerja.  
Batasan Panjang: Panjang minimum 1. Panjang maksimum 128.  
Pola: `[a-zA-Z_0-9][a-zA-Z_\-0-9]*[a-zA-Z0-9]+`   
Wajib: Ya

## Isi Permintaan
<a name="API_GetPropertyValueHistory_RequestBody"></a>

Permintaan menerima data berikut dalam format JSON.

 ** [componentName](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-componentName"></a>
Nama komponen.  
Tipe: String  
Batasan Panjang: Panjang minimum 1. Panjang maksimum 256.  
Pola: `[a-zA-Z_\-0-9]+`   
Wajib: Tidak

 ** [componentPath](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-componentPath"></a>
String ini menentukan jalur ke komponen komposit, mulai dari komponen tingkat atas.  
Tipe: String  
Batasan Panjang: Panjang minimum 1. Panjang maksimum 2048.  
Pola: `[a-zA-Z_\-0-9/]+`   
Wajib: Tidak

 ** [componentTypeId](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-componentTypeId"></a>
ID dari jenis komponen.  
Tipe: String  
Batasan Panjang: Panjang minimum 1. Panjang maksimum 256.  
Pola: `[a-zA-Z_\.\-0-9:]+`   
Wajib: Tidak

 ** [endDateTime](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-endDateTime"></a>
 *Parameter ini sudah usang.*   
Tanggal dan waktu pengembalian nilai properti terbaru.  
Tipe: Timestamp  
Wajib: Tidak

 ** [endTime](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-endTime"></a>
 ISO8601 DateTime Nilai properti terbaru untuk dikembalikan.  
Untuk informasi selengkapnya tentang ISO8601 DateTime format, lihat tipe data [PropertyValue](https://docs.aws.amazon.com/iot-twinmaker/latest/apireference/API_PropertyValue.html).  
Tipe: String  
Batasan Panjang: Panjang minimum 20. Panjang maksimum 35.  
Wajib: Tidak

 ** [entityId](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-entityId"></a>
ID entitas.  
Tipe: String  
Batasan Panjang: Panjang minimum 1. Panjang maksimum 128.  
Pola: `[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+`   
Wajib: Tidak

 ** [interpolation](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-interpolation"></a>
Objek yang menentukan jenis interpolasi dan interval untuk menginterpolasi data.  
Tipe: Objek [InterpolationParameters](API_InterpolationParameters.md)  
Wajib: Tidak

 ** [maxResults](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-maxResults"></a>
Jumlah maksimum hasil untuk kembali pada satu waktu. Default-nya adalah 25.  
Rentang yang Valid: Nilai minimum 1. Nilai maksimum 250.  
Jenis: Integer  
Rentang yang Valid: Nilai minimum 0. Nilai maksimum 200.  
Wajib: Tidak

 ** [nextToken](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-nextToken"></a>
String yang menentukan halaman berikutnya dari hasil.  
Tipe: String  
Batasan Panjang: Panjang minimum 0. Panjang maksimum 17880.  
Pola: `.*`   
Wajib: Tidak

 ** [orderByTime](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-orderByTime"></a>
Arah waktu yang digunakan dalam urutan hasil.  
Tipe: String  
Nilai yang Valid: `ASCENDING | DESCENDING`   
Wajib: Tidak

 ** [propertyFilters](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-propertyFilters"></a>
Daftar objek yang memfilter permintaan riwayat nilai properti.  
Tipe: Array objek [PropertyFilter](API_PropertyFilter.md)  
Anggota Array: Jumlah minimum 1 item. Jumlah maksimum 10 item.  
Wajib: Tidak

 ** [selectedProperties](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-selectedProperties"></a>
Daftar properti yang nilainya riwayat permintaan diambil.  
Tipe: Array string  
Anggota Array: Jumlah minimum 1 item. Jumlah maksimum 10 item.  
Batasan Panjang: Panjang minimum 1. Panjang maksimum 256.  
Pola: `.*`   
Wajib: Ya

 ** [startDateTime](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-startDateTime"></a>
 *Parameter ini sudah usang.*   
Tanggal dan waktu dari nilai properti paling awal untuk dikembalikan.  
Tipe: Timestamp  
Wajib: Tidak

 ** [startTime](#API_GetPropertyValueHistory_RequestSyntax) **   <a name="tm-GetPropertyValueHistory-request-startTime"></a>
Nilai ISO8601 DateTime properti paling awal untuk dikembalikan.  
Untuk informasi selengkapnya tentang ISO8601 DateTime format, lihat tipe data [PropertyValue](https://docs.aws.amazon.com/iot-twinmaker/latest/apireference/API_PropertyValue.html).  
Tipe: String  
Batasan Panjang: Panjang minimum 20. Panjang maksimum 35.  
Wajib: Tidak

## Sintaksis Respons
<a name="API_GetPropertyValueHistory_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "nextToken": "string",
   "propertyValues": [ 
      { 
         "entityPropertyReference": { 
            "componentName": "string",
            "componentPath": "string",
            "entityId": "string",
            "externalIdProperty": { 
               "string" : "string" 
            },
            "propertyName": "string"
         },
         "values": [ 
            { 
               "time": "string",
               "timestamp": number,
               "value": { 
                  "booleanValue": boolean,
                  "doubleValue": number,
                  "expression": "string",
                  "integerValue": number,
                  "listValue": [ 
                     "DataValue"
                  ],
                  "longValue": number,
                  "mapValue": { 
                     "string" : "DataValue"
                  },
                  "relationshipValue": { 
                     "targetComponentName": "string",
                     "targetEntityId": "string"
                  },
                  "stringValue": "string"
               }
            }
         ]
      }
   ]
}
```

## Elemen Respons
<a name="API_GetPropertyValueHistory_ResponseElements"></a>

Jika tindakan berhasil, layanan mengirimkan kembali respons HTTP 200.

Layanan mengembalikan data berikut dalam format JSON.

 ** [nextToken](#API_GetPropertyValueHistory_ResponseSyntax) **   <a name="tm-GetPropertyValueHistory-response-nextToken"></a>
String yang menentukan halaman berikutnya dari hasil.  
Tipe: String  
Batasan Panjang: Panjang minimum 0. Panjang maksimum 17880.  
Pola: `.*` 

 ** [propertyValues](#API_GetPropertyValueHistory_ResponseSyntax) **   <a name="tm-GetPropertyValueHistory-response-propertyValues"></a>
Objek yang memetakan string ke definisi properti dalam tipe komponen. Setiap string dalam pemetaan harus unik untuk objek ini.  
Tipe: Array objek [PropertyValueHistory](API_PropertyValueHistory.md)

## Kesalahan
<a name="API_GetPropertyValueHistory_Errors"></a>

Untuk informasi tentang kesalahan yang umum untuk semua tindakan, lihat [Jenis Kesalahan Umum](CommonErrors.md).

 ** AccessDeniedException **   
Akses ditolak.  
Kode Status HTTP: 403

 ** ConnectorFailureException **   
Konektor gagal.  
Kode Status HTTP: 424

 ** ConnectorTimeoutException **   
Konektor habis waktunya.  
Kode Status HTTP: 424

 ** InternalServerException **   
Terjadi kesalahan tak terduga.  
Kode Status HTTP: 500

 ** ResourceNotFoundException **   
Sumber daya tidak ditemukan.  
Kode Status HTTP: 404

 ** ThrottlingException **   
Tarif melebihi batas.  
Kode Status HTTP: 429

 ** ValidationException **   
Gagal  
Kode Status HTTP: 400

## Lihat Juga
<a name="API_GetPropertyValueHistory_SeeAlso"></a>

Untuk informasi selengkapnya tentang penggunaan API ini di salah satu bahasa khusus AWS SDKs, lihat berikut ini:
+  [AWS Antarmuka Baris Perintah V2](https://docs.aws.amazon.com/goto/cli2/iottwinmaker-2021-11-29/GetPropertyValueHistory) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/iottwinmaker-2021-11-29/GetPropertyValueHistory) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/iottwinmaker-2021-11-29/GetPropertyValueHistory) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/iottwinmaker-2021-11-29/GetPropertyValueHistory) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iottwinmaker-2021-11-29/GetPropertyValueHistory) 
+  [AWS SDK untuk V3 JavaScript ](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/iottwinmaker-2021-11-29/GetPropertyValueHistory) 
+  [AWS SDK para Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/iottwinmaker-2021-11-29/GetPropertyValueHistory) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/iottwinmaker-2021-11-29/GetPropertyValueHistory) 
+  [AWS SDK untuk Python](https://docs.aws.amazon.com/goto/boto3/iottwinmaker-2021-11-29/GetPropertyValueHistory) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iottwinmaker-2021-11-29/GetPropertyValueHistory) 