logging

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package logging provides MCP tools for querying GCP logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(_ context.Context, s *mcp.Server, c *config.Config) error

Install adds GCP logging related tools to an MCP server.

Types

type GetLogSchemaRequest

type GetLogSchemaRequest struct {
	LogType string `` /* 147-byte string literal not displayed */
}

GetLogSchemaRequest defines the requested log type schema.

type LogQueryRequest

type LogQueryRequest struct {
	Query     string    `` /* 146-byte string literal not displayed */
	ProjectID string    `json:"project_id" jsonschema:"GCP project ID to query logs from. Required."`
	TimeRange TimeRange `json:"time_range,omitempty" jsonschema:"Time range for log query. If empty, no restrictions are applied."`
	Since     string    `` /* 179-byte string literal not displayed */
	Limit     int       `` /* 155-byte string literal not displayed */
	Format    string    `` /* 474-byte string literal not displayed */
}

LogQueryRequest defines parameters for querying GCP logs.

type TimeRange

type TimeRange struct {
	StartTime time.Time `json:"start_time" jsonschema:"Start time for log query (RFC3339 format)"`
	EndTime   time.Time `json:"end_time" jsonschema:"End time for log query (RFC3339 format)"`
}

TimeRange captures an optional start/end window for log queries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL