PgBeam Docs
Platform

GetHealth

Health check

Returns the health status of the API server.

Usage

result, err := client.Platform.GetHealth(ctx)

Parameters

ParameterTypeRequiredDescription
ctxcontext.ContextYesRequest context

Response

(*pgbeam.HealthResponse, error) — service is healthy.

Example

import pgbeam "github.com/pgbeam/pgbeam-go"

client := pgbeam.NewClient(&pgbeam.ClientOptions{
  APIKey: "pgb_your_api_key",
})

result, err := client.Platform.GetHealth(ctx)
if err != nil {
  log.Fatal(err)
}
fmt.Println(result)

Errors

StatusDescription
429Rate limited. Try again later.

On this page