Skip to content

Commit

Permalink
Merge branch 'main' of github.com:baselime/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Jun 28, 2024
2 parents e485516 + f7b2813 commit b5f8fd8
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 5 deletions.
64 changes: 61 additions & 3 deletions api-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This endpoint enables the client to interact with resources on Baselime platform

## Authentication Headers
* `content-type: application/json`
* `x-api-key: <api key>` - get your API key from [Baselime console](https://console.baselime.io)
* `x-api-key: <api key>` - get your admin API key from [Baselime console](https://console.baselime.io)

## Dashboards

Expand Down Expand Up @@ -371,7 +371,6 @@ This endpoint enables the client to interact with resources on Baselime platform
}
```
===

## Alerts

==- [!badge GET] `/alerts`
Expand Down Expand Up @@ -621,6 +620,65 @@ This endpoint enables the client to interact with resources on Baselime platform

---

## Services

==- [!badge GET] `/services`
**Description:** Lists all services in the environment.

**Response**
```typescript Body
{
"data": Array<{
"name": string
"workspaceId": string
"environmentId": string
"userId": string
"generated": boolean
"created": string
"updated": string
"metadata": Record<string, any>
}>
}

```

==- [!badge GET] `/services/{name}`
**Description:** Gets a service by name.


**Request**
* `{id}` - The name of the service.

**Response**
```typescript Body
{
"data": {
"name": string
"workspaceId": string
"environmentId": string
"userId": string
"generated": boolean
"created": string
"updated": string
"metadata": Record<string, any>
}
}
```

==- [!badge variant="danger" text="DELETE"] `/services/{name}`
**Description:** Deletes a service.

**Request**
* `{name}` - The name of the service.

**Response**
```typescript Body
{
"message": "Service deleted",
}
```
===


# Telemetry data

Expand All @@ -630,7 +688,7 @@ This endpoint enables you to query your telemetry data.

## Authentication
* `content-type: application/json`
* `x-api-key: <api key>` - get your API key from [Baselime console](https://console.baselime.io)
* `x-api-key: <api key>` - get your admin API key from [Baselime console](https://console.baselime.io)

==- [!badge POST] `/query_runs`
**Description:** Creates a new query run and returns its results.
Expand Down
7 changes: 5 additions & 2 deletions sending-data/platforms/opentelemetry/opentelemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ If your codebase is already instrumented with [OpenTelemetry](https://openteleme
## Configuration

### Endpoint
* HTTP: `otel.baselime.io/v1/`
* gRPC: `otel-ingest.baselime.io:4317`
* HTTP:
* `otel.baselime.io/v1/traces` - traces
* `otel.baselime.io/v1/metrics` - metrics
* `otel.baselime.io/v1/logs` - logs
* gRPC: `otel-ingest.baselime.io:8443`

### Headers
```yaml
Expand Down

0 comments on commit b5f8fd8

Please sign in to comment.