import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Managed Database Alert Log Counts in Oracle Cloud Infrastructure Database Management service. * * Get the counts of alert logs for the specified Managed Database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabaseAlertLogCounts = oci.databasemanagement.getManagedDatabaseAlertLogCounts({ * managedDatabaseId: testManagedDatabase.id, * groupBy: managedDatabaseAlertLogCountGroupBy, * isRegularExpression: managedDatabaseAlertLogCountIsRegularExpression === "true", * levelFilter: managedDatabaseAlertLogCountLevelFilter, * logSearchText: managedDatabaseAlertLogCountLogSearchText, * timeGreaterThanOrEqualTo: managedDatabaseAlertLogCountTimeGreaterThanOrEqualTo, * timeLessThanOrEqualTo: managedDatabaseAlertLogCountTimeLessThanOrEqualTo, * typeFilter: managedDatabaseAlertLogCountTypeFilter, * }); * ``` */ export declare function getManagedDatabaseAlertLogCounts(args: GetManagedDatabaseAlertLogCountsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getManagedDatabaseAlertLogCounts. */ export interface GetManagedDatabaseAlertLogCountsArgs { filters?: inputs.DatabaseManagement.GetManagedDatabaseAlertLogCountsFilter[]; /** * The optional parameter used to group different alert logs. */ groupBy?: string; /** * The flag to indicate whether the search text is regular expression or not. */ isRegularExpression?: boolean; /** * The optional parameter to filter the alert logs by log level. */ levelFilter?: string; /** * The optional query parameter to filter the attention or alert logs by search text. */ logSearchText?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ managedDatabaseId: string; /** * The optional greater than or equal to timestamp to filter the logs. */ timeGreaterThanOrEqualTo?: string; /** * The optional less than or equal to timestamp to filter the logs. */ timeLessThanOrEqualTo?: string; /** * The optional parameter to filter the attention or alert logs by type. */ typeFilter?: string; } /** * A collection of values returned by getManagedDatabaseAlertLogCounts. */ export interface GetManagedDatabaseAlertLogCountsResult { /** * The list of alert_log_counts_collection. */ readonly alertLogCountsCollections: outputs.DatabaseManagement.GetManagedDatabaseAlertLogCountsAlertLogCountsCollection[]; readonly filters?: outputs.DatabaseManagement.GetManagedDatabaseAlertLogCountsFilter[]; readonly groupBy?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly isRegularExpression?: boolean; readonly levelFilter?: string; readonly logSearchText?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ readonly managedDatabaseId: string; readonly timeGreaterThanOrEqualTo?: string; readonly timeLessThanOrEqualTo?: string; readonly typeFilter?: string; } /** * This data source provides the list of Managed Database Alert Log Counts in Oracle Cloud Infrastructure Database Management service. * * Get the counts of alert logs for the specified Managed Database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabaseAlertLogCounts = oci.databasemanagement.getManagedDatabaseAlertLogCounts({ * managedDatabaseId: testManagedDatabase.id, * groupBy: managedDatabaseAlertLogCountGroupBy, * isRegularExpression: managedDatabaseAlertLogCountIsRegularExpression === "true", * levelFilter: managedDatabaseAlertLogCountLevelFilter, * logSearchText: managedDatabaseAlertLogCountLogSearchText, * timeGreaterThanOrEqualTo: managedDatabaseAlertLogCountTimeGreaterThanOrEqualTo, * timeLessThanOrEqualTo: managedDatabaseAlertLogCountTimeLessThanOrEqualTo, * typeFilter: managedDatabaseAlertLogCountTypeFilter, * }); * ``` */ export declare function getManagedDatabaseAlertLogCountsOutput(args: GetManagedDatabaseAlertLogCountsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getManagedDatabaseAlertLogCounts. */ export interface GetManagedDatabaseAlertLogCountsOutputArgs { filters?: pulumi.Input[] | undefined>; /** * The optional parameter used to group different alert logs. */ groupBy?: pulumi.Input; /** * The flag to indicate whether the search text is regular expression or not. */ isRegularExpression?: pulumi.Input; /** * The optional parameter to filter the alert logs by log level. */ levelFilter?: pulumi.Input; /** * The optional query parameter to filter the attention or alert logs by search text. */ logSearchText?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ managedDatabaseId: pulumi.Input; /** * The optional greater than or equal to timestamp to filter the logs. */ timeGreaterThanOrEqualTo?: pulumi.Input; /** * The optional less than or equal to timestamp to filter the logs. */ timeLessThanOrEqualTo?: pulumi.Input; /** * The optional parameter to filter the attention or alert logs by type. */ typeFilter?: pulumi.Input; } //# sourceMappingURL=getManagedDatabaseAlertLogCounts.d.ts.map