1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getLogAnalyticsEntitiesSummary
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.LogAnalytics.getLogAnalyticsEntitiesSummary

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Log Analytics Entities Summary resource in Oracle Cloud Infrastructure Log Analytics service.

    Returns log analytics entities count summary report.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testLogAnalyticsEntitiesSummary = oci.LogAnalytics.getLogAnalyticsEntitiesSummary({
        compartmentId: compartmentId,
        namespace: logAnalyticsEntitiesSummaryNamespace,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_log_analytics_entities_summary = oci.LogAnalytics.get_log_analytics_entities_summary(compartment_id=compartment_id,
        namespace=log_analytics_entities_summary_namespace)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/LogAnalytics"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := LogAnalytics.GetLogAnalyticsEntitiesSummary(ctx, &loganalytics.GetLogAnalyticsEntitiesSummaryArgs{
    			CompartmentId: compartmentId,
    			Namespace:     logAnalyticsEntitiesSummaryNamespace,
    		}, 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 testLogAnalyticsEntitiesSummary = Oci.LogAnalytics.GetLogAnalyticsEntitiesSummary.Invoke(new()
        {
            CompartmentId = compartmentId,
            Namespace = logAnalyticsEntitiesSummaryNamespace,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.LogAnalytics.LogAnalyticsFunctions;
    import com.pulumi.oci.LogAnalytics.inputs.GetLogAnalyticsEntitiesSummaryArgs;
    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 testLogAnalyticsEntitiesSummary = LogAnalyticsFunctions.getLogAnalyticsEntitiesSummary(GetLogAnalyticsEntitiesSummaryArgs.builder()
                .compartmentId(compartmentId)
                .namespace(logAnalyticsEntitiesSummaryNamespace)
                .build());
    
        }
    }
    
    variables:
      testLogAnalyticsEntitiesSummary:
        fn::invoke:
          Function: oci:LogAnalytics:getLogAnalyticsEntitiesSummary
          Arguments:
            compartmentId: ${compartmentId}
            namespace: ${logAnalyticsEntitiesSummaryNamespace}
    

    Using getLogAnalyticsEntitiesSummary

    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 getLogAnalyticsEntitiesSummary(args: GetLogAnalyticsEntitiesSummaryArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsEntitiesSummaryResult>
    function getLogAnalyticsEntitiesSummaryOutput(args: GetLogAnalyticsEntitiesSummaryOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsEntitiesSummaryResult>
    def get_log_analytics_entities_summary(compartment_id: Optional[str] = None,
                                           namespace: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsEntitiesSummaryResult
    def get_log_analytics_entities_summary_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                           namespace: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsEntitiesSummaryResult]
    func GetLogAnalyticsEntitiesSummary(ctx *Context, args *GetLogAnalyticsEntitiesSummaryArgs, opts ...InvokeOption) (*GetLogAnalyticsEntitiesSummaryResult, error)
    func GetLogAnalyticsEntitiesSummaryOutput(ctx *Context, args *GetLogAnalyticsEntitiesSummaryOutputArgs, opts ...InvokeOption) GetLogAnalyticsEntitiesSummaryResultOutput

    > Note: This function is named GetLogAnalyticsEntitiesSummary in the Go SDK.

    public static class GetLogAnalyticsEntitiesSummary 
    {
        public static Task<GetLogAnalyticsEntitiesSummaryResult> InvokeAsync(GetLogAnalyticsEntitiesSummaryArgs args, InvokeOptions? opts = null)
        public static Output<GetLogAnalyticsEntitiesSummaryResult> Invoke(GetLogAnalyticsEntitiesSummaryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogAnalyticsEntitiesSummaryResult> getLogAnalyticsEntitiesSummary(GetLogAnalyticsEntitiesSummaryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LogAnalytics/getLogAnalyticsEntitiesSummary:getLogAnalyticsEntitiesSummary
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    Namespace string
    The Logging Analytics namespace used for the request.
    CompartmentId string
    The ID of the compartment in which to list resources.
    Namespace string
    The Logging Analytics namespace used for the request.
    compartmentId String
    The ID of the compartment in which to list resources.
    namespace String
    The Logging Analytics namespace used for the request.
    compartmentId string
    The ID of the compartment in which to list resources.
    namespace string
    The Logging Analytics namespace used for the request.
    compartment_id str
    The ID of the compartment in which to list resources.
    namespace str
    The Logging Analytics namespace used for the request.
    compartmentId String
    The ID of the compartment in which to list resources.
    namespace String
    The Logging Analytics namespace used for the request.

    getLogAnalyticsEntitiesSummary Result

    The following output properties are available:

    ActiveEntitiesCount int
    Total number of ACTIVE entities
    CompartmentId string
    Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    EntitiesWithHasLogsCollectedCount int
    Entities with log collection enabled
    EntitiesWithManagementAgentCount int
    Entities with management agent
    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    ActiveEntitiesCount int
    Total number of ACTIVE entities
    CompartmentId string
    Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    EntitiesWithHasLogsCollectedCount int
    Entities with log collection enabled
    EntitiesWithManagementAgentCount int
    Entities with management agent
    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    activeEntitiesCount Integer
    Total number of ACTIVE entities
    compartmentId String
    Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    entitiesWithHasLogsCollectedCount Integer
    Entities with log collection enabled
    entitiesWithManagementAgentCount Integer
    Entities with management agent
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String
    activeEntitiesCount number
    Total number of ACTIVE entities
    compartmentId string
    Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    entitiesWithHasLogsCollectedCount number
    Entities with log collection enabled
    entitiesWithManagementAgentCount number
    Entities with management agent
    id string
    The provider-assigned unique ID for this managed resource.
    namespace string
    active_entities_count int
    Total number of ACTIVE entities
    compartment_id str
    Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    entities_with_has_logs_collected_count int
    Entities with log collection enabled
    entities_with_management_agent_count int
    Entities with management agent
    id str
    The provider-assigned unique ID for this managed resource.
    namespace str
    activeEntitiesCount Number
    Total number of ACTIVE entities
    compartmentId String
    Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    entitiesWithHasLogsCollectedCount Number
    Entities with log collection enabled
    entitiesWithManagementAgentCount Number
    Entities with management agent
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi