# GetCostAnalyticsRequest

## Example Usage

```typescript
import { GetCostAnalyticsRequest } from "@flexprice/sdk/sdk/models";

let value: GetCostAnalyticsRequest = {};
```

## Fields

| Field                                                                                                                                                                                                                                                                             | Type                                                                                                                                                                                                                                                                              | Required                                                                                                                                                                                                                                                                          | Description                                                                                                                                                                                                                                                                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `endTime`                                                                                                                                                                                                                                                                         | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                | N/A                                                                                                                                                                                                                                                                               |
| `expand`                                                                                                                                                                                                                                                                          | *string*[]                                                                                                                                                                                                                                                                        | :heavy_minus_sign:                                                                                                                                                                                                                                                                | Expand options - specify which entities to expand                                                                                                                                                                                                                                 |
| `externalCustomerId`                                                                                                                                                                                                                                                              | *string*                                                                                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                                                                                | Optional - for specific customer                                                                                                                                                                                                                                                  |
| `featureIds`                                                                                                                                                                                                                                                                      | *string*[]                                                                                                                                                                                                                                                                        | :heavy_minus_sign:                                                                                                                                                                                                                                                                | Additional filters                                                                                                                                                                                                                                                                |
| `includeChildren`                                                                                                                                                                                                                                                                 | *boolean*                                                                                                                                                                                                                                                                         | :heavy_minus_sign:                                                                                                                                                                                                                                                                | IncludeChildren, when true and ExternalCustomerID belongs to a parent<br/>customer, aggregates every inherited-child customer's usage into the<br/>revenue and cost totals. Default (false) restricts the query to the<br/>customer's own usage — mirrors the meter-usage analytics contract. |
| `limit`                                                                                                                                                                                                                                                                           | *number*                                                                                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                                                                                | Pagination                                                                                                                                                                                                                                                                        |
| `offset`                                                                                                                                                                                                                                                                          | *number*                                                                                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                                                                                | N/A                                                                                                                                                                                                                                                                               |
| `propertyFilters`                                                                                                                                                                                                                                                                 | Record<string, *string*[]>                                                                                                                                                                                                                                                        | :heavy_minus_sign:                                                                                                                                                                                                                                                                | Property filters to filter the events by the keys in `properties` field of the event                                                                                                                                                                                              |
| `startTime`                                                                                                                                                                                                                                                                       | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                | Time range fields (optional - defaults to last 7 days if not provided)                                                                                                                                                                                                            |