### File

`src/app/instance/shared/instance.model.ts`

### Index

###### Properties
Readonly clusterName Readonly enabled Readonly helixVersion Readonly liveInstance Readonly name Readonly sessionId
###### Accessors
healthy

### Constructor

`constructor(name: string, clusterName: string, enabled: boolean, liveInstance: boolean | string, sessionId?: string, helixVersion?: string)`
Defined in src/app/instance/shared/instance.model.ts:11
Parameters :
Name | Type | Optional
name | `string` | No
clusterName | `string` | No
enabled | `boolean` | No
liveInstance | `boolean | string` | No
sessionId | `string` | Yes
helixVersion | `string` | Yes

### Properties

Readonly clusterName
Type : `string`
Defined in src/app/instance/shared/instance.model.ts:3

Readonly enabled
Type : `boolean`
Defined in src/app/instance/shared/instance.model.ts:4

Readonly helixVersion
Type : `string`
Defined in src/app/instance/shared/instance.model.ts:7

Readonly liveInstance
Type : `boolean | string`
Defined in src/app/instance/shared/instance.model.ts:5

Readonly name
Type : `string`
Defined in src/app/instance/shared/instance.model.ts:2

Readonly sessionId
Type : `string`
Defined in src/app/instance/shared/instance.model.ts:6

### Accessors

healthy
get `healthy()`
Defined in src/app/instance/shared/instance.model.ts:9

    export class Instance {
      readonly name: string;
      readonly clusterName: string;
      readonly enabled: boolean;
      readonly liveInstance: boolean | string;
      readonly sessionId: string;
      readonly helixVersion: string;

      get healthy(): boolean {
        return this.liveInstance && this.enabled;
      }

      constructor(
        name: string,
        clusterName: string,
        enabled: boolean,
        liveInstance: boolean | string,
        sessionId?: string,
        helixVersion?: string
      ) {
        this.name = name;
        this.clusterName = clusterName;
        this.enabled = enabled;
        this.liveInstance = liveInstance;
        this.sessionId = sessionId;
        this.helixVersion = helixVersion;
      }
    }

# results matching ""

# No results matching ""