> ## Documentation Index
> Fetch the complete documentation index at: https://alguna.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Billable Metric

## Response

<ResponseField name="id" type="string">
  The unique identifier for the metric.
</ResponseField>

<ResponseField name="description" type="string">
  A brief description of what the metric measures.
</ResponseField>

<ResponseField name="name" type="string">
  The name of the metric.
</ResponseField>

<ResponseField name="eventName" type="string">
  The event that triggers the metric.
</ResponseField>

<ResponseField name="filters" type="[]object">
  An array of filter groups applied to the metric to narrow down the events counted.

  <Expandable title="Filter Group Properties">
    <ResponseField name="operator" type="string">
      The logical operator (e.g., "and") used to combine the filters within the group.
    </ResponseField>

    <ResponseField name="filters" type="[]object">
      An array of individual filters within the group.

      <Expandable title="Filter Properties">
        <ResponseField name="field" type="string">
          The event property to filter by.
        </ResponseField>

        <ResponseField name="operator" type="string">
          The condition to apply (e.g., "equal").
        </ResponseField>

        <ResponseField name="value" type="string">
          The value that the event property must match.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="aggregation" type="object">
  The aggregation settings that define how the events are calculated to produce the metric value.

  <Expandable title="Aggregation Properties">
    <ResponseField name="method" type="string">
      The aggregation method to apply (e.g., "sum").
    </ResponseField>

    <ResponseField name="field" type="string">
      The event property that is aggregated.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="createdAt" type="datetime">
  The timestamp when the metric was created.
</ResponseField>

<ResponseField name="updatedAt" type="datetime">
  The timestamp when the metric was last updated.
</ResponseField>

<ResponseField name="organizationID" type="string">
  The unique identifier for the organization associated with the metric.
</ResponseField>

<Snippet file="metric-create-response.mdx" />
