generated

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package generated contains Go types auto-generated from the DevHelm OpenAPI spec.

DO NOT EDIT — regenerate with: make typegen

This file is a bootstrap placeholder that matches what oapi-codegen would produce from docs/openapi/monitoring-api.json. Once oapi-codegen runs against the real spec it replaces this file entirely.

Required (always-present) response fields → value types. Nullable / optional fields → pointer types. JSON tags match the API's camelCase convention.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMonitorTagsRequest

type AddMonitorTagsRequest struct {
	TagIds  []string        `json:"tagIds,omitempty"`
	NewTags []NewTagRequest `json:"newTags,omitempty"`
}

type AddResourceGroupMemberRequest

type AddResourceGroupMemberRequest struct {
	MemberType string `json:"memberType"`
	MemberID   string `json:"memberId"`
}

type AlertChannelDto

type AlertChannelDto struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	ChannelType string `json:"channelType"`
	ConfigHash  string `json:"configHash"`
}

type ApiKeyAuthConfig

type ApiKeyAuthConfig struct {
	Type          string  `json:"type"`
	HeaderName    string  `json:"headerName"`
	VaultSecretId *string `json:"vaultSecretId,omitempty"`
}

type BasicAuthConfig

type BasicAuthConfig struct {
	Type          string  `json:"type"`
	VaultSecretId *string `json:"vaultSecretId,omitempty"`
}

type BearerAuthConfig

type BearerAuthConfig struct {
	Type          string  `json:"type"`
	VaultSecretId *string `json:"vaultSecretId,omitempty"`
}

type ConfirmationPolicy

type ConfirmationPolicy struct {
	Type              string `json:"type"`
	MinRegionsFailing *int   `json:"minRegionsFailing,omitempty"`
	MaxWaitSeconds    *int   `json:"maxWaitSeconds,omitempty"`
}

type CreateAlertChannelRequest

type CreateAlertChannelRequest struct {
	Name   string          `json:"name"`
	Config json.RawMessage `json:"config"`
}

type CreateAssertionRequest

type CreateAssertionRequest struct {
	Config   json.RawMessage `json:"config"`
	Severity *string         `json:"severity,omitempty"`
}

type CreateEnvironmentRequest

type CreateEnvironmentRequest struct {
	Name      string            `json:"name"`
	Slug      string            `json:"slug"`
	Variables map[string]string `json:"variables,omitempty"`
	IsDefault *bool             `json:"isDefault,omitempty"`
}

type CreateMonitorRequest

type CreateMonitorRequest struct {
	Name             string                       `json:"name"`
	Type             string                       `json:"type"`
	Config           json.RawMessage              `json:"config"`
	ManagedBy        string                       `json:"managedBy"`
	FrequencySeconds *int                         `json:"frequencySeconds,omitempty"`
	Enabled          *bool                        `json:"enabled,omitempty"`
	Regions          []string                     `json:"regions,omitempty"`
	EnvironmentID    *string                      `json:"environmentId,omitempty"`
	Assertions       []CreateAssertionRequest     `json:"assertions,omitempty"`
	Auth             *json.RawMessage             `json:"auth,omitempty"`
	IncidentPolicy   *UpdateIncidentPolicyRequest `json:"incidentPolicy,omitempty"`
	AlertChannelIds  []string                     `json:"alertChannelIds,omitempty"`
	Tags             *AddMonitorTagsRequest       `json:"tags,omitempty"`
}

type CreateNotificationPolicyRequest

type CreateNotificationPolicyRequest struct {
	Name       string          `json:"name"`
	Enabled    *bool           `json:"enabled,omitempty"`
	Priority   *int            `json:"priority,omitempty"`
	MatchRules []MatchRule     `json:"matchRules,omitempty"`
	Escalation EscalationChain `json:"escalation"`
}

type CreateResourceGroupRequest

type CreateResourceGroupRequest struct {
	Name                     string         `json:"name"`
	Description              *string        `json:"description,omitempty"`
	AlertPolicyID            *string        `json:"alertPolicyId,omitempty"`
	DefaultFrequency         *int           `json:"defaultFrequency,omitempty"`
	DefaultRegions           []string       `json:"defaultRegions,omitempty"`
	DefaultRetryStrategy     *RetryStrategy `json:"defaultRetryStrategy,omitempty"`
	DefaultAlertChannels     []string       `json:"defaultAlertChannels,omitempty"`
	DefaultEnvironmentID     *string        `json:"defaultEnvironmentId,omitempty"`
	HealthThresholdType      *string        `json:"healthThresholdType,omitempty"`
	HealthThresholdValue     *float64       `json:"healthThresholdValue,omitempty"`
	SuppressMemberAlerts     *bool          `json:"suppressMemberAlerts,omitempty"`
	ConfirmationDelaySeconds *int           `json:"confirmationDelaySeconds,omitempty"`
	RecoveryCooldownMinutes  *int           `json:"recoveryCooldownMinutes,omitempty"`
}

