Documentation ¶
Overview ¶
Package client provides a client over the REST HTTP API of Calyptia Cloud.
Package client provides a client over the REST HTTP API of Calyptia Cloud.
Package client provides a client over the REST HTTP API of Calyptia Cloud.
Package client provides a client over the REST HTTP API of Calyptia Cloud.
Package client provides a client over the REST HTTP API of Calyptia Cloud.
Package client provides a client over the REST HTTP API of Calyptia Cloud.
Package client provides a client over the REST HTTP API of Calyptia Cloud.
Package client provides a client over the REST HTTP API of Calyptia Cloud.
Package client provides a client over the REST HTTP API of Calyptia Cloud.
Index ¶
- Constants
- type Client
- func (c *Client) AcceptInvitation(ctx context.Context, payload types.AcceptInvitation) error
- func (c *Client) ActiveTraceSession(ctx context.Context, pipelineID string) (types.TraceSession, error)
- func (c *Client) Agent(ctx context.Context, agentID string) (types.Agent, error)
- func (c *Client) AgentConfigHistory(ctx context.Context, agentID string, params types.AgentConfigHistoryParams) (types.AgentConfigHistory, error)
- func (c *Client) AgentMetrics(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsSummary, error)
- func (c *Client) AgentMetricsByPlugin(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsSummaryPlugin, error)
- func (c *Client) AgentMetricsOverTimeByPlugin(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
- func (c *Client) AgentMetricsV1(ctx context.Context, agentID string, params types.MetricsParams) (types.AgentMetrics, error)
- func (c *Client) AgentOverTimeMetrics(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsOverTime, error)
- func (c *Client) Agents(ctx context.Context, projectID string, params types.AgentsParams) (types.Agents, error)
- func (c *Client) Aggregator(ctx context.Context, aggregatorID string) (types.Aggregator, error)
- func (c *Client) AggregatorMetrics(ctx context.Context, aggregatorID string, params types.MetricsParams) (types.AggregatorMetrics, error)
- func (c *Client) AggregatorPing(ctx context.Context, aggregatorID string) (types.AggregatorPingResponse, error)
- func (c *Client) AggregatorPipelinesMetrics(ctx context.Context, aggregatorID string, params types.PipelinesMetricsParams) (types.PipelinesMetrics, error)
- func (c *Client) Aggregators(ctx context.Context, projectID string, params types.AggregatorsParams) (types.Aggregators, error)
- func (c *Client) ClusterObject(ctx context.Context, checkID string) (types.ClusterObject, error)
- func (c *Client) ClusterObjects(ctx context.Context, coreInstanceID string, params types.ClusterObjectParams) (types.ClusterObjects, error)
- func (c *Client) ConfigSection(ctx context.Context, configSectionID string) (types.ConfigSection, error)
- func (c *Client) ConfigSections(ctx context.Context, projectID string, params types.ConfigSectionsParams) (types.ConfigSections, error)
- func (c *Client) CoreInstanceCheck(ctx context.Context, checkID string) (types.CoreInstanceCheck, error)
- func (c *Client) CoreInstanceChecks(ctx context.Context, coreInstanceID string, ...) (types.CoreInstanceChecks, error)
- func (c *Client) CoreInstanceMetrics(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsSummary, error)
- func (c *Client) CoreInstanceMetricsByPlugin(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsSummaryPlugin, error)
- func (c *Client) CoreInstanceMetricsOverTimeByPlugin(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
- func (c *Client) CoreInstanceOverTimeMetrics(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsOverTime, error)
- func (c *Client) CreateAggregator(ctx context.Context, payload types.CreateAggregator) (types.CreatedAggregator, error)
- func (c *Client) CreateClusterObject(ctx context.Context, coreInstanceID string, payload types.CreateClusterObject) (types.CreatedClusterObject, error)
- func (c *Client) CreateConfigSection(ctx context.Context, projectID string, in types.CreateConfigSection) (types.CreatedConfigSection, error)
- func (c *Client) CreateCoreInstanceCheck(ctx context.Context, coreInstanceID string, ...) (types.CreatedCoreInstanceCheck, error)
- func (c *Client) CreateEnvironment(ctx context.Context, projectID string, payload types.CreateEnvironment) (types.CreatedEnvironment, error)
- func (c *Client) CreateIngestCheck(ctx context.Context, coreInstanceID string, payload types.CreateIngestCheck) (types.CreatedIngestCheck, error)
- func (c *Client) CreateInvitation(ctx context.Context, projectID string, payload types.CreateInvitation) error
- func (c *Client) CreatePipeline(ctx context.Context, aggregatorID string, payload types.CreatePipeline) (types.CreatedPipeline, error)
- func (c *Client) CreatePipelineCheck(ctx context.Context, pipelineID string, payload types.CreatePipelineCheck) (types.CreatedPipelineCheck, error)
- func (c *Client) CreatePipelineFile(ctx context.Context, pipelineID string, payload types.CreatePipelineFile) (types.CreatedPipelineFile, error)
- func (c *Client) CreatePipelinePort(ctx context.Context, pipelineID string, payload types.CreatePipelinePort) (types.CreatedPipelinePort, error)
- func (c *Client) CreatePipelineSecret(ctx context.Context, pipelineID string, payload types.CreatePipelineSecret) (types.CreatedPipelineSecret, error)
- func (c *Client) CreateProcessingRule(ctx context.Context, in types.CreateProcessingRule) (types.CreatedProcessingRule, error)
- func (c *Client) CreateProject(ctx context.Context, payload types.CreateProject) (types.CreatedProject, error)
- func (c *Client) CreateResourceProfile(ctx context.Context, aggregatorID string, payload types.CreateResourceProfile) (types.CreatedResourceProfile, error)
- func (c *Client) CreateToken(ctx context.Context, projectID string, payload types.CreateToken) (types.Token, error)
- func (c *Client) CreateTraceRecord(ctx context.Context, pipelineID string, in types.CreateTraceRecord) (types.CreatedTraceRecord, error)
- func (c *Client) CreateTraceSession(ctx context.Context, pipelineID string, in types.CreateTraceSession) (types.CreatedTraceSession, error)
- func (c *Client) DeleteAgent(ctx context.Context, agentID string) error
- func (c *Client) DeleteAgents(ctx context.Context, projectID string, agentIDs ...string) error
- func (c *Client) DeleteAggregator(ctx context.Context, aggregatorID string) error
- func (c *Client) DeleteAggregators(ctx context.Context, projectID string, aggregatorIDs ...string) error
- func (c *Client) DeleteClusterObject(ctx context.Context, checkID string) error
- func (c *Client) DeleteConfigSection(ctx context.Context, configSectionID string) error
- func (c *Client) DeleteCoreInstanceCheck(ctx context.Context, checkID string) error
- func (c *Client) DeleteEnvironment(ctx context.Context, environmentID string) error
- func (c *Client) DeleteIngestCheck(ctx context.Context, checkID string) error
- func (c *Client) DeletePipeline(ctx context.Context, pipelineID string) error
- func (c *Client) DeletePipelineCheck(ctx context.Context, checkID string) error
- func (c *Client) DeletePipelineFile(ctx context.Context, fileID string) error
- func (c *Client) DeletePipelinePort(ctx context.Context, portID string) error
- func (c *Client) DeletePipelineSecret(ctx context.Context, secretID string) error
- func (c *Client) DeletePipelines(ctx context.Context, aggregatorID string, pipelineIDs ...string) error
- func (c *Client) DeleteProcessingRule(ctx context.Context, processingRuleID string) error
- func (c *Client) DeleteResourceProfile(ctx context.Context, resourceProfileID string) error
- func (c *Client) DeleteToken(ctx context.Context, tokenID string) error
- func (c *Client) Environments(ctx context.Context, projectID string, params types.EnvironmentsParams) (types.Environments, error)
- func (c *Client) IngestCheck(ctx context.Context, checkID string) (types.IngestCheck, error)
- func (c *Client) IngestChecks(ctx context.Context, coreInstanceID string, params types.IngestChecksParams) (types.IngestChecks, error)
- func (c *Client) Members(ctx context.Context, projectID string, params types.MembersParams) (types.Memberships, error)
- func (c *Client) Pipeline(ctx context.Context, pipelineID string, params types.PipelineParams) (types.Pipeline, error)
- func (c *Client) PipelineCheck(ctx context.Context, checkID string) (types.PipelineCheck, error)
- func (c *Client) PipelineChecks(ctx context.Context, pipelineID string, params types.PipelineChecksParams) (types.PipelineChecks, error)
- func (c *Client) PipelineConfigHistory(ctx context.Context, pipelineID string, ...) (types.PipelineConfigHistory, error)
- func (c *Client) PipelineFile(ctx context.Context, fileID string) (types.PipelineFile, error)
- func (c *Client) PipelineFiles(ctx context.Context, pipelineID string, params types.PipelineFilesParams) (types.PipelineFiles, error)
- func (c *Client) PipelineMetrics(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsSummary, error)
- func (c *Client) PipelineMetricsByPlugin(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsSummaryPlugin, error)
- func (c *Client) PipelineMetricsOverTimeByPlugin(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
- func (c *Client) PipelineMetricsV1(ctx context.Context, pipelineID string, params types.MetricsParams) (types.AgentMetrics, error)
- func (c *Client) PipelineOverTimeMetrics(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsOverTime, error)
- func (c *Client) PipelinePort(ctx context.Context, portID string) (types.PipelinePort, error)
- func (c *Client) PipelinePorts(ctx context.Context, pipelineID string, params types.PipelinePortsParams) (types.PipelinePorts, error)
- func (c *Client) PipelineSecret(ctx context.Context, secretID string) (types.PipelineSecret, error)
- func (c *Client) PipelineSecrets(ctx context.Context, pipelineID string, params types.PipelineSecretsParams) (types.PipelineSecrets, error)
- func (c *Client) PipelineStatusHistory(ctx context.Context, pipelineID string, ...) (types.PipelineStatusHistory, error)
- func (c *Client) Pipelines(ctx context.Context, aggregatorID string, params types.PipelinesParams) (types.Pipelines, error)
- func (c *Client) PreviewProcessingRule(ctx context.Context, in types.PreviewProcessingRule) ([]types.FluentBitLog, error)
- func (c *Client) ProcessingRule(ctx context.Context, processingRuleID string) (types.ProcessingRule, error)
- func (c *Client) ProcessingRules(ctx context.Context, params types.ProcessingRulesParams) (types.ProcessingRules, error)
- func (c *Client) Project(ctx context.Context, projectID string) (types.Project, error)
- func (c *Client) ProjectMetrics(ctx context.Context, projectID string, params types.MetricsParams) (types.ProjectMetrics, error)
- func (c *Client) ProjectPipelines(ctx context.Context, projectID string, params types.PipelinesParams) (types.Pipelines, error)
- func (c *Client) Projects(ctx context.Context, params types.ProjectsParams) (types.Projects, error)
- func (c *Client) RegisterAgent(ctx context.Context, payload types.RegisterAgent) (types.RegisteredAgent, error)
- func (c *Client) ResourceProfile(ctx context.Context, resourceProfileID string) (types.ResourceProfile, error)
- func (c *Client) ResourceProfiles(ctx context.Context, aggregatorID string, params types.ResourceProfilesParams) (types.ResourceProfiles, error)
- func (c *Client) SendVerificationEmail(ctx context.Context) error
- func (c *Client) SetAgentToken(s string)
- func (c *Client) SetAggregatorToken(s string)
- func (c *Client) SetProjectToken(s string)
- func (c *Client) SetUserAgent(s string)
- func (c *Client) TerminateActiveTraceSession(ctx context.Context, pipelineID string) (types.TerminatedTraceSession, error)
- func (c *Client) Token(ctx context.Context, tokenID string) (types.Token, error)
- func (c *Client) Tokens(ctx context.Context, projectID string, params types.TokensParams) (types.Tokens, error)
- func (c *Client) TraceRecords(ctx context.Context, sessionID string, params types.TraceRecordsParams) (types.TraceRecords, error)
- func (c *Client) TraceSession(ctx context.Context, sessionID string) (types.TraceSession, error)
- func (c *Client) TraceSessions(ctx context.Context, pipelineID string, params types.TraceSessionsParams) (types.TraceSessions, error)
- func (c *Client) UpdateAgent(ctx context.Context, agentID string, payload types.UpdateAgent) error
- func (c *Client) UpdateAggregator(ctx context.Context, aggregatorID string, payload types.UpdateAggregator) error
- func (c *Client) UpdateClusterObject(ctx context.Context, checkID string, opts types.UpdateClusterObject) error
- func (c *Client) UpdateConfigSection(ctx context.Context, configSectionID string, in types.UpdateConfigSection) (types.UpdatedConfigSection, error)
- func (c *Client) UpdateConfigSectionSet(ctx context.Context, pipelineID string, configSectionIDs ...string) error
- func (c *Client) UpdateCoreInstanceCheck(ctx context.Context, checkID string, opts types.UpdateCoreInstanceCheck) error
- func (c *Client) UpdateEnvironment(ctx context.Context, environmentID string, payload types.UpdateEnvironment) error
- func (c *Client) UpdateIngestCheck(ctx context.Context, checkID string, opts types.UpdateIngestCheck) error
- func (c *Client) UpdatePipeline(ctx context.Context, pipelineID string, opts types.UpdatePipeline) (types.UpdatedPipeline, error)
- func (c *Client) UpdatePipelineCheck(ctx context.Context, checkID string, opts types.UpdatePipelineCheck) error
- func (c *Client) UpdatePipelineFile(ctx context.Context, fileID string, opts types.UpdatePipelineFile) error
- func (c *Client) UpdatePipelinePort(ctx context.Context, portID string, opts types.UpdatePipelinePort) error
- func (c *Client) UpdatePipelineSecret(ctx context.Context, secretID string, opts types.UpdatePipelineSecret) error
- func (c *Client) UpdateProcessingRule(ctx context.Context, in types.UpdateProcessingRule) (types.UpdatedProcessingRule, error)
- func (c *Client) UpdateProject(ctx context.Context, projectID string, opts types.UpdateProject) error
- func (c *Client) UpdateResourceProfile(ctx context.Context, resourceProfileID string, ...) error
- func (c *Client) UpdateToken(ctx context.Context, tokenID string, opts types.UpdateToken) error
- func (c *Client) UpdateTraceSession(ctx context.Context, sessionID string, in types.UpdateTraceSession) (types.UpdatedTraceSession, error)
- func (c *Client) ValidateConfig(ctx context.Context, agentType types.AgentType, payload types.ValidatingConfig) (types.ValidatedConfig, error)
- func (c *Client) ValidateConfigV2(ctx context.Context, payload types.ValidatingConfig) (types.ValidatedConfigV2, error)
Constants ¶
const (
// DefaultBaseURL of the API.
DefaultBaseURL = "https://cloud-api.calyptia.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string // Tip: Use oauth2.NewClient(context.Context, *oauth2.TokenSource) Client *http.Client // contains filtered or unexported fields }
Client is the client over the REST HTTP API of Calyptia Cloud.
func (*Client) AcceptInvitation ¶
AcceptInvitation to a project. The project to which you join is parsed from the token.
func (*Client) ActiveTraceSession ¶ added in v0.6.1
func (c *Client) ActiveTraceSession(ctx context.Context, pipelineID string) (types.TraceSession, error)
ActiveTraceSession from a pipeline if any.
func (*Client) AgentConfigHistory ¶
func (c *Client) AgentConfigHistory(ctx context.Context, agentID string, params types.AgentConfigHistoryParams) (types.AgentConfigHistory, error)
AgentConfigHistory in descending order. Every time an agent config is updated, a new history entry with the change is created.
func (*Client) AgentMetrics ¶
func (c *Client) AgentMetrics(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsSummary, error)
AgentMetrics contains an overview of the Agent metrics. It includes metrics link the amount of records, bytes, and errors.
func (*Client) AgentMetricsByPlugin ¶ added in v0.17.0
func (c *Client) AgentMetricsByPlugin(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsSummaryPlugin, error)
AgentMetricsByPlugin contains an overview of the Agent metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) AgentMetricsOverTimeByPlugin ¶ added in v0.17.0
func (c *Client) AgentMetricsOverTimeByPlugin(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
AgentMetricsOverTimeByPlugin contains an overview of the Agent metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) AgentMetricsV1 ¶ added in v0.17.0
func (c *Client) AgentMetricsV1(ctx context.Context, agentID string, params types.MetricsParams) (types.AgentMetrics, error)
AgentMetricsV1 contains an overview of the aggregated metrics for an agent. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) AgentOverTimeMetrics ¶ added in v0.17.0
func (c *Client) AgentOverTimeMetrics(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsOverTime, error)
AgentOverTimeMetrics contains Agent metrics overtime. It includes metrics link the amount of records, bytes, and errors.
func (*Client) Agents ¶
func (c *Client) Agents(ctx context.Context, projectID string, params types.AgentsParams) (types.Agents, error)
Agents from the given project in descending order.
func (*Client) Aggregator ¶
Aggregator by ID.
func (*Client) AggregatorMetrics ¶
func (c *Client) AggregatorMetrics(ctx context.Context, aggregatorID string, params types.MetricsParams) (types.AggregatorMetrics, error)
AggregatorMetrics contains an overview of the aggregated metrics for a project. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) AggregatorPing ¶ added in v0.3.7
func (c *Client) AggregatorPing(ctx context.Context, aggregatorID string) (types.AggregatorPingResponse, error)
AggregatorPing by its ID.
func (*Client) AggregatorPipelinesMetrics ¶ added in v0.7.0
func (c *Client) AggregatorPipelinesMetrics(ctx context.Context, aggregatorID string, params types.PipelinesMetricsParams) (types.PipelinesMetrics, error)
AggregatorPipelinesMetrics get the metrics for a set of pipelineIDs belonging to an aggregator (bulk mode).
func (*Client) Aggregators ¶
func (c *Client) Aggregators(ctx context.Context, projectID string, params types.AggregatorsParams) (types.Aggregators, error)
Aggregators from a project in descending order.
func (*Client) ClusterObject ¶ added in v0.17.1
ClusterObject by ID.
func (*Client) ClusterObjects ¶ added in v0.17.1
func (c *Client) ClusterObjects(ctx context.Context, coreInstanceID string, params types.ClusterObjectParams) (types.ClusterObjects, error)
ClusterObjects in descending order.
func (*Client) ConfigSection ¶ added in v0.9.1
func (*Client) ConfigSections ¶ added in v0.9.1
func (c *Client) ConfigSections(ctx context.Context, projectID string, params types.ConfigSectionsParams) (types.ConfigSections, error)
func (*Client) CoreInstanceCheck ¶ added in v0.9.1
func (c *Client) CoreInstanceCheck(ctx context.Context, checkID string) (types.CoreInstanceCheck, error)
CoreInstanceCheck by ID.
func (*Client) CoreInstanceChecks ¶ added in v0.9.1
func (c *Client) CoreInstanceChecks(ctx context.Context, coreInstanceID string, params types.CoreInstanceChecksParams) (types.CoreInstanceChecks, error)
CoreInstanceChecks in descending order.
func (*Client) CoreInstanceMetrics ¶ added in v0.15.0
func (c *Client) CoreInstanceMetrics(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsSummary, error)
CoreInstanceMetrics contains an overview of the Core Instance metrics. It includes metrics link the amount of records, bytes, and errors.
func (*Client) CoreInstanceMetricsByPlugin ¶ added in v0.15.0
func (c *Client) CoreInstanceMetricsByPlugin(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsSummaryPlugin, error)
CoreInstanceMetricsByPlugin contains an overview of the Core Instance metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) CoreInstanceMetricsOverTimeByPlugin ¶ added in v0.15.0
func (c *Client) CoreInstanceMetricsOverTimeByPlugin(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
CoreInstanceMetricsOverTimeByPlugin contains an overview of the Core Instance metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) CoreInstanceOverTimeMetrics ¶ added in v0.15.0
func (c *Client) CoreInstanceOverTimeMetrics(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsOverTime, error)
CoreInstanceOverTimeMetrics contains Core Instance metrics overtime. It includes metrics link the amount of records, bytes, and errors.
func (*Client) CreateAggregator ¶
func (c *Client) CreateAggregator(ctx context.Context, payload types.CreateAggregator) (types.CreatedAggregator, error)
CreateAggregator within a project. The project in which the aggregator is created is parser from the authorization token. Users are not allowed to create aggregators.
func (*Client) CreateClusterObject ¶ added in v0.17.1
func (c *Client) CreateClusterObject(ctx context.Context, coreInstanceID string, payload types.CreateClusterObject) (types.CreatedClusterObject, error)
CreateClusterObject within a core_instance.
func (*Client) CreateConfigSection ¶ added in v0.9.1
func (c *Client) CreateConfigSection(ctx context.Context, projectID string, in types.CreateConfigSection) (types.CreatedConfigSection, error)
func (*Client) CreateCoreInstanceCheck ¶ added in v0.9.1
func (c *Client) CreateCoreInstanceCheck(ctx context.Context, coreInstanceID string, payload types.CreateCoreInstanceCheck) (types.CreatedCoreInstanceCheck, error)
CreateCoreInstanceCheck within a core_instance.
func (*Client) CreateEnvironment ¶ added in v0.3.1
func (c *Client) CreateEnvironment(ctx context.Context, projectID string, payload types.CreateEnvironment) (types.CreatedEnvironment, error)
CreateEnvironment within a project.
func (*Client) CreateIngestCheck ¶ added in v0.15.0
func (c *Client) CreateIngestCheck(ctx context.Context, coreInstanceID string, payload types.CreateIngestCheck) (types.CreatedIngestCheck, error)
CreateIngestCheck within a core_instance.
func (*Client) CreateInvitation ¶
func (c *Client) CreateInvitation(ctx context.Context, projectID string, payload types.CreateInvitation) error
CreateInvitation to a project. This will send an invitation email with a link to join to the email address provided.
func (*Client) CreatePipeline ¶
func (c *Client) CreatePipeline(ctx context.Context, aggregatorID string, payload types.CreatePipeline) (types.CreatedPipeline, error)
CreatePipeline within an aggregator. The pipeline name must be unique within the aggregator. The resource profile must exist already. If you don't provide one, it will default to "best-effort-low-resource". Use them to easily deploy configured agents to the aggregator.
func (*Client) CreatePipelineCheck ¶ added in v0.9.1
func (c *Client) CreatePipelineCheck(ctx context.Context, pipelineID string, payload types.CreatePipelineCheck) (types.CreatedPipelineCheck, error)
CreatePipelineCheck within a pipeline.
func (*Client) CreatePipelineFile ¶
func (c *Client) CreatePipelineFile(ctx context.Context, pipelineID string, payload types.CreatePipelineFile) (types.CreatedPipelineFile, error)
CreatePipelineFile within a pipeline. The given name is unique within the pipeline. These files can be referenced by their name within a fluentbit configuration file like so `{{files.thename}}`. Use them to share common stuff like parsers.
func (*Client) CreatePipelinePort ¶
func (c *Client) CreatePipelinePort(ctx context.Context, pipelineID string, payload types.CreatePipelinePort) (types.CreatedPipelinePort, error)
CreatePipelinePort within a pipeline. Ports can automatically be parsed from a config file, but this action allows you to programatically add more.
func (*Client) CreatePipelineSecret ¶
func (c *Client) CreatePipelineSecret(ctx context.Context, pipelineID string, payload types.CreatePipelineSecret) (types.CreatedPipelineSecret, error)
CreatePipelineSecret within a pipeline. The given name is unique within the pipeline. These secrets can be referenced by their name within a fluentbit configuration file like so `{{secrets.thename}}`. Use them to hide sensible values from your config file.
func (*Client) CreateProcessingRule ¶ added in v0.9.1
func (c *Client) CreateProcessingRule(ctx context.Context, in types.CreateProcessingRule) (types.CreatedProcessingRule, error)
func (*Client) CreateProject ¶
func (c *Client) CreateProject(ctx context.Context, payload types.CreateProject) (types.CreatedProject, error)
CreateProject creates a new project. A project is the base unit of work at Calyptia Cloud. You can register agents here, create aggregators in which you can deploy an entire set of pipelines, and monitor them. You can even invite other people to the project and have a team.
func (*Client) CreateResourceProfile ¶
func (c *Client) CreateResourceProfile(ctx context.Context, aggregatorID string, payload types.CreateResourceProfile) (types.CreatedResourceProfile, error)
CreateResourceProfile within an aggregator. A resource profile is a specification of a resource used during the deployment of a pipeline. By default, when you setup an aggregator, Calyptia Cloud will generate 3 resource profiles for you: - high-performance-guaranteed-delivery. - high-performance-optimal-throughput. - best-effort-low-resource.
func (*Client) CreateToken ¶
func (c *Client) CreateToken(ctx context.Context, projectID string, payload types.CreateToken) (types.Token, error)
CreateToken within a project. These tokens are to authorize other applications to access the project. For example: - an agent might use it to register itself to the project. - you might create a new aggregator in the project using the aggregator CLI. - you might use it within the Calyptia CLI to grant access to your project.
func (*Client) CreateTraceRecord ¶ added in v0.6.1
func (c *Client) CreateTraceRecord(ctx context.Context, pipelineID string, in types.CreateTraceRecord) (types.CreatedTraceRecord, error)
CreateTraceRecord on the current active trace session on the pipeline. This endpoint is meant to be used by fluent-bit's tracing sidecar.
func (*Client) CreateTraceSession ¶ added in v0.6.1
func (c *Client) CreateTraceSession(ctx context.Context, pipelineID string, in types.CreateTraceSession) (types.CreatedTraceSession, error)
CreateTraceSession within a pipeline. A trace session can receive records from fluent-bit's tracing sidecar while this is enabled (see its lifespan). Only one trace session can be active at a time you can either terminate it and create a new one, or update the existing one and extend its lifespan.
func (*Client) DeleteAgent ¶
DeleteAgent by its ID.
func (*Client) DeleteAgents ¶ added in v0.9.0
DeleteAgents from a project passing a list of the IDs to be deleted.
func (*Client) DeleteAggregator ¶
DeleteAggregator by its ID.
func (*Client) DeleteAggregators ¶ added in v0.9.0
func (c *Client) DeleteAggregators(ctx context.Context, projectID string, aggregatorIDs ...string) error
DeleteAggregators from a project passing a list of the IDs to be deleted.
func (*Client) DeleteClusterObject ¶ added in v0.17.1
DeleteClusterObject by its ID.
func (*Client) DeleteConfigSection ¶ added in v0.9.1
func (*Client) DeleteCoreInstanceCheck ¶ added in v0.9.1
DeleteCoreInstanceCheck by its ID.
func (*Client) DeleteEnvironment ¶ added in v0.3.1
DeleteEnvironment by its ID.
func (*Client) DeleteIngestCheck ¶ added in v0.15.0
DeleteIngestCheck by its ID.
func (*Client) DeletePipeline ¶
DeletePipeline by its ID.
func (*Client) DeletePipelineCheck ¶ added in v0.9.1
DeletePipelineCheck by its ID.
func (*Client) DeletePipelineFile ¶
DeletePipelineFile by its ID. The file cannot be deleted if some pipeline config is still referencing it; you must delete the pipeline first if you want to delete the file.
func (*Client) DeletePipelinePort ¶
DeletePipelinePort by its ID.
func (*Client) DeletePipelineSecret ¶
DeletePipelineSecret by its ID. The secret cannot be deleted if some pipeline config is still referencing it; you must delete the pipeline first if you want to delete the secret.
func (*Client) DeletePipelines ¶ added in v0.9.0
func (c *Client) DeletePipelines(ctx context.Context, aggregatorID string, pipelineIDs ...string) error
DeletePipelines from an aggregator passing a list of the IDs to be deleted.
func (*Client) DeleteProcessingRule ¶ added in v0.15.0
func (*Client) DeleteResourceProfile ¶
DeleteResourceProfile by its ID. The profile cannot be deleted if some pipeline is still referencing it; you must delete the pipeline first if you want to delete the profile.
func (*Client) DeleteToken ¶
DeleteToken by its ID. Once deleted, any application that might has been using it, will stop working.
func (*Client) Environments ¶ added in v0.3.1
func (c *Client) Environments(ctx context.Context, projectID string, params types.EnvironmentsParams) (types.Environments, error)
Environments from the given project in descending order.
func (*Client) IngestCheck ¶ added in v0.15.0
IngestCheck by ID.
func (*Client) IngestChecks ¶ added in v0.15.0
func (c *Client) IngestChecks(ctx context.Context, coreInstanceID string, params types.IngestChecksParams) (types.IngestChecks, error)
IngestChecks in descending order.
func (*Client) Members ¶
func (c *Client) Members(ctx context.Context, projectID string, params types.MembersParams) (types.Memberships, error)
Members from a project in descending order.
func (*Client) Pipeline ¶
func (c *Client) Pipeline(ctx context.Context, pipelineID string, params types.PipelineParams) (types.Pipeline, error)
Pipeline by ID.
func (*Client) PipelineCheck ¶ added in v0.9.1
PipelineCheck by ID.
func (*Client) PipelineChecks ¶ added in v0.9.1
func (c *Client) PipelineChecks(ctx context.Context, pipelineID string, params types.PipelineChecksParams) (types.PipelineChecks, error)
PipelineChecks in descending order.
func (*Client) PipelineConfigHistory ¶
func (c *Client) PipelineConfigHistory(ctx context.Context, pipelineID string, params types.PipelineConfigHistoryParams) (types.PipelineConfigHistory, error)
PipelineConfigHistory in descending order. Every time a pipeline config is updated, a new history entry with the change is created.
func (*Client) PipelineFile ¶
PipelineFile by ID.
func (*Client) PipelineFiles ¶
func (c *Client) PipelineFiles(ctx context.Context, pipelineID string, params types.PipelineFilesParams) (types.PipelineFiles, error)
PipelineFiles in descending order.
func (*Client) PipelineMetrics ¶
func (c *Client) PipelineMetrics(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsSummary, error)
PipelineMetrics contains an overview of the Pipeline metrics. It includes metrics link the amount of records, bytes, and errors.
func (*Client) PipelineMetricsByPlugin ¶ added in v0.17.0
func (c *Client) PipelineMetricsByPlugin(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsSummaryPlugin, error)
PipelineMetricsByPlugin contains an overview of the Pipeline metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) PipelineMetricsOverTimeByPlugin ¶ added in v0.17.0
func (c *Client) PipelineMetricsOverTimeByPlugin(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
PipelineMetricsOverTimeByPlugin contains an overview of the Pipeline metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) PipelineMetricsV1 ¶ added in v0.17.0
func (c *Client) PipelineMetricsV1(ctx context.Context, pipelineID string, params types.MetricsParams) (types.AgentMetrics, error)
PipelineMetricsV1 contains an overview of the aggregated metrics for a pipeline. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) PipelineOverTimeMetrics ¶ added in v0.17.0
func (c *Client) PipelineOverTimeMetrics(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsOverTime, error)
PipelineOverTimeMetrics contains Pipeline metrics overtime. It includes metrics link the amount of records, bytes, and errors.
func (*Client) PipelinePort ¶
PipelinePort by ID.
func (*Client) PipelinePorts ¶
func (c *Client) PipelinePorts(ctx context.Context, pipelineID string, params types.PipelinePortsParams) (types.PipelinePorts, error)
PipelinePorts in descending order.
func (*Client) PipelineSecret ¶
PipelineSecret by ID.
func (*Client) PipelineSecrets ¶
func (c *Client) PipelineSecrets(ctx context.Context, pipelineID string, params types.PipelineSecretsParams) (types.PipelineSecrets, error)
PipelineSecrets in descending order.
func (*Client) PipelineStatusHistory ¶
func (c *Client) PipelineStatusHistory(ctx context.Context, pipelineID string, params types.PipelineStatusHistoryParams) (types.PipelineStatusHistory, error)
PipelineStatusHistory in descending order. Every time a pipeline status is changed, a new history entry with the change is created.
func (*Client) Pipelines ¶
func (c *Client) Pipelines(ctx context.Context, aggregatorID string, params types.PipelinesParams) (types.Pipelines, error)
Pipelines from an aggregator in descending order.
func (*Client) PreviewProcessingRule ¶ added in v0.9.1
func (c *Client) PreviewProcessingRule(ctx context.Context, in types.PreviewProcessingRule) ([]types.FluentBitLog, error)
func (*Client) ProcessingRule ¶ added in v0.9.1
func (*Client) ProcessingRules ¶ added in v0.9.1
func (c *Client) ProcessingRules(ctx context.Context, params types.ProcessingRulesParams) (types.ProcessingRules, error)
func (*Client) ProjectMetrics ¶
func (c *Client) ProjectMetrics(ctx context.Context, projectID string, params types.MetricsParams) (types.ProjectMetrics, error)
ProjectMetrics contains an overview of the aggregated metrics for a project. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) ProjectPipelines ¶
func (c *Client) ProjectPipelines(ctx context.Context, projectID string, params types.PipelinesParams) (types.Pipelines, error)
ProjectPipelines returns the entire set of pipelines from a project.
func (*Client) RegisterAgent ¶
func (c *Client) RegisterAgent(ctx context.Context, payload types.RegisterAgent) (types.RegisteredAgent, error)
RegisterAgent within a project. The project in which the agent is registered is parsed from the authorization token. Users are not allowed to register agents.
func (*Client) ResourceProfile ¶
func (c *Client) ResourceProfile(ctx context.Context, resourceProfileID string) (types.ResourceProfile, error)
ResourceProfile by ID.
func (*Client) ResourceProfiles ¶
func (c *Client) ResourceProfiles(ctx context.Context, aggregatorID string, params types.ResourceProfilesParams) (types.ResourceProfiles, error)
ResourceProfiles from an aggregator in descending order.
func (*Client) SendVerificationEmail ¶
SendVerificationEmail sends a verification email to the user. When a new user registers within Calyptia Cloud with password, it should receive a verification email, in the case it didn't receive it, or the email expired already, use this endpoint to request a new one.
func (*Client) SetAgentToken ¶
SetAgentToken sets the "X-Agent-Token" header of the client.
func (*Client) SetAggregatorToken ¶
SetAggregatorToken sets the "X-Aggregator-Token" header of the client.
func (*Client) SetProjectToken ¶
SetProjectToken sets the "X-Project-Token" header of the client.
func (*Client) SetUserAgent ¶
SetUserAgent sets the "User-Agent" header of the client.
func (*Client) TerminateActiveTraceSession ¶ added in v0.6.1
func (c *Client) TerminateActiveTraceSession(ctx context.Context, pipelineID string) (types.TerminatedTraceSession, error)
TerminateActiveTraceSession terminates the current active trace session on the pipeline.
func (*Client) Tokens ¶
func (c *Client) Tokens(ctx context.Context, projectID string, params types.TokensParams) (types.Tokens, error)
Tokens from a project.
func (*Client) TraceRecords ¶ added in v0.6.1
func (c *Client) TraceRecords(ctx context.Context, sessionID string, params types.TraceRecordsParams) (types.TraceRecords, error)
TraceRecords from a trace session. With backward pagination, the list is sorted by createdAt in descending order.
func (*Client) TraceSession ¶ added in v0.6.1
TraceSession by ID. This can be still active or not.
func (*Client) TraceSessions ¶ added in v0.6.1
func (c *Client) TraceSessions(ctx context.Context, pipelineID string, params types.TraceSessionsParams) (types.TraceSessions, error)
TraceSessions from a pipeline. With backward pagination, the list is sorted by createdAt in descending order.
func (*Client) UpdateAgent ¶
UpdateAgent by its ID. Users are allowed to only update a restricted set of fields (name); while agents are allowed to update the whole configuration.
func (*Client) UpdateAggregator ¶
func (c *Client) UpdateAggregator(ctx context.Context, aggregatorID string, payload types.UpdateAggregator) error
UpdateAggregator by its ID.
func (*Client) UpdateClusterObject ¶ added in v0.17.1
func (c *Client) UpdateClusterObject(ctx context.Context, checkID string, opts types.UpdateClusterObject) error
UpdateClusterObject by its ID.
func (*Client) UpdateConfigSection ¶ added in v0.9.1
func (c *Client) UpdateConfigSection(ctx context.Context, configSectionID string, in types.UpdateConfigSection) (types.UpdatedConfigSection, error)
func (*Client) UpdateConfigSectionSet ¶ added in v0.9.1
func (*Client) UpdateCoreInstanceCheck ¶ added in v0.9.1
func (c *Client) UpdateCoreInstanceCheck(ctx context.Context, checkID string, opts types.UpdateCoreInstanceCheck) error
UpdateCoreInstanceCheck by its ID.
func (*Client) UpdateEnvironment ¶ added in v0.3.1
func (c *Client) UpdateEnvironment(ctx context.Context, environmentID string, payload types.UpdateEnvironment) error
UpdateEnvironment by its ID.
func (*Client) UpdateIngestCheck ¶ added in v0.15.0
func (c *Client) UpdateIngestCheck(ctx context.Context, checkID string, opts types.UpdateIngestCheck) error
UpdateIngestCheck by its ID.
func (*Client) UpdatePipeline ¶
func (c *Client) UpdatePipeline(ctx context.Context, pipelineID string, opts types.UpdatePipeline) (types.UpdatedPipeline, error)
UpdatePipeline by its ID.
func (*Client) UpdatePipelineCheck ¶ added in v0.9.1
func (c *Client) UpdatePipelineCheck(ctx context.Context, checkID string, opts types.UpdatePipelineCheck) error
UpdatePipelineCheck by its ID.
func (*Client) UpdatePipelineFile ¶
func (c *Client) UpdatePipelineFile(ctx context.Context, fileID string, opts types.UpdatePipelineFile) error
UpdatePipelineFile by its ID.
func (*Client) UpdatePipelinePort ¶
func (c *Client) UpdatePipelinePort(ctx context.Context, portID string, opts types.UpdatePipelinePort) error
UpdatePipelinePort by its ID.
func (*Client) UpdatePipelineSecret ¶
func (c *Client) UpdatePipelineSecret(ctx context.Context, secretID string, opts types.UpdatePipelineSecret) error
UpdatePipelineSecret by its ID.
func (*Client) UpdateProcessingRule ¶ added in v0.9.1
func (c *Client) UpdateProcessingRule(ctx context.Context, in types.UpdateProcessingRule) (types.UpdatedProcessingRule, error)
func (*Client) UpdateProject ¶
func (c *Client) UpdateProject(ctx context.Context, projectID string, opts types.UpdateProject) error
UpdateProject by its ID.
func (*Client) UpdateResourceProfile ¶
func (c *Client) UpdateResourceProfile(ctx context.Context, resourceProfileID string, opts types.UpdateResourceProfile) error
UpdateResourceProfile by its ID.
func (*Client) UpdateToken ¶
UpdateToken by its ID.
func (*Client) UpdateTraceSession ¶ added in v0.6.1
func (c *Client) UpdateTraceSession(ctx context.Context, sessionID string, in types.UpdateTraceSession) (types.UpdatedTraceSession, error)
UpdateTraceSession list of plugins to trace and/or lifespan. The session must still be active.
func (*Client) ValidateConfig ¶
func (c *Client) ValidateConfig(ctx context.Context, agentType types.AgentType, payload types.ValidatingConfig) (types.ValidatedConfig, error)
ValidateConfig validates that an already parsed fluentbit or fluentd config is semantically valid. To parse the raw agent config take a look at https://github.com/calyptia/fluent-bit-config-parser.
func (*Client) ValidateConfigV2 ¶
func (c *Client) ValidateConfigV2(ctx context.Context, payload types.ValidatingConfig) (types.ValidatedConfigV2, error)
ValidateConfigV2 validates that an already parsed fluentbit(only) config to check if semantically valid To parse the raw agent config take a look at https://github.com/calyptia/fluent-bit-config-parser.
Source Files ¶
- agent.go
- agent_config.go
- client.go
- cluster_object.go
- config_section.go
- config_validator.go
- core_instance.go
- core_instance_check.go
- environment.go
- ingest_check.go
- invitation.go
- membership.go
- metric.go
- pipeline.go
- pipeline_check.go
- pipeline_config.go
- pipeline_file.go
- pipeline_port.go
- pipeline_secret.go
- pipeline_status.go
- processing_rule.go
- project.go
- resource_profile.go
- token.go
- trace.go
- user.go
Directories ¶
Path | Synopsis |
---|---|
Package secrets provides RSA codec to work with Calyptia Cloud pipeline secrets.
|
Package secrets provides RSA codec to work with Calyptia Cloud pipeline secrets. |
Package token provides a decoder for Calyptia Cloud projects tokens.
|
Package token provides a decoder for Calyptia Cloud projects tokens. |