--- title: "Metrics" slug: "170-manage-metrics" updated: 2025-12-09T17:28:30Z published: 2025-12-09T18:02:06Z canonical: "docs.developer.comcast.com/170-manage-metrics" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.developer.comcast.com/llms.txt > Use this file to discover all available pages before exploring further. # Metrics **Metrics Module 1.7.0 | Manage SDK** ## Usage To use the Metrics module, you can import it into your project from the Firebolt SDK: ``` import { Metrics } from '@firebolt-js/manage-sdk' ``` ## Overview Methods for sending metrics ## Methods ### event Inform the platform of 1st party distributor metrics. ``` function event( schema: string, data: EventObject, agePolicy: AgePolicy, ): Promise ``` Parameters: | Param | Type | Required | Description | | --- | --- | --- | --- | | `schema` | `string` | true | The schema URI of the metric type format: uri | | `data` | [`EventObject`](/docs/170-manage-metrics#eventobject-1) | true | A JSON payload conforming the the provided schema | | `agePolicy` | [`AgePolicy`](/docs/170-manage-Policies-schemas#AgePolicy) | false | The age policy to associate with the metrics event. The age policy describes the age group to which content is directed. | Promise resolution: Capabilities: | Role | Capability | | --- | --- | | uses | xrn:firebolt:capability:metrics:distributor | #### Examples Send foo event JavaScript: ``` import { Metrics } from '@firebolt-js/manage-sdk' let results = await Metrics.event('http://meta.rdkcentral.com/some/schema', { foo: 'foo', }) console.log(results) ``` Value of `results`: ``` null ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "Metrics.event", "params": { "schema": "http://meta.rdkcentral.com/some/schema", "data": { "foo": "foo" } } } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": null } ``` --- ## Types ### EventObjectPrimitives ``` type EventObjectPrimitives = string | number | number | boolean | null ``` --- ### EventObject ``` type EventObject = [property: string]: EventObjectPrimitives | EventObjectPrimitives | EventObject[] | EventObject ``` See also: [EventObjectPrimitives](/docs/170-manage-metrics#eventobjectprimitives) [EventObject](/docs/170-manage-metrics#eventobject-1) ---