Represents an event within the system, containing all necessary metadata and subscriptions related to the event.

### Hierarchy

- Event

### Implements

- IEventJson

## Index

### Constructors

- constructor

### Properties

- appName
- appProcId
- eventFilePath
- eventName
- eventTime
- eventType
- subscriptions

### Methods

- toJson
- toString

## Constructors

### constructor

- new Event(__namedParameters: { appName: string; eventFilePath: string; eventName: string; eventTime: string; eventType: EventTypes; subscriptions: FSWatcher[] }): Event

- - Defined in @zowe/imperative/src/events/src/Event.ts:27

  Initializes a new instance of the Event class with specified properties.

  #### Parameters

  - ##### __namedParameters: { appName: string; eventFilePath: string; eventName: string; eventTime: string; eventType: EventTypes; subscriptions: FSWatcher[] }

    - ##### appName: string

    - ##### eventFilePath: string

    - ##### eventName: string

    - ##### eventTime: string

    - ##### eventType: EventTypes

    - ##### subscriptions: FSWatcher[]

  #### Returns Event

## Properties

### appName

appName: string

Implementation of IEventJson.appName

- Defined in @zowe/imperative/src/events/src/Event.ts:24

### appProcId

appProcId: number

- Defined in @zowe/imperative/src/events/src/Event.ts:25

### eventFilePath

eventFilePath: string

Implementation of IEventJson.eventFilePath

- Defined in @zowe/imperative/src/events/src/Event.ts:26

### eventName

eventName: string

Implementation of IEventJson.eventName

- Defined in @zowe/imperative/src/events/src/Event.ts:22

### eventTime

eventTime: string

Implementation of IEventJson.eventTime

- Defined in @zowe/imperative/src/events/src/Event.ts:21

### eventType

eventType: EventTypes

Implementation of IEventJson.eventType

- Defined in @zowe/imperative/src/events/src/Event.ts:23

### subscriptions

subscriptions: FSWatcher[]

Implementation of IEventJson.subscriptions

- Defined in @zowe/imperative/src/events/src/Event.ts:27

## Methods

### toJson

- toJson(): IEventJson

- - Defined in @zowe/imperative/src/events/src/Event.ts:49

  Serializes the Event object to a JSON object for storage or transmission.

  #### Returns IEventJson

  The JSON representation of the event.

### toString

- toString(): string

- - Defined in @zowe/imperative/src/events/src/Event.ts:64

  Provides a string representation of the Event, useful for logging and debugging.

  #### Returns string

  A string detailing the event's significant information.

Generated using TypeDoc