Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DatabaseManagement.getManagedDatabaseAttentionLogCounts
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Managed Database Attention Log Counts 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 testManagedDatabaseAttentionLogCounts = oci.DatabaseManagement.getManagedDatabaseAttentionLogCounts({
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_counts = oci.DatabaseManagement.get_managed_database_attention_log_counts(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/go/oci/DatabaseManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseManagement.GetManagedDatabaseAttentionLogCounts(ctx, &databasemanagement.GetManagedDatabaseAttentionLogCountsArgs{
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 testManagedDatabaseAttentionLogCounts = Oci.DatabaseManagement.GetManagedDatabaseAttentionLogCounts.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.GetManagedDatabaseAttentionLogCountsArgs;
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 testManagedDatabaseAttentionLogCounts = DatabaseManagementFunctions.getManagedDatabaseAttentionLogCounts(GetManagedDatabaseAttentionLogCountsArgs.builder()
.managedDatabaseId(testManagedDatabase.id())
.groupBy(managedDatabaseAttentionLogCountGroupBy)
.isRegularExpression(managedDatabaseAttentionLogCountIsRegularExpression)
.logSearchText(managedDatabaseAttentionLogCountLogSearchText)
.timeGreaterThanOrEqualTo(managedDatabaseAttentionLogCountTimeGreaterThanOrEqualTo)
.timeLessThanOrEqualTo(managedDatabaseAttentionLogCountTimeLessThanOrEqualTo)
.typeFilter(managedDatabaseAttentionLogCountTypeFilter)
.urgencyFilter(managedDatabaseAttentionLogCountUrgencyFilter)
.build());
}
}
variables:
testManagedDatabaseAttentionLogCounts:
fn::invoke:
Function: oci:DatabaseManagement:getManagedDatabaseAttentionLogCounts
Arguments:
managedDatabaseId: ${testManagedDatabase.id}
groupBy: ${managedDatabaseAttentionLogCountGroupBy}
isRegularExpression: ${managedDatabaseAttentionLogCountIsRegularExpression}
logSearchText: ${managedDatabaseAttentionLogCountLogSearchText}
timeGreaterThanOrEqualTo: ${managedDatabaseAttentionLogCountTimeGreaterThanOrEqualTo}
timeLessThanOrEqualTo: ${managedDatabaseAttentionLogCountTimeLessThanOrEqualTo}
typeFilter: ${managedDatabaseAttentionLogCountTypeFilter}
urgencyFilter: ${managedDatabaseAttentionLogCountUrgencyFilter}
Using getManagedDatabaseAttentionLogCounts
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 getManagedDatabaseAttentionLogCounts(args: GetManagedDatabaseAttentionLogCountsArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseAttentionLogCountsResult>
function getManagedDatabaseAttentionLogCountsOutput(args: GetManagedDatabaseAttentionLogCountsOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseAttentionLogCountsResult>
def get_managed_database_attention_log_counts(filters: Optional[Sequence[_databasemanagement.GetManagedDatabaseAttentionLogCountsFilter]] = None,
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) -> GetManagedDatabaseAttentionLogCountsResult
def get_managed_database_attention_log_counts_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_databasemanagement.GetManagedDatabaseAttentionLogCountsFilterArgs]]]] = None,
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[GetManagedDatabaseAttentionLogCountsResult]
func GetManagedDatabaseAttentionLogCounts(ctx *Context, args *GetManagedDatabaseAttentionLogCountsArgs, opts ...InvokeOption) (*GetManagedDatabaseAttentionLogCountsResult, error)
func GetManagedDatabaseAttentionLogCountsOutput(ctx *Context, args *GetManagedDatabaseAttentionLogCountsOutputArgs, opts ...InvokeOption) GetManagedDatabaseAttentionLogCountsResultOutput
> Note: This function is named GetManagedDatabaseAttentionLogCounts
in the Go SDK.
public static class GetManagedDatabaseAttentionLogCounts
{
public static Task<GetManagedDatabaseAttentionLogCountsResult> InvokeAsync(GetManagedDatabaseAttentionLogCountsArgs args, InvokeOptions? opts = null)
public static Output<GetManagedDatabaseAttentionLogCountsResult> Invoke(GetManagedDatabaseAttentionLogCountsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedDatabaseAttentionLogCountsResult> getManagedDatabaseAttentionLogCounts(GetManagedDatabaseAttentionLogCountsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseManagement/getManagedDatabaseAttentionLogCounts:getManagedDatabaseAttentionLogCounts
arguments:
# arguments dictionary
The following arguments are supported:
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
List<Get
Managed Database Attention Log Counts Filter> - Group
By string - 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 stringText - The optional query parameter to filter the attention or alert logs by search text.
- Time
Greater stringThan Or Equal To - The optional greater than or equal to timestamp to filter the logs.
- Time
Less stringThan Or Equal To - The optional less than or equal to timestamp to filter the logs.
- Type
Filter string - The optional parameter to filter the attention or alert logs by type.
- Urgency
Filter string - The optional parameter to filter the attention logs by urgency.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
[]Get
Managed Database Attention Log Counts Filter - Group
By string - 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 stringText - The optional query parameter to filter the attention or alert logs by search text.
- Time
Greater stringThan Or Equal To - The optional greater than or equal to timestamp to filter the logs.
- Time
Less stringThan Or Equal To - The optional less than or equal to timestamp to filter the logs.
- Type
Filter string - The optional parameter to filter the attention or alert logs by type.
- Urgency
Filter string - The optional parameter to filter the attention logs by urgency.
- managed
Database StringId - The OCID of the Managed Database.
- filters
List<Get
Managed Database Attention Log Counts Filter> - group
By String - The optional parameter used to group different attention logs.
- is
Regular BooleanExpression - The flag to indicate whether the search text is regular expression or not.
- log
Search StringText - The optional query parameter to filter the attention or alert logs by search text.
- time
Greater StringThan Or Equal To - The optional greater than or equal to timestamp to filter the logs.
- time
Less StringThan Or Equal To - The optional less than or equal to timestamp to filter the logs.
- type
Filter String - The optional parameter to filter the attention or alert logs by type.
- urgency
Filter String - The optional parameter to filter the attention logs by urgency.
- managed
Database stringId - The OCID of the Managed Database.
- filters
Get
Managed Database Attention Log Counts Filter[] - group
By string - The optional parameter used to group different attention logs.
- is
Regular booleanExpression - The flag to indicate whether the search text is regular expression or not.
- log
Search stringText - The optional query parameter to filter the attention or alert logs by search text.
- time
Greater stringThan Or Equal To - The optional greater than or equal to timestamp to filter the logs.
- time
Less stringThan Or Equal To - The optional less than or equal to timestamp to filter the logs.
- type
Filter string - The optional parameter to filter the attention or alert logs by type.
- urgency
Filter string - The optional parameter to filter the attention logs by urgency.
- managed_
database_ strid - The OCID of the Managed Database.
- filters
Sequence[databasemanagement.
Get Managed Database Attention Log Counts Filter] - 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.
- managed
Database StringId - The OCID of the Managed Database.
- filters List<Property Map>
- group
By String - The optional parameter used to group different attention logs.
- is
Regular BooleanExpression - The flag to indicate whether the search text is regular expression or not.
- log
Search StringText - The optional query parameter to filter the attention or alert logs by search text.
- time
Greater StringThan Or Equal To - The optional greater than or equal to timestamp to filter the logs.
- time
Less StringThan Or Equal To - The optional less than or equal to timestamp to filter the logs.
- type
Filter String - The optional parameter to filter the attention or alert logs by type.
- urgency
Filter String - The optional parameter to filter the attention logs by urgency.
getManagedDatabaseAttentionLogCounts Result
The following output properties are available:
- Attention
Log List<GetCounts Collections Managed Database Attention Log Counts Attention Log Counts Collection> - The list of attention_log_counts_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
List<Get
Managed Database Attention Log Counts Filter> - Group
By string - Is
Regular boolExpression - Log
Search stringText - Time
Greater stringThan Or Equal To - Time
Less stringThan Or Equal To - Type
Filter string - Urgency
Filter string
- Attention
Log []GetCounts Collections Managed Database Attention Log Counts Attention Log Counts Collection - The list of attention_log_counts_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Database stringId - The OCID of the Managed Database.
- Filters
[]Get
Managed Database Attention Log Counts Filter - Group
By string - Is
Regular boolExpression - Log
Search stringText - Time
Greater stringThan Or Equal To - Time
Less stringThan Or Equal To - Type
Filter string - Urgency
Filter string
- attention
Log List<GetCounts Collections Managed Database Attention Log Counts Attention Log Counts Collection> - The list of attention_log_counts_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - The OCID of the Managed Database.
- filters
List<Get
Managed Database Attention Log Counts Filter> - group
By String - is
Regular BooleanExpression - log
Search StringText - time
Greater StringThan Or Equal To - time
Less StringThan Or Equal To - type
Filter String - urgency
Filter String
- attention
Log GetCounts Collections Managed Database Attention Log Counts Attention Log Counts Collection[] - The list of attention_log_counts_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Database stringId - The OCID of the Managed Database.
- filters
Get
Managed Database Attention Log Counts Filter[] - group
By string - is
Regular booleanExpression - log
Search stringText - time
Greater stringThan Or Equal To - time
Less stringThan Or Equal To - type
Filter string - urgency
Filter string
- attention_
log_ Sequence[databasemanagement.counts_ collections Get Managed Database Attention Log Counts Attention Log Counts Collection] - The list of attention_log_counts_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
database_ strid - The OCID of the Managed Database.
- filters
Sequence[databasemanagement.
Get Managed Database Attention Log Counts Filter] - 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
- attention
Log List<Property Map>Counts Collections - The list of attention_log_counts_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Database StringId - The OCID of the Managed Database.
- filters List<Property Map>
- group
By String - is
Regular BooleanExpression - log
Search StringText - time
Greater StringThan Or Equal To - time
Less StringThan Or Equal To - type
Filter String - urgency
Filter String
Supporting Types
GetManagedDatabaseAttentionLogCountsAttentionLogCountsCollection
- Items
List<Get
Managed Database Attention Log Counts Attention Log Counts Collection Item> - An array of the counts of different urgency or type of attention logs.
- Items
[]Get
Managed Database Attention Log Counts Attention Log Counts Collection Item - An array of the counts of different urgency or type of attention logs.
- items
List<Get
Managed Database Attention Log Counts Attention Log Counts Collection Item> - An array of the counts of different urgency or type of attention logs.
- items
Get
Managed Database Attention Log Counts Attention Log Counts Collection Item[] - An array of the counts of different urgency or type of attention logs.
- items
Sequence[databasemanagement.
Get Managed Database Attention Log Counts Attention Log Counts Collection Item] - An array of the counts of different urgency or type of attention logs.
- items List<Property Map>
- An array of the counts of different urgency or type of attention logs.
GetManagedDatabaseAttentionLogCountsAttentionLogCountsCollectionItem
GetManagedDatabaseAttentionLogCountsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi