ช่องตัวกรองการค้นหาที่รองรับ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ดูข้อมูลอ้างอิงเกี่ยวกับไวยากรณ์ตัวกรองได้ที่ตัวกรองการค้นหา และดูตัวอย่างตัวกรองด้านล่าง
ฟิลด์ที่ alerts.list
รองรับ
ช่องตัวกรอง |
alertId |
ควรใช้เพื่อกรองการแจ้งเตือนตามรหัสการแจ้งเตือน
ค่าที่สอดคล้องกันควรเป็นประเภท string
|
type |
ควรใช้เพื่อกรองการแจ้งเตือนตามประเภทการแจ้งเตือน
ค่าที่สอดคล้องกันควรเป็นประเภท string ค่าที่เป็นไปได้สำหรับตัวกรองนี้จะแสดงอยู่ในรายละเอียดช่อง Alert.type
|
source |
ควรใช้เพื่อกรองการแจ้งเตือนตามแหล่งที่มาของการแจ้งเตือน
ค่าที่สอดคล้องกันควรเป็นประเภท string ค่าที่เป็นไปได้สำหรับตัวกรองนี้จะแสดงอยู่ในรายละเอียดช่อง Alert.type
|
createTime |
ควรใช้เพื่อกรองการแจ้งเตือนตามเวลาที่สร้างการแจ้งเตือน
ค่าที่สอดคล้องกันควรเป็นประเภท string (Timestamp
format)
กล่าวคือสตริงวันที่และเวลา RFC 3339 เช่น "2018-01-01T00:00:00Z"
|
startTime |
ควรใช้เพื่อกรองการแจ้งเตือนตามเวลาเริ่มต้นการแจ้งเตือน
ค่าที่สอดคล้องกันควรเป็นประเภท string (Timestamp
format)
กล่าวคือสตริงวันที่และเวลา RFC 3339 เช่น "2018-01-01T00:00:00Z"
|
endTime |
ควรใช้เพื่อกรองการแจ้งเตือนตามเวลาสิ้นสุดการแจ้งเตือน
ค่าที่สอดคล้องกันควรเป็นประเภท string (Timestamp
format)
กล่าวคือสตริงวันที่และเวลา RFC 3339 เช่น "2018-01-01T00:00:00Z"
|
แสดงตัวอย่างการค้นหา
- วิธีค้นหาการแจ้งเตือนทั้งหมดที่สร้างตั้งแต่วันที่ 5 เมษายน 2018 เป็นต้นไป
createTime >= "2018-04-05T00:00:00Z"
- วิธีค้นหาการแจ้งเตือนทั้งหมดจากแหล่งที่มา "การฟิชชิง Gmail"
source:"Gmail phishing"
- วิธีค้นหาการแจ้งเตือนทั้งหมดที่เริ่มขึ้นในปี 2017
startTime >= "2017-01-01T00:00:00Z&" AND startTime < "2018-01-01T00:00:00Z"
- วิธีค้นหาการแจ้งเตือนฟิชชิงทั้งหมดที่ผู้ใช้รายงานจากแหล่งที่มา "ฟิชชิงใน Gmail"
type:"User reported phishing" source:"Gmail phishing"
ฟิลด์ที่ alerts.feedback.list
รองรับ
ช่องตัวกรอง |
alertId |
ควรใช้เพื่อกรองความคิดเห็นที่ตอบกลับการแจ้งเตือนตามรหัสการแจ้งเตือน
ค่าที่สอดคล้องกันควรเป็นประเภท string
ใช้เพื่อแสดงผลป้อนกลับสำหรับการแจ้งเตือนที่เลือกได้ในคําขอเดียวเมื่อใช้ไวลด์การ์ด "-" ใน alertId ของคําขอ
|
feedbackId |
ควรใช้เพื่อกรองความคิดเห็นที่ตอบกลับการแจ้งเตือนตามรหัสความคิดเห็น
ค่าที่สอดคล้องกันควรเป็นประเภท string
|
ตัวอย่างการค้นหารายการความคิดเห็น
- วิธีค้นหาความคิดเห็นของการแจ้งเตือนที่มีรหัส
alertId01
หรือ alertId02
alertId = alertId01 OR alertId = alertId02
- วิธีค้นหาความคิดเห็นของการแจ้งเตือน
alertId01
ที่มีรหัสความคิดเห็น feedbackId01
alertId = alertId01 AND feedbackId = feedbackId01
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-25 UTC
[null,null,["อัปเดตล่าสุด 2025-03-25 UTC"],[],[],null,["# Supported query filter fields\n\nSee [Query filters](/workspace/admin/alertcenter/guides/query-filters) for reference\non filter syntax, and review the filter examples below.\n\nFields supported by `alerts.list`\n---------------------------------\n\n| Filter fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `alertId` | Should be used to filter alerts based on alert id. Corresponding value should be of type: `string`. |\n| `type` | Should be used to filter alerts based on alert type. Corresponding value should be of type: `string`. Possible values for this filter are listed in the [`Alert.type` field description](/workspace/admin/alertcenter/reference/rest/v1beta1/alerts#alert-types). |\n| `source` | Should be used to filter alerts based on alert source. Corresponding value should be of type: `string`. Possible values for this filter are listed in the [`Alert.type` field description](/workspace/admin/alertcenter/reference/rest/v1beta1/alerts#alert-types). |\n| `createTime` | Should be used to filter alerts based on alert creation time. Corresponding value should be of type: `string (`[Timestamp](/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)`; more specifically, an [RFC 3339](https://tools.ietf.org/html/rfc3339) date-time string, for example, `\"2018-01-01T00:00:00Z\"` |\n| `startTime` | Should be used to filter alerts based on alert start time. Corresponding value should be of type: `string (`[Timestamp](/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)`; more specifically, an [RFC 3339](https://tools.ietf.org/html/rfc3339) date-time string, for example, `\"2018-01-01T00:00:00Z\"` |\n| `endTime` | Should be used to filter alerts based on alert end time. Corresponding value should be of type: `string (`[Timestamp](/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)`; more specifically, an [RFC 3339](https://tools.ietf.org/html/rfc3339) date-time string, for example, `\"2018-01-01T00:00:00Z\"` |\n\n### List query examples\n\n- To query for all alerts created on or after April 5, 2018: \n `createTime \u003e= \"2018-04-05T00:00:00Z\"`\n- To query for all alerts from the source \"Gmail phishing\": \n `source:\"Gmail phishing\"`\n- To query for all alerts that started in 2017: \n `startTime \u003e= \"2017-01-01T00:00:00Z&\" AND startTime \u003c \"2018-01-01T00:00:00Z\"`\n- To query for all user-reported phishing alerts from the source \"Gmail phishing\": \n `type:\"User reported phishing\" source:\"Gmail phishing\"`\n\nFields supported by `alerts.feedback.list`\n------------------------------------------\n\n| Filter fields ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `alertId` | Should be used to filter alert feedback based on alert id. Corresponding value should be of type: `string`. Can be used to list feedback for selected alerts in one call when the '-' wildcard is used in request's `alertId`. |\n| `feedbackId` | Should be used to filter alert feedback based on feedback id. Corresponding value should be of type: `string`. |\n\n### Feedback list query examples\n\n- To query feedback of alerts with ids `alertId01` or `alertId02`: \n `alertId = alertId01 OR alertId = alertId02`\n- To query feedback of an alert `alertId01` with feedback id `feedbackId01`: \n `alertId = alertId01 AND feedbackId = feedbackId01`"]]