# OperationalInsightsTableProxy

- Module: [Aspire.Hosting.Azure.Provisioning.OperationalInsights](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the OperationalInsightsTable Azure Provisioning model.

## Definition

```typescript
interface OperationalInsightsTableProxy {
  readonly archiveRetentionInDays: BicepValueProxy | number;
  readonly id: BicepValueProxy;
  readonly isRetentionInDaysAsDefault: BicepValueProxy | boolean;
  readonly isTotalRetentionInDaysAsDefault: BicepValueProxy | boolean;
  readonly lastPlanModifiedDate: BicepValueProxy | string;
  name: BicepValueProxy | string;
  parent: OperationalInsightsWorkspaceProxy;
  plan: BicepValueProxy | OperationalInsightsTablePlan;
  readonly provisioningState: BicepValueProxy | OperationalInsightsTableProvisioningState;
  restoredLogs: OperationalInsightsTableRestoredLogsProxy;
  readonly resultStatistics: OperationalInsightsTableResultStatisticsProxy;
  retentionInDays: BicepValueProxy | number;
  schema: OperationalInsightsSchemaProxy;
  searchResults: OperationalInsightsTableSearchResultsProxy;
  readonly systemData: OperationalInsightsSystemDataProxy;
  totalRetentionInDays: BicepValueProxy | number;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearName(): void;
  clearPlan(): void;
  clearRetentionInDays(): void;
  clearTotalRetentionInDays(): void;
}
```

## Properties

- `archiveRetentionInDays`: `BicepValueProxy | number` `get` -- Gets the ArchiveRetentionInDays provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `isRetentionInDaysAsDefault`: `BicepValueProxy | boolean` `get` -- Gets the IsRetentionInDaysAsDefault provisioning property.
- `isTotalRetentionInDaysAsDefault`: `BicepValueProxy | boolean` `get` -- Gets the IsTotalRetentionInDaysAsDefault provisioning property.
- `lastPlanModifiedDate`: `BicepValueProxy | string` `get` -- Gets the LastPlanModifiedDate provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [OperationalInsightsWorkspaceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `plan`: `BicepValueProxy | OperationalInsightsTablePlan` `get - set` -- Gets or sets the Plan provisioning property.
- `provisioningState`: `BicepValueProxy | OperationalInsightsTableProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `restoredLogs`: [OperationalInsightsTableRestoredLogsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightstablerestoredlogsproxy.md) `get - set` -- Gets or sets the RestoredLogs provisioning property.
- `resultStatistics`: [OperationalInsightsTableResultStatisticsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightstableresultstatisticsproxy.md) `get` -- Gets the ResultStatistics provisioning property.
- `retentionInDays`: `BicepValueProxy | number` `get - set` -- Gets or sets the RetentionInDays provisioning property.
- `schema`: [OperationalInsightsSchemaProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsschemaproxy.md) `get - set` -- Gets or sets the Schema provisioning property.
- `searchResults`: [OperationalInsightsTableSearchResultsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightstablesearchresultsproxy.md) `get - set` -- Gets or sets the SearchResults provisioning property.
- `systemData`: [OperationalInsightsSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightssystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `totalRetentionInDays`: `BicepValueProxy | number` `get - set` -- Gets or sets the TotalRetentionInDays provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightstableproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightstableproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPlan](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightstableproxy/clearplan.md) -- `method` -- Clears the Plan provisioning property.
    ```typescript
  clearPlan(): void
  ```
- [clearRetentionInDays](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightstableproxy/clearretentionindays.md) -- `method` -- Clears the RetentionInDays provisioning property.
    ```typescript
  clearRetentionInDays(): void
  ```
- [clearTotalRetentionInDays](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightstableproxy/cleartotalretentionindays.md) -- `method` -- Clears the TotalRetentionInDays provisioning property.
    ```typescript
  clearTotalRetentionInDays(): void
  ```