type CreateSecretRequest

type CreateSecretRequest struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type CreateTagRequest

type CreateTagRequest struct {
	Name  string  `json:"name"`
	Color *string `json:"color,omitempty"`
}

type CreateWebhookEndpointRequest

type CreateWebhookEndpointRequest struct {
	URL              string   `json:"url"`
	SubscribedEvents []string `json:"subscribedEvents"`
	Description      *string  `json:"description,omitempty"`
}

type DiscordChannelConfig

type DiscordChannelConfig struct {
	ChannelType   string  `json:"channelType"`
	WebhookURL    string  `json:"webhookUrl"`
	MentionRoleID *string `json:"mentionRoleId,omitempty"`
}

type DnsMonitorConfig

type DnsMonitorConfig struct {
	Hostname       string   `json:"hostname"`
	RecordTypes    []string `json:"recordTypes,omitempty"`
	Nameservers    []string `json:"nameservers,omitempty"`
	TimeoutMs      *int     `json:"timeoutMs,omitempty"`
	TotalTimeoutMs *int     `json:"totalTimeoutMs,omitempty"`
}

type EmailChannelConfig

type EmailChannelConfig struct {
	ChannelType string   `json:"channelType"`
	Recipients  []string `json:"recipients"`
}

type EnvironmentDto

type EnvironmentDto struct {
	ID        string            `json:"id"`
	Name      string            `json:"name"`
	Slug      string            `json:"slug"`
	IsDefault bool              `json:"isDefault"`
	Variables map[string]string `json:"variables"`
}

type EscalationChain

type EscalationChain struct {
	Steps     []EscalationStep `json:"steps"`
	OnResolve *string          `json:"onResolve,omitempty"`
	OnReopen  *string          `json:"onReopen,omitempty"`
}

type EscalationStep

type EscalationStep struct {
	ChannelIDs            []string `json:"channelIds"`
	DelayMinutes          *int     `json:"delayMinutes,omitempty"`
	RequireAck            *bool    `json:"requireAck,omitempty"`
	RepeatIntervalSeconds *int     `json:"repeatIntervalSeconds,omitempty"`
}

type HeaderAuthConfig

type HeaderAuthConfig struct {
	Type          string  `json:"type"`
	HeaderName    string  `json:"headerName"`
	VaultSecretId *string `json:"vaultSecretId,omitempty"`
}

type HeartbeatMonitorConfig

type HeartbeatMonitorConfig struct {
	ExpectedInterval int `json:"expectedInterval"`
	GracePeriod      int `json:"gracePeriod"`
}

type HttpMonitorConfig

type HttpMonitorConfig struct {
	Url           string            `json:"url"`
	Method        string            `json:"method"`
	CustomHeaders map[string]string `json:"customHeaders,omitempty"`
	RequestBody   *string           `json:"requestBody,omitempty"`
	ContentType   *string           `json:"contentType,omitempty"`
	VerifyTls     *bool             `json:"verifyTls,omitempty"`
}

type IcmpMonitorConfig

type IcmpMonitorConfig struct {
	Host        string `json:"host"`
	PacketCount *int   `json:"packetCount,omitempty"`
	TimeoutMs   *int   `json:"timeoutMs,omitempty"`
}

type IncidentPolicyDto

type IncidentPolicyDto struct {
	ID           string             `json:"id"`
	TriggerRules []TriggerRule      `json:"triggerRules"`
	Confirmation ConfirmationPolicy `json:"confirmation"`
	Recovery     RecoveryPolicy     `json:"recovery"`
}

type MatchRule

type MatchRule struct {
	Type       string   `json:"type"`
	Value      *string  `json:"value,omitempty"`
	Values     []string `json:"values,omitempty"`
	MonitorIDs []string `json:"monitorIds,omitempty"`
	Regions    []string `json:"regions,omitempty"`
}

type McpServerMonitorConfig

type McpServerMonitorConfig struct {
	Command string            `json:"command"`
	Args    []string          `json:"args,omitempty"`
	Env     map[string]string `json:"env,omitempty"`
}

type MonitorAssertionDto

type MonitorAssertionDto struct {
	ID       string          `json:"id"`
	Config   json.RawMessage `json:"config"`
	Severity *string         `json:"severity,omitempty"`
}

type MonitorDto

type MonitorDto struct {
	ID               string                `json:"id"`
	Name             string                `json:"name"`
	Type             string                `json:"type"`
	Config           json.RawMessage       `json:"config"`
	FrequencySeconds int                   `json:"frequencySeconds"`
	Enabled          bool                  `json:"enabled"`
	Regions          []string              `json:"regions"`
	ManagedBy        *string               `json:"managedBy,omitempty"`
	Environment      *Summary              `json:"environment,omitempty"`
	Auth             *json.RawMessage      `json:"auth,omitempty"`
	IncidentPolicy   *IncidentPolicyDto    `json:"incidentPolicy,omitempty"`
	AlertChannelIds  []string              `json:"alertChannelIds,omitempty"`
	Tags             []MonitorTagDto       `json:"tags,omitempty"`
	Assertions       []MonitorAssertionDto `json:"assertions,omitempty"`
	PingUrl          *string               `json:"pingUrl,omitempty"`
}

type MonitorTagDto

type MonitorTagDto struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type NewTagRequest

type NewTagRequest struct {
	Name  string  `json:"name"`
	Color *string `json:"color,omitempty"`
}

type NotificationPolicyDto

type NotificationPolicyDto struct {
	ID         string          `json:"id"`
	Name       string          `json:"name"`
	Enabled    bool            `json:"enabled"`
	Priority   int             `json:"priority"`
	MatchRules []MatchRule     `json:"matchRules"`
	Escalation EscalationChain `json:"escalation"`
}

type OpsGenieChannelConfig

type OpsGenieChannelConfig struct {
	ChannelType string  `json:"channelType"`
	APIKey      string  `json:"apiKey"`
	Region      *string `json:"region,omitempty"`
}

type PagerDutyChannelConfig

type PagerDutyChannelConfig struct {
	ChannelType      string  `json:"channelType"`
	RoutingKey       string  `json:"routingKey"`
	SeverityOverride *string `json:"severityOverride,omitempty"`
}

type RecoveryPolicy

type RecoveryPolicy struct {
	ConsecutiveSuccesses *int `json:"consecutiveSuccesses,omitempty"`
	MinRegionsPassing    *int `json:"minRegionsPassing,omitempty"`
	CooldownMinutes      *int `json:"cooldownMinutes,omitempty"`
}

type ResourceGroupDto

type ResourceGroupDto struct {
	ID                       string                   `json:"id"`
	Name                     string                   `json:"name"`
	Slug                     string                   `json:"slug"`
	Description              *string                  `json:"description,omitempty"`
	AlertPolicyID            *string                  `json:"alertPolicyId,omitempty"`
	DefaultFrequency         *int                     `json:"defaultFrequency,omitempty"`
	DefaultRegions           []string                 `json:"defaultRegions,omitempty"`
	DefaultRetryStrategy     *RetryStrategy           `json:"defaultRetryStrategy,omitempty"`
	DefaultAlertChannels     []string                 `json:"defaultAlertChannels,omitempty"`
	DefaultEnvironmentID     *string                  `json:"defaultEnvironmentId,omitempty"`
	HealthThresholdType      *string                  `json:"healthThresholdType,omitempty"`
	HealthThresholdValue     *float64                 `json:"healthThresholdValue,omitempty"`
	SuppressMemberAlerts     *bool                    `json:"suppressMemberAlerts,omitempty"`
	ConfirmationDelaySeconds *int                     `json:"confirmationDelaySeconds,omitempty"`
	RecoveryCooldownMinutes  *int                     `json:"recoveryCooldownMinutes,omitempty"`
	Members                  []ResourceGroupMemberDto `json:"members,omitempty"`
}

type ResourceGroupMemberDto

type ResourceGroupMemberDto struct {
	ID         string  `json:"id"`
	GroupID    string  `json:"groupId"`
	MemberType string  `json:"memberType"`
	MonitorID  *string `json:"monitorId,omitempty"`
	ServiceID  *string `json:"serviceId,omitempty"`
	Name       *string `json:"name,omitempty"`
	Slug       *string `json:"slug,omitempty"`
}

type RetryStrategy

type RetryStrategy struct {
	Type       string `json:"type"`
	MaxRetries *int   `json:"maxRetries,omitempty"`
	Interval   *int   `json:"interval,omitempty"`
}

type SecretDto

type SecretDto struct {
	ID        string `json:"id"`
	Key       string `json:"key"`
	ValueHash string `json:"valueHash"`
}

type ServiceSubscribeRequest

type ServiceSubscribeRequest struct {
	AlertSensitivity *string `json:"alertSensitivity,omitempty"`
	ComponentID      *string `json:"componentId,omitempty"`
}

type ServiceSubscriptionDto

type ServiceSubscriptionDto struct {
	SubscriptionID   string  `json:"subscriptionId"`
	ServiceID        *string `json:"serviceId,omitempty"`
	Slug             string  `json:"slug"`
	Name             string  `json:"name"`
	ComponentID      *string `json:"componentId,omitempty"`
	AlertSensitivity *string `json:"alertSensitivity,omitempty"`
}

type SlackChannelConfig

type SlackChannelConfig struct {
	ChannelType string  `json:"channelType"`
	WebhookURL  string  `json:"webhookUrl"`
	MentionText *string `json:"mentionText,omitempty"`
}

type Summary

type Summary struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Slug string `json:"slug"`
}

type TagDto

type TagDto struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Color string `json:"color"`
}

type TcpMonitorConfig

type TcpMonitorConfig struct {
	Host      string `json:"host"`
	Port      *int   `json:"port,omitempty"`
	TimeoutMs *int   `json:"timeoutMs,omitempty"`
}

type TeamsChannelConfig

type TeamsChannelConfig struct {
	ChannelType string `json:"channelType"`
	WebhookURL  string `json:"webhookUrl"`
}

type TriggerRule

type TriggerRule struct {
	Type            string  `json:"type"`
	Severity        string  `json:"severity"`
	Scope           *string `json:"scope,omitempty"`
	Count           *int    `json:"count,omitempty"`
	WindowMinutes   *int    `json:"windowMinutes,omitempty"`
	ThresholdMs     *int    `json:"thresholdMs,omitempty"`
	AggregationType *string `json:"aggregationType,omitempty"`
}

type UpdateAlertChannelRequest

type UpdateAlertChannelRequest = CreateAlertChannelRequest

type UpdateAlertSensitivityRequest

type UpdateAlertSensitivityRequest struct {
	AlertSensitivity string `json:"alertSensitivity"`
}

type UpdateEnvironmentRequest

type UpdateEnvironmentRequest struct {
	Name      *string           `json:"name,omitempty"`
	Variables map[string]string `json:"variables,omitempty"`
	IsDefault *bool             `json:"isDefault,omitempty"`
}

type UpdateIncidentPolicyRequest

type UpdateIncidentPolicyRequest struct {
	TriggerRules []TriggerRule      `json:"triggerRules"`
	Confirmation ConfirmationPolicy `json:"confirmation"`
	Recovery     RecoveryPolicy     `json:"recovery"`
}

type UpdateMonitorRequest

type UpdateMonitorRequest struct {
	Name               *string                      `json:"name,omitempty"`
	Config             *json.RawMessage             `json:"config,omitempty"`
	ManagedBy          *string                      `json:"managedBy,omitempty"`
	FrequencySeconds   *int                         `json:"frequencySeconds,omitempty"`
	Enabled            *bool                        `json:"enabled,omitempty"`
	Regions            []string                     `json:"regions,omitempty"`
	EnvironmentID      *string                      `json:"environmentId,omitempty"`
	ClearEnvironmentID *bool                        `json:"clearEnvironmentId,omitempty"`
	Assertions         []CreateAssertionRequest     `json:"assertions,omitempty"`
	Auth               *json.RawMessage             `json:"auth,omitempty"`
	ClearAuth          *bool                        `json:"clearAuth,omitempty"`
	IncidentPolicy     *UpdateIncidentPolicyRequest `json:"incidentPolicy,omitempty"`
	AlertChannelIds    []string                     `json:"alertChannelIds,omitempty"`
	Tags               *AddMonitorTagsRequest       `json:"tags,omitempty"`
}

type UpdateNotificationPolicyRequest

type UpdateNotificationPolicyRequest = CreateNotificationPolicyRequest

type UpdateResourceGroupRequest

type UpdateResourceGroupRequest = CreateResourceGroupRequest

type UpdateSecretRequest

type UpdateSecretRequest struct {
	Value string `json:"value"`
}

type UpdateTagRequest

type UpdateTagRequest = CreateTagRequest

type UpdateWebhookEndpointRequest

type UpdateWebhookEndpointRequest struct {
	URL              *string  `json:"url,omitempty"`
	Description      *string  `json:"description,omitempty"`
	Enabled          *bool    `json:"enabled,omitempty"`
	SubscribedEvents []string `json:"subscribedEvents,omitempty"`
}

type WebhookChannelConfig

type WebhookChannelConfig struct {
	ChannelType   string            `json:"channelType"`
	URL           string            `json:"url"`
	CustomHeaders map[string]string `json:"customHeaders,omitempty"`
	SigningSecret *string           `json:"signingSecret,omitempty"`
}

type WebhookEndpointDto

type WebhookEndpointDto struct {
	ID               string   `json:"id"`
	URL              string   `json:"url"`
	Description      *string  `json:"description,omitempty"`
	Enabled          bool     `json:"enabled"`
	SubscribedEvents []string `json:"subscribedEvents"`
}

Jump to

Keyboard shortcuts

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