import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Log Analytics Entity resource in Oracle Cloud Infrastructure Log Analytics service. * * Retrieve the log analytics entity with the given id. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testLogAnalyticsEntity = oci.loganalytics.getLogAnalyticsEntity({ * logAnalyticsEntityId: testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.id, * namespace: logAnalyticsEntityNamespace, * isShowAssociatedSourcesCount: logAnalyticsEntityIsShowAssociatedSourcesCount, * }); * ``` */ export declare function getLogAnalyticsEntity(args: GetLogAnalyticsEntityArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getLogAnalyticsEntity. */ export interface GetLogAnalyticsEntityArgs { /** * Option to return count of associated log sources for log analytics entity(s). */ isShowAssociatedSourcesCount?: string; /** * The log analytics entity ID [OCID]. Entity ID can be obtained by running 'oci log-analytics entity list --namespace-name --compartment-id '. The json output 'id' parameter value contains the entity ID. */ logAnalyticsEntityId: string; /** * The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get' */ namespace: string; } /** * A collection of values returned by getLogAnalyticsEntity. */ export interface GetLogAnalyticsEntityResult { /** * The Boolean flag to indicate if logs are collected for an entity for log analytics usage. */ readonly areLogsCollected: boolean; /** * The count of associated log sources for a given log analytics entity. */ readonly associatedSourcesCount: number; /** * The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises. */ readonly cloudResourceId: string; /** * Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly compartmentId: string; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: { [key: string]: string; }; /** * Internal name for the log analytics entity type. */ readonly entityTypeInternalName: string; /** * Log analytics entity type name. */ readonly entityTypeName: string; /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: { [key: string]: string; }; /** * The hostname where the entity represented here is actually present. This would be the output one would get if they run `echo $HOSTNAME` on Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely. */ readonly hostname: string; /** * The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud. */ readonly id: string; readonly isShowAssociatedSourcesCount?: string; /** * lifecycleDetails has additional information regarding substeps such as management agent plugin deployment. */ readonly lifecycleDetails: string; readonly logAnalyticsEntityId: string; /** * Management agent (management-agents resource kind) compartment OCID */ readonly managementAgentCompartmentId: string; /** * Management agent (management-agents resource kind) display name */ readonly managementAgentDisplayName: string; /** * The OCID of the Management Agent. */ readonly managementAgentId: string; /** * Details of entity metadata information. */ readonly metadatas: outputs.LogAnalytics.GetLogAnalyticsEntityMetadata[]; /** * Log analytics entity name. */ readonly name: string; readonly namespace: string; /** * The name/value pairs for parameter values to be used in file patterns specified in log sources. */ readonly properties: { [key: string]: string; }; /** * This indicates the type of source. It is primarily for Enterprise Manager Repository ID. */ readonly sourceId: string; /** * The current state of the log analytics entity. */ readonly state: string; /** * The date and time the resource was created, in the format defined by RFC3339. */ readonly timeCreated: string; /** * The date and time the resource was last discovered, in the format defined by RFC3339. */ readonly timeLastDiscovered: string; /** * The date and time the resource was last updated, in the format defined by RFC3339. */ readonly timeUpdated: string; /** * The timezone region of the log analytics entity. */ readonly timezoneRegion: string; } /** * This data source provides details about a specific Log Analytics Entity resource in Oracle Cloud Infrastructure Log Analytics service. * * Retrieve the log analytics entity with the given id. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testLogAnalyticsEntity = oci.loganalytics.getLogAnalyticsEntity({ * logAnalyticsEntityId: testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.id, * namespace: logAnalyticsEntityNamespace, * isShowAssociatedSourcesCount: logAnalyticsEntityIsShowAssociatedSourcesCount, * }); * ``` */ export declare function getLogAnalyticsEntityOutput(args: GetLogAnalyticsEntityOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getLogAnalyticsEntity. */ export interface GetLogAnalyticsEntityOutputArgs { /** * Option to return count of associated log sources for log analytics entity(s). */ isShowAssociatedSourcesCount?: pulumi.Input; /** * The log analytics entity ID [OCID]. Entity ID can be obtained by running 'oci log-analytics entity list --namespace-name --compartment-id '. The json output 'id' parameter value contains the entity ID. */ logAnalyticsEntityId: pulumi.Input; /** * The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get' */ namespace: pulumi.Input; } //# sourceMappingURL=getLogAnalyticsEntity.d.ts.map