Show / Hide Table of Contents

Class ProjectsResource.EventsResource

The "events" collection of methods.

Inheritance
object
ProjectsResource.EventsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Clouderrorreporting.v1beta1
Assembly: Google.Apis.Clouderrorreporting.v1beta1.dll
Syntax
public class ProjectsResource.EventsResource

Constructors

EventsResource(IClientService)

Constructs a new resource.

Declaration
public EventsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

List(string)

Lists the specified events.

Declaration
public virtual ProjectsResource.EventsResource.ListRequest List(string projectName)
Parameters
Type Name Description
string projectName

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectID} or projects/{projectID}/locations/{location}, where {projectID} is the Google Cloud Platform project ID and {location} is a Cloud region. Examples: projects/my-project-123, projects/my-project-123/locations/global. For a list of supported locations, see Supported Regions. global is the default when unspecified.

Returns
Type Description
ProjectsResource.EventsResource.ListRequest

Report(ReportedErrorEvent, string)

Report an individual error event and record the event to a log. This endpoint accepts either an OAuth token, or an API key for authentication. To use an API key, append it to the URL as the value of a key parameter. For example: POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456 Note: [Error Reporting] (https://cloud.google.com/error-reporting) is a service built on Cloud Logging and can analyze log entries when all of the following are true: * Customer-managed encryption keys (CMEK) are disabled on the log bucket. * The log bucket satisfies one of the following: * The log bucket is stored in the same project where the logs originated. * The logs were routed to a project, and then that project stored those logs in a log bucket that it owns.

Declaration
public virtual ProjectsResource.EventsResource.ReportRequest Report(ReportedErrorEvent body, string projectName)
Parameters
Type Name Description
ReportedErrorEvent body

The body of the request.

string projectName

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID. Example: // projects/my-project-123.

Returns
Type Description
ProjectsResource.EventsResource.ReportRequest
In this article
Back to top Generated by DocFX