---
title: "Get mysql events stream"
method: GET
path: "/api/projects/{projectName}/mysqls/{mysqlName}/events/stream"
tags: ["events"]
---

# Get mysql events stream

`GET /api/projects/{projectName}/mysqls/{mysqlName}/events/stream`

## Request

- Base URL: `https://api.hostim.dev`
- URL: `https://api.hostim.dev/api/projects/{projectName}/mysqls/{mysqlName}/events/stream`
- Auth: HTTP bearer

Establishes a stream of events for a given mysql

## Path parameters

- `projectName` string, required
- `mysqlName` string, required

## Response `200`

MySQL events found

- Event[]
  - `type` 'Normal' | 'Warning', required: The Kubernetes event type
  - `reason` string, required: A short, machine-understandable reason for the event
  - `message` string, required: A human-readable message describing the event
  - `timestamp` string, date-time, required: When the event occurred
  - `project` string, required: The project this event belongs to
  - `source` 'infra' | 'admin', required: The origin of the event
  - `serviceType` 'app' | 'mysql' | 'postgres' | 'redis', nullable: The type of resource this event is about (e.g. app, mysql, postgres, redis)
  - `serviceName` string, nullable: Name of the service/app/database this event is related to

## Other responses

- `401`: User is not authorized
- `404`: MySQL not found
- `500`: Internal server error

---

[API](https://skmtc.dev/hostim/apis/hostim-api.md) · [All operations](https://skmtc.dev/hostim/apis/hostim-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostim/apis/hostim-api/revisions/37c35e1026a9?raw)
