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

# .NET: GetUsageAnalyticsModel

> Signatures, models and behavior for SKM.V3.Models.GetUsageAnalyticsModel in the .NET SDK 4.0.54.

Parameters used by [`GetDailyAggregates(string, GetUsageAnalyticsModel)`](/libraries/dotnet-reference/methods/ai#get-daily-aggregates-f4f8ca1a59), [`GetDailyCountryAggregates(string, GetUsageAnalyticsModel)`](/libraries/dotnet-reference/methods/ai#get-daily-country-aggregates-6e4612f51a), [`GetKeyUsageSummaries(string, GetUsageAnalyticsModel)`](/libraries/dotnet-reference/methods/ai#get-key-usage-summaries-f96e71d323), [`GetKeyDevices(string, GetUsageAnalyticsModel)`](/libraries/dotnet-reference/methods/ai#get-key-devices-bd86ebf4de), [`GetLicenseActivityBuckets(string, GetUsageAnalyticsModel)`](/libraries/dotnet-reference/methods/ai#get-license-activity-buckets-255765440e).

**Namespace:** `SKM.V3.Models`\
**Version:** 4.0.54. Both packages; all six documented target frameworks.

<CodeGroup>
  ```csharp C# theme={null}
  public class GetUsageAnalyticsModel : RequestModel
  ```

  ```vb VB.NET theme={null}
  Public Class GetUsageAnalyticsModel Inherits RequestModel
  ```
</CodeGroup>

Shared filters for the five Usage Analytics methods. Each endpoint uses its own subset of these filters; see [AI](/libraries/dotnet-reference/methods/ai). Date strings use `yyyy-MM-dd`. Set `Limit` explicitly, for example to `100`. Use the returned IDs with `StartingAfter` or `EndingBefore` to request another page. These results do not expose a `Total` field.

[Web API Reference](/api-reference/generated/GetDailyAggregates)

## Inherited SDK Members

* [`LicenseServerUrl`](/libraries/dotnet-reference/models/request-model#license-server-url-67581aa5cb)

## Properties

<a id="country-code-659e21a8b3" />

### CountryCode

The country code to filter on.

<CodeGroup>
  ```csharp C# theme={null}
  public string CountryCode { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property CountryCode As String
  ```
</CodeGroup>

**Type:** `string`

<a id="end-77c2ed96c1" />

### End

Only return aggregate records on or before this date.

<CodeGroup>
  ```csharp C# theme={null}
  public string End { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property [End] As String
  ```
</CodeGroup>

**Type:** `string`

<a id="ending-before-bc8dbfe311" />

### EndingBefore

Works as a backward cursor. If the first result had id=125, setting this to 125 returns results before 125.

<CodeGroup>
  ```csharp C# theme={null}
  public long EndingBefore { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property EndingBefore As Long
  ```
</CodeGroup>

**Type:** `long`

<a id="key-3cadd8d121" />

### Key

The license key string to filter on.

<CodeGroup>
  ```csharp C# theme={null}
  public string Key { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property Key As String
  ```
</CodeGroup>

**Type:** `string`

<a id="key-id-c2bd287541" />

### KeyId

The license key ID to filter on.

<CodeGroup>
  ```csharp C# theme={null}
  public long KeyId { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property KeyId As Long
  ```
</CodeGroup>

**Type:** `long`

<a id="limit-3c4ed973ed" />

### Limit

Specifies how many aggregate records should be returned.

<CodeGroup>
  ```csharp C# theme={null}
  public int Limit { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property Limit As Integer
  ```
</CodeGroup>

**Type:** `int`

<a id="machine-code-2592bb0bde" />

### MachineCode

The machine code to filter on.

<CodeGroup>
  ```csharp C# theme={null}
  public string MachineCode { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property MachineCode As String
  ```
</CodeGroup>

**Type:** `string`

<a id="product-id-4dad622da6" />

### ProductId

The product id to filter on.

<CodeGroup>
  ```csharp C# theme={null}
  public int ProductId { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property ProductId As Integer
  ```
</CodeGroup>

**Type:** `int`

<a id="start-3c9ebd3e90" />

### Start

Only return aggregate records on or after this date.

<CodeGroup>
  ```csharp C# theme={null}
  public string Start { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property Start As String
  ```
</CodeGroup>

**Type:** `string`

<a id="starting-after-4c44a860a3" />

### StartingAfter

Works as a forward cursor. If the last result had id=125, setting this to 125 returns results after 125.

<CodeGroup>
  ```csharp C# theme={null}
  public long StartingAfter { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property StartingAfter As Long
  ```
</CodeGroup>

**Type:** `long`

## Constructors

<a id="ctor-0378d76430" />

### GetUsageAnalyticsModel()

Creates an empty GetUsageAnalyticsModel object. This constructor does not send an API request.

<CodeGroup>
  ```csharp C# theme={null}
  public GetUsageAnalyticsModel()
  ```

  ```vb VB.NET theme={null}
  Public Sub New()
  ```
</CodeGroup>

[.NET SDK Reference](/libraries/dotnet-api) · [Reviewed Source Revision](https://github.com/Cryptolens/cryptolens-dotnet/tree/30aaf399ba53d9a111bee896c35bf557fa219394)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.