Up to date
This page is up to date for Godot 4.3
.
If you still find outdated information, please open an issue.
POGRClientΒΆ
Inherits: BlaziumClient < Node < Object
Node for connecting to the POGR analytics service.
DescriptionΒΆ
The POGRClient node provides an interface for connecting to the POGR analytics service. Find out more on the pogr.gg website.
The normal flow is as follows:
Initiate a session using init method.
Send data using data, event, logs, metrics and monitor methods, depending on use case.
Close the session using end method at the end of the game.
Note: All methods are non blocking and can be awaited in order to get the result.
MethodsΒΆ
data(data: Dictionary) |
|
end() |
|
event(event_name: String, event_data: Dictionary, event_flag: String, event_key: String, event_type: String, event_sub_type: String) |
|
get_build_id() const |
|
get_client_id() const |
|
get_pogr_url() const |
|
init() |
|
logs(tags: Dictionary, data: Dictionary, environment: String, log: String, service: String, severity: String, type: String) |
|
metrics(tags: Dictionary, environment: String, metrics: Dictionary, service: String) |
|
monitor(settings: Dictionary) |
Method DescriptionsΒΆ
POGRResponse data(data: Dictionary) π
Send unstructured data.
Returns a POGRResponse object that has a POGRResponse.finished signal that is emitted when finished.
POGRResponse end() π
Send end request.
Returns a POGRResponse object that has a POGRResponse.finished signal that is emitted when finished.
POGRResponse event(event_name: String, event_data: Dictionary, event_flag: String, event_key: String, event_type: String, event_sub_type: String) π
Send event with unstructured data.
Returns a POGRResponse object that has a POGRResponse.finished signal that is emitted when finished.
String get_build_id() const π
Get the build id.
String get_client_id() const π
Get the client id.
String get_pogr_url() const π
Get the pogr url.
Get the session id. This is a unique identifier for the current session generated after init is called.
POGRResponse init() π
Send init request. Needs to be called first.
Returns a POGRResponse object that has a POGRResponse.finished signal that is emitted when finished.
POGRResponse logs(tags: Dictionary, data: Dictionary, environment: String, log: String, service: String, severity: String, type: String) π
Add logs to the analytics.
Returns a POGRResponse object that has a POGRResponse.finished signal that is emitted when finished.
POGRResponse metrics(tags: Dictionary, environment: String, metrics: Dictionary, service: String) π
Add metrics to the analytics.
Returns a POGRResponse object that has a POGRResponse.finished signal that is emitted when finished.
POGRResponse monitor(settings: Dictionary) π
Send monitor request.
Returns a POGRResponse object that has a POGRResponse.finished signal that is emitted when finished.