REST Resource: accounts.dataSources.fileUploads
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: FileUpload
การอัปโหลดไฟล์ของแหล่งข้อมูลหนึ่งๆ ซึ่งก็คือผลลัพธ์ของการดึงข้อมูลแหล่งข้อมูล ณ การประทับเวลาหนึ่งๆ ที่คำนวณแบบไม่พร้อมกันเมื่อการประมวลผลแหล่งข้อมูลเสร็จสิ้น ใช้ได้กับแหล่งข้อมูลไฟล์เท่านั้น
การแสดง JSON |
{
"name": string,
"dataSourceId": string,
"processingState": enum (ProcessingState ),
"issues": [
{
object (Issue )
}
],
"itemsTotal": string,
"itemsCreated": string,
"itemsUpdated": string,
"uploadTime": string
} |
ช่อง |
name |
string
ตัวระบุ ชื่อการอัปโหลดไฟล์แหล่งข้อมูล รูปแบบ: {datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}
|
dataSourceId |
string (int64 format)
เอาต์พุตเท่านั้น รหัสแหล่งข้อมูล
|
processingState |
enum (ProcessingState )
เอาต์พุตเท่านั้น สถานะการประมวลผลของแหล่งข้อมูล
|
issues[] |
object (Issue )
เอาต์พุตเท่านั้น รายการปัญหาที่เกิดขึ้นในแหล่งข้อมูล
|
itemsTotal |
string (int64 format)
เอาต์พุตเท่านั้น จํานวนรายการในแหล่งข้อมูลที่ประมวลผลแล้ว
|
itemsCreated |
string (int64 format)
เอาต์พุตเท่านั้น จํานวนรายการในแหล่งข้อมูลที่สร้างขึ้น
|
itemsUpdated |
string (int64 format)
เอาต์พุตเท่านั้น จํานวนรายการในแหล่งข้อมูลที่อัปเดตแล้ว
|
uploadTime |
string (Timestamp format)
เอาต์พุตเท่านั้น วันที่อัปโหลดไฟล์ของแหล่งข้อมูล
|
ProcessingState
สถานะการประมวลผลของแหล่งข้อมูล
Enum |
PROCESSING_STATE_UNSPECIFIED |
ไม่ได้ระบุสถานะการประมวลผล |
FAILED |
ประมวลผลแหล่งข้อมูลไม่ได้หรือรายการทั้งหมดมีข้อผิดพลาด |
IN_PROGRESS |
กำลังประมวลผลแหล่งข้อมูล |
SUCCEEDED |
ประมวลผลแหล่งข้อมูลสำเร็จแล้ว แต่บางรายการอาจมีข้อผิดพลาด |
ปัญหา
ข้อผิดพลาดที่เกิดขึ้นในแหล่งข้อมูล เช่น "ราคาไม่ถูกต้อง"
การแสดง JSON |
{
"title": string,
"description": string,
"code": string,
"count": string,
"severity": enum (Severity ),
"documentationUri": string
} |
ช่อง |
title |
string
เอาต์พุตเท่านั้น ชื่อของปัญหา เช่น "สินค้ามีขนาดใหญ่เกินไป"
|
description |
string
เอาต์พุตเท่านั้น คําอธิบายข้อผิดพลาด เช่น "แหล่งข้อมูลของคุณมีสินค้าที่ใหญ่เกินไปหรือมีแอตทริบิวต์มากเกินไป ระบบจะยกเลิกรายการเหล่านี้"
|
code |
string
เอาต์พุตเท่านั้น รหัสของข้อผิดพลาด เช่น "validation/invalid_value" แสดงผล "?" หากไม่รู้จักรหัส
|
count |
string (int64 format)
เอาต์พุตเท่านั้น จํานวนครั้งที่เกิดข้อผิดพลาดในการอัปโหลดไฟล์
|
severity |
enum (Severity )
เอาต์พุตเท่านั้น ความรุนแรงของปัญหา
|
documentationUri |
string
เอาต์พุตเท่านั้น ลิงก์ไปยังเอกสารประกอบที่อธิบายปัญหาอย่างละเอียด หากมี
|
ความรุนแรง
Enum |
SEVERITY_UNSPECIFIED |
ไม่ได้ระบุความรุนแรง |
WARNING |
ปัญหาคือคำเตือน |
ERROR |
ปัญหาคือข้อผิดพลาด |
เมธอด |
|
รับการอัปโหลดไฟล์แหล่งข้อมูลล่าสุด |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-24 UTC
[null,null,["อัปเดตล่าสุด 2024-11-24 UTC"],[[["\u003cp\u003eFileUpload is the asynchronous result of a data source retrieval, containing information about the processing of uploaded files.\u003c/p\u003e\n"],["\u003cp\u003eProcessingState indicates the status of the data source, whether it's being processed, has succeeded, or failed.\u003c/p\u003e\n"],["\u003cp\u003eIssue details errors encountered during data source processing, including descriptions, severity, and counts.\u003c/p\u003e\n"],["\u003cp\u003eFileUpload provides metrics such as the total, created, and updated items processed, along with the upload timestamp.\u003c/p\u003e\n"],["\u003cp\u003eThe resource provides a \u003ccode\u003eget\u003c/code\u003e method to retrieve the latest data source file upload details.\u003c/p\u003e\n"]]],["File uploads for data sources are processed asynchronously, with results available upon completion. Key information includes the `name`, `dataSourceId`, `processingState`, and any `issues`. The `processingState` can be `FAILED`, `IN_PROGRESS`, or `SUCCEEDED`. Issues have a `title`, `description`, `code`, `count`, and `severity` (`WARNING` or `ERROR`). Data like `itemsTotal`, `itemsCreated`, `itemsUpdated`, and `uploadTime` are also available. The `get` method is available to get the data.\n"],null,["# REST Resource: accounts.dataSources.fileUploads\n\n- [Resource: FileUpload](#FileUpload)\n - [JSON representation](#FileUpload.SCHEMA_REPRESENTATION)\n- [ProcessingState](#ProcessingState)\n- [Issue](#Issue)\n - [JSON representation](#Issue.SCHEMA_REPRESENTATION)\n- [Severity](#Severity)\n- [Methods](#METHODS_SUMMARY)\n\nResource: FileUpload\n--------------------\n\nThe file upload of a specific data source, that is, the result of the retrieval of the data source at a certain timestamp computed asynchronously when the data source processing is finished. Only applicable to file data sources.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"dataSourceId\": string, \"processingState\": enum (/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#ProcessingState), \"issues\": [ { object (/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#Issue) } ], \"itemsTotal\": string, \"itemsCreated\": string, \"itemsUpdated\": string, \"uploadTime\": string } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. The name of the data source file upload. Format: `{datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}` |\n| `dataSourceId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The data source id. |\n| `processingState` | `enum (`[ProcessingState](/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#ProcessingState)`)` Output only. The processing state of the data source. |\n| `issues[]` | `object (`[Issue](/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#Issue)`)` Output only. The list of issues occurring in the data source. |\n| `itemsTotal` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The number of items in the data source that were processed. |\n| `itemsCreated` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The number of items in the data source that were created. |\n| `itemsUpdated` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The number of items in the data source that were updated. |\n| `uploadTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. The date at which the file of the data source was uploaded. |\n\nProcessingState\n---------------\n\nThe processing state of the data source.\n\n| Enums ||\n|--------------------------------|--------------------------------------------------------------------------------------|\n| `PROCESSING_STATE_UNSPECIFIED` | Processing state unspecified. |\n| `FAILED` | The data source could not be processed or all the items had errors. |\n| `IN_PROGRESS` | The data source is being processed. |\n| `SUCCEEDED` | The data source was processed successfully, though some items might have had errors. |\n\nIssue\n-----\n\nAn error occurring in the data source, like \"invalid price\".\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"title\": string, \"description\": string, \"code\": string, \"count\": string, \"severity\": enum (/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#Severity), \"documentationUri\": string } ``` |\n\n| Fields ||\n|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `title` | `string` Output only. The title of the issue, for example, \"Item too big\". |\n| `description` | `string` Output only. The error description, for example, \"Your data source contains items which have too many attributes, or are too big. These items will be dropped\". |\n| `code` | `string` Output only. The code of the error, for example, \"validation/invalid_value\". Returns \"?\" if the code is unknown. |\n| `count` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The number of occurrences of the error in the file upload. |\n| `severity` | `enum (`[Severity](/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#Severity)`)` Output only. The severity of the issue. |\n| `documentationUri` | `string` Output only. Link to the documentation explaining the issue in more details, if available. |\n\nSeverity\n--------\n\nThe severity of the issue.\n\n| Enums ||\n|------------------------|---------------------------|\n| `SEVERITY_UNSPECIFIED` | Severity unspecified. |\n| `WARNING` | The issue is the warning. |\n| `ERROR` | The issue is an error. |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------------------------------|------------------------------------------|\n| ### [get](/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads/get) | Gets the latest data source file upload. |"]]