ThreatMatch
התאמה כשבודקים רשומה של איום ברשימות האיומים של הגלישה הבטוחה.
שדות |
threatType |
enum (ThreatType )
סוג האיום שתואם לאיום הזה.
|
platformType |
enum (PlatformType )
סוג הפלטפורמה שתואמת לאיום הזה.
|
threatEntryType |
enum (ThreatEntryType )
סוג הכניסה לאיום שתואם לאיום הזה.
|
threat |
object (ThreatEntry )
האיום שתואם לאיום הזה.
|
threatEntryMetadata |
object (ThreatEntryMetadata )
מטא-נתונים אופציונליים שמשויכים לאיום הזה.
|
cacheDuration |
string (Duration format)
משך החיים של ההתאמה שהוחזרה במטמון. כדי למנוע תוצאות חיוביות מוטעות, אסור ללקוחות לשמור את התשובה הזו במטמון במשך יותר מפרק הזמן הזה. משך זמן בשניות עם עד תשע ספרות עשרוניות, שמסתיים ב-'s '. לדוגמה: "3.5s" .
|
ThreatEntryMetadata
המטא-נתונים שמשויכים לרשומה ספציפית של איום. אנחנו מצפים מהלקוח לדעת מהם צמדי המפתח/ערך של המטא-נתונים שמשויכים לכל סוג של איום.
MetadataEntry
ייצוג JSON |
{
"key": string,
"value": string
} |
שדות |
key |
string (bytes format)
המפתח של הזנת המטא-נתונים. בבקשות JSON, המפתח בקידוד base64. מחרוזת בקידוד base64.
|
value |
string (bytes format)
הערך של רשומת המטא-נתונים. בבקשות JSON, הערך הוא בקידוד base64. מחרוזת בקידוד base64.
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]