> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GalileoObserveApiClient

***

# Class: ~~GalileoObserveApiClient~~

Defined in: [src/observe/api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/observe/api-client.ts)

## Deprecated

This class is no longer actively maintained. Please use `GalileoApiClient` instead.

## Extends

* `GalileoLegacyApiClient`

## Constructors

### Constructor

```ts theme={null}
new GalileoObserveApiClient(): GalileoObserveApiClient;
```

Defined in: [src/observe/api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/observe/api-client.ts)

#### Returns

`GalileoObserveApiClient`

#### Overrides

```ts theme={null}
GalileoLegacyApiClient.constructor;
```

## Properties

### ~~datasetId~~

```ts theme={null}
datasetId: string = "";
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.datasetId;
```

***

### ~~projectId~~

```ts theme={null}
projectId: string = "";
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.projectId;
```

***

### ~~runId~~

```ts theme={null}
runId: string = "";
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.runId;
```

***

### ~~type~~

```ts theme={null}
type:
  | undefined
  | "prompt_evaluation"
  | "llm_monitor"
  | "gen_ai"
  | "training_inference"
  | "protect" = undefined;
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.type;
```

## Methods

### ~~deleteLoggedData()~~

```ts theme={null}
deleteLoggedData(filters: unknown[]): Promise<Record<string, unknown>>;
```

Defined in: [src/observe/api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/observe/api-client.ts)

#### Parameters

##### filters

`unknown`\[] = `[]`

#### Returns

`Promise`\<`Record`\<`string`, `unknown`>>

***

### ~~getLoggedData()~~

```ts theme={null}
getLoggedData(
   start_time: string,
   end_time: string,
   filters: unknown[],
   sort_spec: unknown[],
   limit?: number,
   offset?: number,
   include_chains?: boolean,
chain_id?: string): Promise<Record<string, unknown>>;
```

Defined in: [src/observe/api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/observe/api-client.ts)

#### Parameters

##### start\_time

`string`

##### end\_time

`string`

##### filters

`unknown`\[] = `[]`

##### sort\_spec

`unknown`\[] = `[]`

##### limit?

`number`

##### offset?

`number`

##### include\_chains?

`boolean`

##### chain\_id?

`string`

#### Returns

`Promise`\<`Record`\<`string`, `unknown`>>

***

### ~~getMetrics()~~

```ts theme={null}
getMetrics(
   start_time: string,
   end_time: string,
   filters: unknown[],
   interval?: number,
group_by?: string): Promise<Record<string, unknown>>;
```

Defined in: [src/observe/api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/observe/api-client.ts)

#### Parameters

##### start\_time

`string`

##### end\_time

`string`

##### filters

`unknown`\[] = `[]`

##### interval?

`number`

##### group\_by?

`string`

#### Returns

`Promise`\<`Record`\<`string`, `unknown`>>

***

### ~~ingestBatch()~~

```ts theme={null}
ingestBatch(transaction_batch: TransactionRecordBatch): Promise<string>;
```

Defined in: [src/observe/api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/observe/api-client.ts)

#### Parameters

##### transaction\_batch

`TransactionRecordBatch`

#### Returns

`Promise`\<`string`>

***

### ~~init()~~

```ts theme={null}
init(projectName?: string, datasetId?: string): Promise<void>;
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Parameters

##### projectName?

`string`

##### datasetId?

`string`

#### Returns

`Promise`\<`void`>

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.init;
```

***

### ~~makeRequest()~~

```ts theme={null}
makeRequest<T>(
   request_method: Method,
   endpoint: Routes,
   data?: null | string | Record<string, any>,
params?: Record<string, unknown>): Promise<T>;
```

Defined in: [src/legacy-api-client.ts](https://github.com/rungalileo/galileo-js/blob/main/src/legacy-api-client.ts)

#### Type Parameters

##### T

`T`

#### Parameters

##### request\_method

`Method`

##### endpoint

`Routes`

##### data?

`null` | `string` | `Record`\<`string`, `any`>

##### params?

`Record`\<`string`, `unknown`>

#### Returns

`Promise`\<`T`>

#### Inherited from

```ts theme={null}
GalileoLegacyApiClient.makeRequest;
```
