import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Log Analytics Entity resource in Oracle Cloud Infrastructure Log Analytics service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/logan-api-spec/latest/LogAnalyticsEntity * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/log_analytics * * Create a new log analytics entity. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testLogAnalyticsEntity = new oci.loganalytics.LogAnalyticsEntity("test_log_analytics_entity", { * compartmentId: compartmentId, * entityTypeName: logAnalyticsEntityEntityTypeName, * name: logAnalyticsEntityName, * namespace: logAnalyticsEntityNamespace, * cloudResourceId: testCloudResource.id, * definedTags: { * "foo-namespace.bar-key": "value", * }, * freeformTags: { * "bar-key": "value", * }, * hostname: logAnalyticsEntityHostname, * managementAgentId: testManagementAgent.id, * metadata: { * items: [{ * name: logAnalyticsEntityMetadataItemsName, * type: logAnalyticsEntityMetadataItemsType, * value: logAnalyticsEntityMetadataItemsValue, * }], * }, * properties: logAnalyticsEntityProperties, * sourceId: testSource.id, * timeLastDiscovered: logAnalyticsEntityTimeLastDiscovered, * timezoneRegion: logAnalyticsEntityTimezoneRegion, * }); * ``` * * ## Import * * LogAnalyticsEntities can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:LogAnalytics/logAnalyticsEntity:LogAnalyticsEntity test_log_analytics_entity "namespaces/{namespaceName}/logAnalyticsEntities/{logAnalyticsEntityId}" * ``` */ export declare class LogAnalyticsEntity extends pulumi.CustomResource { /** * Get an existing LogAnalyticsEntity resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: LogAnalyticsEntityState, opts?: pulumi.CustomResourceOptions): LogAnalyticsEntity; /** * Returns true if the given object is an instance of LogAnalyticsEntity. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is LogAnalyticsEntity; /** * The Boolean flag to indicate if logs are collected for an entity for log analytics usage. */ readonly areLogsCollected: pulumi.Output; /** * The count of associated log sources for a given log analytics entity. */ readonly associatedSourcesCount: pulumi.Output; /** * (Updatable) 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: pulumi.Output; /** * (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * Internal name for the log analytics entity type. */ readonly entityTypeInternalName: pulumi.Output; /** * Log analytics entity type name. */ readonly entityTypeName: pulumi.Output; /** * (Updatable) 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: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) 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: pulumi.Output; /** * lifecycleDetails has additional information regarding substeps such as management agent plugin deployment. */ readonly lifecycleDetails: pulumi.Output; /** * Management agent (management-agents resource kind) compartment OCID */ readonly managementAgentCompartmentId: pulumi.Output; /** * Management agent (management-agents resource kind) display name */ readonly managementAgentDisplayName: pulumi.Output; /** * (Updatable) The OCID of the Management Agent. */ readonly managementAgentId: pulumi.Output; /** * (Updatable) Details of Entity Metadata. */ readonly metadata: pulumi.Output; /** * (Updatable) Log analytics entity name. */ readonly name: pulumi.Output; /** * The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get' */ readonly namespace: pulumi.Output; /** * (Updatable) The name/value pairs for parameter values to be used in file patterns specified in log sources. */ readonly properties: pulumi.Output<{ [key: string]: string; }>; /** * This indicates the type of source. It is primarily for Enterprise Manager Repository ID. */ readonly sourceId: pulumi.Output; /** * The current state of the log analytics entity. */ readonly state: pulumi.Output; /** * The date and time the resource was created, in the format defined by RFC3339. */ readonly timeCreated: pulumi.Output; /** * (Updatable) The date and time the resource was last discovered, in the format defined by RFC3339. */ readonly timeLastDiscovered: pulumi.Output; /** * The date and time the resource was last updated, in the format defined by RFC3339. */ readonly timeUpdated: pulumi.Output; /** * (Updatable) The timezone region of the log analytics entity. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly timezoneRegion: pulumi.Output; /** * Create a LogAnalyticsEntity resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: LogAnalyticsEntityArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogAnalyticsEntity resources. */ export interface LogAnalyticsEntityState { /** * The Boolean flag to indicate if logs are collected for an entity for log analytics usage. */ areLogsCollected?: pulumi.Input; /** * The count of associated log sources for a given log analytics entity. */ associatedSourcesCount?: pulumi.Input; /** * (Updatable) 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. */ cloudResourceId?: pulumi.Input; /** * (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Internal name for the log analytics entity type. */ entityTypeInternalName?: pulumi.Input; /** * Log analytics entity type name. */ entityTypeName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) 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. */ hostname?: pulumi.Input; /** * lifecycleDetails has additional information regarding substeps such as management agent plugin deployment. */ lifecycleDetails?: pulumi.Input; /** * Management agent (management-agents resource kind) compartment OCID */ managementAgentCompartmentId?: pulumi.Input; /** * Management agent (management-agents resource kind) display name */ managementAgentDisplayName?: pulumi.Input; /** * (Updatable) The OCID of the Management Agent. */ managementAgentId?: pulumi.Input; /** * (Updatable) Details of Entity Metadata. */ metadata?: pulumi.Input; /** * (Updatable) Log analytics entity name. */ name?: pulumi.Input; /** * The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get' */ namespace?: pulumi.Input; /** * (Updatable) The name/value pairs for parameter values to be used in file patterns specified in log sources. */ properties?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * This indicates the type of source. It is primarily for Enterprise Manager Repository ID. */ sourceId?: pulumi.Input; /** * The current state of the log analytics entity. */ state?: pulumi.Input; /** * The date and time the resource was created, in the format defined by RFC3339. */ timeCreated?: pulumi.Input; /** * (Updatable) The date and time the resource was last discovered, in the format defined by RFC3339. */ timeLastDiscovered?: pulumi.Input; /** * The date and time the resource was last updated, in the format defined by RFC3339. */ timeUpdated?: pulumi.Input; /** * (Updatable) The timezone region of the log analytics entity. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ timezoneRegion?: pulumi.Input; } /** * The set of arguments for constructing a LogAnalyticsEntity resource. */ export interface LogAnalyticsEntityArgs { /** * (Updatable) 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. */ cloudResourceId?: pulumi.Input; /** * (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Log analytics entity type name. */ entityTypeName: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) 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. */ hostname?: pulumi.Input; /** * (Updatable) The OCID of the Management Agent. */ managementAgentId?: pulumi.Input; /** * (Updatable) Details of Entity Metadata. */ metadata?: pulumi.Input; /** * (Updatable) Log analytics entity name. */ name?: pulumi.Input; /** * The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get' */ namespace: pulumi.Input; /** * (Updatable) The name/value pairs for parameter values to be used in file patterns specified in log sources. */ properties?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * This indicates the type of source. It is primarily for Enterprise Manager Repository ID. */ sourceId?: pulumi.Input; /** * (Updatable) The date and time the resource was last discovered, in the format defined by RFC3339. */ timeLastDiscovered?: pulumi.Input; /** * (Updatable) The timezone region of the log analytics entity. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ timezoneRegion?: pulumi.Input; } //# sourceMappingURL=logAnalyticsEntity.d.ts.map