(MetricsV1)
Operations to get metrics by process. We store 72 hours of metrics data.
- GetMetrics - Get metrics for a process using
appId
andprocessId
.
Get metrics for a process using appId
and processId
.
using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;
using System.Collections.Generic;
var sdk = new HathoraCloudSDK(
security: new Security() {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
},
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");
GetMetricsRequest req = new GetMetricsRequest() {
ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e",
};
using(var res = await sdk.MetricsV1.GetMetricsAsync(req))
{
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
request |
GetMetricsRequest | ✔️ | The request object to use for the request. |
Error Object | Status Code | Content Type |
---|---|---|
HathoraCloud.Models.Errors.ApiError | 401,404,422,429,500 | application/json |
HathoraCloud.Models.Errors.SDKException | 4xx-5xx | / |