import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Events in Oracle Cloud Infrastructure Os Management Hub service. * * Lists events that match the specified criteria, such as compartment, state, and event type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testEvents = oci.osmanagementhub.getEvents({ * compartmentId: compartmentId, * eventFingerprint: eventEventFingerprint, * eventSummary: eventEventSummary, * eventSummaryContains: eventEventSummaryContains, * id: eventId, * isManagedByAutonomousLinux: eventIsManagedByAutonomousLinux === "true", * resourceId: testResource.id, * state: eventState, * timeCreatedGreaterThanOrEqualTo: eventTimeCreatedGreaterThanOrEqualTo, * timeCreatedLessThan: eventTimeCreatedLessThan, * types: eventType, * }); * ``` */ export declare function getEvents(args?: GetEventsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getEvents. */ export interface GetEventsArgs { /** * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. */ compartmentId?: string; /** * The eventFingerprint of the KernelEventData. */ eventFingerprint?: string; /** * A filter to return only events whose summary matches the given value. */ eventSummary?: string; /** * A filter to return only events with a summary that contains the value provided. */ eventSummaryContains?: string; filters?: inputs.OsManagementHub.GetEventsFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the event. */ id?: string; /** * Indicates whether to list only resources managed by the Autonomous Linux service. */ isManagedByAutonomousLinux?: boolean; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. This filter returns resources associated with the specified resource. */ resourceId?: string; /** * A filter to return only events that match the state provided. The state value is case-insensitive. */ state?: string; /** * A filter that returns events that occurred on or after the date provided. Example: `2016-08-25T21:10:29.600Z` */ timeCreatedGreaterThanOrEqualTo?: string; /** * A filter that returns events that occurred on or before the date provided. Example: `2016-08-25T21:10:29.600Z` */ timeCreatedLessThan?: string; /** * A filter to return only resources whose type matches the given value. */ types?: string[]; } /** * A collection of values returned by getEvents. */ export interface GetEventsResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId?: string; /** * The list of event_collection. */ readonly eventCollections: outputs.OsManagementHub.GetEventsEventCollection[]; /** * Fingerprint of the event. */ readonly eventFingerprint?: string; /** * Summary of the event. */ readonly eventSummary?: string; readonly eventSummaryContains?: string; readonly filters?: outputs.OsManagementHub.GetEventsFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the event. */ readonly id?: string; /** * Indicates whether the event occurred on a resource that is managed by the Autonomous Linux service. */ readonly isManagedByAutonomousLinux?: boolean; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance or resource where the event occurred. */ readonly resourceId?: string; /** * The current state of the event. */ readonly state?: string; readonly timeCreatedGreaterThanOrEqualTo?: string; readonly timeCreatedLessThan?: string; /** * Event type: * * `KERNEL_OOPS` - Used to identify a kernel panic condition event * * `KERNEL_CRASH` - Used to identify an internal fatal kernel error that cannot be safely recovered from * * `EXPLOIT_ATTEMPT` - Used to identify a known exploit detection as identified by Ksplice * * `SOFTWARE_UPDATE` - Software updates - Packages * * `KSPLICE_UPDATE` - Ksplice updates * * `SOFTWARE_SOURCE` - Software source * * `AGENT` - Agent * * `MANAGEMENT_STATION` - Management Station * * `SYSADMIN` - Used to identify attempts on fixing agent errors on the instance * * `REBOOT` - Reboot */ readonly types?: string[]; } /** * This data source provides the list of Events in Oracle Cloud Infrastructure Os Management Hub service. * * Lists events that match the specified criteria, such as compartment, state, and event type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testEvents = oci.osmanagementhub.getEvents({ * compartmentId: compartmentId, * eventFingerprint: eventEventFingerprint, * eventSummary: eventEventSummary, * eventSummaryContains: eventEventSummaryContains, * id: eventId, * isManagedByAutonomousLinux: eventIsManagedByAutonomousLinux === "true", * resourceId: testResource.id, * state: eventState, * timeCreatedGreaterThanOrEqualTo: eventTimeCreatedGreaterThanOrEqualTo, * timeCreatedLessThan: eventTimeCreatedLessThan, * types: eventType, * }); * ``` */ export declare function getEventsOutput(args?: GetEventsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getEvents. */ export interface GetEventsOutputArgs { /** * The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. */ compartmentId?: pulumi.Input; /** * The eventFingerprint of the KernelEventData. */ eventFingerprint?: pulumi.Input; /** * A filter to return only events whose summary matches the given value. */ eventSummary?: pulumi.Input; /** * A filter to return only events with a summary that contains the value provided. */ eventSummaryContains?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the event. */ id?: pulumi.Input; /** * Indicates whether to list only resources managed by the Autonomous Linux service. */ isManagedByAutonomousLinux?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. This filter returns resources associated with the specified resource. */ resourceId?: pulumi.Input; /** * A filter to return only events that match the state provided. The state value is case-insensitive. */ state?: pulumi.Input; /** * A filter that returns events that occurred on or after the date provided. Example: `2016-08-25T21:10:29.600Z` */ timeCreatedGreaterThanOrEqualTo?: pulumi.Input; /** * A filter that returns events that occurred on or before the date provided. Example: `2016-08-25T21:10:29.600Z` */ timeCreatedLessThan?: pulumi.Input; /** * A filter to return only resources whose type matches the given value. */ types?: pulumi.Input[] | undefined>; } //# sourceMappingURL=getEvents.d.ts.map