Ghi nhật ký kiểm tra cho Truyền trực tuyến trên thiết bị Android
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu này mô tả tính năng ghi nhật ký kiểm tra cho tính năng Phát trực tuyến trên thiết bị Android. Google Cloud dịch vụ
tạo nhật ký kiểm tra ghi lại các hoạt động quản trị và truy cập trong tài nguyên Google Cloud của bạn.
Để biết thêm thông tin về Nhật ký kiểm tra trên Cloud, hãy xem các bài viết sau:
Nhật ký kiểm tra của Android Device Streaming sử dụng tên dịch vụ testing.googleapis.com.
Bộ lọc cho dịch vụ này:
protoPayload.serviceName="testing.googleapis.com"
Phương thức theo loại quyền
Mỗi quyền IAM có một thuộc tính type, giá trị của thuộc tính này là một enum có thể là một trong bốn giá trị: ADMIN_READ, ADMIN_WRITE, DATA_READ hoặc DATA_WRITE. Khi bạn gọi một phương thức, tính năng Truyền trực tuyến thiết bị Android sẽ tạo một nhật ký kiểm tra có danh mục phụ thuộc vào thuộc tính type của quyền cần thiết để thực hiện phương thức đó.
Những phương thức yêu cầu quyền IAM với giá trị thuộc tính type
trong số DATA_READ, DATA_WRITE hoặc ADMIN_READ sẽ tạo
Nhật ký kiểm tra Quyền truy cập dữ liệu.
Những phương thức yêu cầu quyền IAM với giá trị thuộc tính type
trong tổng số ADMIN_WRITE lượt tạo
Nhật ký kiểm tra Hoạt động của quản trị viên.
Để biết thông tin về cách thức và danh sách các quyền được đánh giá cho mỗi phương pháp,
xem tài liệu Quản lý danh tính và quyền truy cập của Cloud đối với quy trình Truyền trực tuyến trên thiết bị Android.
google.devtools.testing.v1.DirectAccessService
Các nhật ký kiểm tra sau đây được liên kết với các phương thức thuộc google.devtools.testing.v1.DirectAccessService.
AdbConnect
Phương thức: google.devtools.testing.v1.DirectAccessService.AdbConnect
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-24 UTC."],[],[],null,["This document describes audit logging for Android Device Streaming. Google Cloud services\ngenerate audit logs that record administrative and access activities within your Google Cloud resources.\nFor more information about Cloud Audit Logs, see the following:\n\n- [Types of audit logs](https://cloud.google.com/logging/docs/audit#types)\n- [Audit log entry structure](https://cloud.google.com/logging/docs/audit#audit_log_entry_structure)\n- [Storing and routing audit logs](https://cloud.google.com/logging/docs/audit#storing_and_routing_audit_logs)\n- [Cloud Logging pricing summary](https://cloud.google.com/stackdriver/pricing#logs-pricing-summary)\n- [Enable Data Access audit logs](https://cloud.google.com/logging/docs/audit/configure-data-access)\n\n\u003cbr /\u003e\n\nService name\n\nAndroid Device Streaming audit logs use the service name `testing.googleapis.com`.\nFilter for this service: \n\n```gdscript\n protoPayload.serviceName=\"testing.googleapis.com\"\n \n```\n\n\u003cbr /\u003e\n\nMethods by permission type\n\nEach IAM permission has a `type` property, whose value is an enum\nthat can be one of four values: `ADMIN_READ`, `ADMIN_WRITE`,\n`DATA_READ`, or `DATA_WRITE`. When you call a method,\nAndroid Device Streaming generates an audit log whose category is dependent on the\n`type` property of the permission required to perform the method.\n\nMethods that require an IAM permission with the `type` property value\nof `DATA_READ`, `DATA_WRITE`, or `ADMIN_READ` generate\n[Data Access](https://cloud.google.com/logging/docs/audit#data-access) audit logs.\n\nMethods that require an IAM permission with the `type` property value\nof `ADMIN_WRITE` generate\n[Admin Activity](https://cloud.google.com/logging/docs/audit#admin-activity) audit logs.\n\n| Permission type | Methods |\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ADMIN_READ` | `google.devtools.testing.v1.DirectAccessService.GetDeviceSession` `google.devtools.testing.v1.DirectAccessService.ListDeviceSessions` |\n| `ADMIN_WRITE` | `google.devtools.testing.v1.DirectAccessService.CancelDeviceSession` `google.devtools.testing.v1.DirectAccessService.CreateDeviceSession` `google.devtools.testing.v1.DirectAccessService.UpdateDeviceSession` |\n| `DATA_WRITE` | `google.devtools.testing.v1.DirectAccessService.AdbConnect` |\n\nAPI interface audit logs\n\nFor information about how and which permissions are evaluated for each method,\nsee the Cloud Identity and Access Management documentation for Android Device Streaming.\n\n`google.devtools.testing.v1.DirectAccessService`\n\nThe following audit logs are associated with methods belonging to\n`google.devtools.testing.v1.DirectAccessService`.\n\n`AdbConnect`\n\n- **Method** : `google.devtools.testing.v1.DirectAccessService.AdbConnect` \n- **Audit log type** : [Data access](https://cloud.google.com/logging/docs/audit#data-access) \n- **Permissions** :\n - `cloudtestservice.devicesession.use - DATA_WRITE`\n- **Method is a long-running or streaming operation** : [**Streaming RPC**](https://cloud.google.com/logging/docs/audit/understanding-audit-logs#streaming) \n- **Filter for this method** : `\n protoPayload.methodName=\"google.devtools.testing.v1.DirectAccessService.AdbConnect\"\n ` \n\n`CancelDeviceSession`\n\n- **Method** : `google.devtools.testing.v1.DirectAccessService.CancelDeviceSession` \n- **Audit log type** : [Admin activity](https://cloud.google.com/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `cloudtestservice.devicesession.cancel - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.devtools.testing.v1.DirectAccessService.CancelDeviceSession\"\n ` \n\n`CreateDeviceSession`\n\n- **Method** : `google.devtools.testing.v1.DirectAccessService.CreateDeviceSession` \n- **Audit log type** : [Admin activity](https://cloud.google.com/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `cloudtestservice.devicesession.create - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.devtools.testing.v1.DirectAccessService.CreateDeviceSession\"\n ` \n\n`GetDeviceSession`\n\n- **Method** : `google.devtools.testing.v1.DirectAccessService.GetDeviceSession` \n- **Audit log type** : [Data access](https://cloud.google.com/logging/docs/audit#data-access) \n- **Permissions** :\n - `cloudtestservice.devicesession.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.devtools.testing.v1.DirectAccessService.GetDeviceSession\"\n ` \n\n`ListDeviceSessions`\n\n- **Method** : `google.devtools.testing.v1.DirectAccessService.ListDeviceSessions` \n- **Audit log type** : [Data access](https://cloud.google.com/logging/docs/audit#data-access) \n- **Permissions** :\n - `cloudtestservice.devicesession.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.devtools.testing.v1.DirectAccessService.ListDeviceSessions\"\n ` \n\n`UpdateDeviceSession`\n\n- **Method** : `google.devtools.testing.v1.DirectAccessService.UpdateDeviceSession` \n- **Audit log type** : [Admin activity](https://cloud.google.com/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `cloudtestservice.devicesession.update - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.devtools.testing.v1.DirectAccessService.UpdateDeviceSession\"\n `"]]