ThreatMatch
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Kecocokan saat memeriksa entri ancaman dalam daftar ancaman Safe Browsing.
Kolom |
threatType |
enum (ThreatType )
Jenis ancaman yang cocok dengan ancaman ini.
|
platformType |
enum (PlatformType )
Jenis platform yang cocok dengan ancaman ini.
|
threatEntryType |
enum (ThreatEntryType )
Jenis entri ancaman yang cocok dengan ancaman ini.
|
threat |
object (ThreatEntry )
Ancaman yang cocok dengan ancaman ini.
|
threatEntryMetadata |
object (ThreatEntryMetadata )
Metadata opsional yang terkait dengan ancaman ini.
|
cacheDuration |
string (Duration format)
Masa aktif cache untuk kecocokan yang ditampilkan. Klien tidak boleh meng-cache respons ini selama lebih dari durasi ini untuk menghindari positif palsu. Durasi dalam detik dengan maksimal sembilan digit pecahan, yang diakhiri dengan 's '. Contoh: "3.5s" .
|
ThreatEntryMetadata
Metadata yang terkait dengan entri ancaman tertentu. Klien diharapkan mengetahui key-value pair metadata yang terkait dengan setiap jenis ancaman.
MetadataEntry
Representasi JSON |
{
"key": string,
"value": string
} |
Kolom |
key |
string (bytes format)
Kunci entri metadata. Untuk permintaan JSON, kuncinya dienkode dengan base64. String berenkode base64.
|
value |
string (bytes format)
Nilai entri metadata. Untuk permintaan JSON, nilainya dienkode dengan base64. String berenkode base64.
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eThreatMatch indicates a match when checking for threats in Safe Browsing threat lists, containing information about the threat type, platform, and entry type.\u003c/p\u003e\n"],["\u003cp\u003eIt includes optional metadata associated with the specific threat entry, which may provide additional context.\u003c/p\u003e\n"],["\u003cp\u003eThreatEntryMetadata stores this metadata as key-value pairs, understood by the client based on the threat type.\u003c/p\u003e\n"],["\u003cp\u003eMetadataEntry represents a single metadata entry, where both the key and value are base64-encoded for JSON requests.\u003c/p\u003e\n"]]],["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"],null,[]]