ThreatMatch
รายการที่ตรงกันเมื่อตรวจสอบรายการภัยคุกคามในรายการภัยคุกคามของ Google Safe Browsing
ช่อง |
threatType |
enum (ThreatType )
ประเภทภัยคุกคามที่ตรงกับภัยคุกคามนี้
|
platformType |
enum (PlatformType )
ประเภทแพลตฟอร์มที่ตรงกับภัยคุกคามนี้
|
threatEntryType |
enum (ThreatEntryType )
ประเภทรายการภัยคุกคามที่ตรงกับภัยคุกคามนี้
|
threat |
object (ThreatEntry )
ภัยคุกคามที่ตรงกับภัยคุกคามนี้
|
threatEntryMetadata |
object (ThreatEntryMetadata )
ข้อมูลเมตาที่ไม่บังคับซึ่งเชื่อมโยงกับภัยคุกคามนี้
|
cacheDuration |
string (Duration format)
อายุการใช้งานของแคชสำหรับการจับคู่ที่แสดงผล ไคลเอ็นต์ต้องไม่แคชคำตอบนี้ไว้เกินจากระยะเวลานี้เพื่อหลีกเลี่ยงผลบวกลวง ระยะเวลาเป็นวินาทีโดยมีเลขเศษส่วนไม่เกิน 9 หลัก ลงท้ายด้วย "s " ตัวอย่างเช่น "3.5s"
|
ThreatEntryMetadata
ข้อมูลเมตาที่เชื่อมโยงกับรายการภัยคุกคามหนึ่งๆ ไคลเอ็นต์ควรทราบคู่คีย์/ค่าของข้อมูลเมตาที่เชื่อมโยงกับภัยคุกคามแต่ละประเภท
MetadataEntry
รายการข้อมูลเมตารายการเดียว
การแสดง JSON |
{
"key": string,
"value": string
} |
ช่อง |
key |
string (bytes format)
คีย์รายการข้อมูลเมตา สำหรับคำขอ JSON คีย์จะเข้ารหัส base64 สตริงที่เข้ารหัสฐาน 64
|
value |
string (bytes format)
ค่ารายการข้อมูลเมตา สำหรับคำขอ JSON ค่าจะเข้ารหัส base64 สตริงที่เข้ารหัสฐาน 64
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-06 UTC
[null,null,["อัปเดตล่าสุด 2025-03-06 UTC"],[[["ThreatMatch indicates a match when checking for threats in Safe Browsing threat lists, containing information about the threat type, platform, and entry type."],["It includes optional metadata associated with the specific threat entry, which may provide additional context."],["ThreatEntryMetadata stores this metadata as key-value pairs, understood by the client based on the threat type."],["MetadataEntry represents a single metadata entry, where both the key and value are base64-encoded for JSON requests."]]],["The document defines data structures for threat matches in Safe Browsing. A threat match includes `threatType`, `platformType`, `threatEntryType`, and the matching `threat`. It may optionally contain `threatEntryMetadata`, consisting of `MetadataEntry` objects with `key` and `value` string pairs. Each match also specifies `cacheDuration`, dictating how long the match should be considered valid, to avoid false positives. Data representation is in JSON format with specific structure for `ThreatEntryMetadata` and `MetadataEntry`.\n"]]