Full name: projects.locations.instances.forwarders.importStatsEvents
forwarders.importStatsEvents imports stats events from a forwarder.
HTTP request
Path parameters
Parameters
name
string
Required. The ID of the forwarder. Format: projects/{project}/locations/{location}/instances/{instance}/forwarders/{forwarder}
Request body
The request body contains data with the following structure:
JSON representation
{// Union field source can be only one of the following:"inlineSource": {object (InlineSource)}// End of list of possible types for union field source.}
Fields
Union field source. The source of the events to be imported. source can be only one of the following:
Required. Batch Id to use when ingesting StatsEvents.
A base64-encoded string.
IngestionStatsEvent
message to represent the stats related event forwarder will send.
JSON representation
{"eventTime": string,// Union field event can be only one of the following:"stats": {object (StatsEvent)},"agentStats": {object (AgentStatsEvent)}// End of list of possible types for union field event.}
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
Union field event. The stats event to be imported, either StatsEvent or AgentStatsEvent. event can be only one of the following:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eThis webpage details how to use the \u003ccode\u003eimportStatsEvents\u003c/code\u003e method to import stats events from a forwarder to a specific instance, and the endpoint is \u003ccode\u003ePOST https://chronicle.googleapis.com/v1alpha/{name}:importStatsEvents\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe required path parameter \u003ccode\u003ename\u003c/code\u003e specifies the forwarder's ID in the format \u003ccode\u003eprojects/{project}/locations/{location}/instances/{instance}/forwarders/{forwarder}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include a union field \u003ccode\u003esource\u003c/code\u003e, which is set to an \u003ccode\u003einline_source\u003c/code\u003e object containing an array of \u003ccode\u003eIngestionStatsEvent\u003c/code\u003e objects and an \u003ccode\u003eevent_batch_id\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIngestionStatsEvent\u003c/code\u003e requires a timestamp of the event, \u003ccode\u003eevent_time\u003c/code\u003e, and either a \u003ccode\u003estats\u003c/code\u003e or \u003ccode\u003eagent_stats\u003c/code\u003e object to represent the stats event being imported.\u003c/p\u003e\n"],["\u003cp\u003eThe method requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,[]]