Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DatabaseManagement.getManagedDatabaseAttentionLogCount
Explore with Pulumi AI
This data source provides details about a specific Managed Database Attention Log Count resource in Oracle Cloud Infrastructure Database Management service.
Get the counts of attention logs for the specified Managed Database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedDatabaseAttentionLogCount = oci.DatabaseManagement.getManagedDatabaseAttentionLogCount({
    managedDatabaseId: testManagedDatabase.id,
    groupBy: managedDatabaseAttentionLogCountGroupBy,
    isRegularExpression: managedDatabaseAttentionLogCountIsRegularExpression,
    logSearchText: managedDatabaseAttentionLogCountLogSearchText,
    timeGreaterThanOrEqualTo: managedDatabaseAttentionLogCountTimeGreaterThanOrEqualTo,
    timeLessThanOrEqualTo: managedDatabaseAttentionLogCountTimeLessThanOrEqualTo,
    typeFilter: managedDatabaseAttentionLogCountTypeFilter,
    urgencyFilter: managedDatabaseAttentionLogCountUrgencyFilter,
});
import pulumi
import pulumi_oci as oci
test_managed_database_attention_log_count = oci.DatabaseManagement.get_managed_database_attention_log_count(managed_database_id=test_managed_database["id"],
    group_by=managed_database_attention_log_count_group_by,
    is_regular_expression=managed_database_attention_log_count_is_regular_expression,
    log_search_text=managed_database_attention_log_count_log_search_text,
    time_greater_than_or_equal_to=managed_database_attention_log_count_time_greater_than_or_equal_to,
    time_less_than_or_equal_to=managed_database_attention_log_count_time_less_than_or_equal_to,
    type_filter=managed_database_attention_log_count_type_filter,
    urgency_filter=managed_database_attention_log_count_urgency_filter)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/databasemanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databasemanagement.GetManagedDatabaseAttentionLogCount(ctx, &databasemanagement.GetManagedDatabaseAttentionLogCountArgs{
			ManagedDatabaseId:        testManagedDatabase.Id,
			GroupBy:                  pulumi.StringRef(managedDatabaseAttentionLogCountGroupBy),
			IsRegularExpression:      pulumi.BoolRef(managedDatabaseAttentionLogCountIsRegularExpression),
			LogSearchText:            pulumi.StringRef(managedDatabaseAttentionLogCountLogSearchText),
			TimeGreaterThanOrEqualTo: pulumi.StringRef(managedDatabaseAttentionLogCountTimeGreaterThanOrEqualTo),
			TimeLessThanOrEqualTo:    pulumi.StringRef(managedDatabaseAttentionLogCountTimeLessThanOrEqualTo),
			TypeFilter:               pulumi.StringRef(managedDatabaseAttentionLogCountTypeFilter),
			UrgencyFilter:            pulumi.StringRef(managedDatabaseAttentionLogCountUrgencyFilter),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testManagedDatabaseAttentionLogCount = Oci.DatabaseManagement.GetManagedDatabaseAttentionLogCount.Invoke(new()
    {
        ManagedDatabaseId = testManagedDatabase.Id,
        GroupBy = managedDatabaseAttentionLogCountGroupBy,
        IsRegularExpression = managedDatabaseAttentionLogCountIsRegularExpression,
        LogSearchText = managedDatabaseAttentionLogCountLogSearchText,
        TimeGreaterThanOrEqualTo = managedDatabaseAttentionLogCountTimeGreaterThanOrEqualTo,
        TimeLessThanOrEqualTo = managedDatabaseAttentionLogCountTimeLessThanOrEqualTo,
        TypeFilter = managedDatabaseAttentionLogCountTypeFilter,
        UrgencyFilter = managedDatabaseAttentionLogCountUrgencyFilter,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
import com.pulumi.oci.DatabaseManagement.inputs.GetManagedDatabaseAttentionLogCountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testManagedDatabaseAttentionLogCount = DatabaseManagementFunctions.getManagedDatabaseAttentionLogCount(GetManagedDatabaseAttentionLogCountArgs.builder()
            .managedDatabaseId(testManagedDatabase.id())
            .groupBy(managedDatabaseAttentionLogCountGroupBy)
            .isRegularExpression(managedDatabaseAttentionLogCountIsRegularExpression)
            .logSearchText(managedDatabaseAttentionLogCountLogSearchText)
            .timeGreaterThanOrEqualTo(managedDatabaseAttentionLogCountTimeGreaterThanOrEqualTo)
            .timeLessThanOrEqualTo(managedDatabaseAttentionLogCountTimeLessThanOrEqualTo)
            .typeFilter(managedDatabaseAttentionLogCountTypeFilter)
            .urgencyFilter(managedDatabaseAttentionLogCountUrgencyFilter)
            .build());
    }
}
variables:
  testManagedDatabaseAttentionLogCount:
    fn::invoke:
      function: oci:DatabaseManagement:getManagedDatabaseAttentionLogCount
      arguments:
        managedDatabaseId: ${testManagedDatabase.id}
        groupBy: ${managedDatabaseAttentionLogCountGroupBy}
        isRegularExpression: ${managedDatabaseAttentionLogCountIsRegularExpression}
        logSearchText: ${managedDatabaseAttentionLogCountLogSearchText}
        timeGreaterThanOrEqualTo: ${managedDatabaseAttentionLogCountTimeGreaterThanOrEqualTo}
        timeLessThanOrEqualTo: ${managedDatabaseAttentionLogCountTimeLessThanOrEqualTo}
        typeFilter: ${managedDatabaseAttentionLogCountTypeFilter}
        urgencyFilter: ${managedDatabaseAttentionLogCountUrgencyFilter}
Using getManagedDatabaseAttentionLogCount
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getManagedDatabaseAttentionLogCount(args: GetManagedDatabaseAttentionLogCountArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseAttentionLogCountResult>
function getManagedDatabaseAttentionLogCountOutput(args: GetManagedDatabaseAttentionLogCountOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseAttentionLogCountResult>def get_managed_database_attention_log_count(group_by: Optional[str] = None,
                                             is_regular_expression: Optional[bool] = None,
                                             log_search_text: Optional[str] = None,
                                             managed_database_id: Optional[str] = None,
                                             time_greater_than_or_equal_to: Optional[str] = None,
                                             time_less_than_or_equal_to: Optional[str] = None,
                                             type_filter: Optional[str] = None,
                                             urgency_filter: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseAttentionLogCountResult
def get_managed_database_attention_log_count_output(group_by: Optional[pulumi.Input[str]] = None,
                                             is_regular_expression: Optional[pulumi.Input[bool]] = None,
                                             log_search_text: Optional[pulumi.Input[str]] = None,
                                             managed_database_id: Optional[pulumi.Input[str]] = None,
                                             time_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                                             time_less_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                                             type_filter: Optional[pulumi.Input[str]] = None,
                                             urgency_filter: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseAttentionLogCountResult]func GetManagedDatabaseAttentionLogCount(ctx *Context, args *GetManagedDatabaseAttentionLogCountArgs, opts ...InvokeOption) (*GetManagedDatabaseAttentionLogCountResult, error)
func GetManagedDatabaseAttentionLogCountOutput(ctx *Context, args *GetManagedDatabaseAttentionLogCountOutputArgs, opts ...InvokeOption) GetManagedDatabaseAttentionLogCountResultOutput> Note: This function is named GetManagedDatabaseAttentionLogCount in the Go SDK.
public static class GetManagedDatabaseAttentionLogCount 
{
    public static Task<GetManagedDatabaseAttentionLogCountResult> InvokeAsync(GetManagedDatabaseAttentionLogCountArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedDatabaseAttentionLogCountResult> Invoke(GetManagedDatabaseAttentionLogCountInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedDatabaseAttentionLogCountResult> getManagedDatabaseAttentionLogCount(GetManagedDatabaseAttentionLogCountArgs args, InvokeOptions options)
public static Output<GetManagedDatabaseAttentionLogCountResult> getManagedDatabaseAttentionLogCount(GetManagedDatabaseAttentionLogCountArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getManagedDatabaseAttentionLogCount:getManagedDatabaseAttentionLogCount
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- GroupBy string
- The optional parameter used to group different attention logs.
- IsRegular boolExpression 
- The flag to indicate whether the search text is regular expression or not.
- LogSearch stringText 
- The optional query parameter to filter the attention or alert logs by search text.
- TimeGreater stringThan Or Equal To 
- The optional greater than or equal to timestamp to filter the logs.
- TimeLess stringThan Or Equal To 
- The optional less than or equal to timestamp to filter the logs.
- TypeFilter string
- The optional parameter to filter the attention or alert logs by type.
- UrgencyFilter string
- The optional parameter to filter the attention logs by urgency.
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- GroupBy string
- The optional parameter used to group different attention logs.
- IsRegular boolExpression 
- The flag to indicate whether the search text is regular expression or not.
- LogSearch stringText 
- The optional query parameter to filter the attention or alert logs by search text.
- TimeGreater stringThan Or Equal To 
- The optional greater than or equal to timestamp to filter the logs.
- TimeLess stringThan Or Equal To 
- The optional less than or equal to timestamp to filter the logs.
- TypeFilter string
- The optional parameter to filter the attention or alert logs by type.
- UrgencyFilter string
- The optional parameter to filter the attention logs by urgency.
- managedDatabase StringId 
- The OCID of the Managed Database.
- groupBy String
- The optional parameter used to group different attention logs.
- isRegular BooleanExpression 
- The flag to indicate whether the search text is regular expression or not.
- logSearch StringText 
- The optional query parameter to filter the attention or alert logs by search text.
- timeGreater StringThan Or Equal To 
- The optional greater than or equal to timestamp to filter the logs.
- timeLess StringThan Or Equal To 
- The optional less than or equal to timestamp to filter the logs.
- typeFilter String
- The optional parameter to filter the attention or alert logs by type.
- urgencyFilter String
- The optional parameter to filter the attention logs by urgency.
- managedDatabase stringId 
- The OCID of the Managed Database.
- groupBy string
- The optional parameter used to group different attention logs.
- isRegular booleanExpression 
- The flag to indicate whether the search text is regular expression or not.
- logSearch stringText 
- The optional query parameter to filter the attention or alert logs by search text.
- timeGreater stringThan Or Equal To 
- The optional greater than or equal to timestamp to filter the logs.
- timeLess stringThan Or Equal To 
- The optional less than or equal to timestamp to filter the logs.
- typeFilter string
- The optional parameter to filter the attention or alert logs by type.
- urgencyFilter string
- The optional parameter to filter the attention logs by urgency.
- managed_database_ strid 
- The OCID of the Managed Database.
- group_by str
- The optional parameter used to group different attention logs.
- is_regular_ boolexpression 
- The flag to indicate whether the search text is regular expression or not.
- log_search_ strtext 
- The optional query parameter to filter the attention or alert logs by search text.
- time_greater_ strthan_ or_ equal_ to 
- The optional greater than or equal to timestamp to filter the logs.
- time_less_ strthan_ or_ equal_ to 
- The optional less than or equal to timestamp to filter the logs.
- type_filter str
- The optional parameter to filter the attention or alert logs by type.
- urgency_filter str
- The optional parameter to filter the attention logs by urgency.
- managedDatabase StringId 
- The OCID of the Managed Database.
- groupBy String
- The optional parameter used to group different attention logs.
- isRegular BooleanExpression 
- The flag to indicate whether the search text is regular expression or not.
- logSearch StringText 
- The optional query parameter to filter the attention or alert logs by search text.
- timeGreater StringThan Or Equal To 
- The optional greater than or equal to timestamp to filter the logs.
- timeLess StringThan Or Equal To 
- The optional less than or equal to timestamp to filter the logs.
- typeFilter String
- The optional parameter to filter the attention or alert logs by type.
- urgencyFilter String
- The optional parameter to filter the attention logs by urgency.
getManagedDatabaseAttentionLogCount Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetManaged Database Attention Log Count Item> 
- An array of the counts of different urgency or type of attention logs.
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- GroupBy string
- IsRegular boolExpression 
- LogSearch stringText 
- TimeGreater stringThan Or Equal To 
- TimeLess stringThan Or Equal To 
- TypeFilter string
- UrgencyFilter string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetManaged Database Attention Log Count Item 
- An array of the counts of different urgency or type of attention logs.
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- GroupBy string
- IsRegular boolExpression 
- LogSearch stringText 
- TimeGreater stringThan Or Equal To 
- TimeLess stringThan Or Equal To 
- TypeFilter string
- UrgencyFilter string
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetManaged Database Attention Log Count Item> 
- An array of the counts of different urgency or type of attention logs.
- managedDatabase StringId 
- The OCID of the Managed Database.
- groupBy String
- isRegular BooleanExpression 
- logSearch StringText 
- timeGreater StringThan Or Equal To 
- timeLess StringThan Or Equal To 
- typeFilter String
- urgencyFilter String
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetManaged Database Attention Log Count Item[] 
- An array of the counts of different urgency or type of attention logs.
- managedDatabase stringId 
- The OCID of the Managed Database.
- groupBy string
- isRegular booleanExpression 
- logSearch stringText 
- timeGreater stringThan Or Equal To 
- timeLess stringThan Or Equal To 
- typeFilter string
- urgencyFilter string
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetManaged Database Attention Log Count Item] 
- An array of the counts of different urgency or type of attention logs.
- managed_database_ strid 
- The OCID of the Managed Database.
- group_by str
- is_regular_ boolexpression 
- log_search_ strtext 
- time_greater_ strthan_ or_ equal_ to 
- time_less_ strthan_ or_ equal_ to 
- type_filter str
- urgency_filter str
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- An array of the counts of different urgency or type of attention logs.
- managedDatabase StringId 
- The OCID of the Managed Database.
- groupBy String
- isRegular BooleanExpression 
- logSearch StringText 
- timeGreater StringThan Or Equal To 
- timeLess StringThan Or Equal To 
- typeFilter String
- urgencyFilter String
Supporting Types
GetManagedDatabaseAttentionLogCountItem      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.