import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets the active diagnostic settings for the specified resource. * * Uses Azure REST API version 2021-05-01-preview. */ export declare function getDiagnosticSetting(args: GetDiagnosticSettingArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetDiagnosticSettingArgs { /** * The name of the diagnostic setting. */ name: string; /** * The fully qualified Azure Resource manager identifier of the resource. */ resourceUri: string; } /** * The diagnostic setting resource. */ export interface GetDiagnosticSettingResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The resource Id for the event hub authorization rule. */ readonly eventHubAuthorizationRuleId?: string; /** * The name of the event hub. If none is specified, the default event hub will be selected. */ readonly eventHubName?: string; /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ readonly id: string; /** * A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: _. Possible values are: Dedicated and null (null is default.) */ readonly logAnalyticsDestinationType?: string; /** * The list of logs settings. */ readonly logs?: outputs.monitor.DiagnosticsLogSettingsResponse[]; /** * The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs. */ readonly marketplacePartnerId?: string; /** * The list of metric settings. */ readonly metrics?: outputs.monitor.DiagnosticsMetricSettingsResponse[]; /** * The name of the resource */ readonly name: string; /** * The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility. */ readonly serviceBusRuleId?: string; /** * The resource ID of the storage account to which you would like to send Diagnostic Logs. */ readonly storageAccountId?: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.monitor.SystemDataResponse; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; /** * The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2 */ readonly workspaceId?: string; } /** * Gets the active diagnostic settings for the specified resource. * * Uses Azure REST API version 2021-05-01-preview. */ export declare function getDiagnosticSettingOutput(args: GetDiagnosticSettingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; export interface GetDiagnosticSettingOutputArgs { /** * The name of the diagnostic setting. */ name: pulumi.Input; /** * The fully qualified Azure Resource manager identifier of the resource. */ resourceUri: pulumi.Input; } //# sourceMappingURL=getDiagnosticSetting.d.ts.map