Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 2.42 KB

README.md

File metadata and controls

58 lines (38 loc) · 2.42 KB

MetricsV1

(MetricsV1)

Overview

Operations to get metrics by process. We store 72 hours of metrics data.

Available Operations

GetMetrics

Get metrics for a process using appId and processId.

Example Usage

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
}

Parameters

Parameter Type Required Description
request GetMetricsRequest ✔️ The request object to use for the request.

Response

GetMetricsResponse

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 401,404,422,429,500 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /