api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetHealthStatusArgs

type GetHealthStatusArgs struct {
	Detailed bool `json:"detailed,omitempty" jsonschema:"Include detailed system information. Example: true"`
}

GetHealthStatusArgs defines the parameters for the get_health_status MCP tool

type GetProcessDetailArgs

type GetProcessDetailArgs struct {
	Name string `json:"name" jsonschema:"Running-man process name to get detailed info for (required). Example: 'database'"`
}

GetProcessDetailArgs defines the parameters for the get_process_detail MCP tool

type GetProcessStatusArgs

type GetProcessStatusArgs struct {
	Name string `json:"name,omitempty" jsonschema:"Filter by running-man process name (exact match). Example: 'database' for specific process"`
}

GetProcessStatusArgs defines the parameters for the get_process_status MCP tool

type GetRecentErrorsArgs

type GetRecentErrorsArgs struct {
	Source  string `` /* 149-byte string literal not displayed */
	Since   string `` /* 157-byte string literal not displayed */
	Context int    `` /* 153-byte string literal not displayed */
	Limit   int    `json:"limit,omitempty" jsonschema:"Maximum errors to return from running-man. Default: 20, Max: 100. Example: 50"`
}

GetRecentErrorsArgs defines the parameters for the get_recent_errors MCP tool

type GetStartupLogsArgs

type GetStartupLogsArgs struct {
	Source string `` /* 127-byte string literal not displayed */
	Limit  int    `` /* 137-byte string literal not displayed */
}

GetStartupLogsArgs defines the parameters for the get_startup_logs MCP tool

type LineHandler

type LineHandler func(source string, line string, timestamp time.Time, isStderr bool)

LineHandler is called when a log line is captured

type RestartProcessArgs

type RestartProcessArgs struct {
	Name string `json:"name" jsonschema:"Running-man process name to restart (required). Example: 'database'"`
}

RestartProcessArgs defines the parameters for the restart_process MCP tool

type SearchLogsArgs

type SearchLogsArgs struct {
	Source   string `` /* 156-byte string literal not displayed */
	Since    string `` /* 163-byte string literal not displayed */
	Level    string `` /* 156-byte string literal not displayed */
	Contains string `` /* 140-byte string literal not displayed */
	Limit    int    `` /* 129-byte string literal not displayed */
}

SearchLogsArgs defines the parameters for the search_logs MCP tool

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server provides the HTTP API for querying logs

func NewServer

func NewServer(buffer *storage.RingBuffer, port int, lineHandler LineHandler, manager *process.Manager, traceStorage *tracing.SpanStorage) *Server

NewServer creates a new API server

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server

type SlowTraceArgs

type SlowTraceArgs struct {
	Since       string `` /* 133-byte string literal not displayed */
	Threshold   string `` /* 170-byte string literal not displayed */
	ServiceName string `json:"service_name,omitempty" jsonschema:"Filter by service name. Example: 'web-server' or 'database'"`
	Limit       int    `json:"limit,omitempty" jsonschema:"Maximum traces to return. Default: 20, Max: 100"`
}

SlowTraceArgs defines parameters for finding slow traces

type StopAllProcessesArgs

type StopAllProcessesArgs struct {
	Confirm bool `json:"confirm,omitempty" jsonschema:"Safety confirmation. Must be true to proceed. Example: true"`
}

StopAllProcessesArgs defines the parameters for the stop_all_processes MCP tool

type TraceQueryArgs

type TraceQueryArgs struct {
	Since       string `` /* 165-byte string literal not displayed */
	ServiceName string `json:"service_name,omitempty" jsonschema:"Filter by service name from traces. Example: 'web-server' or 'database'"`
	TraceID     string `json:"trace_id,omitempty" jsonschema:"Get specific trace by ID. Example: 'abc123def456'"`
	SpanName    string `json:"span_name,omitempty" jsonschema:"Filter by span name (supports partial match). Example: 'http.request'"`
	Status      string `` /* 132-byte string literal not displayed */
	Limit       int    `json:"limit,omitempty" jsonschema:"Maximum traces or spans to return. Default: 50, Max: 1000. Example: 100"`
}

TraceQueryArgs defines the parameters for trace-related MCP tools

Jump to

Keyboard shortcuts

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