UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

105 lines (104 loc) 4.34 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * Retrieves SQL Server instance telemetry * * Uses Azure REST API version 2024-01-01. * * Other available API versions: 2024-05-01-preview, 2025-03-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native azurearcdata [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getSqlServerInstanceTelemetry(args: GetSqlServerInstanceTelemetryArgs, opts?: pulumi.InvokeOptions): Promise<GetSqlServerInstanceTelemetryResult>; export interface GetSqlServerInstanceTelemetryArgs { /** * The aggregation type to use for the numerical columns in the dataset. */ aggregationType?: string | enums.azurearcdata.AggregationType; /** * The list of database names to return telemetry for. If not specified, telemetry for all databases will be aggregated and returned. */ databaseNames?: string[]; /** * The name of the telemetry dataset to retrieve. */ datasetName: string; /** * The end time for the time range to fetch telemetry for. If not specified, the current time is used. */ endTime?: string; /** * The time granularity to fetch telemetry for. This is an ISO8601 duration. Examples: PT15M, PT1H, P1D */ interval?: string; /** * The name of the Azure resource group */ resourceGroupName: string; /** * Name of SQL Server Instance */ sqlServerInstanceName: string; /** * The start time for the time range to fetch telemetry for. If not specified, the current time minus 1 hour is used. */ startTime?: string; } /** * A section of the telemetry response for the SQL Server instance. */ export interface GetSqlServerInstanceTelemetryResult { /** * The columns of the result telemetry table for the SQL Server instance. */ readonly columns: outputs.azurearcdata.SqlServerInstanceTelemetryColumnResponse[]; /** * The link to the next section of rows of the telemetry response for the SQL Server instance. Null if no more sections are available. */ readonly nextLink: string; /** * A list of rows from the result telemetry table for the SQL Server instance. */ readonly rows: string[][]; } /** * Retrieves SQL Server instance telemetry * * Uses Azure REST API version 2024-01-01. * * Other available API versions: 2024-05-01-preview, 2025-03-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native azurearcdata [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getSqlServerInstanceTelemetryOutput(args: GetSqlServerInstanceTelemetryOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSqlServerInstanceTelemetryResult>; export interface GetSqlServerInstanceTelemetryOutputArgs { /** * The aggregation type to use for the numerical columns in the dataset. */ aggregationType?: pulumi.Input<string | enums.azurearcdata.AggregationType>; /** * The list of database names to return telemetry for. If not specified, telemetry for all databases will be aggregated and returned. */ databaseNames?: pulumi.Input<pulumi.Input<string>[]>; /** * The name of the telemetry dataset to retrieve. */ datasetName: pulumi.Input<string>; /** * The end time for the time range to fetch telemetry for. If not specified, the current time is used. */ endTime?: pulumi.Input<string>; /** * The time granularity to fetch telemetry for. This is an ISO8601 duration. Examples: PT15M, PT1H, P1D */ interval?: pulumi.Input<string>; /** * The name of the Azure resource group */ resourceGroupName: pulumi.Input<string>; /** * Name of SQL Server Instance */ sqlServerInstanceName: pulumi.Input<string>; /** * The start time for the time range to fetch telemetry for. If not specified, the current time minus 1 hour is used. */ startTime?: pulumi.Input<string>; }