diff --git a/.devcontainer/setup.py b/.devcontainer/setup.py index 35d0ece5b2..7731c6dc70 100755 --- a/.devcontainer/setup.py +++ b/.devcontainer/setup.py @@ -26,7 +26,7 @@ def install_packages(): run_commands([ "dnf install -y gcc git make pkgconfig \ vim \ - mc tmux psmisc lsof which iproute \ + mc tmux psmisc lsof which iproute diffutils \ bash-completion \ man man-pages \ openssl-devel \ diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index 05f8471442..5a9663d15c 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -27,13 +27,13 @@ jobs: strategy: matrix: images: - - { mysql: 'mysql:5.6', mongo: 'mongo:4.2', postgres: 'postgres:10', pmm_server: 'perconalab/pmm-server:3-dev-latest' } + - { mysql: 'mysql:5.6', mongo: 'mongo:4.4', postgres: 'postgres:10', pmm_server: 'perconalab/pmm-server:3-dev-latest' } - { mysql: 'mysql:5.7', mongo: 'mongo:4.4', postgres: 'postgres:11', pmm_server: 'perconalab/pmm-server:3-dev-latest' } - { mysql: 'mysql:8.0', mongo: 'mongo:4.4', postgres: 'postgres:12', pmm_server: 'perconalab/pmm-server:3-dev-latest' } - { mysql: 'mysql:8.0', mongo: 'mongo:4.4', postgres: 'postgres:13', pmm_server: 'perconalab/pmm-server:3-dev-latest' } # Percona + latest PMM Server release - - { mysql: 'percona:5.6', mongo: 'percona/percona-server-mongodb:4.2', postgres: 'perconalab/percona-distribution-postgresql:11', pg_libs: 'pg_stat_statements,pg_stat_monitor', pmm_server: 'perconalab/pmm-server:3-dev-latest' } + - { mysql: 'percona:5.6', mongo: 'percona/percona-server-mongodb:4.4', postgres: 'perconalab/percona-distribution-postgresql:11', pg_libs: 'pg_stat_statements,pg_stat_monitor', pmm_server: 'perconalab/pmm-server:3-dev-latest' } - { mysql: 'percona:5.7', mongo: 'percona/percona-server-mongodb:4.4', postgres: 'perconalab/percona-distribution-postgresql:12.8-pg_stat', pg_libs: 'pg_stat_statements,pg_stat_monitor', pmm_server: 'perconalab/pmm-server:3-dev-latest' } - { mysql: 'percona:8.0', mongo: 'percona/percona-server-mongodb:4.4', postgres: 'perconalab/percona-distribution-postgresql:13.5-pg_stat', pg_libs: 'pg_stat_statements,pg_stat_monitor', pmm_server: 'perconalab/pmm-server:3-dev-latest' } @@ -113,8 +113,8 @@ jobs: - name: Run debug commands on failure if: ${{ failure() }} run: | - env - go version - go env - pwd + echo "--- Environment variables ---" + env | sort + echo "--- GO Environment ---" + go env | sort git status diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml index d500a7d0ea..46e883f39e 100644 --- a/.github/workflows/clean.yml +++ b/.github/workflows/clean.yml @@ -29,7 +29,7 @@ jobs: - name: Configure git for private modules env: ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }} - run: git config --global url."https://percona-platform-robot:${ROBOT_TOKEN}@github.com".insteadOf "https://github.com" + run: echo "machine github.com login percona-robot password ${{ secrets.ROBOT_TOKEN }}" > $HOME/.netrc - name: Set up Go release if: matrix.go.version != 'tip' diff --git a/admin/commands/inventory/add_agent_external_exporter.go b/admin/commands/inventory/add_agent_external_exporter.go index ec54c2d7cc..7c8b26de57 100644 --- a/admin/commands/inventory/add_agent_external_exporter.go +++ b/admin/commands/inventory/add_agent_external_exporter.go @@ -38,7 +38,7 @@ Custom labels : {{ .Agent.CustomLabels }} `) type addAgentExternalExporterResult struct { - Agent *agents.AddExternalExporterOKBodyExternalExporter `json:"external_exporter"` + Agent *agents.AddAgentOKBodyExternalExporter `json:"external_exporter"` } func (res *addAgentExternalExporterResult) Result() {} @@ -67,22 +67,24 @@ func (cmd *AddAgentExternalExporterCommand) RunCmd() (commands.Result, error) { cmd.MetricsPath = fmt.Sprintf("/%s", cmd.MetricsPath) } - params := &agents.AddExternalExporterParams{ - Body: agents.AddExternalExporterBody{ - RunsOnNodeID: cmd.RunsOnNodeID, - ServiceID: cmd.ServiceID, - Username: cmd.Username, - Password: cmd.Password, - Scheme: cmd.Scheme, - MetricsPath: cmd.MetricsPath, - ListenPort: cmd.ListenPort, - CustomLabels: customLabels, - PushMetrics: cmd.PushMetrics, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ExternalExporter: &agents.AddAgentParamsBodyExternalExporter{ + RunsOnNodeID: cmd.RunsOnNodeID, + ServiceID: cmd.ServiceID, + Username: cmd.Username, + Password: cmd.Password, + Scheme: cmd.Scheme, + MetricsPath: cmd.MetricsPath, + ListenPort: cmd.ListenPort, + CustomLabels: customLabels, + PushMetrics: cmd.PushMetrics, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddExternalExporter(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_mongodb_exporter.go b/admin/commands/inventory/add_agent_mongodb_exporter.go index a2be481ee9..adfcb06ffd 100644 --- a/admin/commands/inventory/add_agent_mongodb_exporter.go +++ b/admin/commands/inventory/add_agent_mongodb_exporter.go @@ -36,7 +36,7 @@ Custom labels : {{ .Agent.CustomLabels }} `) type addAgentMongodbExporterResult struct { - Agent *agents.AddMongoDBExporterOKBodyMongodbExporter `json:"mongodb_exporter"` + Agent *agents.AddAgentOKBodyMongodbExporter `json:"mongodb_exporter"` } func (res *addAgentMongodbExporterResult) Result() {} @@ -81,31 +81,33 @@ func (cmd *AddAgentMongodbExporterCommand) RunCmd() (commands.Result, error) { return nil, err } - params := &agents.AddMongoDBExporterParams{ - Body: agents.AddMongoDBExporterBody{ - PMMAgentID: cmd.PMMAgentID, - ServiceID: cmd.ServiceID, - Username: cmd.Username, - Password: cmd.Password, - AgentPassword: cmd.AgentPassword, - CustomLabels: customLabels, - SkipConnectionCheck: cmd.SkipConnectionCheck, - TLS: cmd.TLS, - TLSSkipVerify: cmd.TLSSkipVerify, - TLSCertificateKey: tlsCertificateKey, - TLSCertificateKeyFilePassword: cmd.TLSCertificateKeyFilePassword, - TLSCa: tlsCa, - AuthenticationMechanism: cmd.AuthenticationMechanism, - PushMetrics: cmd.PushMetrics, - DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), - StatsCollections: commands.ParseDisableCollectors(cmd.StatsCollections), - CollectionsLimit: cmd.CollectionsLimit, - LogLevel: &cmd.LogLevel, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MongodbExporter: &agents.AddAgentParamsBodyMongodbExporter{ + PMMAgentID: cmd.PMMAgentID, + ServiceID: cmd.ServiceID, + Username: cmd.Username, + Password: cmd.Password, + AgentPassword: cmd.AgentPassword, + CustomLabels: customLabels, + SkipConnectionCheck: cmd.SkipConnectionCheck, + TLS: cmd.TLS, + TLSSkipVerify: cmd.TLSSkipVerify, + TLSCertificateKey: tlsCertificateKey, + TLSCertificateKeyFilePassword: cmd.TLSCertificateKeyFilePassword, + TLSCa: tlsCa, + AuthenticationMechanism: cmd.AuthenticationMechanism, + PushMetrics: cmd.PushMetrics, + DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), + StatsCollections: commands.ParseDisableCollectors(cmd.StatsCollections), + CollectionsLimit: cmd.CollectionsLimit, + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddMongoDBExporter(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_mysqld_exporter.go b/admin/commands/inventory/add_agent_mysqld_exporter.go index 91ba1cd51a..095eb92704 100644 --- a/admin/commands/inventory/add_agent_mysqld_exporter.go +++ b/admin/commands/inventory/add_agent_mysqld_exporter.go @@ -41,8 +41,8 @@ Tablestat collectors : {{ .TablestatStatus }} `) type addAgentMysqldExporterResult struct { - Agent *agents.AddMySQLdExporterOKBodyMysqldExporter `json:"mysqld_exporter"` - TableCount int32 `json:"table_count,omitempty"` + Agent *agents.AddAgentOKBodyMysqldExporter `json:"mysqld_exporter"` + TableCount int32 `json:"table_count,omitempty"` } func (res *addAgentMysqldExporterResult) Result() {} @@ -125,30 +125,32 @@ func (cmd *AddAgentMysqldExporterCommand) RunCmd() (commands.Result, error) { } } - params := &agents.AddMySQLdExporterParams{ - Body: agents.AddMySQLdExporterBody{ - PMMAgentID: cmd.PMMAgentID, - ServiceID: cmd.ServiceID, - Username: cmd.Username, - Password: cmd.Password, - AgentPassword: cmd.AgentPassword, - CustomLabels: customLabels, - SkipConnectionCheck: cmd.SkipConnectionCheck, - TLS: cmd.TLS, - TLSSkipVerify: cmd.TLSSkipVerify, - TLSCa: tlsCa, - TLSCert: tlsCert, - TLSKey: tlsKey, - TablestatsGroupTableLimit: cmd.TablestatsGroupTableLimit, - PushMetrics: cmd.PushMetrics, - ExposeExporter: cmd.ExposeExporter, - DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), - LogLevel: &cmd.LogLevel, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + PMMAgentID: cmd.PMMAgentID, + ServiceID: cmd.ServiceID, + Username: cmd.Username, + Password: cmd.Password, + AgentPassword: cmd.AgentPassword, + CustomLabels: customLabels, + SkipConnectionCheck: cmd.SkipConnectionCheck, + TLS: cmd.TLS, + TLSSkipVerify: cmd.TLSSkipVerify, + TLSCa: tlsCa, + TLSCert: tlsCert, + TLSKey: tlsKey, + TablestatsGroupTableLimit: cmd.TablestatsGroupTableLimit, + PushMetrics: cmd.PushMetrics, + ExposeExporter: cmd.ExposeExporter, + DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddMySQLdExporter(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_mysqld_exporter_test.go b/admin/commands/inventory/add_agent_mysqld_exporter_test.go index fb101b9885..4dc57b9e60 100644 --- a/admin/commands/inventory/add_agent_mysqld_exporter_test.go +++ b/admin/commands/inventory/add_agent_mysqld_exporter_test.go @@ -27,7 +27,7 @@ import ( func TestAddAgentMysqldExporter(t *testing.T) { t.Run("TablestatEnabled", func(t *testing.T) { res := &addAgentMysqldExporterResult{ - Agent: &agents.AddMySQLdExporterOKBodyMysqldExporter{ + Agent: &agents.AddAgentOKBodyMysqldExporter{ AgentID: "/agent_id/1", PMMAgentID: "/agent_id/2", Username: "username", @@ -61,7 +61,7 @@ Tablestat collectors : enabled (the limit is 1000, the actual table count is 50 t.Run("TablestatEnabledNoLimit", func(t *testing.T) { res := &addAgentMysqldExporterResult{ - Agent: &agents.AddMySQLdExporterOKBodyMysqldExporter{ + Agent: &agents.AddAgentOKBodyMysqldExporter{ AgentID: "/agent_id/1", PMMAgentID: "/agent_id/2", Username: "username", @@ -95,7 +95,7 @@ Tablestat collectors : enabled (the table count limit is not set). t.Run("TablestatEnabledUnknown", func(t *testing.T) { res := &addAgentMysqldExporterResult{ - Agent: &agents.AddMySQLdExporterOKBodyMysqldExporter{ + Agent: &agents.AddAgentOKBodyMysqldExporter{ AgentID: "/agent_id/1", PMMAgentID: "/agent_id/2", Username: "username", @@ -129,7 +129,7 @@ Tablestat collectors : enabled (the limit is 1000, the actual table count is un t.Run("TablestatDisabled", func(t *testing.T) { res := &addAgentMysqldExporterResult{ - Agent: &agents.AddMySQLdExporterOKBodyMysqldExporter{ + Agent: &agents.AddAgentOKBodyMysqldExporter{ AgentID: "/agent_id/1", PMMAgentID: "/agent_id/2", Username: "username", @@ -163,7 +163,7 @@ Tablestat collectors : disabled (the limit is 1000, the actual table count is 2 t.Run("TablestatDisabledAlways", func(t *testing.T) { res := &addAgentMysqldExporterResult{ - Agent: &agents.AddMySQLdExporterOKBodyMysqldExporter{ + Agent: &agents.AddAgentOKBodyMysqldExporter{ AgentID: "/agent_id/1", PMMAgentID: "/agent_id/2", Username: "username", diff --git a/admin/commands/inventory/add_agent_node_exporter.go b/admin/commands/inventory/add_agent_node_exporter.go index bc12addec4..ad7a223e69 100644 --- a/admin/commands/inventory/add_agent_node_exporter.go +++ b/admin/commands/inventory/add_agent_node_exporter.go @@ -32,7 +32,7 @@ Custom labels: {{ .Agent.CustomLabels }} `) type addAgentNodeExporterResult struct { - Agent *agents.AddNodeExporterOKBodyNodeExporter `json:"node_exporter"` + Agent *agents.AddAgentOKBodyNodeExporter `json:"node_exporter"` } func (res *addAgentNodeExporterResult) Result() {} @@ -53,19 +53,21 @@ type AddAgentNodeExporterCommand struct { func (cmd *AddAgentNodeExporterCommand) RunCmd() (commands.Result, error) { customLabels := commands.ParseCustomLabels(cmd.CustomLabels) - params := &agents.AddNodeExporterParams{ - Body: agents.AddNodeExporterBody{ - PMMAgentID: cmd.PMMAgentID, - CustomLabels: customLabels, - PushMetrics: cmd.PushMetrics, - ExposeExporter: cmd.ExposeExporter, - DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), - LogLevel: &cmd.LogLevel, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + NodeExporter: &agents.AddAgentParamsBodyNodeExporter{ + PMMAgentID: cmd.PMMAgentID, + CustomLabels: customLabels, + PushMetrics: cmd.PushMetrics, + ExposeExporter: cmd.ExposeExporter, + DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddNodeExporter(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_pmm_agent.go b/admin/commands/inventory/add_agent_pmm_agent.go index 00c48fc585..ff4a75d10b 100644 --- a/admin/commands/inventory/add_agent_pmm_agent.go +++ b/admin/commands/inventory/add_agent_pmm_agent.go @@ -29,7 +29,7 @@ Custom labels : {{ .Agent.CustomLabels }} `) type addPMMAgentResult struct { - Agent *agents.AddPMMAgentOKBodyPMMAgent `json:"pmm_agent"` + Agent *agents.AddAgentOKBodyPMMAgent `json:"pmm_agent"` } func (res *addPMMAgentResult) Result() {} @@ -46,15 +46,17 @@ type AddPMMAgentCommand struct { func (cmd *AddPMMAgentCommand) RunCmd() (commands.Result, error) { customLabels := commands.ParseCustomLabels(cmd.CustomLabels) - params := &agents.AddPMMAgentParams{ - Body: agents.AddPMMAgentBody{ - RunsOnNodeID: cmd.RunsOnNodeID, - CustomLabels: customLabels, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + PMMAgent: &agents.AddAgentParamsBodyPMMAgent{ + RunsOnNodeID: cmd.RunsOnNodeID, + CustomLabels: customLabels, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddPMMAgent(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_postgres_exporter.go b/admin/commands/inventory/add_agent_postgres_exporter.go index e0cc0ad4e7..061688617c 100644 --- a/admin/commands/inventory/add_agent_postgres_exporter.go +++ b/admin/commands/inventory/add_agent_postgres_exporter.go @@ -36,7 +36,7 @@ Custom labels : {{ .Agent.CustomLabels }} `) type addAgentPostgresExporterResult struct { - Agent *agents.AddPostgresExporterOKBodyPostgresExporter `json:"postgres_exporter"` + Agent *agents.AddAgentOKBodyPostgresExporter `json:"postgres_exporter"` } func (res *addAgentPostgresExporterResult) Result() {} @@ -92,31 +92,33 @@ func (cmd *AddAgentPostgresExporterCommand) RunCmd() (commands.Result, error) { } } - params := &agents.AddPostgresExporterParams{ - Body: agents.AddPostgresExporterBody{ - PMMAgentID: cmd.PMMAgentID, - ServiceID: cmd.ServiceID, - Username: cmd.Username, - Password: cmd.Password, - AgentPassword: cmd.AgentPassword, - CustomLabels: customLabels, - SkipConnectionCheck: cmd.SkipConnectionCheck, - PushMetrics: cmd.PushMetrics, - ExposeExporter: cmd.ExposeExporter, - DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), - AutoDiscoveryLimit: cmd.AutoDiscoveryLimit, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + PostgresExporter: &agents.AddAgentParamsBodyPostgresExporter{ + PMMAgentID: cmd.PMMAgentID, + ServiceID: cmd.ServiceID, + Username: cmd.Username, + Password: cmd.Password, + AgentPassword: cmd.AgentPassword, + CustomLabels: customLabels, + SkipConnectionCheck: cmd.SkipConnectionCheck, + PushMetrics: cmd.PushMetrics, + ExposeExporter: cmd.ExposeExporter, + DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), + AutoDiscoveryLimit: cmd.AutoDiscoveryLimit, - TLS: cmd.TLS, - TLSSkipVerify: cmd.TLSSkipVerify, - TLSCa: tlsCa, - TLSCert: tlsCert, - TLSKey: tlsKey, - LogLevel: &cmd.LogLevel, + TLS: cmd.TLS, + TLSSkipVerify: cmd.TLSSkipVerify, + TLSCa: tlsCa, + TLSCert: tlsCert, + TLSKey: tlsKey, + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddPostgresExporter(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_postgres_exporter_test.go b/admin/commands/inventory/add_agent_postgres_exporter_test.go index 54c228dc48..9f5e06f121 100644 --- a/admin/commands/inventory/add_agent_postgres_exporter_test.go +++ b/admin/commands/inventory/add_agent_postgres_exporter_test.go @@ -27,7 +27,7 @@ import ( func TestAddAgentPostgresExporter(t *testing.T) { t.Run("TablestatEnabled", func(t *testing.T) { res := &addAgentPostgresExporterResult{ - Agent: &agents.AddPostgresExporterOKBodyPostgresExporter{ + Agent: &agents.AddAgentOKBodyPostgresExporter{ AgentID: "/agent_id/1", PMMAgentID: "/agent_id/2", Username: "username", diff --git a/admin/commands/inventory/add_agent_proxysql_exporter.go b/admin/commands/inventory/add_agent_proxysql_exporter.go index 3d0dd2c5b2..c0e292ce2c 100644 --- a/admin/commands/inventory/add_agent_proxysql_exporter.go +++ b/admin/commands/inventory/add_agent_proxysql_exporter.go @@ -36,7 +36,7 @@ Custom labels : {{ .Agent.CustomLabels }} `) type addAgentProxysqlExporterResult struct { - Agent *agents.AddProxySQLExporterOKBodyProxysqlExporter `json:"proxysql_exporter"` + Agent *agents.AddAgentOKBodyProxysqlExporter `json:"proxysql_exporter"` } func (res *addAgentProxysqlExporterResult) Result() {} @@ -64,26 +64,28 @@ type AddAgentProxysqlExporterCommand struct { func (cmd *AddAgentProxysqlExporterCommand) RunCmd() (commands.Result, error) { customLabels := commands.ParseCustomLabels(cmd.CustomLabels) - params := &agents.AddProxySQLExporterParams{ - Body: agents.AddProxySQLExporterBody{ - PMMAgentID: cmd.PMMAgentID, - ServiceID: cmd.ServiceID, - Username: cmd.Username, - Password: cmd.Password, - AgentPassword: cmd.AgentPassword, - CustomLabels: customLabels, - SkipConnectionCheck: cmd.SkipConnectionCheck, - TLS: cmd.TLS, - TLSSkipVerify: cmd.TLSSkipVerify, - PushMetrics: cmd.PushMetrics, - ExposeExporter: cmd.ExposeExporter, - DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), - LogLevel: &cmd.LogLevel, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ProxysqlExporter: &agents.AddAgentParamsBodyProxysqlExporter{ + PMMAgentID: cmd.PMMAgentID, + ServiceID: cmd.ServiceID, + Username: cmd.Username, + Password: cmd.Password, + AgentPassword: cmd.AgentPassword, + CustomLabels: customLabels, + SkipConnectionCheck: cmd.SkipConnectionCheck, + TLS: cmd.TLS, + TLSSkipVerify: cmd.TLSSkipVerify, + PushMetrics: cmd.PushMetrics, + ExposeExporter: cmd.ExposeExporter, + DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors), + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddProxySQLExporter(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_qan_mongodb_profiler_agent.go b/admin/commands/inventory/add_agent_qan_mongodb_profiler_agent.go index 8d6a240835..bcba5478a7 100644 --- a/admin/commands/inventory/add_agent_qan_mongodb_profiler_agent.go +++ b/admin/commands/inventory/add_agent_qan_mongodb_profiler_agent.go @@ -35,7 +35,7 @@ Custom labels : {{ .Agent.CustomLabels }} `) type addAgentQANMongoDBProfilerAgentResult struct { - Agent *agents.AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent `json:"qan_mongodb_profiler_agent"` + Agent *agents.AddAgentOKBodyQANMongodbProfilerAgent `json:"qan_mongodb_profiler_agent"` } func (res *addAgentQANMongoDBProfilerAgentResult) Result() {} @@ -77,27 +77,29 @@ func (cmd *AddAgentQANMongoDBProfilerAgentCommand) RunCmd() (commands.Result, er return nil, err } - params := &agents.AddQANMongoDBProfilerAgentParams{ - Body: agents.AddQANMongoDBProfilerAgentBody{ - PMMAgentID: cmd.PMMAgentID, - ServiceID: cmd.ServiceID, - Username: cmd.Username, - Password: cmd.Password, - CustomLabels: customLabels, - SkipConnectionCheck: cmd.SkipConnectionCheck, - MaxQueryLength: cmd.MaxQueryLength, - TLS: cmd.TLS, - TLSSkipVerify: cmd.TLSSkipVerify, - TLSCertificateKey: tlsCertificateKey, - TLSCertificateKeyFilePassword: cmd.TLSCertificateKeyFilePassword, - TLSCa: tlsCa, - AuthenticationMechanism: cmd.AuthenticationMechanism, - LogLevel: &cmd.LogLevel, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANMongodbProfilerAgent: &agents.AddAgentParamsBodyQANMongodbProfilerAgent{ + PMMAgentID: cmd.PMMAgentID, + ServiceID: cmd.ServiceID, + Username: cmd.Username, + Password: cmd.Password, + CustomLabels: customLabels, + SkipConnectionCheck: cmd.SkipConnectionCheck, + MaxQueryLength: cmd.MaxQueryLength, + TLS: cmd.TLS, + TLSSkipVerify: cmd.TLSSkipVerify, + TLSCertificateKey: tlsCertificateKey, + TLSCertificateKeyFilePassword: cmd.TLSCertificateKeyFilePassword, + TLSCa: tlsCa, + AuthenticationMechanism: cmd.AuthenticationMechanism, + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddQANMongoDBProfilerAgent(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_qan_mysql_perfschema_agent.go b/admin/commands/inventory/add_agent_qan_mysql_perfschema_agent.go index dbb1c5f846..584cfa37dd 100644 --- a/admin/commands/inventory/add_agent_qan_mysql_perfschema_agent.go +++ b/admin/commands/inventory/add_agent_qan_mysql_perfschema_agent.go @@ -36,7 +36,7 @@ Custom labels : {{ .Agent.CustomLabels }} `) type addAgentQANMySQLPerfSchemaAgentResult struct { - Agent *agents.AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent `json:"qan_mysql_perfschema_agent"` + Agent *agents.AddAgentOKBodyQANMysqlPerfschemaAgent `json:"qan_mysql_perfschema_agent"` } func (res *addAgentQANMySQLPerfSchemaAgentResult) Result() {} @@ -100,28 +100,30 @@ func (cmd *AddAgentQANMySQLPerfSchemaAgentCommand) RunCmd() (commands.Result, er disableCommentsParsing = false } - params := &agents.AddQANMySQLPerfSchemaAgentParams{ - Body: agents.AddQANMySQLPerfSchemaAgentBody{ - PMMAgentID: cmd.PMMAgentID, - ServiceID: cmd.ServiceID, - Username: cmd.Username, - Password: cmd.Password, - CustomLabels: customLabels, - SkipConnectionCheck: cmd.SkipConnectionCheck, - DisableCommentsParsing: disableCommentsParsing, - MaxQueryLength: cmd.MaxQueryLength, - DisableQueryExamples: cmd.DisableQueryExamples, - TLS: cmd.TLS, - TLSSkipVerify: cmd.TLSSkipVerify, - TLSCa: tlsCa, - TLSCert: tlsCert, - TLSKey: tlsKey, - LogLevel: &cmd.LogLevel, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANMysqlPerfschemaAgent: &agents.AddAgentParamsBodyQANMysqlPerfschemaAgent{ + PMMAgentID: cmd.PMMAgentID, + ServiceID: cmd.ServiceID, + Username: cmd.Username, + Password: cmd.Password, + CustomLabels: customLabels, + SkipConnectionCheck: cmd.SkipConnectionCheck, + DisableCommentsParsing: disableCommentsParsing, + MaxQueryLength: cmd.MaxQueryLength, + DisableQueryExamples: cmd.DisableQueryExamples, + TLS: cmd.TLS, + TLSSkipVerify: cmd.TLSSkipVerify, + TLSCa: tlsCa, + TLSCert: tlsCert, + TLSKey: tlsKey, + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddQANMySQLPerfSchemaAgent(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_qan_mysql_slowlog_agent.go b/admin/commands/inventory/add_agent_qan_mysql_slowlog_agent.go index 16a74f6e2b..567df49183 100644 --- a/admin/commands/inventory/add_agent_qan_mysql_slowlog_agent.go +++ b/admin/commands/inventory/add_agent_qan_mysql_slowlog_agent.go @@ -41,7 +41,7 @@ Custom labels : {{ .Agent.CustomLabels }} `) type addAgentQANMySQLSlowlogAgentResult struct { - Agent *agents.AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent `json:"qan_mysql_slowlog_agent"` + Agent *agents.AddAgentOKBodyQANMysqlSlowlogAgent `json:"qan_mysql_slowlog_agent"` } func (res *addAgentQANMySQLSlowlogAgentResult) Result() {} @@ -113,29 +113,31 @@ func (cmd *AddAgentQANMySQLSlowlogAgentCommand) RunCmd() (commands.Result, error disableCommentsParsing = false } - params := &agents.AddQANMySQLSlowlogAgentParams{ - Body: agents.AddQANMySQLSlowlogAgentBody{ - PMMAgentID: cmd.PMMAgentID, - ServiceID: cmd.ServiceID, - Username: cmd.Username, - Password: cmd.Password, - CustomLabels: customLabels, - SkipConnectionCheck: cmd.SkipConnectionCheck, - DisableCommentsParsing: disableCommentsParsing, - MaxQueryLength: cmd.MaxQueryLength, - DisableQueryExamples: cmd.DisableQueryExamples, - MaxSlowlogFileSize: strconv.FormatInt(int64(cmd.MaxSlowlogFileSize), 10), - TLS: cmd.TLS, - TLSSkipVerify: cmd.TLSSkipVerify, - TLSCa: tlsCa, - TLSCert: tlsCert, - TLSKey: tlsKey, - LogLevel: &cmd.LogLevel, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANMysqlSlowlogAgent: &agents.AddAgentParamsBodyQANMysqlSlowlogAgent{ + PMMAgentID: cmd.PMMAgentID, + ServiceID: cmd.ServiceID, + Username: cmd.Username, + Password: cmd.Password, + CustomLabels: customLabels, + SkipConnectionCheck: cmd.SkipConnectionCheck, + DisableCommentsParsing: disableCommentsParsing, + MaxQueryLength: cmd.MaxQueryLength, + DisableQueryExamples: cmd.DisableQueryExamples, + MaxSlowlogFileSize: strconv.FormatInt(int64(cmd.MaxSlowlogFileSize), 10), + TLS: cmd.TLS, + TLSSkipVerify: cmd.TLSSkipVerify, + TLSCa: tlsCa, + TLSCert: tlsCert, + TLSKey: tlsKey, + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddQANMySQLSlowlogAgent(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_qan_postgres_pgstatements_agent.go b/admin/commands/inventory/add_agent_qan_postgres_pgstatements_agent.go index 31ee452eb9..3226cdf6da 100644 --- a/admin/commands/inventory/add_agent_qan_postgres_pgstatements_agent.go +++ b/admin/commands/inventory/add_agent_qan_postgres_pgstatements_agent.go @@ -35,7 +35,7 @@ Custom labels : {{ .Agent.CustomLabels }} `) type addAgentQANPostgreSQLPgStatementsAgentResult struct { - Agent *agents.AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent `json:"qan_postgresql_pgstatements_agent"` + Agent *agents.AddAgentOKBodyQANPostgresqlPgstatementsAgent `json:"qan_postgresql_pgstatements_agent"` } func (res *addAgentQANPostgreSQLPgStatementsAgentResult) Result() {} @@ -91,28 +91,30 @@ func (cmd *AddAgentQANPostgreSQLPgStatementsAgentCommand) RunCmd() (commands.Res disableCommentsParsing = false } - params := &agents.AddQANPostgreSQLPgStatementsAgentParams{ - Body: agents.AddQANPostgreSQLPgStatementsAgentBody{ - PMMAgentID: cmd.PMMAgentID, - ServiceID: cmd.ServiceID, - Username: cmd.Username, - Password: cmd.Password, - CustomLabels: customLabels, - SkipConnectionCheck: cmd.SkipConnectionCheck, - DisableCommentsParsing: disableCommentsParsing, - MaxQueryLength: cmd.MaxQueryLength, - - TLS: cmd.TLS, - TLSSkipVerify: cmd.TLSSkipVerify, - TLSCa: tlsCa, - TLSCert: tlsCert, - TLSKey: tlsKey, - LogLevel: &cmd.LogLevel, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatementsAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatementsAgent{ + PMMAgentID: cmd.PMMAgentID, + ServiceID: cmd.ServiceID, + Username: cmd.Username, + Password: cmd.Password, + CustomLabels: customLabels, + SkipConnectionCheck: cmd.SkipConnectionCheck, + DisableCommentsParsing: disableCommentsParsing, + MaxQueryLength: cmd.MaxQueryLength, + + TLS: cmd.TLS, + TLSSkipVerify: cmd.TLSSkipVerify, + TLSCa: tlsCa, + TLSCert: tlsCert, + TLSKey: tlsKey, + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddQANPostgreSQLPgStatementsAgent(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_qan_postgres_pgstatmonitor_agent.go b/admin/commands/inventory/add_agent_qan_postgres_pgstatmonitor_agent.go index 68cb5d2d5f..0994b32871 100644 --- a/admin/commands/inventory/add_agent_qan_postgres_pgstatmonitor_agent.go +++ b/admin/commands/inventory/add_agent_qan_postgres_pgstatmonitor_agent.go @@ -36,7 +36,7 @@ Query examples : {{ .Agent.QueryExamplesDisabled }} `) type addAgentQANPostgreSQLPgStatMonitorAgentResult struct { - Agent *agents.AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent `json:"qan_postgresql_pgstatmonitor_agent"` + Agent *agents.AddAgentOKBodyQANPostgresqlPgstatmonitorAgent `json:"qan_postgresql_pgstatmonitor_agent"` } func (res *addAgentQANPostgreSQLPgStatMonitorAgentResult) Result() {} @@ -93,29 +93,31 @@ func (cmd *AddAgentQANPostgreSQLPgStatMonitorAgentCommand) RunCmd() (commands.Re disableCommentsParsing = false } - params := &agents.AddQANPostgreSQLPgStatMonitorAgentParams{ - Body: agents.AddQANPostgreSQLPgStatMonitorAgentBody{ - PMMAgentID: cmd.PMMAgentID, - ServiceID: cmd.ServiceID, - Username: cmd.Username, - Password: cmd.Password, - CustomLabels: customLabels, - SkipConnectionCheck: cmd.SkipConnectionCheck, - DisableCommentsParsing: disableCommentsParsing, - MaxQueryLength: cmd.MaxQueryLength, - DisableQueryExamples: cmd.QueryExamplesDisabled, - - TLS: cmd.TLS, - TLSSkipVerify: cmd.TLSSkipVerify, - TLSCa: tlsCa, - TLSCert: tlsCert, - TLSKey: tlsKey, - LogLevel: &cmd.LogLevel, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatmonitorAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent{ + PMMAgentID: cmd.PMMAgentID, + ServiceID: cmd.ServiceID, + Username: cmd.Username, + Password: cmd.Password, + CustomLabels: customLabels, + SkipConnectionCheck: cmd.SkipConnectionCheck, + DisableCommentsParsing: disableCommentsParsing, + MaxQueryLength: cmd.MaxQueryLength, + DisableQueryExamples: cmd.QueryExamplesDisabled, + + TLS: cmd.TLS, + TLSSkipVerify: cmd.TLSSkipVerify, + TLSCa: tlsCa, + TLSCert: tlsCert, + TLSKey: tlsKey, + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddQANPostgreSQLPgStatMonitorAgent(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/admin/commands/inventory/add_agent_rds_exporter.go b/admin/commands/inventory/add_agent_rds_exporter.go index 0a4dbb3881..b5276e9dbc 100644 --- a/admin/commands/inventory/add_agent_rds_exporter.go +++ b/admin/commands/inventory/add_agent_rds_exporter.go @@ -35,7 +35,7 @@ Custom labels : {{ .Agent.CustomLabels }} `) type addAgentRDSExporterResult struct { - Agent *agents.AddRDSExporterOKBodyRDSExporter `json:"rds_exporter"` + Agent *agents.AddAgentOKBodyRDSExporter `json:"rds_exporter"` } func (res *addAgentRDSExporterResult) Result() {} @@ -60,23 +60,25 @@ type AddAgentRDSExporterCommand struct { func (cmd *AddAgentRDSExporterCommand) RunCmd() (commands.Result, error) { customLabels := commands.ParseCustomLabels(cmd.CustomLabels) - params := &agents.AddRDSExporterParams{ - Body: agents.AddRDSExporterBody{ - PMMAgentID: cmd.PMMAgentID, - NodeID: cmd.NodeID, - AWSAccessKey: cmd.AWSAccessKey, - AWSSecretKey: cmd.AWSSecretKey, - CustomLabels: customLabels, - SkipConnectionCheck: cmd.SkipConnectionCheck, - DisableBasicMetrics: cmd.DisableBasicMetrics, - DisableEnhancedMetrics: cmd.DisableEnhancedMetrics, - PushMetrics: cmd.PushMetrics, - LogLevel: &cmd.LogLevel, + params := &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + RDSExporter: &agents.AddAgentParamsBodyRDSExporter{ + PMMAgentID: cmd.PMMAgentID, + NodeID: cmd.NodeID, + AWSAccessKey: cmd.AWSAccessKey, + AWSSecretKey: cmd.AWSSecretKey, + CustomLabels: customLabels, + SkipConnectionCheck: cmd.SkipConnectionCheck, + DisableBasicMetrics: cmd.DisableBasicMetrics, + DisableEnhancedMetrics: cmd.DisableEnhancedMetrics, + PushMetrics: cmd.PushMetrics, + LogLevel: &cmd.LogLevel, + }, }, Context: commands.Ctx, } - resp, err := client.Default.AgentsService.AddRDSExporter(params) + resp, err := client.Default.AgentsService.AddAgent(params) if err != nil { return nil, err } diff --git a/api-tests/helpers.go b/api-tests/helpers.go index db8e10eb8c..3d491c15f8 100644 --- a/api-tests/helpers.go +++ b/api-tests/helpers.go @@ -230,12 +230,14 @@ func AddNode(t TestingT, nodeBody *nodes.AddNodeBody) *nodes.AddNodeOKBody { return res.Payload } -func AddPMMAgent(t TestingT, nodeID string) *agents.AddPMMAgentOKBody { +func AddPMMAgent(t TestingT, nodeID string) *agents.AddAgentOKBody { t.Helper() - res, err := client.Default.AgentsService.AddPMMAgent(&agents.AddPMMAgentParams{ - Body: agents.AddPMMAgentBody{ - RunsOnNodeID: nodeID, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + PMMAgent: &agents.AddAgentParamsBodyPMMAgent{ + RunsOnNodeID: nodeID, + }, }, Context: Context, }) diff --git a/api-tests/inventory/agents_azure_database_exporter_test.go b/api-tests/inventory/agents_azure_database_exporter_test.go index d7f0301c1e..eae394f843 100644 --- a/api-tests/inventory/agents_azure_database_exporter_test.go +++ b/api-tests/inventory/agents_azure_database_exporter_test.go @@ -45,15 +45,17 @@ func TestAzureDatabaseExporter(t *testing.T) { //nolint:tparallel pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - azureDatabaseExporter := addAzureDatabaseExporter(t, agents.AddAzureDatabaseExporterBody{ - NodeID: nodeID, - PMMAgentID: pmmAgentID, - AzureDatabaseResourceType: "mysql", - AzureSubscriptionID: "azure_subscription_id", - CustomLabels: map[string]string{ - "custom_label_azure_database_exporter": "azure_database_exporter", + azureDatabaseExporter := addAgent(t, agents.AddAgentBody{ + AzureDatabaseExporter: &agents.AddAgentParamsBodyAzureDatabaseExporter{ + NodeID: nodeID, + PMMAgentID: pmmAgentID, + AzureDatabaseResourceType: "mysql", + AzureSubscriptionID: "azure_subscription_id", + CustomLabels: map[string]string{ + "custom_label_azure_database_exporter": "azure_database_exporter", + }, + SkipConnectionCheck: true, }, - SkipConnectionCheck: true, }) agentID := azureDatabaseExporter.AzureDatabaseExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) @@ -148,14 +150,16 @@ func TestAzureDatabaseExporter(t *testing.T) { //nolint:tparallel pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddAzureDatabaseExporter(&agents.AddAzureDatabaseExporterParams{ - Body: agents.AddAzureDatabaseExporterBody{ - NodeID: "", - PMMAgentID: pmmAgentID, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + AzureDatabaseExporter: &agents.AddAgentParamsBodyAzureDatabaseExporter{ + NodeID: "", + PMMAgentID: pmmAgentID, + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAzureDatabaseExporterRequest.NodeId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddDatabaseExporterRequest.NodeId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveNodes(t, res.Payload.AzureDatabaseExporter.AgentID) } @@ -172,11 +176,13 @@ func TestAzureDatabaseExporter(t *testing.T) { //nolint:tparallel pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddAzureDatabaseExporter(&agents.AddAzureDatabaseExporterParams{ - Body: agents.AddAzureDatabaseExporterBody{ - NodeID: "pmm-node-id", - PMMAgentID: pmmAgentID, - AzureDatabaseResourceType: "mysql", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + AzureDatabaseExporter: &agents.AddAgentParamsBodyAzureDatabaseExporter{ + NodeID: "pmm-node-id", + PMMAgentID: pmmAgentID, + AzureDatabaseResourceType: "mysql", + }, }, Context: pmmapitests.Context, }) @@ -192,11 +198,13 @@ func TestAzureDatabaseExporter(t *testing.T) { //nolint:tparallel require.NotEmpty(t, genericNodeID) defer pmmapitests.RemoveNodes(t, genericNodeID) - res, err := client.Default.AgentsService.AddAzureDatabaseExporter(&agents.AddAzureDatabaseExporterParams{ - Body: agents.AddAzureDatabaseExporterBody{ - NodeID: "nodeID", - PMMAgentID: "pmm-not-exist-server", - AzureDatabaseResourceType: "mysql", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + AzureDatabaseExporter: &agents.AddAgentParamsBodyAzureDatabaseExporter{ + NodeID: "nodeID", + PMMAgentID: "pmm-not-exist-server", + AzureDatabaseResourceType: "mysql", + }, }, Context: pmmapitests.Context, }) @@ -219,15 +227,17 @@ func TestAzureDatabaseExporter(t *testing.T) { //nolint:tparallel pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - azureDatabaseExporter := addAzureDatabaseExporter(t, agents.AddAzureDatabaseExporterBody{ - NodeID: nodeID, - PMMAgentID: pmmAgentID, - AzureSubscriptionID: "azure_subscription_id", - CustomLabels: map[string]string{ - "custom_label_azure_database_exporter": "azure_database_exporter", + azureDatabaseExporter := addAgent(t, agents.AddAgentBody{ + AzureDatabaseExporter: &agents.AddAgentParamsBodyAzureDatabaseExporter{ + NodeID: nodeID, + PMMAgentID: pmmAgentID, + AzureSubscriptionID: "azure_subscription_id", + CustomLabels: map[string]string{ + "custom_label_azure_database_exporter": "azure_database_exporter", + }, + SkipConnectionCheck: true, + AzureDatabaseResourceType: "mysql", }, - SkipConnectionCheck: true, - AzureDatabaseResourceType: "mysql", }) agentID := azureDatabaseExporter.AzureDatabaseExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) diff --git a/api-tests/inventory/agents_external_exporter_test.go b/api-tests/inventory/agents_external_exporter_test.go index b5b0ea14ad..d4f81f89fe 100644 --- a/api-tests/inventory/agents_external_exporter_test.go +++ b/api-tests/inventory/agents_external_exporter_test.go @@ -47,12 +47,14 @@ func TestExternalExporter(t *testing.T) { serviceID := service.External.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - ExternalExporter := addExternalExporter(t, agents.AddExternalExporterBody{ - RunsOnNodeID: genericNodeID, - ServiceID: serviceID, - ListenPort: 12345, - CustomLabels: map[string]string{ - "custom_label_for_external_exporter": "external_exporter", + ExternalExporter := addAgent(t, agents.AddAgentBody{ + ExternalExporter: &agents.AddAgentParamsBodyExternalExporter{ + RunsOnNodeID: genericNodeID, + ServiceID: serviceID, + ListenPort: 12345, + CustomLabels: map[string]string{ + "custom_label_for_external_exporter": "external_exporter", + }, }, }) agentID := ExternalExporter.ExternalExporter.AgentID @@ -99,16 +101,18 @@ func TestExternalExporter(t *testing.T) { serviceID := service.External.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - ExternalExporter := addExternalExporter(t, agents.AddExternalExporterBody{ - RunsOnNodeID: genericNodeID, - ServiceID: serviceID, - Username: "username", - Password: "password", - Scheme: "https", - MetricsPath: "/metrics-hr", - ListenPort: 12345, - CustomLabels: map[string]string{ - "custom_label_external_exporter": "external_exporter", + ExternalExporter := addAgent(t, agents.AddAgentBody{ + ExternalExporter: &agents.AddAgentParamsBodyExternalExporter{ + RunsOnNodeID: genericNodeID, + ServiceID: serviceID, + Username: "username", + Password: "password", + Scheme: "https", + MetricsPath: "/metrics-hr", + ListenPort: 12345, + CustomLabels: map[string]string{ + "custom_label_external_exporter": "external_exporter", + }, }, }) agentID := ExternalExporter.ExternalExporter.AgentID @@ -197,11 +201,13 @@ func TestExternalExporter(t *testing.T) { require.NotEmpty(t, genericNodeID) defer pmmapitests.RemoveNodes(t, genericNodeID) - res, err := client.Default.AgentsService.AddExternalExporter(&agents.AddExternalExporterParams{ - Body: agents.AddExternalExporterBody{ - ServiceID: "", - RunsOnNodeID: genericNodeID, - ListenPort: 12345, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ExternalExporter: &agents.AddAgentParamsBodyExternalExporter{ + ServiceID: "", + RunsOnNodeID: genericNodeID, + ListenPort: 12345, + }, }, Context: pmmapitests.Context, }) @@ -228,14 +234,16 @@ func TestExternalExporter(t *testing.T) { serviceID := service.External.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddExternalExporter(&agents.AddExternalExporterParams{ - Body: agents.AddExternalExporterBody{ - ServiceID: serviceID, - RunsOnNodeID: genericNodeID, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ExternalExporter: &agents.AddAgentParamsBodyExternalExporter{ + ServiceID: serviceID, + RunsOnNodeID: genericNodeID, + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddExternalExporterRequest.ListenPort: value must be inside range (0, 65536)") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.ListenPort: value must be inside range (0, 65536)") if !assert.Nil(t, res) { pmmapitests.RemoveNodes(t, res.Payload.ExternalExporter.AgentID) } @@ -258,15 +266,17 @@ func TestExternalExporter(t *testing.T) { serviceID := service.External.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddExternalExporter(&agents.AddExternalExporterParams{ - Body: agents.AddExternalExporterBody{ - ServiceID: serviceID, - RunsOnNodeID: "", - ListenPort: 12345, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ExternalExporter: &agents.AddAgentParamsBodyExternalExporter{ + ServiceID: serviceID, + RunsOnNodeID: "", + ListenPort: 12345, + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddExternalExporterRequest.RunsOnNodeId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.RunsOnNodeId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.ExternalExporter.AgentID) } @@ -279,11 +289,13 @@ func TestExternalExporter(t *testing.T) { require.NotEmpty(t, genericNodeID) defer pmmapitests.RemoveNodes(t, genericNodeID) - res, err := client.Default.AgentsService.AddExternalExporter(&agents.AddExternalExporterParams{ - Body: agents.AddExternalExporterBody{ - ServiceID: "pmm-service-id", - RunsOnNodeID: genericNodeID, - ListenPort: 12345, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ExternalExporter: &agents.AddAgentParamsBodyExternalExporter{ + ServiceID: "pmm-service-id", + RunsOnNodeID: genericNodeID, + ListenPort: 12345, + }, }, Context: pmmapitests.Context, }) @@ -310,11 +322,13 @@ func TestExternalExporter(t *testing.T) { serviceID := service.External.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddExternalExporter(&agents.AddExternalExporterParams{ - Body: agents.AddExternalExporterBody{ - ServiceID: serviceID, - RunsOnNodeID: "pmm-not-exist-server", - ListenPort: 12345, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ExternalExporter: &agents.AddAgentParamsBodyExternalExporter{ + ServiceID: serviceID, + RunsOnNodeID: "pmm-not-exist-server", + ListenPort: 12345, + }, }, Context: pmmapitests.Context, }) @@ -343,14 +357,16 @@ func TestExternalExporter(t *testing.T) { serviceID := service.External.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - ExternalExporter := addExternalExporter(t, agents.AddExternalExporterBody{ - RunsOnNodeID: genericNodeID, - ServiceID: serviceID, - ListenPort: 12345, - CustomLabels: map[string]string{ - "custom_label_for_external_exporter": "external_exporter", + ExternalExporter := addAgent(t, agents.AddAgentBody{ + ExternalExporter: &agents.AddAgentParamsBodyExternalExporter{ + RunsOnNodeID: genericNodeID, + ServiceID: serviceID, + ListenPort: 12345, + CustomLabels: map[string]string{ + "custom_label_for_external_exporter": "external_exporter", + }, + PushMetrics: true, }, - PushMetrics: true, }) agentID := ExternalExporter.ExternalExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) diff --git a/api-tests/inventory/agents_mongodb_exporter_test.go b/api-tests/inventory/agents_mongodb_exporter_test.go index 2ac9f08286..88591ebd18 100644 --- a/api-tests/inventory/agents_mongodb_exporter_test.go +++ b/api-tests/inventory/agents_mongodb_exporter_test.go @@ -57,16 +57,18 @@ func TestMongoDBExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - mongoDBExporter := addMongoDBExporter(t, agents.AddMongoDBExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "new_label": "mongodb_exporter", - }, + mongoDBExporter := addAgent(t, agents.AddAgentBody{ + MongodbExporter: &agents.AddAgentParamsBodyMongodbExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "new_label": "mongodb_exporter", + }, - SkipConnectionCheck: true, + SkipConnectionCheck: true, + }, }) agentID := mongoDBExporter.MongodbExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) @@ -167,14 +169,16 @@ func TestMongoDBExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddMongoDBExporter(&agents.AddMongoDBExporterParams{ - Body: agents.AddMongoDBExporterBody{ - ServiceID: "", - PMMAgentID: pmmAgentID, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MongodbExporter: &agents.AddAgentParamsBodyMongodbExporter{ + ServiceID: "", + PMMAgentID: pmmAgentID, + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddMongoDBExporterRequest.ServiceId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.ServiceId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.MongodbExporter.AgentID) } @@ -198,16 +202,18 @@ func TestMongoDBExporter(t *testing.T) { serviceID := service.Mongodb.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddMongoDBExporter(&agents.AddMongoDBExporterParams{ - Body: agents.AddMongoDBExporterBody{ - ServiceID: serviceID, - PMMAgentID: "", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MongodbExporter: &agents.AddAgentParamsBodyMongodbExporter{ + ServiceID: serviceID, + PMMAgentID: "", + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddMongoDBExporterRequest.PmmAgentId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.PmmAgentId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.MongodbExporter.AgentID) } @@ -224,12 +230,14 @@ func TestMongoDBExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddMongoDBExporter(&agents.AddMongoDBExporterParams{ - Body: agents.AddMongoDBExporterBody{ - ServiceID: "pmm-service-id", - PMMAgentID: pmmAgentID, - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MongodbExporter: &agents.AddAgentParamsBodyMongodbExporter{ + ServiceID: "pmm-service-id", + PMMAgentID: pmmAgentID, + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) @@ -257,12 +265,14 @@ func TestMongoDBExporter(t *testing.T) { serviceID := service.Mongodb.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddMongoDBExporter(&agents.AddMongoDBExporterParams{ - Body: agents.AddMongoDBExporterBody{ - ServiceID: serviceID, - PMMAgentID: "pmm-not-exist-server", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MongodbExporter: &agents.AddAgentParamsBodyMongodbExporter{ + ServiceID: serviceID, + PMMAgentID: "pmm-not-exist-server", + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) @@ -298,17 +308,19 @@ func TestMongoDBExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - mongoDBExporter := addMongoDBExporter(t, agents.AddMongoDBExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "new_label": "mongodb_exporter", - }, + mongoDBExporter := addAgent(t, agents.AddAgentBody{ + MongodbExporter: &agents.AddAgentParamsBodyMongodbExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "new_label": "mongodb_exporter", + }, - SkipConnectionCheck: true, - PushMetrics: true, + SkipConnectionCheck: true, + PushMetrics: true, + }, }) agentID := mongoDBExporter.MongodbExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) diff --git a/api-tests/inventory/agents_mysqld_exporter_test.go b/api-tests/inventory/agents_mysqld_exporter_test.go index bfba236b3b..580e6f7f10 100644 --- a/api-tests/inventory/agents_mysqld_exporter_test.go +++ b/api-tests/inventory/agents_mysqld_exporter_test.go @@ -57,17 +57,18 @@ func TestMySQLdExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - mySqldExporter := addMySQLdExporter(t, agents.AddMySQLdExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_mysql_exporter": "mysql_exporter", + mySqldExporter := addAgent(t, agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_mysql_exporter": "mysql_exporter", + }, + SkipConnectionCheck: true, + TablestatsGroupTableLimit: 2000, }, - - SkipConnectionCheck: true, - TablestatsGroupTableLimit: 2000, }) assert.EqualValues(t, 0, mySqldExporter.TableCount) assert.EqualValues(t, 2000, mySqldExporter.MysqldExporter.TablestatsGroupTableLimit) @@ -192,16 +193,18 @@ func TestMySQLdExporter(t *testing.T) { t.Skip("There are no connected agents") } - mySqldExporter := addMySQLdExporter(t, agents.AddMySQLdExporterBody{ - ServiceID: serviceID, - Username: "pmm-agent", // from pmm-agent docker-compose.yml - Password: "pmm-agent-password", // from pmm-agent docker-compose.yml - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_mysql_exporter": "mysql_exporter", - }, + mySqldExporter := addAgent(t, agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: serviceID, + Username: "pmm-agent", // from pmm-agent docker-compose.yml + Password: "pmm-agent-password", // from pmm-agent docker-compose.yml + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_mysql_exporter": "mysql_exporter", + }, - TablestatsGroupTableLimit: 2000, + TablestatsGroupTableLimit: 2000, + }, }) assert.Greater(t, mySqldExporter.TableCount, int32(0)) assert.EqualValues(t, 2000, mySqldExporter.MysqldExporter.TablestatsGroupTableLimit) @@ -220,14 +223,16 @@ func TestMySQLdExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddMySQLdExporter(&agents.AddMySQLdExporterParams{ - Body: agents.AddMySQLdExporterBody{ - ServiceID: "", - PMMAgentID: pmmAgentID, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: "", + PMMAgentID: pmmAgentID, + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddMySQLdExporterRequest.ServiceId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.ServiceId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveNodes(t, res.Payload.MysqldExporter.AgentID) } @@ -251,16 +256,18 @@ func TestMySQLdExporter(t *testing.T) { serviceID := service.Mysql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddMySQLdExporter(&agents.AddMySQLdExporterParams{ - Body: agents.AddMySQLdExporterBody{ - ServiceID: serviceID, - PMMAgentID: "", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: serviceID, + PMMAgentID: "", + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddMySQLdExporterRequest.PmmAgentId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.PmmAgentId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.MysqldExporter.AgentID) } @@ -277,12 +284,14 @@ func TestMySQLdExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddMySQLdExporter(&agents.AddMySQLdExporterParams{ - Body: agents.AddMySQLdExporterBody{ - ServiceID: "pmm-service-id", - PMMAgentID: pmmAgentID, - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: "pmm-service-id", + PMMAgentID: pmmAgentID, + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) @@ -310,12 +319,14 @@ func TestMySQLdExporter(t *testing.T) { serviceID := service.Mysql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddMySQLdExporter(&agents.AddMySQLdExporterParams{ - Body: agents.AddMySQLdExporterBody{ - ServiceID: serviceID, - PMMAgentID: "pmm-not-exist-server", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: serviceID, + PMMAgentID: "pmm-not-exist-server", + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) @@ -351,18 +362,20 @@ func TestMySQLdExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - mySqldExporter := addMySQLdExporter(t, agents.AddMySQLdExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_mysql_exporter": "mysql_exporter", - }, + mySqldExporter := addAgent(t, agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_mysql_exporter": "mysql_exporter", + }, - SkipConnectionCheck: true, - TablestatsGroupTableLimit: 2000, - PushMetrics: true, + SkipConnectionCheck: true, + TablestatsGroupTableLimit: 2000, + PushMetrics: true, + }, }) assert.EqualValues(t, 0, mySqldExporter.TableCount) assert.EqualValues(t, 2000, mySqldExporter.MysqldExporter.TablestatsGroupTableLimit) diff --git a/api-tests/inventory/agents_node_exporter_test.go b/api-tests/inventory/agents_node_exporter_test.go index 43e470330a..b0d7deb71d 100644 --- a/api-tests/inventory/agents_node_exporter_test.go +++ b/api-tests/inventory/agents_node_exporter_test.go @@ -126,11 +126,15 @@ func TestNodeExporter(t *testing.T) { t.Run("AddPMMAgentIDEmpty", func(t *testing.T) { t.Parallel() - res, err := client.Default.AgentsService.AddNodeExporter(&agents.AddNodeExporterParams{ - Body: agents.AddNodeExporterBody{PMMAgentID: ""}, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + NodeExporter: &agents.AddAgentParamsBodyNodeExporter{ + PMMAgentID: "", + }, + }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddNodeExporterRequest.PmmAgentId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.PmmAgentId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveNodes(t, res.Payload.NodeExporter.AgentID) } @@ -139,8 +143,12 @@ func TestNodeExporter(t *testing.T) { t.Run("NotExistPmmAgentID", func(t *testing.T) { t.Parallel() - res, err := client.Default.AgentsService.AddNodeExporter(&agents.AddNodeExporterParams{ - Body: agents.AddNodeExporterBody{PMMAgentID: "pmm-node-exporter-node"}, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + NodeExporter: &agents.AddAgentParamsBodyNodeExporter{ + PMMAgentID: "pmm-node-exporter-node", + }, + }, Context: pmmapitests.Context, }) pmmapitests.AssertAPIErrorf(t, err, 404, codes.NotFound, "Agent with ID \"pmm-node-exporter-node\" not found.") @@ -163,11 +171,13 @@ func TestNodeExporter(t *testing.T) { customLabels := map[string]string{ "custom_label_node_exporter": "node_exporter", } - res, err := client.Default.AgentsService.AddNodeExporter(&agents.AddNodeExporterParams{ - Body: agents.AddNodeExporterBody{ - PMMAgentID: pmmAgentID, - CustomLabels: customLabels, - PushMetrics: true, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + NodeExporter: &agents.AddAgentParamsBodyNodeExporter{ + PMMAgentID: pmmAgentID, + CustomLabels: customLabels, + PushMetrics: true, + }, }, Context: pmmapitests.Context, }) diff --git a/api-tests/inventory/agents_postgres_exporter_test.go b/api-tests/inventory/agents_postgres_exporter_test.go index e2b01f3c4d..6124d68954 100644 --- a/api-tests/inventory/agents_postgres_exporter_test.go +++ b/api-tests/inventory/agents_postgres_exporter_test.go @@ -57,16 +57,18 @@ func TestPostgresExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - PostgresExporter := addPostgresExporter(t, agents.AddPostgresExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_postgres_exporter": "postgres_exporter", - }, + PostgresExporter := addAgent(t, agents.AddAgentBody{ + PostgresExporter: &agents.AddAgentParamsBodyPostgresExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_postgres_exporter": "postgres_exporter", + }, - SkipConnectionCheck: true, + SkipConnectionCheck: true, + }, }) agentID := PostgresExporter.PostgresExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) @@ -164,14 +166,16 @@ func TestPostgresExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddPostgresExporter(&agents.AddPostgresExporterParams{ - Body: agents.AddPostgresExporterBody{ - ServiceID: "", - PMMAgentID: pmmAgentID, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + PostgresExporter: &agents.AddAgentParamsBodyPostgresExporter{ + ServiceID: "", + PMMAgentID: pmmAgentID, + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddPostgresExporterRequest.ServiceId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.ServiceId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveNodes(t, res.Payload.PostgresExporter.AgentID) } @@ -195,16 +199,18 @@ func TestPostgresExporter(t *testing.T) { serviceID := service.Postgresql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddPostgresExporter(&agents.AddPostgresExporterParams{ - Body: agents.AddPostgresExporterBody{ - ServiceID: serviceID, - PMMAgentID: "", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + PostgresExporter: &agents.AddAgentParamsBodyPostgresExporter{ + ServiceID: serviceID, + PMMAgentID: "", + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddPostgresExporterRequest.PmmAgentId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.PmmAgentId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.PostgresExporter.AgentID) } @@ -221,12 +227,14 @@ func TestPostgresExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddPostgresExporter(&agents.AddPostgresExporterParams{ - Body: agents.AddPostgresExporterBody{ - ServiceID: "pmm-service-id", - PMMAgentID: pmmAgentID, - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + PostgresExporter: &agents.AddAgentParamsBodyPostgresExporter{ + ServiceID: "pmm-service-id", + PMMAgentID: pmmAgentID, + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) @@ -254,12 +262,14 @@ func TestPostgresExporter(t *testing.T) { serviceID := service.Postgresql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddPostgresExporter(&agents.AddPostgresExporterParams{ - Body: agents.AddPostgresExporterBody{ - ServiceID: serviceID, - PMMAgentID: "pmm-not-exist-server", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + PostgresExporter: &agents.AddAgentParamsBodyPostgresExporter{ + ServiceID: serviceID, + PMMAgentID: "pmm-not-exist-server", + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) @@ -295,17 +305,19 @@ func TestPostgresExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - PostgresExporter := addPostgresExporter(t, agents.AddPostgresExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_postgres_exporter": "postgres_exporter", - }, + PostgresExporter := addAgent(t, agents.AddAgentBody{ + PostgresExporter: &agents.AddAgentParamsBodyPostgresExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_postgres_exporter": "postgres_exporter", + }, - SkipConnectionCheck: true, - PushMetrics: true, + SkipConnectionCheck: true, + PushMetrics: true, + }, }) agentID := PostgresExporter.PostgresExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) diff --git a/api-tests/inventory/agents_proxysql_exporter_test.go b/api-tests/inventory/agents_proxysql_exporter_test.go index 975a817196..86c10763fa 100644 --- a/api-tests/inventory/agents_proxysql_exporter_test.go +++ b/api-tests/inventory/agents_proxysql_exporter_test.go @@ -57,16 +57,18 @@ func TestProxySQLExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - ProxySQLExporter := addProxySQLExporter(t, agents.AddProxySQLExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_proxysql_exporter": "proxysql_exporter", - }, + ProxySQLExporter := addAgent(t, agents.AddAgentBody{ + ProxysqlExporter: &agents.AddAgentParamsBodyProxysqlExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_proxysql_exporter": "proxysql_exporter", + }, - SkipConnectionCheck: true, + SkipConnectionCheck: true, + }, }) agentID := ProxySQLExporter.ProxysqlExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) @@ -164,14 +166,16 @@ func TestProxySQLExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddProxySQLExporter(&agents.AddProxySQLExporterParams{ - Body: agents.AddProxySQLExporterBody{ - ServiceID: "", - PMMAgentID: pmmAgentID, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ProxysqlExporter: &agents.AddAgentParamsBodyProxysqlExporter{ + ServiceID: "", + PMMAgentID: pmmAgentID, + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddProxySQLExporterRequest.ServiceId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.ServiceId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveNodes(t, res.Payload.ProxysqlExporter.AgentID) } @@ -195,16 +199,18 @@ func TestProxySQLExporter(t *testing.T) { serviceID := service.Proxysql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddProxySQLExporter(&agents.AddProxySQLExporterParams{ - Body: agents.AddProxySQLExporterBody{ - ServiceID: serviceID, - PMMAgentID: "", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ProxysqlExporter: &agents.AddAgentParamsBodyProxysqlExporter{ + ServiceID: serviceID, + PMMAgentID: "", + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddProxySQLExporterRequest.PmmAgentId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.PmmAgentId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.ProxysqlExporter.AgentID) } @@ -221,12 +227,14 @@ func TestProxySQLExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddProxySQLExporter(&agents.AddProxySQLExporterParams{ - Body: agents.AddProxySQLExporterBody{ - ServiceID: "pmm-service-id", - PMMAgentID: pmmAgentID, - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ProxysqlExporter: &agents.AddAgentParamsBodyProxysqlExporter{ + ServiceID: "pmm-service-id", + PMMAgentID: pmmAgentID, + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) @@ -254,12 +262,14 @@ func TestProxySQLExporter(t *testing.T) { serviceID := service.Proxysql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddProxySQLExporter(&agents.AddProxySQLExporterParams{ - Body: agents.AddProxySQLExporterBody{ - ServiceID: serviceID, - PMMAgentID: "pmm-not-exist-server", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + ProxysqlExporter: &agents.AddAgentParamsBodyProxysqlExporter{ + ServiceID: serviceID, + PMMAgentID: "pmm-not-exist-server", + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) @@ -292,16 +302,18 @@ func TestProxySQLExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - ProxySQLExporter := addProxySQLExporter(t, agents.AddProxySQLExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_proxysql_exporter": "proxysql_exporter", - }, + ProxySQLExporter := addAgent(t, agents.AddAgentBody{ + ProxysqlExporter: &agents.AddAgentParamsBodyProxysqlExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_proxysql_exporter": "proxysql_exporter", + }, - SkipConnectionCheck: true, + SkipConnectionCheck: true, + }, }) agentID := ProxySQLExporter.ProxysqlExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) diff --git a/api-tests/inventory/agents_rds_exporter_test.go b/api-tests/inventory/agents_rds_exporter_test.go index 7823efe4a7..7ac1e1c236 100644 --- a/api-tests/inventory/agents_rds_exporter_test.go +++ b/api-tests/inventory/agents_rds_exporter_test.go @@ -43,15 +43,17 @@ func TestRDSExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - rdsExporter := addRDSExporter(t, agents.AddRDSExporterBody{ - NodeID: nodeID, - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_rds_exporter": "rds_exporter", + rdsExporter := addAgent(t, agents.AddAgentBody{ + RDSExporter: &agents.AddAgentParamsBodyRDSExporter{ + NodeID: nodeID, + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_rds_exporter": "rds_exporter", + }, + SkipConnectionCheck: true, + DisableBasicMetrics: true, + DisableEnhancedMetrics: true, }, - SkipConnectionCheck: true, - DisableBasicMetrics: true, - DisableEnhancedMetrics: true, }) agentID := rdsExporter.RDSExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) @@ -150,14 +152,16 @@ func TestRDSExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddRDSExporter(&agents.AddRDSExporterParams{ - Body: agents.AddRDSExporterBody{ - NodeID: "", - PMMAgentID: pmmAgentID, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + RDSExporter: &agents.AddAgentParamsBodyRDSExporter{ + NodeID: "", + PMMAgentID: pmmAgentID, + }, }, Context: pmmapitests.Context, }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddRDSExporterRequest.NodeId: value length must be at least 1 runes") + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.NodeId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveNodes(t, res.Payload.RDSExporter.AgentID) } @@ -174,10 +178,12 @@ func TestRDSExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddRDSExporter(&agents.AddRDSExporterParams{ - Body: agents.AddRDSExporterBody{ - NodeID: "pmm-node-id", - PMMAgentID: pmmAgentID, + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + RDSExporter: &agents.AddAgentParamsBodyRDSExporter{ + NodeID: "pmm-node-id", + PMMAgentID: pmmAgentID, + }, }, Context: pmmapitests.Context, }) @@ -193,10 +199,12 @@ func TestRDSExporter(t *testing.T) { require.NotEmpty(t, genericNodeID) defer pmmapitests.RemoveNodes(t, genericNodeID) - res, err := client.Default.AgentsService.AddRDSExporter(&agents.AddRDSExporterParams{ - Body: agents.AddRDSExporterBody{ - NodeID: "nodeID", - PMMAgentID: "pmm-not-exist-server", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + RDSExporter: &agents.AddAgentParamsBodyRDSExporter{ + NodeID: "nodeID", + PMMAgentID: "pmm-not-exist-server", + }, }, Context: pmmapitests.Context, }) @@ -219,15 +227,17 @@ func TestRDSExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - rdsExporter := addRDSExporter(t, agents.AddRDSExporterBody{ - NodeID: nodeID, - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_rds_exporter": "rds_exporter", + rdsExporter := addAgent(t, agents.AddAgentBody{ + RDSExporter: &agents.AddAgentParamsBodyRDSExporter{ + NodeID: nodeID, + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_rds_exporter": "rds_exporter", + }, + SkipConnectionCheck: true, + DisableBasicMetrics: true, + DisableEnhancedMetrics: true, }, - SkipConnectionCheck: true, - DisableBasicMetrics: true, - DisableEnhancedMetrics: true, }) agentID := rdsExporter.RDSExporter.AgentID defer pmmapitests.RemoveAgents(t, agentID) diff --git a/api-tests/inventory/agents_test.go b/api-tests/inventory/agents_test.go index 2c72e71107..b9c27283e8 100644 --- a/api-tests/inventory/agents_test.go +++ b/api-tests/inventory/agents_test.go @@ -63,13 +63,15 @@ func TestAgents(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - mySqldExporter := addMySQLdExporter(t, agents.AddMySQLdExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, + mySqldExporter := addAgent(t, agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, - SkipConnectionCheck: true, + SkipConnectionCheck: true, + }, }) mySqldExporterID := mySqldExporter.MysqldExporter.AgentID defer pmmapitests.RemoveAgents(t, mySqldExporterID) @@ -109,36 +111,42 @@ func TestAgents(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - mySqldExporter := addMySQLdExporter(t, agents.AddMySQLdExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, + mySqldExporter := addAgent(t, agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, - SkipConnectionCheck: true, + SkipConnectionCheck: true, + }, }) mySqldExporterID := mySqldExporter.MysqldExporter.AgentID defer pmmapitests.RemoveAgents(t, mySqldExporterID) - nodeExporter, err := client.Default.AgentsService.AddNodeExporter(&agents.AddNodeExporterParams{ - Body: agents.AddNodeExporterBody{ - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_node_exporter": "node_exporter", + nodeExporter, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + NodeExporter: &agents.AddAgentParamsBodyNodeExporter{ + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_node_exporter": "node_exporter", + }, + }, }, - }, - Context: pmmapitests.Context, - }) + Context: pmmapitests.Context, + }) assert.NoError(t, err) require.NotNil(t, nodeExporter) nodeExporterID := nodeExporter.Payload.NodeExporter.AgentID defer pmmapitests.RemoveAgents(t, nodeExporterID) // Filter by pmm agent ID. - res, err := client.Default.AgentsService.ListAgents(&agents.ListAgentsParams{ - Body: agents.ListAgentsBody{PMMAgentID: pmmAgentID}, - Context: pmmapitests.Context, - }) + res, err := client.Default.AgentsService.ListAgents( + &agents.ListAgentsParams{ + Body: agents.ListAgentsBody{PMMAgentID: pmmAgentID}, + Context: pmmapitests.Context, + }) require.NoError(t, err) require.NotNil(t, res) require.NotZerof(t, len(res.Payload.MysqldExporter), "There should be at least one agent") @@ -147,10 +155,11 @@ func TestAgents(t *testing.T) { assertPMMAgentNotExists(t, res, pmmAgentID) // Filter by node ID. - res, err = client.Default.AgentsService.ListAgents(&agents.ListAgentsParams{ - Body: agents.ListAgentsBody{NodeID: nodeID}, - Context: pmmapitests.Context, - }) + res, err = client.Default.AgentsService.ListAgents( + &agents.ListAgentsParams{ + Body: agents.ListAgentsBody{NodeID: nodeID}, + Context: pmmapitests.Context, + }) require.NoError(t, err) require.NotNil(t, res) require.NotZerof(t, len(res.Payload.NodeExporter), "There should be at least one node exporter") @@ -159,10 +168,11 @@ func TestAgents(t *testing.T) { assertNodeExporterExists(t, res, nodeExporterID) // Filter by service ID. - res, err = client.Default.AgentsService.ListAgents(&agents.ListAgentsParams{ - Body: agents.ListAgentsBody{ServiceID: serviceID}, - Context: pmmapitests.Context, - }) + res, err = client.Default.AgentsService.ListAgents( + &agents.ListAgentsParams{ + Body: agents.ListAgentsBody{ServiceID: serviceID}, + Context: pmmapitests.Context, + }) require.NoError(t, err) require.NotNil(t, res) require.NotZerof(t, len(res.Payload.MysqldExporter), "There should be at least one mysql exporter") @@ -171,10 +181,11 @@ func TestAgents(t *testing.T) { assertNodeExporterNotExists(t, res, nodeExporterID) // Filter by service ID. - res, err = client.Default.AgentsService.ListAgents(&agents.ListAgentsParams{ - Body: agents.ListAgentsBody{AgentType: pointer.ToString(agents.ListAgentsBodyAgentTypeAGENTTYPEMYSQLDEXPORTER)}, - Context: pmmapitests.Context, - }) + res, err = client.Default.AgentsService.ListAgents( + &agents.ListAgentsParams{ + Body: agents.ListAgentsBody{AgentType: pointer.ToString(agents.ListAgentsBodyAgentTypeAGENTTYPEMYSQLDEXPORTER)}, + Context: pmmapitests.Context, + }) require.NoError(t, err) require.NotNil(t, res) require.NotZerof(t, len(res.Payload.MysqldExporter), "There should be at least one mysql exporter") @@ -194,14 +205,15 @@ func TestAgents(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.ListAgents(&agents.ListAgentsParams{ - Body: agents.ListAgentsBody{ - PMMAgentID: pmmAgentID, - NodeID: genericNodeID, - ServiceID: "some-service-id", - }, - Context: pmmapitests.Context, - }) + res, err := client.Default.AgentsService.ListAgents( + &agents.ListAgentsParams{ + Body: agents.ListAgentsBody{ + PMMAgentID: pmmAgentID, + NodeID: genericNodeID, + ServiceID: "some-service-id", + }, + Context: pmmapitests.Context, + }) pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "expected at most one param: pmm_agent_id, node_id or service_id") assert.Nil(t, res) }) @@ -226,16 +238,19 @@ func TestAgents(t *testing.T) { }).Mysql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - _, err := client.Default.AgentsService.AddMongoDBExporter(&agents.AddMongoDBExporterParams{ - Body: agents.AddMongoDBExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - SkipConnectionCheck: true, - }, - Context: pmmapitests.Context, - }) + _, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + MongodbExporter: &agents.AddAgentParamsBodyMongodbExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + SkipConnectionCheck: true, + }, + }, + Context: pmmapitests.Context, + }) pmmapitests.AssertAPIErrorf(t, err, http.StatusBadRequest, codes.FailedPrecondition, "invalid combination of service type mysql and agent type mongodb_exporter") }) @@ -254,10 +269,11 @@ func TestPMMAgent(t *testing.T) { require.Equal(t, nodeID, res.PMMAgent.RunsOnNodeID) agentID := res.PMMAgent.AgentID - getAgentRes, err := client.Default.AgentsService.GetAgent(&agents.GetAgentParams{ - Body: agents.GetAgentBody{AgentID: agentID}, - Context: pmmapitests.Context, - }) + getAgentRes, err := client.Default.AgentsService.GetAgent( + &agents.GetAgentParams{ + Body: agents.GetAgentBody{AgentID: agentID}, + Context: pmmapitests.Context, + }) assert.NoError(t, err) assert.Equal(t, &agents.GetAgentOK{ Payload: &agents.GetAgentOKBody{ @@ -283,11 +299,16 @@ func TestPMMAgent(t *testing.T) { t.Run("AddNodeIDEmpty", func(t *testing.T) { t.Parallel() - res, err := client.Default.AgentsService.AddPMMAgent(&agents.AddPMMAgentParams{ - Body: agents.AddPMMAgentBody{RunsOnNodeID: ""}, - Context: pmmapitests.Context, - }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddPMMAgentRequest.RunsOnNodeId: value length must be at least 1 runes") + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + PMMAgent: &agents.AddAgentParamsBodyPMMAgent{ + RunsOnNodeID: "", + }, + }, + Context: pmmapitests.Context, + }) + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.RunsOnNodeId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveNodes(t, res.Payload.PMMAgent.AgentID) } @@ -318,16 +339,18 @@ func TestPMMAgent(t *testing.T) { nodeExporterOK := addNodeExporter(t, pmmAgentID, make(map[string]string)) nodeExporterID := nodeExporterOK.Payload.NodeExporter.AgentID - mySqldExporter := addMySQLdExporter(t, agents.AddMySQLdExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "custom_label_mysql_exporter": "mysql_exporter", - }, + mySqldExporter := addAgent(t, agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "custom_label_mysql_exporter": "mysql_exporter", + }, - SkipConnectionCheck: true, + SkipConnectionCheck: true, + }, }) mySqldExporterID := mySqldExporter.MysqldExporter.AgentID @@ -342,10 +365,11 @@ func TestPMMAgent(t *testing.T) { pmmapitests.AssertAPIErrorf(t, err, 400, codes.FailedPrecondition, `pmm-agent with ID %q has agents.`, pmmAgentID) // Check that agents aren't removed. - getAgentRes, err := client.Default.AgentsService.GetAgent(&agents.GetAgentParams{ - Body: agents.GetAgentBody{AgentID: pmmAgentID}, - Context: pmmapitests.Context, - }) + getAgentRes, err := client.Default.AgentsService.GetAgent( + &agents.GetAgentParams{ + Body: agents.GetAgentBody{AgentID: pmmAgentID}, + Context: pmmapitests.Context, + }) assert.NoError(t, err) assert.Equal(t, &agents.GetAgentOK{ Payload: &agents.GetAgentOKBody{ @@ -357,12 +381,13 @@ func TestPMMAgent(t *testing.T) { }, }, getAgentRes) - listAgentsOK, err := client.Default.AgentsService.ListAgents(&agents.ListAgentsParams{ - Body: agents.ListAgentsBody{ - PMMAgentID: pmmAgentID, - }, - Context: pmmapitests.Context, - }) + listAgentsOK, err := client.Default.AgentsService.ListAgents( + &agents.ListAgentsParams{ + Body: agents.ListAgentsBody{ + PMMAgentID: pmmAgentID, + }, + Context: pmmapitests.Context, + }) assert.NoError(t, err) assert.Equal(t, []*agents.ListAgentsOKBodyNodeExporterItems0{ { @@ -403,10 +428,11 @@ func TestPMMAgent(t *testing.T) { assert.NotNil(t, res) // Check that agents are removed. - getAgentRes, err = client.Default.AgentsService.GetAgent(&agents.GetAgentParams{ - Body: agents.GetAgentBody{AgentID: pmmAgentID}, - Context: pmmapitests.Context, - }) + getAgentRes, err = client.Default.AgentsService.GetAgent( + &agents.GetAgentParams{ + Body: agents.GetAgentBody{AgentID: pmmAgentID}, + Context: pmmapitests.Context, + }) pmmapitests.AssertAPIErrorf(t, err, 404, codes.NotFound, "Agent with ID %q not found.", pmmAgentID) assert.Nil(t, getAgentRes) @@ -449,13 +475,14 @@ func TestPMMAgent(t *testing.T) { t.Run("Remove pmm-agent on PMM Server", func(t *testing.T) { t.Parallel() - removeResp, err := client.Default.AgentsService.RemoveAgent(&agents.RemoveAgentParams{ - Body: agents.RemoveAgentBody{ - AgentID: "pmm-server", - Force: true, - }, - Context: context.Background(), - }) + removeResp, err := client.Default.AgentsService.RemoveAgent( + &agents.RemoveAgentParams{ + Body: agents.RemoveAgentBody{ + AgentID: "pmm-server", + Force: true, + }, + Context: context.Background(), + }) pmmapitests.AssertAPIErrorf(t, err, 403, codes.PermissionDenied, "pmm-agent on PMM Server can't be removed.") assert.Nil(t, removeResp) }) @@ -484,18 +511,20 @@ func TestQanAgentExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddQANMySQLPerfSchemaAgent( - &agents.AddQANMySQLPerfSchemaAgentParams{ - Body: agents.AddQANMySQLPerfSchemaAgentBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "new_label": "QANMysqlPerfschemaAgent", + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANMysqlPerfschemaAgent: &agents.AddAgentParamsBodyQANMysqlPerfschemaAgent{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "new_label": "QANMysqlPerfschemaAgent", + }, + + SkipConnectionCheck: true, }, - - SkipConnectionCheck: true, }, Context: pmmapitests.Context, }) @@ -525,16 +554,17 @@ func TestQanAgentExporter(t *testing.T) { }, getAgentRes) // Test change API. - changeQANMySQLPerfSchemaAgentOK, err := client.Default.AgentsService.ChangeQANMySQLPerfSchemaAgent(&agents.ChangeQANMySQLPerfSchemaAgentParams{ - Body: agents.ChangeQANMySQLPerfSchemaAgentBody{ - AgentID: agentID, - Common: &agents.ChangeQANMySQLPerfSchemaAgentParamsBodyCommon{ - Disable: true, - RemoveCustomLabels: true, + changeQANMySQLPerfSchemaAgentOK, err := client.Default.AgentsService.ChangeQANMySQLPerfSchemaAgent( + &agents.ChangeQANMySQLPerfSchemaAgentParams{ + Body: agents.ChangeQANMySQLPerfSchemaAgentBody{ + AgentID: agentID, + Common: &agents.ChangeQANMySQLPerfSchemaAgentParamsBodyCommon{ + Disable: true, + RemoveCustomLabels: true, + }, }, - }, - Context: pmmapitests.Context, - }) + Context: pmmapitests.Context, + }) assert.NoError(t, err) assert.Equal(t, &agents.ChangeQANMySQLPerfSchemaAgentOK{ Payload: &agents.ChangeQANMySQLPerfSchemaAgentOKBody{ @@ -551,18 +581,19 @@ func TestQanAgentExporter(t *testing.T) { }, }, changeQANMySQLPerfSchemaAgentOK) - changeQANMySQLPerfSchemaAgentOK, err = client.Default.AgentsService.ChangeQANMySQLPerfSchemaAgent(&agents.ChangeQANMySQLPerfSchemaAgentParams{ - Body: agents.ChangeQANMySQLPerfSchemaAgentBody{ - AgentID: agentID, - Common: &agents.ChangeQANMySQLPerfSchemaAgentParamsBodyCommon{ - Enable: true, - CustomLabels: map[string]string{ - "new_label": "QANMysqlPerfschemaAgent", + changeQANMySQLPerfSchemaAgentOK, err = client.Default.AgentsService.ChangeQANMySQLPerfSchemaAgent( + &agents.ChangeQANMySQLPerfSchemaAgentParams{ + Body: agents.ChangeQANMySQLPerfSchemaAgentBody{ + AgentID: agentID, + Common: &agents.ChangeQANMySQLPerfSchemaAgentParamsBodyCommon{ + Enable: true, + CustomLabels: map[string]string{ + "new_label": "QANMysqlPerfschemaAgent", + }, }, }, - }, - Context: pmmapitests.Context, - }) + Context: pmmapitests.Context, + }) assert.NoError(t, err) assert.Equal(t, &agents.ChangeQANMySQLPerfSchemaAgentOK{ Payload: &agents.ChangeQANMySQLPerfSchemaAgentOKBody{ @@ -592,18 +623,21 @@ func TestQanAgentExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddQANMySQLPerfSchemaAgent(&agents.AddQANMySQLPerfSchemaAgentParams{ - Body: agents.AddQANMySQLPerfSchemaAgentBody{ - ServiceID: "", - PMMAgentID: pmmAgentID, - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANMysqlPerfschemaAgent: &agents.AddAgentParamsBodyQANMysqlPerfschemaAgent{ + ServiceID: "", + PMMAgentID: pmmAgentID, + Username: "username", + Password: "password", - SkipConnectionCheck: true, - }, - Context: pmmapitests.Context, - }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddQANMySQLPerfSchemaAgentRequest.ServiceId: value length must be at least 1 runes") + SkipConnectionCheck: true, + }, + }, + Context: pmmapitests.Context, + }) + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.ServiceId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANMysqlPerfschemaAgent.AgentID) } @@ -626,18 +660,21 @@ func TestQanAgentExporter(t *testing.T) { serviceID := service.Mysql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddQANMySQLPerfSchemaAgent(&agents.AddQANMySQLPerfSchemaAgentParams{ - Body: agents.AddQANMySQLPerfSchemaAgentBody{ - ServiceID: serviceID, - PMMAgentID: "", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANMysqlPerfschemaAgent: &agents.AddAgentParamsBodyQANMysqlPerfschemaAgent{ + ServiceID: serviceID, + PMMAgentID: "", + Username: "username", + Password: "password", - SkipConnectionCheck: true, - }, - Context: pmmapitests.Context, - }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddQANMySQLPerfSchemaAgentRequest.PmmAgentId: value length must be at least 1 runes") + SkipConnectionCheck: true, + }, + }, + Context: pmmapitests.Context, + }) + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.PmmAgentId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANMysqlPerfschemaAgent.AgentID) } @@ -653,15 +690,18 @@ func TestQanAgentExporter(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddQANMySQLPerfSchemaAgent(&agents.AddQANMySQLPerfSchemaAgentParams{ - Body: agents.AddQANMySQLPerfSchemaAgentBody{ - ServiceID: "pmm-service-id", - PMMAgentID: pmmAgentID, - Username: "username", - Password: "password", - }, - Context: pmmapitests.Context, - }) + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANMysqlPerfschemaAgent: &agents.AddAgentParamsBodyQANMysqlPerfschemaAgent{ + ServiceID: "pmm-service-id", + PMMAgentID: pmmAgentID, + Username: "username", + Password: "password", + }, + }, + Context: pmmapitests.Context, + }) pmmapitests.AssertAPIErrorf(t, err, 404, codes.NotFound, "Service with ID \"pmm-service-id\" not found.") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANMysqlPerfschemaAgent.AgentID) @@ -685,15 +725,18 @@ func TestQanAgentExporter(t *testing.T) { serviceID := service.Mysql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddQANMySQLPerfSchemaAgent(&agents.AddQANMySQLPerfSchemaAgentParams{ - Body: agents.AddQANMySQLPerfSchemaAgentBody{ - ServiceID: serviceID, - PMMAgentID: "pmm-not-exist-server", - Username: "username", - Password: "password", - }, - Context: pmmapitests.Context, - }) + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANMysqlPerfschemaAgent: &agents.AddAgentParamsBodyQANMysqlPerfschemaAgent{ + ServiceID: serviceID, + PMMAgentID: "pmm-not-exist-server", + Username: "username", + Password: "password", + }, + }, + Context: pmmapitests.Context, + }) pmmapitests.AssertAPIErrorf(t, err, 404, codes.NotFound, "Agent with ID \"pmm-not-exist-server\" not found.") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANMysqlPerfschemaAgent.AgentID) @@ -724,18 +767,20 @@ func TestPGStatStatementsQanAgent(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatementsAgent( - &agents.AddQANPostgreSQLPgStatementsAgentParams{ - Body: agents.AddQANPostgreSQLPgStatementsAgentBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "new_label": "QANPostgreSQLPgStatementsAgent", + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatementsAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatementsAgent{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "new_label": "QANPostgreSQLPgStatementsAgent", + }, + + SkipConnectionCheck: true, }, - - SkipConnectionCheck: true, }, Context: pmmapitests.Context, }) @@ -743,10 +788,11 @@ func TestPGStatStatementsQanAgent(t *testing.T) { agentID := res.Payload.QANPostgresqlPgstatementsAgent.AgentID defer pmmapitests.RemoveAgents(t, agentID) - getAgentRes, err := client.Default.AgentsService.GetAgent(&agents.GetAgentParams{ - Body: agents.GetAgentBody{AgentID: agentID}, - Context: pmmapitests.Context, - }) + getAgentRes, err := client.Default.AgentsService.GetAgent( + &agents.GetAgentParams{ + Body: agents.GetAgentBody{AgentID: agentID}, + Context: pmmapitests.Context, + }) require.NoError(t, err) assert.Equal(t, &agents.GetAgentOK{ Payload: &agents.GetAgentOKBody{ @@ -765,16 +811,17 @@ func TestPGStatStatementsQanAgent(t *testing.T) { }, getAgentRes) // Test change API. - changeQANPostgreSQLPgStatementsAgentOK, err := client.Default.AgentsService.ChangeQANPostgreSQLPgStatementsAgent(&agents.ChangeQANPostgreSQLPgStatementsAgentParams{ - Body: agents.ChangeQANPostgreSQLPgStatementsAgentBody{ - AgentID: agentID, - Common: &agents.ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon{ - Disable: true, - RemoveCustomLabels: true, + changeQANPostgreSQLPgStatementsAgentOK, err := client.Default.AgentsService.ChangeQANPostgreSQLPgStatementsAgent( + &agents.ChangeQANPostgreSQLPgStatementsAgentParams{ + Body: agents.ChangeQANPostgreSQLPgStatementsAgentBody{ + AgentID: agentID, + Common: &agents.ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon{ + Disable: true, + RemoveCustomLabels: true, + }, }, - }, - Context: pmmapitests.Context, - }) + Context: pmmapitests.Context, + }) assert.NoError(t, err) assert.Equal(t, &agents.ChangeQANPostgreSQLPgStatementsAgentOK{ Payload: &agents.ChangeQANPostgreSQLPgStatementsAgentOKBody{ @@ -791,18 +838,19 @@ func TestPGStatStatementsQanAgent(t *testing.T) { }, }, changeQANPostgreSQLPgStatementsAgentOK) - changeQANPostgreSQLPgStatementsAgentOK, err = client.Default.AgentsService.ChangeQANPostgreSQLPgStatementsAgent(&agents.ChangeQANPostgreSQLPgStatementsAgentParams{ - Body: agents.ChangeQANPostgreSQLPgStatementsAgentBody{ - AgentID: agentID, - Common: &agents.ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon{ - Enable: true, - CustomLabels: map[string]string{ - "new_label": "QANPostgreSQLPgStatementsAgent", + changeQANPostgreSQLPgStatementsAgentOK, err = client.Default.AgentsService.ChangeQANPostgreSQLPgStatementsAgent( + &agents.ChangeQANPostgreSQLPgStatementsAgentParams{ + Body: agents.ChangeQANPostgreSQLPgStatementsAgentBody{ + AgentID: agentID, + Common: &agents.ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon{ + Enable: true, + CustomLabels: map[string]string{ + "new_label": "QANPostgreSQLPgStatementsAgent", + }, }, }, - }, - Context: pmmapitests.Context, - }) + Context: pmmapitests.Context, + }) assert.NoError(t, err) assert.Equal(t, &agents.ChangeQANPostgreSQLPgStatementsAgentOK{ Payload: &agents.ChangeQANPostgreSQLPgStatementsAgentOKBody{ @@ -832,18 +880,21 @@ func TestPGStatStatementsQanAgent(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatementsAgent(&agents.AddQANPostgreSQLPgStatementsAgentParams{ - Body: agents.AddQANPostgreSQLPgStatementsAgentBody{ - ServiceID: "", - PMMAgentID: pmmAgentID, - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatementsAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatementsAgent{ + ServiceID: "", + PMMAgentID: pmmAgentID, + Username: "username", + Password: "password", - SkipConnectionCheck: true, - }, - Context: pmmapitests.Context, - }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddQANPostgreSQLPgStatementsAgentRequest.ServiceId: value length must be at least 1 runes") + SkipConnectionCheck: true, + }, + }, + Context: pmmapitests.Context, + }) + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.ServiceId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANPostgresqlPgstatementsAgent.AgentID) } @@ -866,17 +917,20 @@ func TestPGStatStatementsQanAgent(t *testing.T) { serviceID := service.Postgresql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatementsAgent(&agents.AddQANPostgreSQLPgStatementsAgentParams{ - Body: agents.AddQANPostgreSQLPgStatementsAgentBody{ - ServiceID: serviceID, - PMMAgentID: "", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatementsAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatementsAgent{ + ServiceID: serviceID, + PMMAgentID: "", + Username: "username", + Password: "password", - SkipConnectionCheck: true, - }, - Context: pmmapitests.Context, - }) + SkipConnectionCheck: true, + }, + }, + Context: pmmapitests.Context, + }) pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddQANPostgreSQLPgStatementsAgentRequest.PmmAgentId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANPostgresqlPgstatementsAgent.AgentID) @@ -893,15 +947,18 @@ func TestPGStatStatementsQanAgent(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatementsAgent(&agents.AddQANPostgreSQLPgStatementsAgentParams{ - Body: agents.AddQANPostgreSQLPgStatementsAgentBody{ - ServiceID: "pmm-service-id", - PMMAgentID: pmmAgentID, - Username: "username", - Password: "password", - }, - Context: pmmapitests.Context, - }) + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatementsAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatementsAgent{ + ServiceID: "pmm-service-id", + PMMAgentID: pmmAgentID, + Username: "username", + Password: "password", + }, + }, + Context: pmmapitests.Context, + }) pmmapitests.AssertAPIErrorf(t, err, 404, codes.NotFound, "Service with ID \"pmm-service-id\" not found.") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANPostgresqlPgstatementsAgent.AgentID) @@ -925,15 +982,18 @@ func TestPGStatStatementsQanAgent(t *testing.T) { serviceID := service.Postgresql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatementsAgent(&agents.AddQANPostgreSQLPgStatementsAgentParams{ - Body: agents.AddQANPostgreSQLPgStatementsAgentBody{ - ServiceID: serviceID, - PMMAgentID: "pmm-not-exist-server", - Username: "username", - Password: "password", - }, - Context: pmmapitests.Context, - }) + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatementsAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatementsAgent{ + ServiceID: serviceID, + PMMAgentID: "pmm-not-exist-server", + Username: "username", + Password: "password", + }, + }, + Context: pmmapitests.Context, + }) pmmapitests.AssertAPIErrorf(t, err, 404, codes.NotFound, "Agent with ID \"pmm-not-exist-server\" not found.") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANPostgresqlPgstatementsAgent.AgentID) @@ -964,18 +1024,20 @@ func TestPGStatMonitorQanAgent(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatMonitorAgent( - &agents.AddQANPostgreSQLPgStatMonitorAgentParams{ - Body: agents.AddQANPostgreSQLPgStatMonitorAgentBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - CustomLabels: map[string]string{ - "new_label": "QANPostgreSQLPgStatMonitorAgent", + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatmonitorAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + CustomLabels: map[string]string{ + "new_label": "QANPostgreSQLPgStatMonitorAgent", + }, + + SkipConnectionCheck: true, }, - - SkipConnectionCheck: true, }, Context: pmmapitests.Context, }) @@ -1006,16 +1068,17 @@ func TestPGStatMonitorQanAgent(t *testing.T) { }, getAgentRes) // Test change API. - changeQANPostgreSQLPgStatMonitorAgentOK, err := client.Default.AgentsService.ChangeQANPostgreSQLPgStatMonitorAgent(&agents.ChangeQANPostgreSQLPgStatMonitorAgentParams{ - Body: agents.ChangeQANPostgreSQLPgStatMonitorAgentBody{ - AgentID: agentID, - Common: &agents.ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon{ - Disable: true, - RemoveCustomLabels: true, + changeQANPostgreSQLPgStatMonitorAgentOK, err := client.Default.AgentsService.ChangeQANPostgreSQLPgStatMonitorAgent( + &agents.ChangeQANPostgreSQLPgStatMonitorAgentParams{ + Body: agents.ChangeQANPostgreSQLPgStatMonitorAgentBody{ + AgentID: agentID, + Common: &agents.ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon{ + Disable: true, + RemoveCustomLabels: true, + }, }, - }, - Context: pmmapitests.Context, - }) + Context: pmmapitests.Context, + }) assert.NoError(t, err) assert.Equal(t, &agents.ChangeQANPostgreSQLPgStatMonitorAgentOK{ Payload: &agents.ChangeQANPostgreSQLPgStatMonitorAgentOKBody{ @@ -1032,18 +1095,19 @@ func TestPGStatMonitorQanAgent(t *testing.T) { }, }, changeQANPostgreSQLPgStatMonitorAgentOK) - changeQANPostgreSQLPgStatMonitorAgentOK, err = client.Default.AgentsService.ChangeQANPostgreSQLPgStatMonitorAgent(&agents.ChangeQANPostgreSQLPgStatMonitorAgentParams{ - Body: agents.ChangeQANPostgreSQLPgStatMonitorAgentBody{ - AgentID: agentID, - Common: &agents.ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon{ - Enable: true, - CustomLabels: map[string]string{ - "new_label": "QANPostgreSQLPgStatMonitorAgent", + changeQANPostgreSQLPgStatMonitorAgentOK, err = client.Default.AgentsService.ChangeQANPostgreSQLPgStatMonitorAgent( + &agents.ChangeQANPostgreSQLPgStatMonitorAgentParams{ + Body: agents.ChangeQANPostgreSQLPgStatMonitorAgentBody{ + AgentID: agentID, + Common: &agents.ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon{ + Enable: true, + CustomLabels: map[string]string{ + "new_label": "QANPostgreSQLPgStatMonitorAgent", + }, }, }, - }, - Context: pmmapitests.Context, - }) + Context: pmmapitests.Context, + }) assert.NoError(t, err) assert.Equal(t, &agents.ChangeQANPostgreSQLPgStatMonitorAgentOK{ Payload: &agents.ChangeQANPostgreSQLPgStatMonitorAgentOKBody{ @@ -1084,19 +1148,21 @@ func TestPGStatMonitorQanAgent(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatMonitorAgent( - &agents.AddQANPostgreSQLPgStatMonitorAgentParams{ - Body: agents.AddQANPostgreSQLPgStatMonitorAgentBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, - DisableQueryExamples: true, - CustomLabels: map[string]string{ - "new_label": "QANPostgreSQLPgStatMonitorAgent", + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatmonitorAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, + DisableQueryExamples: true, + CustomLabels: map[string]string{ + "new_label": "QANPostgreSQLPgStatMonitorAgent", + }, + + SkipConnectionCheck: true, }, - - SkipConnectionCheck: true, }, Context: pmmapitests.Context, }) @@ -1104,10 +1170,11 @@ func TestPGStatMonitorQanAgent(t *testing.T) { agentID := res.Payload.QANPostgresqlPgstatmonitorAgent.AgentID defer pmmapitests.RemoveAgents(t, agentID) - getAgentRes, err := client.Default.AgentsService.GetAgent(&agents.GetAgentParams{ - Body: agents.GetAgentBody{AgentID: agentID}, - Context: pmmapitests.Context, - }) + getAgentRes, err := client.Default.AgentsService.GetAgent( + &agents.GetAgentParams{ + Body: agents.GetAgentBody{AgentID: agentID}, + Context: pmmapitests.Context, + }) require.NoError(t, err) assert.Equal(t, &agents.GetAgentOK{ Payload: &agents.GetAgentOKBody{ @@ -1137,18 +1204,21 @@ func TestPGStatMonitorQanAgent(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatMonitorAgent(&agents.AddQANPostgreSQLPgStatMonitorAgentParams{ - Body: agents.AddQANPostgreSQLPgStatMonitorAgentBody{ - ServiceID: "", - PMMAgentID: pmmAgentID, - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatmonitorAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent{ + ServiceID: "", + PMMAgentID: pmmAgentID, + Username: "username", + Password: "password", - SkipConnectionCheck: true, - }, - Context: pmmapitests.Context, - }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddQANPostgreSQLPgStatMonitorAgentRequest.ServiceId: value length must be at least 1 runes") + SkipConnectionCheck: true, + }, + }, + Context: pmmapitests.Context, + }) + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.ServiceId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANPostgresqlPgstatmonitorAgent.AgentID) } @@ -1171,18 +1241,21 @@ func TestPGStatMonitorQanAgent(t *testing.T) { serviceID := service.Postgresql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatMonitorAgent(&agents.AddQANPostgreSQLPgStatMonitorAgentParams{ - Body: agents.AddQANPostgreSQLPgStatMonitorAgentBody{ - ServiceID: serviceID, - PMMAgentID: "", - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatmonitorAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent{ + ServiceID: serviceID, + PMMAgentID: "", + Username: "username", + Password: "password", - SkipConnectionCheck: true, - }, - Context: pmmapitests.Context, - }) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddQANPostgreSQLPgStatMonitorAgentRequest.PmmAgentId: value length must be at least 1 runes") + SkipConnectionCheck: true, + }, + }, + Context: pmmapitests.Context, + }) + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid AddAgentRequest.PmmAgentId: value length must be at least 1 runes") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANPostgresqlPgstatmonitorAgent.AgentID) } @@ -1198,12 +1271,14 @@ func TestPGStatMonitorQanAgent(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatMonitorAgent(&agents.AddQANPostgreSQLPgStatMonitorAgentParams{ - Body: agents.AddQANPostgreSQLPgStatMonitorAgentBody{ - ServiceID: "pmm-service-id", - PMMAgentID: pmmAgentID, - Username: "username", - Password: "password", + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatmonitorAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent{ + ServiceID: "pmm-service-id", + PMMAgentID: pmmAgentID, + Username: "username", + Password: "password", + }, }, Context: pmmapitests.Context, }) @@ -1230,15 +1305,18 @@ func TestPGStatMonitorQanAgent(t *testing.T) { serviceID := service.Postgresql.ServiceID defer pmmapitests.RemoveServices(t, serviceID) - res, err := client.Default.AgentsService.AddQANPostgreSQLPgStatMonitorAgent(&agents.AddQANPostgreSQLPgStatMonitorAgentParams{ - Body: agents.AddQANPostgreSQLPgStatMonitorAgentBody{ - ServiceID: serviceID, - PMMAgentID: "pmm-not-exist-server", - Username: "username", - Password: "password", - }, - Context: pmmapitests.Context, - }) + res, err := client.Default.AgentsService.AddAgent( + &agents.AddAgentParams{ + Body: agents.AddAgentBody{ + QANPostgresqlPgstatmonitorAgent: &agents.AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent{ + ServiceID: serviceID, + PMMAgentID: "pmm-not-exist-server", + Username: "username", + Password: "password", + }, + }, + Context: pmmapitests.Context, + }) pmmapitests.AssertAPIErrorf(t, err, 404, codes.NotFound, "Agent with ID \"pmm-not-exist-server\" not found.") if !assert.Nil(t, res) { pmmapitests.RemoveAgents(t, res.Payload.QANPostgresqlPgstatmonitorAgent.AgentID) diff --git a/api-tests/inventory/helpers.go b/api-tests/inventory/helpers.go index 6e0376165a..d1ce1abb78 100644 --- a/api-tests/inventory/helpers.go +++ b/api-tests/inventory/helpers.go @@ -47,19 +47,6 @@ func addRemoteRDSNode(t pmmapitests.TestingT, nodeName string) *nodes.AddNodeOKB return res.Payload } -func addRDSExporter(t pmmapitests.TestingT, body agents.AddRDSExporterBody) *agents.AddRDSExporterOKBody { - t.Helper() - - res, err := client.Default.AgentsService.AddRDSExporter(&agents.AddRDSExporterParams{ - Body: body, - Context: pmmapitests.Context, - }) - assert.NoError(t, err) - require.NotNil(t, res) - - return res.Payload -} - func addRemoteAzureDatabaseNode(t pmmapitests.TestingT, nodeName string) *nodes.AddNodeOKBody { t.Helper() @@ -80,19 +67,6 @@ func addRemoteAzureDatabaseNode(t pmmapitests.TestingT, nodeName string) *nodes. return res.Payload } -func addAzureDatabaseExporter(t pmmapitests.TestingT, body agents.AddAzureDatabaseExporterBody) *agents.AddAzureDatabaseExporterOKBody { - t.Helper() - - res, err := client.Default.AgentsService.AddAzureDatabaseExporter(&agents.AddAzureDatabaseExporterParams{ - Body: body, - Context: pmmapitests.Context, - }) - assert.NoError(t, err) - require.NotNil(t, res) - - return res.Payload -} - func addService(t pmmapitests.TestingT, body services.AddServiceBody) *services.AddServiceOKBody { t.Helper() @@ -107,11 +81,13 @@ func addService(t pmmapitests.TestingT, body services.AddServiceBody) *services. return res.Payload } -func addNodeExporter(t pmmapitests.TestingT, pmmAgentID string, customLabels map[string]string) *agents.AddNodeExporterOK { - res, err := client.Default.AgentsService.AddNodeExporter(&agents.AddNodeExporterParams{ - Body: agents.AddNodeExporterBody{ - PMMAgentID: pmmAgentID, - CustomLabels: customLabels, +func addNodeExporter(t pmmapitests.TestingT, pmmAgentID string, customLabels map[string]string) *agents.AddAgentOK { + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ + Body: agents.AddAgentBody{ + NodeExporter: &agents.AddAgentParamsBodyNodeExporter{ + PMMAgentID: pmmAgentID, + CustomLabels: customLabels, + }, }, Context: pmmapitests.Context, }) @@ -122,58 +98,10 @@ func addNodeExporter(t pmmapitests.TestingT, pmmAgentID string, customLabels map return res } -func addMySQLdExporter(t pmmapitests.TestingT, body agents.AddMySQLdExporterBody) *agents.AddMySQLdExporterOKBody { - t.Helper() - - res, err := client.Default.AgentsService.AddMySQLdExporter(&agents.AddMySQLdExporterParams{ - Body: body, - Context: pmmapitests.Context, - }) - assert.NoError(t, err) - require.NotNil(t, res) - return res.Payload -} - -func addMongoDBExporter(t pmmapitests.TestingT, body agents.AddMongoDBExporterBody) *agents.AddMongoDBExporterOKBody { - t.Helper() - - res, err := client.Default.AgentsService.AddMongoDBExporter(&agents.AddMongoDBExporterParams{ - Body: body, - Context: pmmapitests.Context, - }) - assert.NoError(t, err) - require.NotNil(t, res) - return res.Payload -} - -func addPostgresExporter(t pmmapitests.TestingT, body agents.AddPostgresExporterBody) *agents.AddPostgresExporterOKBody { - t.Helper() - - res, err := client.Default.AgentsService.AddPostgresExporter(&agents.AddPostgresExporterParams{ - Body: body, - Context: pmmapitests.Context, - }) - assert.NoError(t, err) - require.NotNil(t, res) - return res.Payload -} - -func addProxySQLExporter(t pmmapitests.TestingT, body agents.AddProxySQLExporterBody) *agents.AddProxySQLExporterOKBody { - t.Helper() - - res, err := client.Default.AgentsService.AddProxySQLExporter(&agents.AddProxySQLExporterParams{ - Body: body, - Context: pmmapitests.Context, - }) - assert.NoError(t, err) - require.NotNil(t, res) - return res.Payload -} - -func addExternalExporter(t pmmapitests.TestingT, body agents.AddExternalExporterBody) *agents.AddExternalExporterOKBody { +func addAgent(t pmmapitests.TestingT, body agents.AddAgentBody) *agents.AddAgentOKBody { t.Helper() - res, err := client.Default.AgentsService.AddExternalExporter(&agents.AddExternalExporterParams{ + res, err := client.Default.AgentsService.AddAgent(&agents.AddAgentParams{ Body: body, Context: pmmapitests.Context, }) diff --git a/api-tests/inventory/services_test.go b/api-tests/inventory/services_test.go index c21882b82c..e4513cde60 100644 --- a/api-tests/inventory/services_test.go +++ b/api-tests/inventory/services_test.go @@ -264,13 +264,15 @@ func TestRemoveService(t *testing.T) { pmmAgentID := pmmAgent.PMMAgent.AgentID defer pmmapitests.RemoveAgents(t, pmmAgentID) - _ = addMySQLdExporter(t, agents.AddMySQLdExporterBody{ - ServiceID: serviceID, - Username: "username", - Password: "password", - PMMAgentID: pmmAgentID, + _ = addAgent(t, agents.AddAgentBody{ + MysqldExporter: &agents.AddAgentParamsBodyMysqldExporter{ + ServiceID: serviceID, + Username: "username", + Password: "password", + PMMAgentID: pmmAgentID, - SkipConnectionCheck: true, + SkipConnectionCheck: true, + }, }) params := &services.RemoveServiceParams{ diff --git a/api/inventory/v1/agents.pb.go b/api/inventory/v1/agents.pb.go index b050617ba3..80795f1c2e 100644 --- a/api/inventory/v1/agents.pb.go +++ b/api/inventory/v1/agents.pb.go @@ -3282,7 +3282,7 @@ func (x *GetAgentLogsResponse) GetAgentConfigLogLinesCount() uint32 { return 0 } -type AddPMMAgentRequest struct { +type AddPMMAgentParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -3293,8 +3293,8 @@ type AddPMMAgentRequest struct { CustomLabels map[string]string `protobuf:"bytes,2,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (x *AddPMMAgentRequest) Reset() { - *x = AddPMMAgentRequest{} +func (x *AddPMMAgentParams) Reset() { + *x = AddPMMAgentParams{} if protoimpl.UnsafeEnabled { mi := &file_inventory_v1_agents_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3302,13 +3302,13 @@ func (x *AddPMMAgentRequest) Reset() { } } -func (x *AddPMMAgentRequest) String() string { +func (x *AddPMMAgentParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddPMMAgentRequest) ProtoMessage() {} +func (*AddPMMAgentParams) ProtoMessage() {} -func (x *AddPMMAgentRequest) ProtoReflect() protoreflect.Message { +func (x *AddPMMAgentParams) ProtoReflect() protoreflect.Message { mi := &file_inventory_v1_agents_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3320,35 +3320,51 @@ func (x *AddPMMAgentRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddPMMAgentRequest.ProtoReflect.Descriptor instead. -func (*AddPMMAgentRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use AddPMMAgentParams.ProtoReflect.Descriptor instead. +func (*AddPMMAgentParams) Descriptor() ([]byte, []int) { return file_inventory_v1_agents_proto_rawDescGZIP(), []int{22} } -func (x *AddPMMAgentRequest) GetRunsOnNodeId() string { +func (x *AddPMMAgentParams) GetRunsOnNodeId() string { if x != nil { return x.RunsOnNodeId } return "" } -func (x *AddPMMAgentRequest) GetCustomLabels() map[string]string { +func (x *AddPMMAgentParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -type AddPMMAgentResponse struct { +type AddAgentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PmmAgent *PMMAgent `protobuf:"bytes,1,opt,name=pmm_agent,json=pmmAgent,proto3" json:"pmm_agent,omitempty"` -} - -func (x *AddPMMAgentResponse) Reset() { - *x = AddPMMAgentResponse{} + // Types that are assignable to Exporter: + // + // *AddAgentRequest_PmmAgent + // *AddAgentRequest_NodeExporter + // *AddAgentRequest_MysqldExporter + // *AddAgentRequest_MongodbExporter + // *AddAgentRequest_PostgresExporter + // *AddAgentRequest_ProxysqlExporter + // *AddAgentRequest_ExternalExporter + // *AddAgentRequest_RdsExporter + // *AddAgentRequest_AzureDatabaseExporter + // *AddAgentRequest_QanMysqlPerfschemaAgent + // *AddAgentRequest_QanMysqlSlowlogAgent + // *AddAgentRequest_QanMongodbProfilerAgent + // *AddAgentRequest_QanPostgresqlPgstatementsAgent + // *AddAgentRequest_QanPostgresqlPgstatmonitorAgent + Exporter isAddAgentRequest_Exporter `protobuf_oneof:"exporter"` +} + +func (x *AddAgentRequest) Reset() { + *x = AddAgentRequest{} if protoimpl.UnsafeEnabled { mi := &file_inventory_v1_agents_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3356,13 +3372,13 @@ func (x *AddPMMAgentResponse) Reset() { } } -func (x *AddPMMAgentResponse) String() string { +func (x *AddAgentRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddPMMAgentResponse) ProtoMessage() {} +func (*AddAgentRequest) ProtoMessage() {} -func (x *AddPMMAgentResponse) ProtoReflect() protoreflect.Message { +func (x *AddAgentRequest) ProtoReflect() protoreflect.Message { mi := &file_inventory_v1_agents_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3374,238 +3390,247 @@ func (x *AddPMMAgentResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddPMMAgentResponse.ProtoReflect.Descriptor instead. -func (*AddPMMAgentResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use AddAgentRequest.ProtoReflect.Descriptor instead. +func (*AddAgentRequest) Descriptor() ([]byte, []int) { return file_inventory_v1_agents_proto_rawDescGZIP(), []int{23} } -func (x *AddPMMAgentResponse) GetPmmAgent() *PMMAgent { - if x != nil { - return x.PmmAgent +func (m *AddAgentRequest) GetExporter() isAddAgentRequest_Exporter { + if m != nil { + return m.Exporter } return nil } -type AddNodeExporterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The pmm-agent identifier which runs this instance. - PmmAgentId string `protobuf:"bytes,1,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` - // Custom user-assigned labels. - CustomLabels map[string]string `protobuf:"bytes,2,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Enables push metrics mode for exporter. - PushMetrics bool `protobuf:"varint,3,opt,name=push_metrics,json=pushMetrics,proto3" json:"push_metrics,omitempty"` - // List of collector names to disable in this exporter. - DisableCollectors []string `protobuf:"bytes,4,rep,name=disable_collectors,json=disableCollectors,proto3" json:"disable_collectors,omitempty"` - // Log level for exporter. - LogLevel LogLevel `protobuf:"varint,5,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` - // Expose the node_exporter process on all public interfaces - ExposeExporter bool `protobuf:"varint,6,opt,name=expose_exporter,json=exposeExporter,proto3" json:"expose_exporter,omitempty"` +func (x *AddAgentRequest) GetPmmAgent() *AddPMMAgentParams { + if x, ok := x.GetExporter().(*AddAgentRequest_PmmAgent); ok { + return x.PmmAgent + } + return nil } -func (x *AddNodeExporterRequest) Reset() { - *x = AddNodeExporterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *AddAgentRequest) GetNodeExporter() *AddNodeExporterParams { + if x, ok := x.GetExporter().(*AddAgentRequest_NodeExporter); ok { + return x.NodeExporter } + return nil } -func (x *AddNodeExporterRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *AddAgentRequest) GetMysqldExporter() *AddMySQLdExporterParams { + if x, ok := x.GetExporter().(*AddAgentRequest_MysqldExporter); ok { + return x.MysqldExporter + } + return nil } -func (*AddNodeExporterRequest) ProtoMessage() {} - -func (x *AddNodeExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *AddAgentRequest) GetMongodbExporter() *AddMongoDBExporterParams { + if x, ok := x.GetExporter().(*AddAgentRequest_MongodbExporter); ok { + return x.MongodbExporter } - return mi.MessageOf(x) + return nil } -// Deprecated: Use AddNodeExporterRequest.ProtoReflect.Descriptor instead. -func (*AddNodeExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{24} +func (x *AddAgentRequest) GetPostgresExporter() *AddPostgresExporterParams { + if x, ok := x.GetExporter().(*AddAgentRequest_PostgresExporter); ok { + return x.PostgresExporter + } + return nil } -func (x *AddNodeExporterRequest) GetPmmAgentId() string { - if x != nil { - return x.PmmAgentId +func (x *AddAgentRequest) GetProxysqlExporter() *AddProxySQLExporterParams { + if x, ok := x.GetExporter().(*AddAgentRequest_ProxysqlExporter); ok { + return x.ProxysqlExporter } - return "" + return nil } -func (x *AddNodeExporterRequest) GetCustomLabels() map[string]string { - if x != nil { - return x.CustomLabels +func (x *AddAgentRequest) GetExternalExporter() *AddExternalExporterParams { + if x, ok := x.GetExporter().(*AddAgentRequest_ExternalExporter); ok { + return x.ExternalExporter } return nil } -func (x *AddNodeExporterRequest) GetPushMetrics() bool { - if x != nil { - return x.PushMetrics +func (x *AddAgentRequest) GetRdsExporter() *AddRDSExporterParams { + if x, ok := x.GetExporter().(*AddAgentRequest_RdsExporter); ok { + return x.RdsExporter } - return false + return nil } -func (x *AddNodeExporterRequest) GetDisableCollectors() []string { - if x != nil { - return x.DisableCollectors +func (x *AddAgentRequest) GetAzureDatabaseExporter() *AddAzureDatabaseExporterParams { + if x, ok := x.GetExporter().(*AddAgentRequest_AzureDatabaseExporter); ok { + return x.AzureDatabaseExporter } return nil } -func (x *AddNodeExporterRequest) GetLogLevel() LogLevel { - if x != nil { - return x.LogLevel +func (x *AddAgentRequest) GetQanMysqlPerfschemaAgent() *AddQANMySQLPerfSchemaAgentParams { + if x, ok := x.GetExporter().(*AddAgentRequest_QanMysqlPerfschemaAgent); ok { + return x.QanMysqlPerfschemaAgent } - return LogLevel_LOG_LEVEL_UNSPECIFIED + return nil } -func (x *AddNodeExporterRequest) GetExposeExporter() bool { - if x != nil { - return x.ExposeExporter +func (x *AddAgentRequest) GetQanMysqlSlowlogAgent() *AddQANMySQLSlowlogAgentParams { + if x, ok := x.GetExporter().(*AddAgentRequest_QanMysqlSlowlogAgent); ok { + return x.QanMysqlSlowlogAgent } - return false + return nil } -type AddNodeExporterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *AddAgentRequest) GetQanMongodbProfilerAgent() *AddQANMongoDBProfilerAgentParams { + if x, ok := x.GetExporter().(*AddAgentRequest_QanMongodbProfilerAgent); ok { + return x.QanMongodbProfilerAgent + } + return nil +} - NodeExporter *NodeExporter `protobuf:"bytes,1,opt,name=node_exporter,json=nodeExporter,proto3" json:"node_exporter,omitempty"` +func (x *AddAgentRequest) GetQanPostgresqlPgstatementsAgent() *AddQANPostgreSQLPgStatementsAgentParams { + if x, ok := x.GetExporter().(*AddAgentRequest_QanPostgresqlPgstatementsAgent); ok { + return x.QanPostgresqlPgstatementsAgent + } + return nil } -func (x *AddNodeExporterResponse) Reset() { - *x = AddNodeExporterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *AddAgentRequest) GetQanPostgresqlPgstatmonitorAgent() *AddQANPostgreSQLPgStatMonitorAgentParams { + if x, ok := x.GetExporter().(*AddAgentRequest_QanPostgresqlPgstatmonitorAgent); ok { + return x.QanPostgresqlPgstatmonitorAgent } + return nil } -func (x *AddNodeExporterResponse) String() string { - return protoimpl.X.MessageStringOf(x) +type isAddAgentRequest_Exporter interface { + isAddAgentRequest_Exporter() } -func (*AddNodeExporterResponse) ProtoMessage() {} +type AddAgentRequest_PmmAgent struct { + PmmAgent *AddPMMAgentParams `protobuf:"bytes,1,opt,name=pmm_agent,json=pmmAgent,proto3,oneof"` +} -func (x *AddNodeExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type AddAgentRequest_NodeExporter struct { + NodeExporter *AddNodeExporterParams `protobuf:"bytes,2,opt,name=node_exporter,json=nodeExporter,proto3,oneof"` } -// Deprecated: Use AddNodeExporterResponse.ProtoReflect.Descriptor instead. -func (*AddNodeExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{25} +type AddAgentRequest_MysqldExporter struct { + MysqldExporter *AddMySQLdExporterParams `protobuf:"bytes,3,opt,name=mysqld_exporter,json=mysqldExporter,proto3,oneof"` } -func (x *AddNodeExporterResponse) GetNodeExporter() *NodeExporter { - if x != nil { - return x.NodeExporter - } - return nil +type AddAgentRequest_MongodbExporter struct { + MongodbExporter *AddMongoDBExporterParams `protobuf:"bytes,4,opt,name=mongodb_exporter,json=mongodbExporter,proto3,oneof"` } -type ChangeNodeExporterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +type AddAgentRequest_PostgresExporter struct { + PostgresExporter *AddPostgresExporterParams `protobuf:"bytes,5,opt,name=postgres_exporter,json=postgresExporter,proto3,oneof"` +} - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` +type AddAgentRequest_ProxysqlExporter struct { + ProxysqlExporter *AddProxySQLExporterParams `protobuf:"bytes,6,opt,name=proxysql_exporter,json=proxysqlExporter,proto3,oneof"` } -func (x *ChangeNodeExporterRequest) Reset() { - *x = ChangeNodeExporterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +type AddAgentRequest_ExternalExporter struct { + ExternalExporter *AddExternalExporterParams `protobuf:"bytes,7,opt,name=external_exporter,json=externalExporter,proto3,oneof"` } -func (x *ChangeNodeExporterRequest) String() string { - return protoimpl.X.MessageStringOf(x) +type AddAgentRequest_RdsExporter struct { + RdsExporter *AddRDSExporterParams `protobuf:"bytes,8,opt,name=rds_exporter,json=rdsExporter,proto3,oneof"` } -func (*ChangeNodeExporterRequest) ProtoMessage() {} +type AddAgentRequest_AzureDatabaseExporter struct { + AzureDatabaseExporter *AddAzureDatabaseExporterParams `protobuf:"bytes,9,opt,name=azure_database_exporter,json=azureDatabaseExporter,proto3,oneof"` +} -func (x *ChangeNodeExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type AddAgentRequest_QanMysqlPerfschemaAgent struct { + QanMysqlPerfschemaAgent *AddQANMySQLPerfSchemaAgentParams `protobuf:"bytes,10,opt,name=qan_mysql_perfschema_agent,json=qanMysqlPerfschemaAgent,proto3,oneof"` } -// Deprecated: Use ChangeNodeExporterRequest.ProtoReflect.Descriptor instead. -func (*ChangeNodeExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{26} +type AddAgentRequest_QanMysqlSlowlogAgent struct { + QanMysqlSlowlogAgent *AddQANMySQLSlowlogAgentParams `protobuf:"bytes,11,opt,name=qan_mysql_slowlog_agent,json=qanMysqlSlowlogAgent,proto3,oneof"` } -func (x *ChangeNodeExporterRequest) GetAgentId() string { - if x != nil { - return x.AgentId - } - return "" +type AddAgentRequest_QanMongodbProfilerAgent struct { + QanMongodbProfilerAgent *AddQANMongoDBProfilerAgentParams `protobuf:"bytes,12,opt,name=qan_mongodb_profiler_agent,json=qanMongodbProfilerAgent,proto3,oneof"` } -func (x *ChangeNodeExporterRequest) GetCommon() *ChangeCommonAgentParams { - if x != nil { - return x.Common - } - return nil +type AddAgentRequest_QanPostgresqlPgstatementsAgent struct { + QanPostgresqlPgstatementsAgent *AddQANPostgreSQLPgStatementsAgentParams `protobuf:"bytes,13,opt,name=qan_postgresql_pgstatements_agent,json=qanPostgresqlPgstatementsAgent,proto3,oneof"` } -type ChangeNodeExporterResponse struct { +type AddAgentRequest_QanPostgresqlPgstatmonitorAgent struct { + QanPostgresqlPgstatmonitorAgent *AddQANPostgreSQLPgStatMonitorAgentParams `protobuf:"bytes,14,opt,name=qan_postgresql_pgstatmonitor_agent,json=qanPostgresqlPgstatmonitorAgent,proto3,oneof"` +} + +func (*AddAgentRequest_PmmAgent) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_NodeExporter) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_MysqldExporter) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_MongodbExporter) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_PostgresExporter) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_ProxysqlExporter) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_ExternalExporter) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_RdsExporter) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_AzureDatabaseExporter) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_QanMysqlPerfschemaAgent) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_QanMysqlSlowlogAgent) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_QanMongodbProfilerAgent) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_QanPostgresqlPgstatementsAgent) isAddAgentRequest_Exporter() {} + +func (*AddAgentRequest_QanPostgresqlPgstatmonitorAgent) isAddAgentRequest_Exporter() {} + +type AddAgentResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - NodeExporter *NodeExporter `protobuf:"bytes,1,opt,name=node_exporter,json=nodeExporter,proto3" json:"node_exporter,omitempty"` -} - -func (x *ChangeNodeExporterResponse) Reset() { - *x = ChangeNodeExporterResponse{} + // Types that are assignable to Exporter: + // + // *AddAgentResponse_PmmAgent + // *AddAgentResponse_NodeExporter + // *AddAgentResponse_MysqldExporter + // *AddAgentResponse_MongodbExporter + // *AddAgentResponse_PostgresExporter + // *AddAgentResponse_ProxysqlExporter + // *AddAgentResponse_ExternalExporter + // *AddAgentResponse_RdsExporter + // *AddAgentResponse_AzureDatabaseExporter + // *AddAgentResponse_QanMysqlPerfschemaAgent + // *AddAgentResponse_QanMysqlSlowlogAgent + // *AddAgentResponse_QanMongodbProfilerAgent + // *AddAgentResponse_QanPostgresqlPgstatementsAgent + // *AddAgentResponse_QanPostgresqlPgstatmonitorAgent + Exporter isAddAgentResponse_Exporter `protobuf_oneof:"exporter"` + // Actual table count for SQL databases at the moment of adding. + TableCount int32 `protobuf:"varint,15,opt,name=table_count,json=tableCount,proto3" json:"table_count,omitempty"` +} + +func (x *AddAgentResponse) Reset() { + *x = AddAgentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[27] + mi := &file_inventory_v1_agents_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ChangeNodeExporterResponse) String() string { +func (x *AddAgentResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeNodeExporterResponse) ProtoMessage() {} +func (*AddAgentResponse) ProtoMessage() {} -func (x *ChangeNodeExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[27] +func (x *AddAgentResponse) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3616,239 +3641,247 @@ func (x *ChangeNodeExporterResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeNodeExporterResponse.ProtoReflect.Descriptor instead. -func (*ChangeNodeExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{27} +// Deprecated: Use AddAgentResponse.ProtoReflect.Descriptor instead. +func (*AddAgentResponse) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{24} } -func (x *ChangeNodeExporterResponse) GetNodeExporter() *NodeExporter { - if x != nil { - return x.NodeExporter +func (m *AddAgentResponse) GetExporter() isAddAgentResponse_Exporter { + if m != nil { + return m.Exporter } return nil } -type AddMySQLdExporterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The pmm-agent identifier which runs this instance. - PmmAgentId string `protobuf:"bytes,1,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` - // Service identifier. - ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - // MySQL username for scraping metrics. - Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` - // MySQL password for scraping metrics. - Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` - // Use TLS for database connections. - Tls bool `protobuf:"varint,5,opt,name=tls,proto3" json:"tls,omitempty"` - // Skip TLS certificate and hostname validation. - TlsSkipVerify bool `protobuf:"varint,6,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"` - // Certificate Authority certificate chain. - TlsCa string `protobuf:"bytes,12,opt,name=tls_ca,json=tlsCa,proto3" json:"tls_ca,omitempty"` - // Client certificate. - TlsCert string `protobuf:"bytes,13,opt,name=tls_cert,json=tlsCert,proto3" json:"tls_cert,omitempty"` - // Password for decrypting tls_cert. - TlsKey string `protobuf:"bytes,14,opt,name=tls_key,json=tlsKey,proto3" json:"tls_key,omitempty"` - // Tablestats group collectors will be disabled if there are more than that number of tables. - // 0 means tablestats group collectors are always enabled (no limit). - // Negative value means tablestats group collectors are always disabled. - TablestatsGroupTableLimit int32 `protobuf:"varint,9,opt,name=tablestats_group_table_limit,json=tablestatsGroupTableLimit,proto3" json:"tablestats_group_table_limit,omitempty"` - // Custom user-assigned labels. - CustomLabels map[string]string `protobuf:"bytes,7,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Skip connection check. - SkipConnectionCheck bool `protobuf:"varint,8,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"` - // Enables push metrics mode for exporter. - PushMetrics bool `protobuf:"varint,10,opt,name=push_metrics,json=pushMetrics,proto3" json:"push_metrics,omitempty"` - // List of collector names to disable in this exporter. - DisableCollectors []string `protobuf:"bytes,11,rep,name=disable_collectors,json=disableCollectors,proto3" json:"disable_collectors,omitempty"` - // Custom password for exporter endpoint /metrics. - AgentPassword string `protobuf:"bytes,15,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` - // Log level for exporter. - LogLevel LogLevel `protobuf:"varint,16,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` - // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `protobuf:"varint,17,opt,name=expose_exporter,json=exposeExporter,proto3" json:"expose_exporter,omitempty"` +func (x *AddAgentResponse) GetPmmAgent() *PMMAgent { + if x, ok := x.GetExporter().(*AddAgentResponse_PmmAgent); ok { + return x.PmmAgent + } + return nil } -func (x *AddMySQLdExporterRequest) Reset() { - *x = AddMySQLdExporterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *AddAgentResponse) GetNodeExporter() *NodeExporter { + if x, ok := x.GetExporter().(*AddAgentResponse_NodeExporter); ok { + return x.NodeExporter } + return nil } -func (x *AddMySQLdExporterRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *AddAgentResponse) GetMysqldExporter() *MySQLdExporter { + if x, ok := x.GetExporter().(*AddAgentResponse_MysqldExporter); ok { + return x.MysqldExporter + } + return nil } -func (*AddMySQLdExporterRequest) ProtoMessage() {} - -func (x *AddMySQLdExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *AddAgentResponse) GetMongodbExporter() *MongoDBExporter { + if x, ok := x.GetExporter().(*AddAgentResponse_MongodbExporter); ok { + return x.MongodbExporter } - return mi.MessageOf(x) + return nil } -// Deprecated: Use AddMySQLdExporterRequest.ProtoReflect.Descriptor instead. -func (*AddMySQLdExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{28} +func (x *AddAgentResponse) GetPostgresExporter() *PostgresExporter { + if x, ok := x.GetExporter().(*AddAgentResponse_PostgresExporter); ok { + return x.PostgresExporter + } + return nil } -func (x *AddMySQLdExporterRequest) GetPmmAgentId() string { - if x != nil { - return x.PmmAgentId +func (x *AddAgentResponse) GetProxysqlExporter() *ProxySQLExporter { + if x, ok := x.GetExporter().(*AddAgentResponse_ProxysqlExporter); ok { + return x.ProxysqlExporter } - return "" + return nil } -func (x *AddMySQLdExporterRequest) GetServiceId() string { - if x != nil { - return x.ServiceId +func (x *AddAgentResponse) GetExternalExporter() *ExternalExporter { + if x, ok := x.GetExporter().(*AddAgentResponse_ExternalExporter); ok { + return x.ExternalExporter } - return "" + return nil } -func (x *AddMySQLdExporterRequest) GetUsername() string { - if x != nil { - return x.Username +func (x *AddAgentResponse) GetRdsExporter() *RDSExporter { + if x, ok := x.GetExporter().(*AddAgentResponse_RdsExporter); ok { + return x.RdsExporter } - return "" + return nil } -func (x *AddMySQLdExporterRequest) GetPassword() string { - if x != nil { - return x.Password +func (x *AddAgentResponse) GetAzureDatabaseExporter() *AzureDatabaseExporter { + if x, ok := x.GetExporter().(*AddAgentResponse_AzureDatabaseExporter); ok { + return x.AzureDatabaseExporter } - return "" + return nil } -func (x *AddMySQLdExporterRequest) GetTls() bool { - if x != nil { - return x.Tls +func (x *AddAgentResponse) GetQanMysqlPerfschemaAgent() *QANMySQLPerfSchemaAgent { + if x, ok := x.GetExporter().(*AddAgentResponse_QanMysqlPerfschemaAgent); ok { + return x.QanMysqlPerfschemaAgent } - return false + return nil } -func (x *AddMySQLdExporterRequest) GetTlsSkipVerify() bool { - if x != nil { - return x.TlsSkipVerify +func (x *AddAgentResponse) GetQanMysqlSlowlogAgent() *QANMySQLSlowlogAgent { + if x, ok := x.GetExporter().(*AddAgentResponse_QanMysqlSlowlogAgent); ok { + return x.QanMysqlSlowlogAgent } - return false + return nil } -func (x *AddMySQLdExporterRequest) GetTlsCa() string { - if x != nil { - return x.TlsCa +func (x *AddAgentResponse) GetQanMongodbProfilerAgent() *QANMongoDBProfilerAgent { + if x, ok := x.GetExporter().(*AddAgentResponse_QanMongodbProfilerAgent); ok { + return x.QanMongodbProfilerAgent } - return "" + return nil } -func (x *AddMySQLdExporterRequest) GetTlsCert() string { - if x != nil { - return x.TlsCert +func (x *AddAgentResponse) GetQanPostgresqlPgstatementsAgent() *QANPostgreSQLPgStatementsAgent { + if x, ok := x.GetExporter().(*AddAgentResponse_QanPostgresqlPgstatementsAgent); ok { + return x.QanPostgresqlPgstatementsAgent } - return "" + return nil } -func (x *AddMySQLdExporterRequest) GetTlsKey() string { - if x != nil { - return x.TlsKey +func (x *AddAgentResponse) GetQanPostgresqlPgstatmonitorAgent() *QANPostgreSQLPgStatMonitorAgent { + if x, ok := x.GetExporter().(*AddAgentResponse_QanPostgresqlPgstatmonitorAgent); ok { + return x.QanPostgresqlPgstatmonitorAgent } - return "" + return nil } -func (x *AddMySQLdExporterRequest) GetTablestatsGroupTableLimit() int32 { +func (x *AddAgentResponse) GetTableCount() int32 { if x != nil { - return x.TablestatsGroupTableLimit + return x.TableCount } return 0 } -func (x *AddMySQLdExporterRequest) GetCustomLabels() map[string]string { - if x != nil { - return x.CustomLabels - } - return nil +type isAddAgentResponse_Exporter interface { + isAddAgentResponse_Exporter() } -func (x *AddMySQLdExporterRequest) GetSkipConnectionCheck() bool { - if x != nil { - return x.SkipConnectionCheck - } - return false +type AddAgentResponse_PmmAgent struct { + PmmAgent *PMMAgent `protobuf:"bytes,1,opt,name=pmm_agent,json=pmmAgent,proto3,oneof"` } -func (x *AddMySQLdExporterRequest) GetPushMetrics() bool { - if x != nil { - return x.PushMetrics - } - return false +type AddAgentResponse_NodeExporter struct { + NodeExporter *NodeExporter `protobuf:"bytes,2,opt,name=node_exporter,json=nodeExporter,proto3,oneof"` } -func (x *AddMySQLdExporterRequest) GetDisableCollectors() []string { - if x != nil { - return x.DisableCollectors - } - return nil +type AddAgentResponse_MysqldExporter struct { + MysqldExporter *MySQLdExporter `protobuf:"bytes,3,opt,name=mysqld_exporter,json=mysqldExporter,proto3,oneof"` } -func (x *AddMySQLdExporterRequest) GetAgentPassword() string { - if x != nil { - return x.AgentPassword - } - return "" +type AddAgentResponse_MongodbExporter struct { + MongodbExporter *MongoDBExporter `protobuf:"bytes,4,opt,name=mongodb_exporter,json=mongodbExporter,proto3,oneof"` } -func (x *AddMySQLdExporterRequest) GetLogLevel() LogLevel { - if x != nil { - return x.LogLevel - } - return LogLevel_LOG_LEVEL_UNSPECIFIED +type AddAgentResponse_PostgresExporter struct { + PostgresExporter *PostgresExporter `protobuf:"bytes,5,opt,name=postgres_exporter,json=postgresExporter,proto3,oneof"` } -func (x *AddMySQLdExporterRequest) GetExposeExporter() bool { - if x != nil { - return x.ExposeExporter - } - return false +type AddAgentResponse_ProxysqlExporter struct { + ProxysqlExporter *ProxySQLExporter `protobuf:"bytes,6,opt,name=proxysql_exporter,json=proxysqlExporter,proto3,oneof"` +} + +type AddAgentResponse_ExternalExporter struct { + ExternalExporter *ExternalExporter `protobuf:"bytes,7,opt,name=external_exporter,json=externalExporter,proto3,oneof"` +} + +type AddAgentResponse_RdsExporter struct { + RdsExporter *RDSExporter `protobuf:"bytes,8,opt,name=rds_exporter,json=rdsExporter,proto3,oneof"` +} + +type AddAgentResponse_AzureDatabaseExporter struct { + AzureDatabaseExporter *AzureDatabaseExporter `protobuf:"bytes,9,opt,name=azure_database_exporter,json=azureDatabaseExporter,proto3,oneof"` +} + +type AddAgentResponse_QanMysqlPerfschemaAgent struct { + QanMysqlPerfschemaAgent *QANMySQLPerfSchemaAgent `protobuf:"bytes,10,opt,name=qan_mysql_perfschema_agent,json=qanMysqlPerfschemaAgent,proto3,oneof"` +} + +type AddAgentResponse_QanMysqlSlowlogAgent struct { + QanMysqlSlowlogAgent *QANMySQLSlowlogAgent `protobuf:"bytes,11,opt,name=qan_mysql_slowlog_agent,json=qanMysqlSlowlogAgent,proto3,oneof"` +} + +type AddAgentResponse_QanMongodbProfilerAgent struct { + QanMongodbProfilerAgent *QANMongoDBProfilerAgent `protobuf:"bytes,12,opt,name=qan_mongodb_profiler_agent,json=qanMongodbProfilerAgent,proto3,oneof"` +} + +type AddAgentResponse_QanPostgresqlPgstatementsAgent struct { + QanPostgresqlPgstatementsAgent *QANPostgreSQLPgStatementsAgent `protobuf:"bytes,13,opt,name=qan_postgresql_pgstatements_agent,json=qanPostgresqlPgstatementsAgent,proto3,oneof"` +} + +type AddAgentResponse_QanPostgresqlPgstatmonitorAgent struct { + QanPostgresqlPgstatmonitorAgent *QANPostgreSQLPgStatMonitorAgent `protobuf:"bytes,14,opt,name=qan_postgresql_pgstatmonitor_agent,json=qanPostgresqlPgstatmonitorAgent,proto3,oneof"` } -type AddMySQLdExporterResponse struct { +func (*AddAgentResponse_PmmAgent) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_NodeExporter) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_MysqldExporter) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_MongodbExporter) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_PostgresExporter) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_ProxysqlExporter) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_ExternalExporter) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_RdsExporter) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_AzureDatabaseExporter) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_QanMysqlPerfschemaAgent) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_QanMysqlSlowlogAgent) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_QanMongodbProfilerAgent) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_QanPostgresqlPgstatementsAgent) isAddAgentResponse_Exporter() {} + +func (*AddAgentResponse_QanPostgresqlPgstatmonitorAgent) isAddAgentResponse_Exporter() {} + +type AddNodeExporterParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MysqldExporter *MySQLdExporter `protobuf:"bytes,1,opt,name=mysqld_exporter,json=mysqldExporter,proto3" json:"mysqld_exporter,omitempty"` - // Actual table count at the moment of adding. - TableCount int32 `protobuf:"varint,2,opt,name=table_count,json=tableCount,proto3" json:"table_count,omitempty"` + // The pmm-agent identifier which runs this instance. + PmmAgentId string `protobuf:"bytes,1,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` + // Custom user-assigned labels. + CustomLabels map[string]string `protobuf:"bytes,2,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Enables push metrics mode for exporter. + PushMetrics bool `protobuf:"varint,3,opt,name=push_metrics,json=pushMetrics,proto3" json:"push_metrics,omitempty"` + // List of collector names to disable in this exporter. + DisableCollectors []string `protobuf:"bytes,4,rep,name=disable_collectors,json=disableCollectors,proto3" json:"disable_collectors,omitempty"` + // Log level for exporter. + LogLevel LogLevel `protobuf:"varint,5,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` + // Expose the node_exporter process on all public interfaces + ExposeExporter bool `protobuf:"varint,6,opt,name=expose_exporter,json=exposeExporter,proto3" json:"expose_exporter,omitempty"` } -func (x *AddMySQLdExporterResponse) Reset() { - *x = AddMySQLdExporterResponse{} +func (x *AddNodeExporterParams) Reset() { + *x = AddNodeExporterParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[29] + mi := &file_inventory_v1_agents_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddMySQLdExporterResponse) String() string { +func (x *AddNodeExporterParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddMySQLdExporterResponse) ProtoMessage() {} +func (*AddNodeExporterParams) ProtoMessage() {} -func (x *AddMySQLdExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[29] +func (x *AddNodeExporterParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3859,26 +3892,54 @@ func (x *AddMySQLdExporterResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddMySQLdExporterResponse.ProtoReflect.Descriptor instead. -func (*AddMySQLdExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{29} +// Deprecated: Use AddNodeExporterParams.ProtoReflect.Descriptor instead. +func (*AddNodeExporterParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{25} } -func (x *AddMySQLdExporterResponse) GetMysqldExporter() *MySQLdExporter { +func (x *AddNodeExporterParams) GetPmmAgentId() string { if x != nil { - return x.MysqldExporter + return x.PmmAgentId + } + return "" +} + +func (x *AddNodeExporterParams) GetCustomLabels() map[string]string { + if x != nil { + return x.CustomLabels } return nil } -func (x *AddMySQLdExporterResponse) GetTableCount() int32 { +func (x *AddNodeExporterParams) GetPushMetrics() bool { if x != nil { - return x.TableCount + return x.PushMetrics } - return 0 + return false } -type ChangeMySQLdExporterRequest struct { +func (x *AddNodeExporterParams) GetDisableCollectors() []string { + if x != nil { + return x.DisableCollectors + } + return nil +} + +func (x *AddNodeExporterParams) GetLogLevel() LogLevel { + if x != nil { + return x.LogLevel + } + return LogLevel_LOG_LEVEL_UNSPECIFIED +} + +func (x *AddNodeExporterParams) GetExposeExporter() bool { + if x != nil { + return x.ExposeExporter + } + return false +} + +type ChangeNodeExporterRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -3887,23 +3948,23 @@ type ChangeMySQLdExporterRequest struct { Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` } -func (x *ChangeMySQLdExporterRequest) Reset() { - *x = ChangeMySQLdExporterRequest{} +func (x *ChangeNodeExporterRequest) Reset() { + *x = ChangeNodeExporterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[30] + mi := &file_inventory_v1_agents_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ChangeMySQLdExporterRequest) String() string { +func (x *ChangeNodeExporterRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeMySQLdExporterRequest) ProtoMessage() {} +func (*ChangeNodeExporterRequest) ProtoMessage() {} -func (x *ChangeMySQLdExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[30] +func (x *ChangeNodeExporterRequest) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3914,50 +3975,50 @@ func (x *ChangeMySQLdExporterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeMySQLdExporterRequest.ProtoReflect.Descriptor instead. -func (*ChangeMySQLdExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{30} +// Deprecated: Use ChangeNodeExporterRequest.ProtoReflect.Descriptor instead. +func (*ChangeNodeExporterRequest) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{26} } -func (x *ChangeMySQLdExporterRequest) GetAgentId() string { +func (x *ChangeNodeExporterRequest) GetAgentId() string { if x != nil { return x.AgentId } return "" } -func (x *ChangeMySQLdExporterRequest) GetCommon() *ChangeCommonAgentParams { +func (x *ChangeNodeExporterRequest) GetCommon() *ChangeCommonAgentParams { if x != nil { return x.Common } return nil } -type ChangeMySQLdExporterResponse struct { +type ChangeNodeExporterResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MysqldExporter *MySQLdExporter `protobuf:"bytes,1,opt,name=mysqld_exporter,json=mysqldExporter,proto3" json:"mysqld_exporter,omitempty"` + NodeExporter *NodeExporter `protobuf:"bytes,1,opt,name=node_exporter,json=nodeExporter,proto3" json:"node_exporter,omitempty"` } -func (x *ChangeMySQLdExporterResponse) Reset() { - *x = ChangeMySQLdExporterResponse{} +func (x *ChangeNodeExporterResponse) Reset() { + *x = ChangeNodeExporterResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[31] + mi := &file_inventory_v1_agents_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ChangeMySQLdExporterResponse) String() string { +func (x *ChangeNodeExporterResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeMySQLdExporterResponse) ProtoMessage() {} +func (*ChangeNodeExporterResponse) ProtoMessage() {} -func (x *ChangeMySQLdExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[31] +func (x *ChangeNodeExporterResponse) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3968,19 +4029,19 @@ func (x *ChangeMySQLdExporterResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeMySQLdExporterResponse.ProtoReflect.Descriptor instead. -func (*ChangeMySQLdExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{31} +// Deprecated: Use ChangeNodeExporterResponse.ProtoReflect.Descriptor instead. +func (*ChangeNodeExporterResponse) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{27} } -func (x *ChangeMySQLdExporterResponse) GetMysqldExporter() *MySQLdExporter { +func (x *ChangeNodeExporterResponse) GetNodeExporter() *NodeExporter { if x != nil { - return x.MysqldExporter + return x.NodeExporter } return nil } -type AddMongoDBExporterRequest struct { +type AddMySQLdExporterParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -3989,64 +4050,57 @@ type AddMongoDBExporterRequest struct { PmmAgentId string `protobuf:"bytes,1,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` // Service identifier. ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - // MongoDB username for scraping metrics. + // MySQL username for scraping metrics. Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` - // MongoDB password for scraping metrics. + // MySQL password for scraping metrics. Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // Use TLS for database connections. Tls bool `protobuf:"varint,5,opt,name=tls,proto3" json:"tls,omitempty"` // Skip TLS certificate and hostname validation. TlsSkipVerify bool `protobuf:"varint,6,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"` - // Client certificate and key. - TlsCertificateKey string `protobuf:"bytes,10,opt,name=tls_certificate_key,json=tlsCertificateKey,proto3" json:"tls_certificate_key,omitempty"` - // Password for decrypting tls_certificate_key. - TlsCertificateKeyFilePassword string `protobuf:"bytes,11,opt,name=tls_certificate_key_file_password,json=tlsCertificateKeyFilePassword,proto3" json:"tls_certificate_key_file_password,omitempty"` // Certificate Authority certificate chain. TlsCa string `protobuf:"bytes,12,opt,name=tls_ca,json=tlsCa,proto3" json:"tls_ca,omitempty"` + // Client certificate. + TlsCert string `protobuf:"bytes,13,opt,name=tls_cert,json=tlsCert,proto3" json:"tls_cert,omitempty"` + // Password for decrypting tls_cert. + TlsKey string `protobuf:"bytes,14,opt,name=tls_key,json=tlsKey,proto3" json:"tls_key,omitempty"` + // Tablestats group collectors will be disabled if there are more than that number of tables. + // 0 means tablestats group collectors are always enabled (no limit). + // Negative value means tablestats group collectors are always disabled. + TablestatsGroupTableLimit int32 `protobuf:"varint,9,opt,name=tablestats_group_table_limit,json=tablestatsGroupTableLimit,proto3" json:"tablestats_group_table_limit,omitempty"` // Custom user-assigned labels. CustomLabels map[string]string `protobuf:"bytes,7,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Skip connection check. SkipConnectionCheck bool `protobuf:"varint,8,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"` // Enables push metrics mode for exporter. - PushMetrics bool `protobuf:"varint,9,opt,name=push_metrics,json=pushMetrics,proto3" json:"push_metrics,omitempty"` + PushMetrics bool `protobuf:"varint,10,opt,name=push_metrics,json=pushMetrics,proto3" json:"push_metrics,omitempty"` // List of collector names to disable in this exporter. - DisableCollectors []string `protobuf:"bytes,13,rep,name=disable_collectors,json=disableCollectors,proto3" json:"disable_collectors,omitempty"` - // Authentication mechanism. - // See https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism - // for details. - AuthenticationMechanism string `protobuf:"bytes,14,opt,name=authentication_mechanism,json=authenticationMechanism,proto3" json:"authentication_mechanism,omitempty"` - // Authentication database. - AuthenticationDatabase string `protobuf:"bytes,15,opt,name=authentication_database,json=authenticationDatabase,proto3" json:"authentication_database,omitempty"` + DisableCollectors []string `protobuf:"bytes,11,rep,name=disable_collectors,json=disableCollectors,proto3" json:"disable_collectors,omitempty"` // Custom password for exporter endpoint /metrics. - AgentPassword string `protobuf:"bytes,16,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` - // List of colletions to get stats from. Can use * - StatsCollections []string `protobuf:"bytes,17,rep,name=stats_collections,json=statsCollections,proto3" json:"stats_collections,omitempty"` - // Collections limit. Only get Databases and collection stats if the total number of collections in the server - // is less than this value. 0: no limit - CollectionsLimit int32 `protobuf:"varint,18,opt,name=collections_limit,json=collectionsLimit,proto3" json:"collections_limit,omitempty"` + AgentPassword string `protobuf:"bytes,15,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` // Log level for exporter. - LogLevel LogLevel `protobuf:"varint,19,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` + LogLevel LogLevel `protobuf:"varint,16,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `protobuf:"varint,20,opt,name=expose_exporter,json=exposeExporter,proto3" json:"expose_exporter,omitempty"` + ExposeExporter bool `protobuf:"varint,17,opt,name=expose_exporter,json=exposeExporter,proto3" json:"expose_exporter,omitempty"` } -func (x *AddMongoDBExporterRequest) Reset() { - *x = AddMongoDBExporterRequest{} +func (x *AddMySQLdExporterParams) Reset() { + *x = AddMySQLdExporterParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[32] + mi := &file_inventory_v1_agents_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddMongoDBExporterRequest) String() string { +func (x *AddMySQLdExporterParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddMongoDBExporterRequest) ProtoMessage() {} +func (*AddMySQLdExporterParams) ProtoMessage() {} -func (x *AddMongoDBExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[32] +func (x *AddMySQLdExporterParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4057,199 +4111,131 @@ func (x *AddMongoDBExporterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddMongoDBExporterRequest.ProtoReflect.Descriptor instead. -func (*AddMongoDBExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{32} +// Deprecated: Use AddMySQLdExporterParams.ProtoReflect.Descriptor instead. +func (*AddMySQLdExporterParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{28} } -func (x *AddMongoDBExporterRequest) GetPmmAgentId() string { +func (x *AddMySQLdExporterParams) GetPmmAgentId() string { if x != nil { return x.PmmAgentId } return "" } -func (x *AddMongoDBExporterRequest) GetServiceId() string { +func (x *AddMySQLdExporterParams) GetServiceId() string { if x != nil { return x.ServiceId } return "" } -func (x *AddMongoDBExporterRequest) GetUsername() string { +func (x *AddMySQLdExporterParams) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *AddMongoDBExporterRequest) GetPassword() string { +func (x *AddMySQLdExporterParams) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *AddMongoDBExporterRequest) GetTls() bool { +func (x *AddMySQLdExporterParams) GetTls() bool { if x != nil { return x.Tls } return false } -func (x *AddMongoDBExporterRequest) GetTlsSkipVerify() bool { +func (x *AddMySQLdExporterParams) GetTlsSkipVerify() bool { if x != nil { return x.TlsSkipVerify } return false } -func (x *AddMongoDBExporterRequest) GetTlsCertificateKey() string { +func (x *AddMySQLdExporterParams) GetTlsCa() string { if x != nil { - return x.TlsCertificateKey + return x.TlsCa } return "" } -func (x *AddMongoDBExporterRequest) GetTlsCertificateKeyFilePassword() string { +func (x *AddMySQLdExporterParams) GetTlsCert() string { if x != nil { - return x.TlsCertificateKeyFilePassword + return x.TlsCert } return "" } -func (x *AddMongoDBExporterRequest) GetTlsCa() string { +func (x *AddMySQLdExporterParams) GetTlsKey() string { if x != nil { - return x.TlsCa + return x.TlsKey } return "" } -func (x *AddMongoDBExporterRequest) GetCustomLabels() map[string]string { +func (x *AddMySQLdExporterParams) GetTablestatsGroupTableLimit() int32 { + if x != nil { + return x.TablestatsGroupTableLimit + } + return 0 +} + +func (x *AddMySQLdExporterParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -func (x *AddMongoDBExporterRequest) GetSkipConnectionCheck() bool { +func (x *AddMySQLdExporterParams) GetSkipConnectionCheck() bool { if x != nil { return x.SkipConnectionCheck } return false } -func (x *AddMongoDBExporterRequest) GetPushMetrics() bool { +func (x *AddMySQLdExporterParams) GetPushMetrics() bool { if x != nil { return x.PushMetrics } return false } -func (x *AddMongoDBExporterRequest) GetDisableCollectors() []string { +func (x *AddMySQLdExporterParams) GetDisableCollectors() []string { if x != nil { return x.DisableCollectors } return nil } -func (x *AddMongoDBExporterRequest) GetAuthenticationMechanism() string { - if x != nil { - return x.AuthenticationMechanism - } - return "" -} - -func (x *AddMongoDBExporterRequest) GetAuthenticationDatabase() string { - if x != nil { - return x.AuthenticationDatabase - } - return "" -} - -func (x *AddMongoDBExporterRequest) GetAgentPassword() string { +func (x *AddMySQLdExporterParams) GetAgentPassword() string { if x != nil { return x.AgentPassword } return "" } -func (x *AddMongoDBExporterRequest) GetStatsCollections() []string { - if x != nil { - return x.StatsCollections - } - return nil -} - -func (x *AddMongoDBExporterRequest) GetCollectionsLimit() int32 { - if x != nil { - return x.CollectionsLimit - } - return 0 -} - -func (x *AddMongoDBExporterRequest) GetLogLevel() LogLevel { +func (x *AddMySQLdExporterParams) GetLogLevel() LogLevel { if x != nil { return x.LogLevel } return LogLevel_LOG_LEVEL_UNSPECIFIED } -func (x *AddMongoDBExporterRequest) GetExposeExporter() bool { +func (x *AddMySQLdExporterParams) GetExposeExporter() bool { if x != nil { return x.ExposeExporter } return false } -type AddMongoDBExporterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MongodbExporter *MongoDBExporter `protobuf:"bytes,1,opt,name=mongodb_exporter,json=mongodbExporter,proto3" json:"mongodb_exporter,omitempty"` -} - -func (x *AddMongoDBExporterResponse) Reset() { - *x = AddMongoDBExporterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddMongoDBExporterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddMongoDBExporterResponse) ProtoMessage() {} - -func (x *AddMongoDBExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddMongoDBExporterResponse.ProtoReflect.Descriptor instead. -func (*AddMongoDBExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{33} -} - -func (x *AddMongoDBExporterResponse) GetMongodbExporter() *MongoDBExporter { - if x != nil { - return x.MongodbExporter - } - return nil -} - -type ChangeMongoDBExporterRequest struct { +type ChangeMySQLdExporterRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -4258,23 +4244,23 @@ type ChangeMongoDBExporterRequest struct { Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` } -func (x *ChangeMongoDBExporterRequest) Reset() { - *x = ChangeMongoDBExporterRequest{} +func (x *ChangeMySQLdExporterRequest) Reset() { + *x = ChangeMySQLdExporterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[34] + mi := &file_inventory_v1_agents_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ChangeMongoDBExporterRequest) String() string { +func (x *ChangeMySQLdExporterRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeMongoDBExporterRequest) ProtoMessage() {} +func (*ChangeMySQLdExporterRequest) ProtoMessage() {} -func (x *ChangeMongoDBExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[34] +func (x *ChangeMySQLdExporterRequest) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4285,50 +4271,50 @@ func (x *ChangeMongoDBExporterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeMongoDBExporterRequest.ProtoReflect.Descriptor instead. -func (*ChangeMongoDBExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{34} +// Deprecated: Use ChangeMySQLdExporterRequest.ProtoReflect.Descriptor instead. +func (*ChangeMySQLdExporterRequest) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{29} } -func (x *ChangeMongoDBExporterRequest) GetAgentId() string { +func (x *ChangeMySQLdExporterRequest) GetAgentId() string { if x != nil { return x.AgentId } return "" } -func (x *ChangeMongoDBExporterRequest) GetCommon() *ChangeCommonAgentParams { +func (x *ChangeMySQLdExporterRequest) GetCommon() *ChangeCommonAgentParams { if x != nil { return x.Common } return nil } -type ChangeMongoDBExporterResponse struct { +type ChangeMySQLdExporterResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MongodbExporter *MongoDBExporter `protobuf:"bytes,1,opt,name=mongodb_exporter,json=mongodbExporter,proto3" json:"mongodb_exporter,omitempty"` + MysqldExporter *MySQLdExporter `protobuf:"bytes,1,opt,name=mysqld_exporter,json=mysqldExporter,proto3" json:"mysqld_exporter,omitempty"` } -func (x *ChangeMongoDBExporterResponse) Reset() { - *x = ChangeMongoDBExporterResponse{} +func (x *ChangeMySQLdExporterResponse) Reset() { + *x = ChangeMySQLdExporterResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[35] + mi := &file_inventory_v1_agents_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ChangeMongoDBExporterResponse) String() string { +func (x *ChangeMySQLdExporterResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeMongoDBExporterResponse) ProtoMessage() {} +func (*ChangeMySQLdExporterResponse) ProtoMessage() {} -func (x *ChangeMongoDBExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[35] +func (x *ChangeMySQLdExporterResponse) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4339,19 +4325,19 @@ func (x *ChangeMongoDBExporterResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeMongoDBExporterResponse.ProtoReflect.Descriptor instead. -func (*ChangeMongoDBExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{35} +// Deprecated: Use ChangeMySQLdExporterResponse.ProtoReflect.Descriptor instead. +func (*ChangeMySQLdExporterResponse) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{30} } -func (x *ChangeMongoDBExporterResponse) GetMongodbExporter() *MongoDBExporter { +func (x *ChangeMySQLdExporterResponse) GetMysqldExporter() *MySQLdExporter { if x != nil { - return x.MongodbExporter + return x.MysqldExporter } return nil } -type AddPostgresExporterRequest struct { +type AddMongoDBExporterParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -4360,14 +4346,20 @@ type AddPostgresExporterRequest struct { PmmAgentId string `protobuf:"bytes,1,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` // Service identifier. ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - // PostgreSQL username for scraping metrics. + // MongoDB username for scraping metrics. Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` - // PostgreSQL password for scraping metrics. + // MongoDB password for scraping metrics. Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // Use TLS for database connections. Tls bool `protobuf:"varint,5,opt,name=tls,proto3" json:"tls,omitempty"` - // Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full. + // Skip TLS certificate and hostname validation. TlsSkipVerify bool `protobuf:"varint,6,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"` + // Client certificate and key. + TlsCertificateKey string `protobuf:"bytes,10,opt,name=tls_certificate_key,json=tlsCertificateKey,proto3" json:"tls_certificate_key,omitempty"` + // Password for decrypting tls_certificate_key. + TlsCertificateKeyFilePassword string `protobuf:"bytes,11,opt,name=tls_certificate_key_file_password,json=tlsCertificateKeyFilePassword,proto3" json:"tls_certificate_key_file_password,omitempty"` + // Certificate Authority certificate chain. + TlsCa string `protobuf:"bytes,12,opt,name=tls_ca,json=tlsCa,proto3" json:"tls_ca,omitempty"` // Custom user-assigned labels. CustomLabels map[string]string `protobuf:"bytes,7,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Skip connection check. @@ -4375,40 +4367,43 @@ type AddPostgresExporterRequest struct { // Enables push metrics mode for exporter. PushMetrics bool `protobuf:"varint,9,opt,name=push_metrics,json=pushMetrics,proto3" json:"push_metrics,omitempty"` // List of collector names to disable in this exporter. - DisableCollectors []string `protobuf:"bytes,10,rep,name=disable_collectors,json=disableCollectors,proto3" json:"disable_collectors,omitempty"` - // TLS CA certificate. - TlsCa string `protobuf:"bytes,11,opt,name=tls_ca,json=tlsCa,proto3" json:"tls_ca,omitempty"` - // TLS Certifcate. - TlsCert string `protobuf:"bytes,12,opt,name=tls_cert,json=tlsCert,proto3" json:"tls_cert,omitempty"` - // TLS Certificate Key. - TlsKey string `protobuf:"bytes,13,opt,name=tls_key,json=tlsKey,proto3" json:"tls_key,omitempty"` + DisableCollectors []string `protobuf:"bytes,13,rep,name=disable_collectors,json=disableCollectors,proto3" json:"disable_collectors,omitempty"` + // Authentication mechanism. + // See https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism + // for details. + AuthenticationMechanism string `protobuf:"bytes,14,opt,name=authentication_mechanism,json=authenticationMechanism,proto3" json:"authentication_mechanism,omitempty"` + // Authentication database. + AuthenticationDatabase string `protobuf:"bytes,15,opt,name=authentication_database,json=authenticationDatabase,proto3" json:"authentication_database,omitempty"` // Custom password for exporter endpoint /metrics. - AgentPassword string `protobuf:"bytes,14,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` + AgentPassword string `protobuf:"bytes,16,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` + // List of colletions to get stats from. Can use * + StatsCollections []string `protobuf:"bytes,17,rep,name=stats_collections,json=statsCollections,proto3" json:"stats_collections,omitempty"` + // Collections limit. Only get Databases and collection stats if the total number of collections in the server + // is less than this value. 0: no limit + CollectionsLimit int32 `protobuf:"varint,18,opt,name=collections_limit,json=collectionsLimit,proto3" json:"collections_limit,omitempty"` // Log level for exporter. - LogLevel LogLevel `protobuf:"varint,15,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` - // Limit of databases for auto-discovery. - AutoDiscoveryLimit int32 `protobuf:"varint,16,opt,name=auto_discovery_limit,json=autoDiscoveryLimit,proto3" json:"auto_discovery_limit,omitempty"` + LogLevel LogLevel `protobuf:"varint,19,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `protobuf:"varint,17,opt,name=expose_exporter,json=exposeExporter,proto3" json:"expose_exporter,omitempty"` + ExposeExporter bool `protobuf:"varint,20,opt,name=expose_exporter,json=exposeExporter,proto3" json:"expose_exporter,omitempty"` } -func (x *AddPostgresExporterRequest) Reset() { - *x = AddPostgresExporterRequest{} +func (x *AddMongoDBExporterParams) Reset() { + *x = AddMongoDBExporterParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[36] + mi := &file_inventory_v1_agents_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddPostgresExporterRequest) String() string { +func (x *AddMongoDBExporterParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddPostgresExporterRequest) ProtoMessage() {} +func (*AddMongoDBExporterParams) ProtoMessage() {} -func (x *AddPostgresExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[36] +func (x *AddMongoDBExporterParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4419,155 +4414,177 @@ func (x *AddPostgresExporterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddPostgresExporterRequest.ProtoReflect.Descriptor instead. -func (*AddPostgresExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{36} +// Deprecated: Use AddMongoDBExporterParams.ProtoReflect.Descriptor instead. +func (*AddMongoDBExporterParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{31} } -func (x *AddPostgresExporterRequest) GetPmmAgentId() string { +func (x *AddMongoDBExporterParams) GetPmmAgentId() string { if x != nil { return x.PmmAgentId } return "" } -func (x *AddPostgresExporterRequest) GetServiceId() string { +func (x *AddMongoDBExporterParams) GetServiceId() string { if x != nil { return x.ServiceId } return "" } -func (x *AddPostgresExporterRequest) GetUsername() string { +func (x *AddMongoDBExporterParams) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *AddPostgresExporterRequest) GetPassword() string { +func (x *AddMongoDBExporterParams) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *AddPostgresExporterRequest) GetTls() bool { +func (x *AddMongoDBExporterParams) GetTls() bool { if x != nil { return x.Tls } return false } -func (x *AddPostgresExporterRequest) GetTlsSkipVerify() bool { +func (x *AddMongoDBExporterParams) GetTlsSkipVerify() bool { if x != nil { return x.TlsSkipVerify } return false } -func (x *AddPostgresExporterRequest) GetCustomLabels() map[string]string { +func (x *AddMongoDBExporterParams) GetTlsCertificateKey() string { + if x != nil { + return x.TlsCertificateKey + } + return "" +} + +func (x *AddMongoDBExporterParams) GetTlsCertificateKeyFilePassword() string { + if x != nil { + return x.TlsCertificateKeyFilePassword + } + return "" +} + +func (x *AddMongoDBExporterParams) GetTlsCa() string { + if x != nil { + return x.TlsCa + } + return "" +} + +func (x *AddMongoDBExporterParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -func (x *AddPostgresExporterRequest) GetSkipConnectionCheck() bool { +func (x *AddMongoDBExporterParams) GetSkipConnectionCheck() bool { if x != nil { return x.SkipConnectionCheck } return false } -func (x *AddPostgresExporterRequest) GetPushMetrics() bool { +func (x *AddMongoDBExporterParams) GetPushMetrics() bool { if x != nil { return x.PushMetrics } return false } -func (x *AddPostgresExporterRequest) GetDisableCollectors() []string { +func (x *AddMongoDBExporterParams) GetDisableCollectors() []string { if x != nil { return x.DisableCollectors } return nil } -func (x *AddPostgresExporterRequest) GetTlsCa() string { +func (x *AddMongoDBExporterParams) GetAuthenticationMechanism() string { if x != nil { - return x.TlsCa + return x.AuthenticationMechanism } return "" } -func (x *AddPostgresExporterRequest) GetTlsCert() string { +func (x *AddMongoDBExporterParams) GetAuthenticationDatabase() string { if x != nil { - return x.TlsCert + return x.AuthenticationDatabase } return "" } -func (x *AddPostgresExporterRequest) GetTlsKey() string { +func (x *AddMongoDBExporterParams) GetAgentPassword() string { if x != nil { - return x.TlsKey + return x.AgentPassword } return "" } -func (x *AddPostgresExporterRequest) GetAgentPassword() string { +func (x *AddMongoDBExporterParams) GetStatsCollections() []string { if x != nil { - return x.AgentPassword + return x.StatsCollections } - return "" + return nil } -func (x *AddPostgresExporterRequest) GetLogLevel() LogLevel { +func (x *AddMongoDBExporterParams) GetCollectionsLimit() int32 { if x != nil { - return x.LogLevel + return x.CollectionsLimit } - return LogLevel_LOG_LEVEL_UNSPECIFIED + return 0 } -func (x *AddPostgresExporterRequest) GetAutoDiscoveryLimit() int32 { +func (x *AddMongoDBExporterParams) GetLogLevel() LogLevel { if x != nil { - return x.AutoDiscoveryLimit + return x.LogLevel } - return 0 + return LogLevel_LOG_LEVEL_UNSPECIFIED } -func (x *AddPostgresExporterRequest) GetExposeExporter() bool { +func (x *AddMongoDBExporterParams) GetExposeExporter() bool { if x != nil { return x.ExposeExporter } return false } -type AddPostgresExporterResponse struct { +type ChangeMongoDBExporterRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PostgresExporter *PostgresExporter `protobuf:"bytes,1,opt,name=postgres_exporter,json=postgresExporter,proto3" json:"postgres_exporter,omitempty"` + AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` + Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` } -func (x *AddPostgresExporterResponse) Reset() { - *x = AddPostgresExporterResponse{} +func (x *ChangeMongoDBExporterRequest) Reset() { + *x = ChangeMongoDBExporterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[37] + mi := &file_inventory_v1_agents_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddPostgresExporterResponse) String() string { +func (x *ChangeMongoDBExporterRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddPostgresExporterResponse) ProtoMessage() {} +func (*ChangeMongoDBExporterRequest) ProtoMessage() {} -func (x *AddPostgresExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[37] +func (x *ChangeMongoDBExporterRequest) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4578,44 +4595,50 @@ func (x *AddPostgresExporterResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddPostgresExporterResponse.ProtoReflect.Descriptor instead. -func (*AddPostgresExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{37} +// Deprecated: Use ChangeMongoDBExporterRequest.ProtoReflect.Descriptor instead. +func (*ChangeMongoDBExporterRequest) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{32} } -func (x *AddPostgresExporterResponse) GetPostgresExporter() *PostgresExporter { +func (x *ChangeMongoDBExporterRequest) GetAgentId() string { if x != nil { - return x.PostgresExporter + return x.AgentId + } + return "" +} + +func (x *ChangeMongoDBExporterRequest) GetCommon() *ChangeCommonAgentParams { + if x != nil { + return x.Common } return nil } -type ChangePostgresExporterRequest struct { +type ChangeMongoDBExporterResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` + MongodbExporter *MongoDBExporter `protobuf:"bytes,1,opt,name=mongodb_exporter,json=mongodbExporter,proto3" json:"mongodb_exporter,omitempty"` } -func (x *ChangePostgresExporterRequest) Reset() { - *x = ChangePostgresExporterRequest{} +func (x *ChangeMongoDBExporterResponse) Reset() { + *x = ChangeMongoDBExporterResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[38] + mi := &file_inventory_v1_agents_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ChangePostgresExporterRequest) String() string { +func (x *ChangeMongoDBExporterResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangePostgresExporterRequest) ProtoMessage() {} +func (*ChangeMongoDBExporterResponse) ProtoMessage() {} -func (x *ChangePostgresExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[38] +func (x *ChangeMongoDBExporterResponse) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4626,73 +4649,19 @@ func (x *ChangePostgresExporterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangePostgresExporterRequest.ProtoReflect.Descriptor instead. -func (*ChangePostgresExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{38} -} - -func (x *ChangePostgresExporterRequest) GetAgentId() string { - if x != nil { - return x.AgentId - } - return "" -} - -func (x *ChangePostgresExporterRequest) GetCommon() *ChangeCommonAgentParams { - if x != nil { - return x.Common - } - return nil -} - -type ChangePostgresExporterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PostgresExporter *PostgresExporter `protobuf:"bytes,1,opt,name=postgres_exporter,json=postgresExporter,proto3" json:"postgres_exporter,omitempty"` -} - -func (x *ChangePostgresExporterResponse) Reset() { - *x = ChangePostgresExporterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChangePostgresExporterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChangePostgresExporterResponse) ProtoMessage() {} - -func (x *ChangePostgresExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ChangePostgresExporterResponse.ProtoReflect.Descriptor instead. -func (*ChangePostgresExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{39} +// Deprecated: Use ChangeMongoDBExporterResponse.ProtoReflect.Descriptor instead. +func (*ChangeMongoDBExporterResponse) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{33} } -func (x *ChangePostgresExporterResponse) GetPostgresExporter() *PostgresExporter { +func (x *ChangeMongoDBExporterResponse) GetMongodbExporter() *MongoDBExporter { if x != nil { - return x.PostgresExporter + return x.MongodbExporter } return nil } -type AddProxySQLExporterRequest struct { +type AddPostgresExporterParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -4701,13 +4670,13 @@ type AddProxySQLExporterRequest struct { PmmAgentId string `protobuf:"bytes,1,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` // Service identifier. ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - // ProxySQL username for scraping metrics. + // PostgreSQL username for scraping metrics. Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` - // ProxySQL password for scraping metrics. + // PostgreSQL password for scraping metrics. Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // Use TLS for database connections. Tls bool `protobuf:"varint,5,opt,name=tls,proto3" json:"tls,omitempty"` - // Skip TLS certificate and hostname validation. + // Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full. TlsSkipVerify bool `protobuf:"varint,6,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"` // Custom user-assigned labels. CustomLabels map[string]string `protobuf:"bytes,7,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -4717,31 +4686,39 @@ type AddProxySQLExporterRequest struct { PushMetrics bool `protobuf:"varint,9,opt,name=push_metrics,json=pushMetrics,proto3" json:"push_metrics,omitempty"` // List of collector names to disable in this exporter. DisableCollectors []string `protobuf:"bytes,10,rep,name=disable_collectors,json=disableCollectors,proto3" json:"disable_collectors,omitempty"` + // TLS CA certificate. + TlsCa string `protobuf:"bytes,11,opt,name=tls_ca,json=tlsCa,proto3" json:"tls_ca,omitempty"` + // TLS Certifcate. + TlsCert string `protobuf:"bytes,12,opt,name=tls_cert,json=tlsCert,proto3" json:"tls_cert,omitempty"` + // TLS Certificate Key. + TlsKey string `protobuf:"bytes,13,opt,name=tls_key,json=tlsKey,proto3" json:"tls_key,omitempty"` // Custom password for exporter endpoint /metrics. - AgentPassword string `protobuf:"bytes,11,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` + AgentPassword string `protobuf:"bytes,14,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` // Log level for exporter. - LogLevel LogLevel `protobuf:"varint,12,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` + LogLevel LogLevel `protobuf:"varint,15,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` + // Limit of databases for auto-discovery. + AutoDiscoveryLimit int32 `protobuf:"varint,16,opt,name=auto_discovery_limit,json=autoDiscoveryLimit,proto3" json:"auto_discovery_limit,omitempty"` // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `protobuf:"varint,13,opt,name=expose_exporter,json=exposeExporter,proto3" json:"expose_exporter,omitempty"` + ExposeExporter bool `protobuf:"varint,17,opt,name=expose_exporter,json=exposeExporter,proto3" json:"expose_exporter,omitempty"` } -func (x *AddProxySQLExporterRequest) Reset() { - *x = AddProxySQLExporterRequest{} +func (x *AddPostgresExporterParams) Reset() { + *x = AddPostgresExporterParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[40] + mi := &file_inventory_v1_agents_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddProxySQLExporterRequest) String() string { +func (x *AddPostgresExporterParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddProxySQLExporterRequest) ProtoMessage() {} +func (*AddPostgresExporterParams) ProtoMessage() {} -func (x *AddProxySQLExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[40] +func (x *AddPostgresExporterParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4752,150 +4729,131 @@ func (x *AddProxySQLExporterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddProxySQLExporterRequest.ProtoReflect.Descriptor instead. -func (*AddProxySQLExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{40} +// Deprecated: Use AddPostgresExporterParams.ProtoReflect.Descriptor instead. +func (*AddPostgresExporterParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{34} } -func (x *AddProxySQLExporterRequest) GetPmmAgentId() string { +func (x *AddPostgresExporterParams) GetPmmAgentId() string { if x != nil { return x.PmmAgentId } return "" } -func (x *AddProxySQLExporterRequest) GetServiceId() string { +func (x *AddPostgresExporterParams) GetServiceId() string { if x != nil { return x.ServiceId } return "" } -func (x *AddProxySQLExporterRequest) GetUsername() string { +func (x *AddPostgresExporterParams) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *AddProxySQLExporterRequest) GetPassword() string { +func (x *AddPostgresExporterParams) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *AddProxySQLExporterRequest) GetTls() bool { +func (x *AddPostgresExporterParams) GetTls() bool { if x != nil { return x.Tls } return false } -func (x *AddProxySQLExporterRequest) GetTlsSkipVerify() bool { +func (x *AddPostgresExporterParams) GetTlsSkipVerify() bool { if x != nil { return x.TlsSkipVerify } return false } -func (x *AddProxySQLExporterRequest) GetCustomLabels() map[string]string { +func (x *AddPostgresExporterParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -func (x *AddProxySQLExporterRequest) GetSkipConnectionCheck() bool { +func (x *AddPostgresExporterParams) GetSkipConnectionCheck() bool { if x != nil { return x.SkipConnectionCheck } return false } -func (x *AddProxySQLExporterRequest) GetPushMetrics() bool { +func (x *AddPostgresExporterParams) GetPushMetrics() bool { if x != nil { return x.PushMetrics } return false } -func (x *AddProxySQLExporterRequest) GetDisableCollectors() []string { +func (x *AddPostgresExporterParams) GetDisableCollectors() []string { if x != nil { return x.DisableCollectors } return nil } -func (x *AddProxySQLExporterRequest) GetAgentPassword() string { +func (x *AddPostgresExporterParams) GetTlsCa() string { if x != nil { - return x.AgentPassword + return x.TlsCa } return "" } -func (x *AddProxySQLExporterRequest) GetLogLevel() LogLevel { +func (x *AddPostgresExporterParams) GetTlsCert() string { if x != nil { - return x.LogLevel + return x.TlsCert } - return LogLevel_LOG_LEVEL_UNSPECIFIED + return "" } -func (x *AddProxySQLExporterRequest) GetExposeExporter() bool { +func (x *AddPostgresExporterParams) GetTlsKey() string { if x != nil { - return x.ExposeExporter + return x.TlsKey } - return false -} - -type AddProxySQLExporterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProxysqlExporter *ProxySQLExporter `protobuf:"bytes,1,opt,name=proxysql_exporter,json=proxysqlExporter,proto3" json:"proxysql_exporter,omitempty"` + return "" } -func (x *AddProxySQLExporterResponse) Reset() { - *x = AddProxySQLExporterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *AddPostgresExporterParams) GetAgentPassword() string { + if x != nil { + return x.AgentPassword } + return "" } -func (x *AddProxySQLExporterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddProxySQLExporterResponse) ProtoMessage() {} - -func (x *AddProxySQLExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *AddPostgresExporterParams) GetLogLevel() LogLevel { + if x != nil { + return x.LogLevel } - return mi.MessageOf(x) + return LogLevel_LOG_LEVEL_UNSPECIFIED } -// Deprecated: Use AddProxySQLExporterResponse.ProtoReflect.Descriptor instead. -func (*AddProxySQLExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{41} +func (x *AddPostgresExporterParams) GetAutoDiscoveryLimit() int32 { + if x != nil { + return x.AutoDiscoveryLimit + } + return 0 } -func (x *AddProxySQLExporterResponse) GetProxysqlExporter() *ProxySQLExporter { +func (x *AddPostgresExporterParams) GetExposeExporter() bool { if x != nil { - return x.ProxysqlExporter + return x.ExposeExporter } - return nil + return false } -type ChangeProxySQLExporterRequest struct { +type ChangePostgresExporterRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -4904,23 +4862,23 @@ type ChangeProxySQLExporterRequest struct { Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` } -func (x *ChangeProxySQLExporterRequest) Reset() { - *x = ChangeProxySQLExporterRequest{} +func (x *ChangePostgresExporterRequest) Reset() { + *x = ChangePostgresExporterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[42] + mi := &file_inventory_v1_agents_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ChangeProxySQLExporterRequest) String() string { +func (x *ChangePostgresExporterRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeProxySQLExporterRequest) ProtoMessage() {} +func (*ChangePostgresExporterRequest) ProtoMessage() {} -func (x *ChangeProxySQLExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[42] +func (x *ChangePostgresExporterRequest) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4931,50 +4889,50 @@ func (x *ChangeProxySQLExporterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeProxySQLExporterRequest.ProtoReflect.Descriptor instead. -func (*ChangeProxySQLExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{42} +// Deprecated: Use ChangePostgresExporterRequest.ProtoReflect.Descriptor instead. +func (*ChangePostgresExporterRequest) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{35} } -func (x *ChangeProxySQLExporterRequest) GetAgentId() string { +func (x *ChangePostgresExporterRequest) GetAgentId() string { if x != nil { return x.AgentId } return "" } -func (x *ChangeProxySQLExporterRequest) GetCommon() *ChangeCommonAgentParams { +func (x *ChangePostgresExporterRequest) GetCommon() *ChangeCommonAgentParams { if x != nil { return x.Common } return nil } -type ChangeProxySQLExporterResponse struct { +type ChangePostgresExporterResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ProxysqlExporter *ProxySQLExporter `protobuf:"bytes,1,opt,name=proxysql_exporter,json=proxysqlExporter,proto3" json:"proxysql_exporter,omitempty"` + PostgresExporter *PostgresExporter `protobuf:"bytes,1,opt,name=postgres_exporter,json=postgresExporter,proto3" json:"postgres_exporter,omitempty"` } -func (x *ChangeProxySQLExporterResponse) Reset() { - *x = ChangeProxySQLExporterResponse{} +func (x *ChangePostgresExporterResponse) Reset() { + *x = ChangePostgresExporterResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[43] + mi := &file_inventory_v1_agents_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ChangeProxySQLExporterResponse) String() string { +func (x *ChangePostgresExporterResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeProxySQLExporterResponse) ProtoMessage() {} +func (*ChangePostgresExporterResponse) ProtoMessage() {} -func (x *ChangeProxySQLExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[43] +func (x *ChangePostgresExporterResponse) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4985,19 +4943,19 @@ func (x *ChangeProxySQLExporterResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeProxySQLExporterResponse.ProtoReflect.Descriptor instead. -func (*ChangeProxySQLExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{43} +// Deprecated: Use ChangePostgresExporterResponse.ProtoReflect.Descriptor instead. +func (*ChangePostgresExporterResponse) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{36} } -func (x *ChangeProxySQLExporterResponse) GetProxysqlExporter() *ProxySQLExporter { +func (x *ChangePostgresExporterResponse) GetPostgresExporter() *PostgresExporter { if x != nil { - return x.ProxysqlExporter + return x.PostgresExporter } return nil } -type AddQANMySQLPerfSchemaAgentRequest struct { +type AddProxySQLExporterParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -5006,51 +4964,47 @@ type AddQANMySQLPerfSchemaAgentRequest struct { PmmAgentId string `protobuf:"bytes,1,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` // Service identifier. ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - // MySQL username for getting performance data. + // ProxySQL username for scraping metrics. Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` - // MySQL password for getting performance data. + // ProxySQL password for scraping metrics. Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // Use TLS for database connections. Tls bool `protobuf:"varint,5,opt,name=tls,proto3" json:"tls,omitempty"` // Skip TLS certificate and hostname validation. TlsSkipVerify bool `protobuf:"varint,6,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"` - // Certificate Authority certificate chain. - TlsCa string `protobuf:"bytes,10,opt,name=tls_ca,json=tlsCa,proto3" json:"tls_ca,omitempty"` - // Client certificate. - TlsCert string `protobuf:"bytes,11,opt,name=tls_cert,json=tlsCert,proto3" json:"tls_cert,omitempty"` - // Password for decrypting tls_cert. - TlsKey string `protobuf:"bytes,12,opt,name=tls_key,json=tlsKey,proto3" json:"tls_key,omitempty"` - // Limit query length in QAN (default: server-defined; -1: no limit) - MaxQueryLength int32 `protobuf:"varint,14,opt,name=max_query_length,json=maxQueryLength,proto3" json:"max_query_length,omitempty"` - // Disable query examples. - DisableQueryExamples bool `protobuf:"varint,7,opt,name=disable_query_examples,json=disableQueryExamples,proto3" json:"disable_query_examples,omitempty"` // Custom user-assigned labels. - CustomLabels map[string]string `protobuf:"bytes,8,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + CustomLabels map[string]string `protobuf:"bytes,7,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Skip connection check. - SkipConnectionCheck bool `protobuf:"varint,9,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"` - // Disable parsing comments from queries and showing them in QAN. - DisableCommentsParsing bool `protobuf:"varint,15,opt,name=disable_comments_parsing,json=disableCommentsParsing,proto3" json:"disable_comments_parsing,omitempty"` + SkipConnectionCheck bool `protobuf:"varint,8,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"` + // Enables push metrics mode for exporter. + PushMetrics bool `protobuf:"varint,9,opt,name=push_metrics,json=pushMetrics,proto3" json:"push_metrics,omitempty"` + // List of collector names to disable in this exporter. + DisableCollectors []string `protobuf:"bytes,10,rep,name=disable_collectors,json=disableCollectors,proto3" json:"disable_collectors,omitempty"` + // Custom password for exporter endpoint /metrics. + AgentPassword string `protobuf:"bytes,11,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` // Log level for exporter. - LogLevel LogLevel `protobuf:"varint,13,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` + LogLevel LogLevel `protobuf:"varint,12,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `protobuf:"varint,13,opt,name=expose_exporter,json=exposeExporter,proto3" json:"expose_exporter,omitempty"` } -func (x *AddQANMySQLPerfSchemaAgentRequest) Reset() { - *x = AddQANMySQLPerfSchemaAgentRequest{} +func (x *AddProxySQLExporterParams) Reset() { + *x = AddProxySQLExporterParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[44] + mi := &file_inventory_v1_agents_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddQANMySQLPerfSchemaAgentRequest) String() string { +func (x *AddProxySQLExporterParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddQANMySQLPerfSchemaAgentRequest) ProtoMessage() {} +func (*AddProxySQLExporterParams) ProtoMessage() {} -func (x *AddQANMySQLPerfSchemaAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[44] +func (x *AddProxySQLExporterParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5061,141 +5015,182 @@ func (x *AddQANMySQLPerfSchemaAgentRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use AddQANMySQLPerfSchemaAgentRequest.ProtoReflect.Descriptor instead. -func (*AddQANMySQLPerfSchemaAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{44} +// Deprecated: Use AddProxySQLExporterParams.ProtoReflect.Descriptor instead. +func (*AddProxySQLExporterParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{37} } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetPmmAgentId() string { +func (x *AddProxySQLExporterParams) GetPmmAgentId() string { if x != nil { return x.PmmAgentId } return "" } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetServiceId() string { +func (x *AddProxySQLExporterParams) GetServiceId() string { if x != nil { return x.ServiceId } return "" } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetUsername() string { +func (x *AddProxySQLExporterParams) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetPassword() string { +func (x *AddProxySQLExporterParams) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetTls() bool { +func (x *AddProxySQLExporterParams) GetTls() bool { if x != nil { return x.Tls } return false } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetTlsSkipVerify() bool { +func (x *AddProxySQLExporterParams) GetTlsSkipVerify() bool { if x != nil { return x.TlsSkipVerify } return false } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetTlsCa() string { +func (x *AddProxySQLExporterParams) GetCustomLabels() map[string]string { if x != nil { - return x.TlsCa + return x.CustomLabels } - return "" + return nil } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetTlsCert() string { +func (x *AddProxySQLExporterParams) GetSkipConnectionCheck() bool { if x != nil { - return x.TlsCert + return x.SkipConnectionCheck } - return "" + return false } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetTlsKey() string { +func (x *AddProxySQLExporterParams) GetPushMetrics() bool { if x != nil { - return x.TlsKey + return x.PushMetrics } - return "" + return false } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetMaxQueryLength() int32 { +func (x *AddProxySQLExporterParams) GetDisableCollectors() []string { if x != nil { - return x.MaxQueryLength + return x.DisableCollectors } - return 0 + return nil } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetDisableQueryExamples() bool { +func (x *AddProxySQLExporterParams) GetAgentPassword() string { if x != nil { - return x.DisableQueryExamples + return x.AgentPassword } - return false + return "" } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetCustomLabels() map[string]string { +func (x *AddProxySQLExporterParams) GetLogLevel() LogLevel { if x != nil { - return x.CustomLabels + return x.LogLevel } - return nil + return LogLevel_LOG_LEVEL_UNSPECIFIED } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetSkipConnectionCheck() bool { +func (x *AddProxySQLExporterParams) GetExposeExporter() bool { if x != nil { - return x.SkipConnectionCheck + return x.ExposeExporter } return false } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetDisableCommentsParsing() bool { - if x != nil { - return x.DisableCommentsParsing +type ChangeProxySQLExporterRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` + Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` +} + +func (x *ChangeProxySQLExporterRequest) Reset() { + *x = ChangeProxySQLExporterRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_inventory_v1_agents_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return false } -func (x *AddQANMySQLPerfSchemaAgentRequest) GetLogLevel() LogLevel { +func (x *ChangeProxySQLExporterRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeProxySQLExporterRequest) ProtoMessage() {} + +func (x *ChangeProxySQLExporterRequest) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangeProxySQLExporterRequest.ProtoReflect.Descriptor instead. +func (*ChangeProxySQLExporterRequest) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{38} +} + +func (x *ChangeProxySQLExporterRequest) GetAgentId() string { if x != nil { - return x.LogLevel + return x.AgentId } - return LogLevel_LOG_LEVEL_UNSPECIFIED + return "" +} + +func (x *ChangeProxySQLExporterRequest) GetCommon() *ChangeCommonAgentParams { + if x != nil { + return x.Common + } + return nil } -type AddQANMySQLPerfSchemaAgentResponse struct { +type ChangeProxySQLExporterResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - QanMysqlPerfschemaAgent *QANMySQLPerfSchemaAgent `protobuf:"bytes,1,opt,name=qan_mysql_perfschema_agent,json=qanMysqlPerfschemaAgent,proto3" json:"qan_mysql_perfschema_agent,omitempty"` + ProxysqlExporter *ProxySQLExporter `protobuf:"bytes,1,opt,name=proxysql_exporter,json=proxysqlExporter,proto3" json:"proxysql_exporter,omitempty"` } -func (x *AddQANMySQLPerfSchemaAgentResponse) Reset() { - *x = AddQANMySQLPerfSchemaAgentResponse{} +func (x *ChangeProxySQLExporterResponse) Reset() { + *x = ChangeProxySQLExporterResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[45] + mi := &file_inventory_v1_agents_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddQANMySQLPerfSchemaAgentResponse) String() string { +func (x *ChangeProxySQLExporterResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddQANMySQLPerfSchemaAgentResponse) ProtoMessage() {} +func (*ChangeProxySQLExporterResponse) ProtoMessage() {} -func (x *AddQANMySQLPerfSchemaAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[45] +func (x *ChangeProxySQLExporterResponse) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5206,18 +5201,192 @@ func (x *AddQANMySQLPerfSchemaAgentResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use AddQANMySQLPerfSchemaAgentResponse.ProtoReflect.Descriptor instead. -func (*AddQANMySQLPerfSchemaAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{45} +// Deprecated: Use ChangeProxySQLExporterResponse.ProtoReflect.Descriptor instead. +func (*ChangeProxySQLExporterResponse) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{39} } -func (x *AddQANMySQLPerfSchemaAgentResponse) GetQanMysqlPerfschemaAgent() *QANMySQLPerfSchemaAgent { +func (x *ChangeProxySQLExporterResponse) GetProxysqlExporter() *ProxySQLExporter { if x != nil { - return x.QanMysqlPerfschemaAgent + return x.ProxysqlExporter + } + return nil +} + +type AddQANMySQLPerfSchemaAgentParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The pmm-agent identifier which runs this instance. + PmmAgentId string `protobuf:"bytes,1,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` + // Service identifier. + ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` + // MySQL username for getting performance data. + Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` + // MySQL password for getting performance data. + Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` + // Use TLS for database connections. + Tls bool `protobuf:"varint,5,opt,name=tls,proto3" json:"tls,omitempty"` + // Skip TLS certificate and hostname validation. + TlsSkipVerify bool `protobuf:"varint,6,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"` + // Certificate Authority certificate chain. + TlsCa string `protobuf:"bytes,10,opt,name=tls_ca,json=tlsCa,proto3" json:"tls_ca,omitempty"` + // Client certificate. + TlsCert string `protobuf:"bytes,11,opt,name=tls_cert,json=tlsCert,proto3" json:"tls_cert,omitempty"` + // Password for decrypting tls_cert. + TlsKey string `protobuf:"bytes,12,opt,name=tls_key,json=tlsKey,proto3" json:"tls_key,omitempty"` + // Limit query length in QAN (default: server-defined; -1: no limit) + MaxQueryLength int32 `protobuf:"varint,14,opt,name=max_query_length,json=maxQueryLength,proto3" json:"max_query_length,omitempty"` + // Disable query examples. + DisableQueryExamples bool `protobuf:"varint,7,opt,name=disable_query_examples,json=disableQueryExamples,proto3" json:"disable_query_examples,omitempty"` + // Custom user-assigned labels. + CustomLabels map[string]string `protobuf:"bytes,8,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Skip connection check. + SkipConnectionCheck bool `protobuf:"varint,9,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"` + // Disable parsing comments from queries and showing them in QAN. + DisableCommentsParsing bool `protobuf:"varint,15,opt,name=disable_comments_parsing,json=disableCommentsParsing,proto3" json:"disable_comments_parsing,omitempty"` + // Log level for exporter. + LogLevel LogLevel `protobuf:"varint,13,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` +} + +func (x *AddQANMySQLPerfSchemaAgentParams) Reset() { + *x = AddQANMySQLPerfSchemaAgentParams{} + if protoimpl.UnsafeEnabled { + mi := &file_inventory_v1_agents_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddQANMySQLPerfSchemaAgentParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddQANMySQLPerfSchemaAgentParams) ProtoMessage() {} + +func (x *AddQANMySQLPerfSchemaAgentParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddQANMySQLPerfSchemaAgentParams.ProtoReflect.Descriptor instead. +func (*AddQANMySQLPerfSchemaAgentParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{40} +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetPmmAgentId() string { + if x != nil { + return x.PmmAgentId + } + return "" +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetServiceId() string { + if x != nil { + return x.ServiceId + } + return "" +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetTls() bool { + if x != nil { + return x.Tls + } + return false +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetTlsSkipVerify() bool { + if x != nil { + return x.TlsSkipVerify + } + return false +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetTlsCa() string { + if x != nil { + return x.TlsCa + } + return "" +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetTlsCert() string { + if x != nil { + return x.TlsCert + } + return "" +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetTlsKey() string { + if x != nil { + return x.TlsKey + } + return "" +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetMaxQueryLength() int32 { + if x != nil { + return x.MaxQueryLength + } + return 0 +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetDisableQueryExamples() bool { + if x != nil { + return x.DisableQueryExamples + } + return false +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetCustomLabels() map[string]string { + if x != nil { + return x.CustomLabels } return nil } +func (x *AddQANMySQLPerfSchemaAgentParams) GetSkipConnectionCheck() bool { + if x != nil { + return x.SkipConnectionCheck + } + return false +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetDisableCommentsParsing() bool { + if x != nil { + return x.DisableCommentsParsing + } + return false +} + +func (x *AddQANMySQLPerfSchemaAgentParams) GetLogLevel() LogLevel { + if x != nil { + return x.LogLevel + } + return LogLevel_LOG_LEVEL_UNSPECIFIED +} + type ChangeQANMySQLPerfSchemaAgentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -5230,7 +5399,7 @@ type ChangeQANMySQLPerfSchemaAgentRequest struct { func (x *ChangeQANMySQLPerfSchemaAgentRequest) Reset() { *x = ChangeQANMySQLPerfSchemaAgentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[46] + mi := &file_inventory_v1_agents_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5243,7 +5412,7 @@ func (x *ChangeQANMySQLPerfSchemaAgentRequest) String() string { func (*ChangeQANMySQLPerfSchemaAgentRequest) ProtoMessage() {} func (x *ChangeQANMySQLPerfSchemaAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[46] + mi := &file_inventory_v1_agents_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5256,7 +5425,7 @@ func (x *ChangeQANMySQLPerfSchemaAgentRequest) ProtoReflect() protoreflect.Messa // Deprecated: Use ChangeQANMySQLPerfSchemaAgentRequest.ProtoReflect.Descriptor instead. func (*ChangeQANMySQLPerfSchemaAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{46} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{41} } func (x *ChangeQANMySQLPerfSchemaAgentRequest) GetAgentId() string { @@ -5284,7 +5453,7 @@ type ChangeQANMySQLPerfSchemaAgentResponse struct { func (x *ChangeQANMySQLPerfSchemaAgentResponse) Reset() { *x = ChangeQANMySQLPerfSchemaAgentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[47] + mi := &file_inventory_v1_agents_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5297,7 +5466,7 @@ func (x *ChangeQANMySQLPerfSchemaAgentResponse) String() string { func (*ChangeQANMySQLPerfSchemaAgentResponse) ProtoMessage() {} func (x *ChangeQANMySQLPerfSchemaAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[47] + mi := &file_inventory_v1_agents_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5310,7 +5479,7 @@ func (x *ChangeQANMySQLPerfSchemaAgentResponse) ProtoReflect() protoreflect.Mess // Deprecated: Use ChangeQANMySQLPerfSchemaAgentResponse.ProtoReflect.Descriptor instead. func (*ChangeQANMySQLPerfSchemaAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{47} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{42} } func (x *ChangeQANMySQLPerfSchemaAgentResponse) GetQanMysqlPerfschemaAgent() *QANMySQLPerfSchemaAgent { @@ -5320,7 +5489,7 @@ func (x *ChangeQANMySQLPerfSchemaAgentResponse) GetQanMysqlPerfschemaAgent() *QA return nil } -type AddQANMySQLSlowlogAgentRequest struct { +type AddQANMySQLSlowlogAgentParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -5360,23 +5529,23 @@ type AddQANMySQLSlowlogAgentRequest struct { LogLevel LogLevel `protobuf:"varint,14,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` } -func (x *AddQANMySQLSlowlogAgentRequest) Reset() { - *x = AddQANMySQLSlowlogAgentRequest{} +func (x *AddQANMySQLSlowlogAgentParams) Reset() { + *x = AddQANMySQLSlowlogAgentParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[48] + mi := &file_inventory_v1_agents_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddQANMySQLSlowlogAgentRequest) String() string { +func (x *AddQANMySQLSlowlogAgentParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddQANMySQLSlowlogAgentRequest) ProtoMessage() {} +func (*AddQANMySQLSlowlogAgentParams) ProtoMessage() {} -func (x *AddQANMySQLSlowlogAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[48] +func (x *AddQANMySQLSlowlogAgentParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5387,148 +5556,149 @@ func (x *AddQANMySQLSlowlogAgentRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddQANMySQLSlowlogAgentRequest.ProtoReflect.Descriptor instead. -func (*AddQANMySQLSlowlogAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{48} +// Deprecated: Use AddQANMySQLSlowlogAgentParams.ProtoReflect.Descriptor instead. +func (*AddQANMySQLSlowlogAgentParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{43} } -func (x *AddQANMySQLSlowlogAgentRequest) GetPmmAgentId() string { +func (x *AddQANMySQLSlowlogAgentParams) GetPmmAgentId() string { if x != nil { return x.PmmAgentId } return "" } -func (x *AddQANMySQLSlowlogAgentRequest) GetServiceId() string { +func (x *AddQANMySQLSlowlogAgentParams) GetServiceId() string { if x != nil { return x.ServiceId } return "" } -func (x *AddQANMySQLSlowlogAgentRequest) GetUsername() string { +func (x *AddQANMySQLSlowlogAgentParams) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *AddQANMySQLSlowlogAgentRequest) GetPassword() string { +func (x *AddQANMySQLSlowlogAgentParams) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *AddQANMySQLSlowlogAgentRequest) GetTls() bool { +func (x *AddQANMySQLSlowlogAgentParams) GetTls() bool { if x != nil { return x.Tls } return false } -func (x *AddQANMySQLSlowlogAgentRequest) GetTlsSkipVerify() bool { +func (x *AddQANMySQLSlowlogAgentParams) GetTlsSkipVerify() bool { if x != nil { return x.TlsSkipVerify } return false } -func (x *AddQANMySQLSlowlogAgentRequest) GetTlsCa() string { +func (x *AddQANMySQLSlowlogAgentParams) GetTlsCa() string { if x != nil { return x.TlsCa } return "" } -func (x *AddQANMySQLSlowlogAgentRequest) GetTlsCert() string { +func (x *AddQANMySQLSlowlogAgentParams) GetTlsCert() string { if x != nil { return x.TlsCert } return "" } -func (x *AddQANMySQLSlowlogAgentRequest) GetTlsKey() string { +func (x *AddQANMySQLSlowlogAgentParams) GetTlsKey() string { if x != nil { return x.TlsKey } return "" } -func (x *AddQANMySQLSlowlogAgentRequest) GetMaxQueryLength() int32 { +func (x *AddQANMySQLSlowlogAgentParams) GetMaxQueryLength() int32 { if x != nil { return x.MaxQueryLength } return 0 } -func (x *AddQANMySQLSlowlogAgentRequest) GetDisableQueryExamples() bool { +func (x *AddQANMySQLSlowlogAgentParams) GetDisableQueryExamples() bool { if x != nil { return x.DisableQueryExamples } return false } -func (x *AddQANMySQLSlowlogAgentRequest) GetMaxSlowlogFileSize() int64 { +func (x *AddQANMySQLSlowlogAgentParams) GetMaxSlowlogFileSize() int64 { if x != nil { return x.MaxSlowlogFileSize } return 0 } -func (x *AddQANMySQLSlowlogAgentRequest) GetCustomLabels() map[string]string { +func (x *AddQANMySQLSlowlogAgentParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -func (x *AddQANMySQLSlowlogAgentRequest) GetSkipConnectionCheck() bool { +func (x *AddQANMySQLSlowlogAgentParams) GetSkipConnectionCheck() bool { if x != nil { return x.SkipConnectionCheck } return false } -func (x *AddQANMySQLSlowlogAgentRequest) GetDisableCommentsParsing() bool { +func (x *AddQANMySQLSlowlogAgentParams) GetDisableCommentsParsing() bool { if x != nil { return x.DisableCommentsParsing } return false } -func (x *AddQANMySQLSlowlogAgentRequest) GetLogLevel() LogLevel { +func (x *AddQANMySQLSlowlogAgentParams) GetLogLevel() LogLevel { if x != nil { return x.LogLevel } return LogLevel_LOG_LEVEL_UNSPECIFIED } -type AddQANMySQLSlowlogAgentResponse struct { +type ChangeQANMySQLSlowlogAgentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - QanMysqlSlowlogAgent *QANMySQLSlowlogAgent `protobuf:"bytes,1,opt,name=qan_mysql_slowlog_agent,json=qanMysqlSlowlogAgent,proto3" json:"qan_mysql_slowlog_agent,omitempty"` + AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` + Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` } -func (x *AddQANMySQLSlowlogAgentResponse) Reset() { - *x = AddQANMySQLSlowlogAgentResponse{} +func (x *ChangeQANMySQLSlowlogAgentRequest) Reset() { + *x = ChangeQANMySQLSlowlogAgentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[49] + mi := &file_inventory_v1_agents_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddQANMySQLSlowlogAgentResponse) String() string { +func (x *ChangeQANMySQLSlowlogAgentRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddQANMySQLSlowlogAgentResponse) ProtoMessage() {} +func (*ChangeQANMySQLSlowlogAgentRequest) ProtoMessage() {} -func (x *AddQANMySQLSlowlogAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[49] +func (x *ChangeQANMySQLSlowlogAgentRequest) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5539,57 +5709,9 @@ func (x *AddQANMySQLSlowlogAgentResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddQANMySQLSlowlogAgentResponse.ProtoReflect.Descriptor instead. -func (*AddQANMySQLSlowlogAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{49} -} - -func (x *AddQANMySQLSlowlogAgentResponse) GetQanMysqlSlowlogAgent() *QANMySQLSlowlogAgent { - if x != nil { - return x.QanMysqlSlowlogAgent - } - return nil -} - -type ChangeQANMySQLSlowlogAgentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` -} - -func (x *ChangeQANMySQLSlowlogAgentRequest) Reset() { - *x = ChangeQANMySQLSlowlogAgentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChangeQANMySQLSlowlogAgentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChangeQANMySQLSlowlogAgentRequest) ProtoMessage() {} - -func (x *ChangeQANMySQLSlowlogAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ChangeQANMySQLSlowlogAgentRequest.ProtoReflect.Descriptor instead. -func (*ChangeQANMySQLSlowlogAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{50} +// Deprecated: Use ChangeQANMySQLSlowlogAgentRequest.ProtoReflect.Descriptor instead. +func (*ChangeQANMySQLSlowlogAgentRequest) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{44} } func (x *ChangeQANMySQLSlowlogAgentRequest) GetAgentId() string { @@ -5617,7 +5739,7 @@ type ChangeQANMySQLSlowlogAgentResponse struct { func (x *ChangeQANMySQLSlowlogAgentResponse) Reset() { *x = ChangeQANMySQLSlowlogAgentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[51] + mi := &file_inventory_v1_agents_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5630,7 +5752,7 @@ func (x *ChangeQANMySQLSlowlogAgentResponse) String() string { func (*ChangeQANMySQLSlowlogAgentResponse) ProtoMessage() {} func (x *ChangeQANMySQLSlowlogAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[51] + mi := &file_inventory_v1_agents_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5643,7 +5765,7 @@ func (x *ChangeQANMySQLSlowlogAgentResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ChangeQANMySQLSlowlogAgentResponse.ProtoReflect.Descriptor instead. func (*ChangeQANMySQLSlowlogAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{51} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{45} } func (x *ChangeQANMySQLSlowlogAgentResponse) GetQanMysqlSlowlogAgent() *QANMySQLSlowlogAgent { @@ -5653,7 +5775,7 @@ func (x *ChangeQANMySQLSlowlogAgentResponse) GetQanMysqlSlowlogAgent() *QANMySQL return nil } -type AddQANMongoDBProfilerAgentRequest struct { +type AddQANMongoDBProfilerAgentParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -5692,23 +5814,23 @@ type AddQANMongoDBProfilerAgentRequest struct { LogLevel LogLevel `protobuf:"varint,14,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` } -func (x *AddQANMongoDBProfilerAgentRequest) Reset() { - *x = AddQANMongoDBProfilerAgentRequest{} +func (x *AddQANMongoDBProfilerAgentParams) Reset() { + *x = AddQANMongoDBProfilerAgentParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[52] + mi := &file_inventory_v1_agents_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddQANMongoDBProfilerAgentRequest) String() string { +func (x *AddQANMongoDBProfilerAgentParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddQANMongoDBProfilerAgentRequest) ProtoMessage() {} +func (*AddQANMongoDBProfilerAgentParams) ProtoMessage() {} -func (x *AddQANMongoDBProfilerAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[52] +func (x *AddQANMongoDBProfilerAgentParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5719,163 +5841,116 @@ func (x *AddQANMongoDBProfilerAgentRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use AddQANMongoDBProfilerAgentRequest.ProtoReflect.Descriptor instead. -func (*AddQANMongoDBProfilerAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{52} +// Deprecated: Use AddQANMongoDBProfilerAgentParams.ProtoReflect.Descriptor instead. +func (*AddQANMongoDBProfilerAgentParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{46} } -func (x *AddQANMongoDBProfilerAgentRequest) GetPmmAgentId() string { +func (x *AddQANMongoDBProfilerAgentParams) GetPmmAgentId() string { if x != nil { return x.PmmAgentId } return "" } -func (x *AddQANMongoDBProfilerAgentRequest) GetServiceId() string { +func (x *AddQANMongoDBProfilerAgentParams) GetServiceId() string { if x != nil { return x.ServiceId } return "" } -func (x *AddQANMongoDBProfilerAgentRequest) GetUsername() string { +func (x *AddQANMongoDBProfilerAgentParams) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *AddQANMongoDBProfilerAgentRequest) GetPassword() string { +func (x *AddQANMongoDBProfilerAgentParams) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *AddQANMongoDBProfilerAgentRequest) GetTls() bool { +func (x *AddQANMongoDBProfilerAgentParams) GetTls() bool { if x != nil { return x.Tls } return false } -func (x *AddQANMongoDBProfilerAgentRequest) GetTlsSkipVerify() bool { +func (x *AddQANMongoDBProfilerAgentParams) GetTlsSkipVerify() bool { if x != nil { return x.TlsSkipVerify } return false } -func (x *AddQANMongoDBProfilerAgentRequest) GetTlsCertificateKey() string { +func (x *AddQANMongoDBProfilerAgentParams) GetTlsCertificateKey() string { if x != nil { return x.TlsCertificateKey } return "" } -func (x *AddQANMongoDBProfilerAgentRequest) GetTlsCertificateKeyFilePassword() string { +func (x *AddQANMongoDBProfilerAgentParams) GetTlsCertificateKeyFilePassword() string { if x != nil { return x.TlsCertificateKeyFilePassword } return "" } -func (x *AddQANMongoDBProfilerAgentRequest) GetTlsCa() string { +func (x *AddQANMongoDBProfilerAgentParams) GetTlsCa() string { if x != nil { return x.TlsCa } return "" } -func (x *AddQANMongoDBProfilerAgentRequest) GetMaxQueryLength() int32 { +func (x *AddQANMongoDBProfilerAgentParams) GetMaxQueryLength() int32 { if x != nil { return x.MaxQueryLength } return 0 } -func (x *AddQANMongoDBProfilerAgentRequest) GetCustomLabels() map[string]string { +func (x *AddQANMongoDBProfilerAgentParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -func (x *AddQANMongoDBProfilerAgentRequest) GetSkipConnectionCheck() bool { +func (x *AddQANMongoDBProfilerAgentParams) GetSkipConnectionCheck() bool { if x != nil { return x.SkipConnectionCheck } return false } -func (x *AddQANMongoDBProfilerAgentRequest) GetAuthenticationMechanism() string { +func (x *AddQANMongoDBProfilerAgentParams) GetAuthenticationMechanism() string { if x != nil { return x.AuthenticationMechanism } return "" } -func (x *AddQANMongoDBProfilerAgentRequest) GetAuthenticationDatabase() string { +func (x *AddQANMongoDBProfilerAgentParams) GetAuthenticationDatabase() string { if x != nil { return x.AuthenticationDatabase } return "" } -func (x *AddQANMongoDBProfilerAgentRequest) GetLogLevel() LogLevel { +func (x *AddQANMongoDBProfilerAgentParams) GetLogLevel() LogLevel { if x != nil { return x.LogLevel } return LogLevel_LOG_LEVEL_UNSPECIFIED } -type AddQANMongoDBProfilerAgentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QanMongodbProfilerAgent *QANMongoDBProfilerAgent `protobuf:"bytes,1,opt,name=qan_mongodb_profiler_agent,json=qanMongodbProfilerAgent,proto3" json:"qan_mongodb_profiler_agent,omitempty"` -} - -func (x *AddQANMongoDBProfilerAgentResponse) Reset() { - *x = AddQANMongoDBProfilerAgentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddQANMongoDBProfilerAgentResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddQANMongoDBProfilerAgentResponse) ProtoMessage() {} - -func (x *AddQANMongoDBProfilerAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddQANMongoDBProfilerAgentResponse.ProtoReflect.Descriptor instead. -func (*AddQANMongoDBProfilerAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{53} -} - -func (x *AddQANMongoDBProfilerAgentResponse) GetQanMongodbProfilerAgent() *QANMongoDBProfilerAgent { - if x != nil { - return x.QanMongodbProfilerAgent - } - return nil -} - type ChangeQANMongoDBProfilerAgentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -5888,7 +5963,7 @@ type ChangeQANMongoDBProfilerAgentRequest struct { func (x *ChangeQANMongoDBProfilerAgentRequest) Reset() { *x = ChangeQANMongoDBProfilerAgentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[54] + mi := &file_inventory_v1_agents_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5901,7 +5976,7 @@ func (x *ChangeQANMongoDBProfilerAgentRequest) String() string { func (*ChangeQANMongoDBProfilerAgentRequest) ProtoMessage() {} func (x *ChangeQANMongoDBProfilerAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[54] + mi := &file_inventory_v1_agents_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5914,7 +5989,7 @@ func (x *ChangeQANMongoDBProfilerAgentRequest) ProtoReflect() protoreflect.Messa // Deprecated: Use ChangeQANMongoDBProfilerAgentRequest.ProtoReflect.Descriptor instead. func (*ChangeQANMongoDBProfilerAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{54} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{47} } func (x *ChangeQANMongoDBProfilerAgentRequest) GetAgentId() string { @@ -5942,7 +6017,7 @@ type ChangeQANMongoDBProfilerAgentResponse struct { func (x *ChangeQANMongoDBProfilerAgentResponse) Reset() { *x = ChangeQANMongoDBProfilerAgentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[55] + mi := &file_inventory_v1_agents_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5955,7 +6030,7 @@ func (x *ChangeQANMongoDBProfilerAgentResponse) String() string { func (*ChangeQANMongoDBProfilerAgentResponse) ProtoMessage() {} func (x *ChangeQANMongoDBProfilerAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[55] + mi := &file_inventory_v1_agents_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5968,7 +6043,7 @@ func (x *ChangeQANMongoDBProfilerAgentResponse) ProtoReflect() protoreflect.Mess // Deprecated: Use ChangeQANMongoDBProfilerAgentResponse.ProtoReflect.Descriptor instead. func (*ChangeQANMongoDBProfilerAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{55} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{48} } func (x *ChangeQANMongoDBProfilerAgentResponse) GetQanMongodbProfilerAgent() *QANMongoDBProfilerAgent { @@ -5978,7 +6053,7 @@ func (x *ChangeQANMongoDBProfilerAgentResponse) GetQanMongodbProfilerAgent() *QA return nil } -type AddQANPostgreSQLPgStatementsAgentRequest struct { +type AddQANPostgreSQLPgStatementsAgentParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6013,23 +6088,23 @@ type AddQANPostgreSQLPgStatementsAgentRequest struct { LogLevel LogLevel `protobuf:"varint,12,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) Reset() { - *x = AddQANPostgreSQLPgStatementsAgentRequest{} +func (x *AddQANPostgreSQLPgStatementsAgentParams) Reset() { + *x = AddQANPostgreSQLPgStatementsAgentParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[56] + mi := &file_inventory_v1_agents_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) String() string { +func (x *AddQANPostgreSQLPgStatementsAgentParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddQANPostgreSQLPgStatementsAgentRequest) ProtoMessage() {} +func (*AddQANPostgreSQLPgStatementsAgentParams) ProtoMessage() {} -func (x *AddQANPostgreSQLPgStatementsAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[56] +func (x *AddQANPostgreSQLPgStatementsAgentParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6040,156 +6115,109 @@ func (x *AddQANPostgreSQLPgStatementsAgentRequest) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use AddQANPostgreSQLPgStatementsAgentRequest.ProtoReflect.Descriptor instead. -func (*AddQANPostgreSQLPgStatementsAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{56} +// Deprecated: Use AddQANPostgreSQLPgStatementsAgentParams.ProtoReflect.Descriptor instead. +func (*AddQANPostgreSQLPgStatementsAgentParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{49} } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetPmmAgentId() string { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetPmmAgentId() string { if x != nil { return x.PmmAgentId } return "" } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetServiceId() string { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetServiceId() string { if x != nil { return x.ServiceId } return "" } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetUsername() string { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetPassword() string { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetTls() bool { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetTls() bool { if x != nil { return x.Tls } return false } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetTlsSkipVerify() bool { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetTlsSkipVerify() bool { if x != nil { return x.TlsSkipVerify } return false } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetCustomLabels() map[string]string { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetSkipConnectionCheck() bool { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetSkipConnectionCheck() bool { if x != nil { return x.SkipConnectionCheck } return false } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetDisableCommentsParsing() bool { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetDisableCommentsParsing() bool { if x != nil { return x.DisableCommentsParsing } return false } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetMaxQueryLength() int32 { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetMaxQueryLength() int32 { if x != nil { return x.MaxQueryLength } return 0 } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetTlsCa() string { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetTlsCa() string { if x != nil { return x.TlsCa } return "" } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetTlsCert() string { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetTlsCert() string { if x != nil { return x.TlsCert } return "" } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetTlsKey() string { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetTlsKey() string { if x != nil { return x.TlsKey } return "" } -func (x *AddQANPostgreSQLPgStatementsAgentRequest) GetLogLevel() LogLevel { +func (x *AddQANPostgreSQLPgStatementsAgentParams) GetLogLevel() LogLevel { if x != nil { return x.LogLevel } return LogLevel_LOG_LEVEL_UNSPECIFIED } -type AddQANPostgreSQLPgStatementsAgentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QanPostgresqlPgstatementsAgent *QANPostgreSQLPgStatementsAgent `protobuf:"bytes,1,opt,name=qan_postgresql_pgstatements_agent,json=qanPostgresqlPgstatementsAgent,proto3" json:"qan_postgresql_pgstatements_agent,omitempty"` -} - -func (x *AddQANPostgreSQLPgStatementsAgentResponse) Reset() { - *x = AddQANPostgreSQLPgStatementsAgentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddQANPostgreSQLPgStatementsAgentResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddQANPostgreSQLPgStatementsAgentResponse) ProtoMessage() {} - -func (x *AddQANPostgreSQLPgStatementsAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddQANPostgreSQLPgStatementsAgentResponse.ProtoReflect.Descriptor instead. -func (*AddQANPostgreSQLPgStatementsAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{57} -} - -func (x *AddQANPostgreSQLPgStatementsAgentResponse) GetQanPostgresqlPgstatementsAgent() *QANPostgreSQLPgStatementsAgent { - if x != nil { - return x.QanPostgresqlPgstatementsAgent - } - return nil -} - type ChangeQANPostgreSQLPgStatementsAgentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -6202,7 +6230,7 @@ type ChangeQANPostgreSQLPgStatementsAgentRequest struct { func (x *ChangeQANPostgreSQLPgStatementsAgentRequest) Reset() { *x = ChangeQANPostgreSQLPgStatementsAgentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[58] + mi := &file_inventory_v1_agents_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6215,7 +6243,7 @@ func (x *ChangeQANPostgreSQLPgStatementsAgentRequest) String() string { func (*ChangeQANPostgreSQLPgStatementsAgentRequest) ProtoMessage() {} func (x *ChangeQANPostgreSQLPgStatementsAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[58] + mi := &file_inventory_v1_agents_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6228,7 +6256,7 @@ func (x *ChangeQANPostgreSQLPgStatementsAgentRequest) ProtoReflect() protoreflec // Deprecated: Use ChangeQANPostgreSQLPgStatementsAgentRequest.ProtoReflect.Descriptor instead. func (*ChangeQANPostgreSQLPgStatementsAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{58} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{50} } func (x *ChangeQANPostgreSQLPgStatementsAgentRequest) GetAgentId() string { @@ -6256,7 +6284,7 @@ type ChangeQANPostgreSQLPgStatementsAgentResponse struct { func (x *ChangeQANPostgreSQLPgStatementsAgentResponse) Reset() { *x = ChangeQANPostgreSQLPgStatementsAgentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[59] + mi := &file_inventory_v1_agents_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6269,7 +6297,7 @@ func (x *ChangeQANPostgreSQLPgStatementsAgentResponse) String() string { func (*ChangeQANPostgreSQLPgStatementsAgentResponse) ProtoMessage() {} func (x *ChangeQANPostgreSQLPgStatementsAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[59] + mi := &file_inventory_v1_agents_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6282,7 +6310,7 @@ func (x *ChangeQANPostgreSQLPgStatementsAgentResponse) ProtoReflect() protorefle // Deprecated: Use ChangeQANPostgreSQLPgStatementsAgentResponse.ProtoReflect.Descriptor instead. func (*ChangeQANPostgreSQLPgStatementsAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{59} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{51} } func (x *ChangeQANPostgreSQLPgStatementsAgentResponse) GetQanPostgresqlPgstatementsAgent() *QANPostgreSQLPgStatementsAgent { @@ -6292,7 +6320,7 @@ func (x *ChangeQANPostgreSQLPgStatementsAgentResponse) GetQanPostgresqlPgstateme return nil } -type AddQANPostgreSQLPgStatMonitorAgentRequest struct { +type AddQANPostgreSQLPgStatMonitorAgentParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6329,23 +6357,23 @@ type AddQANPostgreSQLPgStatMonitorAgentRequest struct { LogLevel LogLevel `protobuf:"varint,13,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) Reset() { - *x = AddQANPostgreSQLPgStatMonitorAgentRequest{} +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) Reset() { + *x = AddQANPostgreSQLPgStatMonitorAgentParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[60] + mi := &file_inventory_v1_agents_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) String() string { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddQANPostgreSQLPgStatMonitorAgentRequest) ProtoMessage() {} +func (*AddQANPostgreSQLPgStatMonitorAgentParams) ProtoMessage() {} -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[60] +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6356,163 +6384,116 @@ func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use AddQANPostgreSQLPgStatMonitorAgentRequest.ProtoReflect.Descriptor instead. -func (*AddQANPostgreSQLPgStatMonitorAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{60} +// Deprecated: Use AddQANPostgreSQLPgStatMonitorAgentParams.ProtoReflect.Descriptor instead. +func (*AddQANPostgreSQLPgStatMonitorAgentParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{52} } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetPmmAgentId() string { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetPmmAgentId() string { if x != nil { return x.PmmAgentId } return "" } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetServiceId() string { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetServiceId() string { if x != nil { return x.ServiceId } return "" } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetUsername() string { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetPassword() string { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetTls() bool { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetTls() bool { if x != nil { return x.Tls } return false } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetTlsSkipVerify() bool { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetTlsSkipVerify() bool { if x != nil { return x.TlsSkipVerify } return false } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetMaxQueryLength() int32 { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetMaxQueryLength() int32 { if x != nil { return x.MaxQueryLength } return 0 } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetDisableQueryExamples() bool { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetDisableQueryExamples() bool { if x != nil { return x.DisableQueryExamples } return false } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetCustomLabels() map[string]string { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetSkipConnectionCheck() bool { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetSkipConnectionCheck() bool { if x != nil { return x.SkipConnectionCheck } return false } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetDisableCommentsParsing() bool { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetDisableCommentsParsing() bool { if x != nil { return x.DisableCommentsParsing } return false } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetTlsCa() string { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetTlsCa() string { if x != nil { return x.TlsCa } return "" } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetTlsCert() string { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetTlsCert() string { if x != nil { return x.TlsCert } return "" } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetTlsKey() string { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetTlsKey() string { if x != nil { return x.TlsKey } return "" } -func (x *AddQANPostgreSQLPgStatMonitorAgentRequest) GetLogLevel() LogLevel { +func (x *AddQANPostgreSQLPgStatMonitorAgentParams) GetLogLevel() LogLevel { if x != nil { return x.LogLevel } return LogLevel_LOG_LEVEL_UNSPECIFIED } -type AddQANPostgreSQLPgStatMonitorAgentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QanPostgresqlPgstatmonitorAgent *QANPostgreSQLPgStatMonitorAgent `protobuf:"bytes,1,opt,name=qan_postgresql_pgstatmonitor_agent,json=qanPostgresqlPgstatmonitorAgent,proto3" json:"qan_postgresql_pgstatmonitor_agent,omitempty"` -} - -func (x *AddQANPostgreSQLPgStatMonitorAgentResponse) Reset() { - *x = AddQANPostgreSQLPgStatMonitorAgentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddQANPostgreSQLPgStatMonitorAgentResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddQANPostgreSQLPgStatMonitorAgentResponse) ProtoMessage() {} - -func (x *AddQANPostgreSQLPgStatMonitorAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddQANPostgreSQLPgStatMonitorAgentResponse.ProtoReflect.Descriptor instead. -func (*AddQANPostgreSQLPgStatMonitorAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{61} -} - -func (x *AddQANPostgreSQLPgStatMonitorAgentResponse) GetQanPostgresqlPgstatmonitorAgent() *QANPostgreSQLPgStatMonitorAgent { - if x != nil { - return x.QanPostgresqlPgstatmonitorAgent - } - return nil -} - type ChangeQANPostgreSQLPgStatMonitorAgentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -6525,7 +6506,7 @@ type ChangeQANPostgreSQLPgStatMonitorAgentRequest struct { func (x *ChangeQANPostgreSQLPgStatMonitorAgentRequest) Reset() { *x = ChangeQANPostgreSQLPgStatMonitorAgentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[62] + mi := &file_inventory_v1_agents_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6538,7 +6519,7 @@ func (x *ChangeQANPostgreSQLPgStatMonitorAgentRequest) String() string { func (*ChangeQANPostgreSQLPgStatMonitorAgentRequest) ProtoMessage() {} func (x *ChangeQANPostgreSQLPgStatMonitorAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[62] + mi := &file_inventory_v1_agents_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6551,7 +6532,7 @@ func (x *ChangeQANPostgreSQLPgStatMonitorAgentRequest) ProtoReflect() protorefle // Deprecated: Use ChangeQANPostgreSQLPgStatMonitorAgentRequest.ProtoReflect.Descriptor instead. func (*ChangeQANPostgreSQLPgStatMonitorAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{62} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{53} } func (x *ChangeQANPostgreSQLPgStatMonitorAgentRequest) GetAgentId() string { @@ -6579,7 +6560,7 @@ type ChangeQANPostgreSQLPgStatMonitorAgentResponse struct { func (x *ChangeQANPostgreSQLPgStatMonitorAgentResponse) Reset() { *x = ChangeQANPostgreSQLPgStatMonitorAgentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[63] + mi := &file_inventory_v1_agents_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6592,7 +6573,7 @@ func (x *ChangeQANPostgreSQLPgStatMonitorAgentResponse) String() string { func (*ChangeQANPostgreSQLPgStatMonitorAgentResponse) ProtoMessage() {} func (x *ChangeQANPostgreSQLPgStatMonitorAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[63] + mi := &file_inventory_v1_agents_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6605,7 +6586,7 @@ func (x *ChangeQANPostgreSQLPgStatMonitorAgentResponse) ProtoReflect() protorefl // Deprecated: Use ChangeQANPostgreSQLPgStatMonitorAgentResponse.ProtoReflect.Descriptor instead. func (*ChangeQANPostgreSQLPgStatMonitorAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{63} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{54} } func (x *ChangeQANPostgreSQLPgStatMonitorAgentResponse) GetQanPostgresqlPgstatmonitorAgent() *QANPostgreSQLPgStatMonitorAgent { @@ -6615,7 +6596,7 @@ func (x *ChangeQANPostgreSQLPgStatMonitorAgentResponse) GetQanPostgresqlPgstatmo return nil } -type AddRDSExporterRequest struct { +type AddRDSExporterParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6642,23 +6623,23 @@ type AddRDSExporterRequest struct { LogLevel LogLevel `protobuf:"varint,10,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` } -func (x *AddRDSExporterRequest) Reset() { - *x = AddRDSExporterRequest{} +func (x *AddRDSExporterParams) Reset() { + *x = AddRDSExporterParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[64] + mi := &file_inventory_v1_agents_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddRDSExporterRequest) String() string { +func (x *AddRDSExporterParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddRDSExporterRequest) ProtoMessage() {} +func (*AddRDSExporterParams) ProtoMessage() {} -func (x *AddRDSExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[64] +func (x *AddRDSExporterParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6669,106 +6650,107 @@ func (x *AddRDSExporterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddRDSExporterRequest.ProtoReflect.Descriptor instead. -func (*AddRDSExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{64} +// Deprecated: Use AddRDSExporterParams.ProtoReflect.Descriptor instead. +func (*AddRDSExporterParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{55} } -func (x *AddRDSExporterRequest) GetPmmAgentId() string { +func (x *AddRDSExporterParams) GetPmmAgentId() string { if x != nil { return x.PmmAgentId } return "" } -func (x *AddRDSExporterRequest) GetNodeId() string { +func (x *AddRDSExporterParams) GetNodeId() string { if x != nil { return x.NodeId } return "" } -func (x *AddRDSExporterRequest) GetAwsAccessKey() string { +func (x *AddRDSExporterParams) GetAwsAccessKey() string { if x != nil { return x.AwsAccessKey } return "" } -func (x *AddRDSExporterRequest) GetAwsSecretKey() string { +func (x *AddRDSExporterParams) GetAwsSecretKey() string { if x != nil { return x.AwsSecretKey } return "" } -func (x *AddRDSExporterRequest) GetCustomLabels() map[string]string { +func (x *AddRDSExporterParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -func (x *AddRDSExporterRequest) GetSkipConnectionCheck() bool { +func (x *AddRDSExporterParams) GetSkipConnectionCheck() bool { if x != nil { return x.SkipConnectionCheck } return false } -func (x *AddRDSExporterRequest) GetDisableBasicMetrics() bool { +func (x *AddRDSExporterParams) GetDisableBasicMetrics() bool { if x != nil { return x.DisableBasicMetrics } return false } -func (x *AddRDSExporterRequest) GetDisableEnhancedMetrics() bool { +func (x *AddRDSExporterParams) GetDisableEnhancedMetrics() bool { if x != nil { return x.DisableEnhancedMetrics } return false } -func (x *AddRDSExporterRequest) GetPushMetrics() bool { +func (x *AddRDSExporterParams) GetPushMetrics() bool { if x != nil { return x.PushMetrics } return false } -func (x *AddRDSExporterRequest) GetLogLevel() LogLevel { +func (x *AddRDSExporterParams) GetLogLevel() LogLevel { if x != nil { return x.LogLevel } return LogLevel_LOG_LEVEL_UNSPECIFIED } -type AddRDSExporterResponse struct { +type ChangeRDSExporterRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - RdsExporter *RDSExporter `protobuf:"bytes,1,opt,name=rds_exporter,json=rdsExporter,proto3" json:"rds_exporter,omitempty"` + AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` + Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` } -func (x *AddRDSExporterResponse) Reset() { - *x = AddRDSExporterResponse{} +func (x *ChangeRDSExporterRequest) Reset() { + *x = ChangeRDSExporterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[65] + mi := &file_inventory_v1_agents_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddRDSExporterResponse) String() string { +func (x *ChangeRDSExporterRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddRDSExporterResponse) ProtoMessage() {} +func (*ChangeRDSExporterRequest) ProtoMessage() {} -func (x *AddRDSExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[65] +func (x *ChangeRDSExporterRequest) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6779,74 +6761,26 @@ func (x *AddRDSExporterResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddRDSExporterResponse.ProtoReflect.Descriptor instead. -func (*AddRDSExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{65} +// Deprecated: Use ChangeRDSExporterRequest.ProtoReflect.Descriptor instead. +func (*ChangeRDSExporterRequest) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{56} } -func (x *AddRDSExporterResponse) GetRdsExporter() *RDSExporter { +func (x *ChangeRDSExporterRequest) GetAgentId() string { if x != nil { - return x.RdsExporter + return x.AgentId + } + return "" +} + +func (x *ChangeRDSExporterRequest) GetCommon() *ChangeCommonAgentParams { + if x != nil { + return x.Common } return nil } -type ChangeRDSExporterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - Common *ChangeCommonAgentParams `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` -} - -func (x *ChangeRDSExporterRequest) Reset() { - *x = ChangeRDSExporterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChangeRDSExporterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChangeRDSExporterRequest) ProtoMessage() {} - -func (x *ChangeRDSExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ChangeRDSExporterRequest.ProtoReflect.Descriptor instead. -func (*ChangeRDSExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{66} -} - -func (x *ChangeRDSExporterRequest) GetAgentId() string { - if x != nil { - return x.AgentId - } - return "" -} - -func (x *ChangeRDSExporterRequest) GetCommon() *ChangeCommonAgentParams { - if x != nil { - return x.Common - } - return nil -} - -type ChangeRDSExporterResponse struct { +type ChangeRDSExporterResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6857,7 +6791,7 @@ type ChangeRDSExporterResponse struct { func (x *ChangeRDSExporterResponse) Reset() { *x = ChangeRDSExporterResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[67] + mi := &file_inventory_v1_agents_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6870,7 +6804,7 @@ func (x *ChangeRDSExporterResponse) String() string { func (*ChangeRDSExporterResponse) ProtoMessage() {} func (x *ChangeRDSExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[67] + mi := &file_inventory_v1_agents_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6883,7 +6817,7 @@ func (x *ChangeRDSExporterResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeRDSExporterResponse.ProtoReflect.Descriptor instead. func (*ChangeRDSExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{67} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{57} } func (x *ChangeRDSExporterResponse) GetRdsExporter() *RDSExporter { @@ -6893,7 +6827,7 @@ func (x *ChangeRDSExporterResponse) GetRdsExporter() *RDSExporter { return nil } -type AddExternalExporterRequest struct { +type AddExternalExporterParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6918,23 +6852,23 @@ type AddExternalExporterRequest struct { PushMetrics bool `protobuf:"varint,11,opt,name=push_metrics,json=pushMetrics,proto3" json:"push_metrics,omitempty"` } -func (x *AddExternalExporterRequest) Reset() { - *x = AddExternalExporterRequest{} +func (x *AddExternalExporterParams) Reset() { + *x = AddExternalExporterParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[68] + mi := &file_inventory_v1_agents_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddExternalExporterRequest) String() string { +func (x *AddExternalExporterParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddExternalExporterRequest) ProtoMessage() {} +func (*AddExternalExporterParams) ProtoMessage() {} -func (x *AddExternalExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[68] +func (x *AddExternalExporterParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6945,121 +6879,74 @@ func (x *AddExternalExporterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddExternalExporterRequest.ProtoReflect.Descriptor instead. -func (*AddExternalExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{68} +// Deprecated: Use AddExternalExporterParams.ProtoReflect.Descriptor instead. +func (*AddExternalExporterParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{58} } -func (x *AddExternalExporterRequest) GetRunsOnNodeId() string { +func (x *AddExternalExporterParams) GetRunsOnNodeId() string { if x != nil { return x.RunsOnNodeId } return "" } -func (x *AddExternalExporterRequest) GetServiceId() string { +func (x *AddExternalExporterParams) GetServiceId() string { if x != nil { return x.ServiceId } return "" } -func (x *AddExternalExporterRequest) GetUsername() string { +func (x *AddExternalExporterParams) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *AddExternalExporterRequest) GetPassword() string { +func (x *AddExternalExporterParams) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *AddExternalExporterRequest) GetScheme() string { +func (x *AddExternalExporterParams) GetScheme() string { if x != nil { return x.Scheme } return "" } -func (x *AddExternalExporterRequest) GetMetricsPath() string { +func (x *AddExternalExporterParams) GetMetricsPath() string { if x != nil { return x.MetricsPath } return "" } -func (x *AddExternalExporterRequest) GetListenPort() uint32 { +func (x *AddExternalExporterParams) GetListenPort() uint32 { if x != nil { return x.ListenPort } return 0 } -func (x *AddExternalExporterRequest) GetCustomLabels() map[string]string { +func (x *AddExternalExporterParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -func (x *AddExternalExporterRequest) GetPushMetrics() bool { +func (x *AddExternalExporterParams) GetPushMetrics() bool { if x != nil { return x.PushMetrics } return false } -type AddExternalExporterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExternalExporter *ExternalExporter `protobuf:"bytes,1,opt,name=external_exporter,json=externalExporter,proto3" json:"external_exporter,omitempty"` -} - -func (x *AddExternalExporterResponse) Reset() { - *x = AddExternalExporterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddExternalExporterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddExternalExporterResponse) ProtoMessage() {} - -func (x *AddExternalExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddExternalExporterResponse.ProtoReflect.Descriptor instead. -func (*AddExternalExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{69} -} - -func (x *AddExternalExporterResponse) GetExternalExporter() *ExternalExporter { - if x != nil { - return x.ExternalExporter - } - return nil -} - type ChangeExternalExporterRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -7072,7 +6959,7 @@ type ChangeExternalExporterRequest struct { func (x *ChangeExternalExporterRequest) Reset() { *x = ChangeExternalExporterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[70] + mi := &file_inventory_v1_agents_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7085,7 +6972,7 @@ func (x *ChangeExternalExporterRequest) String() string { func (*ChangeExternalExporterRequest) ProtoMessage() {} func (x *ChangeExternalExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[70] + mi := &file_inventory_v1_agents_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7098,7 +6985,7 @@ func (x *ChangeExternalExporterRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeExternalExporterRequest.ProtoReflect.Descriptor instead. func (*ChangeExternalExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{70} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{59} } func (x *ChangeExternalExporterRequest) GetAgentId() string { @@ -7126,7 +7013,7 @@ type ChangeExternalExporterResponse struct { func (x *ChangeExternalExporterResponse) Reset() { *x = ChangeExternalExporterResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[71] + mi := &file_inventory_v1_agents_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7139,7 +7026,7 @@ func (x *ChangeExternalExporterResponse) String() string { func (*ChangeExternalExporterResponse) ProtoMessage() {} func (x *ChangeExternalExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[71] + mi := &file_inventory_v1_agents_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7152,7 +7039,7 @@ func (x *ChangeExternalExporterResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeExternalExporterResponse.ProtoReflect.Descriptor instead. func (*ChangeExternalExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{71} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{60} } func (x *ChangeExternalExporterResponse) GetExternalExporter() *ExternalExporter { @@ -7162,7 +7049,7 @@ func (x *ChangeExternalExporterResponse) GetExternalExporter() *ExternalExporter return nil } -type AddAzureDatabaseExporterRequest struct { +type AddAzureDatabaseExporterParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -7193,23 +7080,23 @@ type AddAzureDatabaseExporterRequest struct { LogLevel LogLevel `protobuf:"varint,12,opt,name=log_level,json=logLevel,proto3,enum=inventory.v1.LogLevel" json:"log_level,omitempty"` } -func (x *AddAzureDatabaseExporterRequest) Reset() { - *x = AddAzureDatabaseExporterRequest{} +func (x *AddAzureDatabaseExporterParams) Reset() { + *x = AddAzureDatabaseExporterParams{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[72] + mi := &file_inventory_v1_agents_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AddAzureDatabaseExporterRequest) String() string { +func (x *AddAzureDatabaseExporterParams) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddAzureDatabaseExporterRequest) ProtoMessage() {} +func (*AddAzureDatabaseExporterParams) ProtoMessage() {} -func (x *AddAzureDatabaseExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[72] +func (x *AddAzureDatabaseExporterParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_agents_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7220,142 +7107,95 @@ func (x *AddAzureDatabaseExporterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddAzureDatabaseExporterRequest.ProtoReflect.Descriptor instead. -func (*AddAzureDatabaseExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{72} +// Deprecated: Use AddAzureDatabaseExporterParams.ProtoReflect.Descriptor instead. +func (*AddAzureDatabaseExporterParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{61} } -func (x *AddAzureDatabaseExporterRequest) GetPmmAgentId() string { +func (x *AddAzureDatabaseExporterParams) GetPmmAgentId() string { if x != nil { return x.PmmAgentId } return "" } -func (x *AddAzureDatabaseExporterRequest) GetNodeId() string { +func (x *AddAzureDatabaseExporterParams) GetNodeId() string { if x != nil { return x.NodeId } return "" } -func (x *AddAzureDatabaseExporterRequest) GetAzureClientId() string { +func (x *AddAzureDatabaseExporterParams) GetAzureClientId() string { if x != nil { return x.AzureClientId } return "" } -func (x *AddAzureDatabaseExporterRequest) GetAzureClientSecret() string { +func (x *AddAzureDatabaseExporterParams) GetAzureClientSecret() string { if x != nil { return x.AzureClientSecret } return "" } -func (x *AddAzureDatabaseExporterRequest) GetAzureTenantId() string { +func (x *AddAzureDatabaseExporterParams) GetAzureTenantId() string { if x != nil { return x.AzureTenantId } return "" } -func (x *AddAzureDatabaseExporterRequest) GetAzureSubscriptionId() string { +func (x *AddAzureDatabaseExporterParams) GetAzureSubscriptionId() string { if x != nil { return x.AzureSubscriptionId } return "" } -func (x *AddAzureDatabaseExporterRequest) GetAzureResourceGroup() string { +func (x *AddAzureDatabaseExporterParams) GetAzureResourceGroup() string { if x != nil { return x.AzureResourceGroup } return "" } -func (x *AddAzureDatabaseExporterRequest) GetAzureDatabaseResourceType() string { +func (x *AddAzureDatabaseExporterParams) GetAzureDatabaseResourceType() string { if x != nil { return x.AzureDatabaseResourceType } return "" } -func (x *AddAzureDatabaseExporterRequest) GetCustomLabels() map[string]string { +func (x *AddAzureDatabaseExporterParams) GetCustomLabels() map[string]string { if x != nil { return x.CustomLabels } return nil } -func (x *AddAzureDatabaseExporterRequest) GetSkipConnectionCheck() bool { +func (x *AddAzureDatabaseExporterParams) GetSkipConnectionCheck() bool { if x != nil { return x.SkipConnectionCheck } return false } -func (x *AddAzureDatabaseExporterRequest) GetPushMetrics() bool { +func (x *AddAzureDatabaseExporterParams) GetPushMetrics() bool { if x != nil { return x.PushMetrics } return false } -func (x *AddAzureDatabaseExporterRequest) GetLogLevel() LogLevel { +func (x *AddAzureDatabaseExporterParams) GetLogLevel() LogLevel { if x != nil { return x.LogLevel } return LogLevel_LOG_LEVEL_UNSPECIFIED } -type AddAzureDatabaseExporterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AzureDatabaseExporter *AzureDatabaseExporter `protobuf:"bytes,1,opt,name=azure_database_exporter,json=azureDatabaseExporter,proto3" json:"azure_database_exporter,omitempty"` -} - -func (x *AddAzureDatabaseExporterResponse) Reset() { - *x = AddAzureDatabaseExporterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddAzureDatabaseExporterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddAzureDatabaseExporterResponse) ProtoMessage() {} - -func (x *AddAzureDatabaseExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddAzureDatabaseExporterResponse.ProtoReflect.Descriptor instead. -func (*AddAzureDatabaseExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{73} -} - -func (x *AddAzureDatabaseExporterResponse) GetAzureDatabaseExporter() *AzureDatabaseExporter { - if x != nil { - return x.AzureDatabaseExporter - } - return nil -} - type ChangeAzureDatabaseExporterRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -7368,7 +7208,7 @@ type ChangeAzureDatabaseExporterRequest struct { func (x *ChangeAzureDatabaseExporterRequest) Reset() { *x = ChangeAzureDatabaseExporterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[74] + mi := &file_inventory_v1_agents_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7381,7 +7221,7 @@ func (x *ChangeAzureDatabaseExporterRequest) String() string { func (*ChangeAzureDatabaseExporterRequest) ProtoMessage() {} func (x *ChangeAzureDatabaseExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[74] + mi := &file_inventory_v1_agents_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7394,7 +7234,7 @@ func (x *ChangeAzureDatabaseExporterRequest) ProtoReflect() protoreflect.Message // Deprecated: Use ChangeAzureDatabaseExporterRequest.ProtoReflect.Descriptor instead. func (*ChangeAzureDatabaseExporterRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{74} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{62} } func (x *ChangeAzureDatabaseExporterRequest) GetAgentId() string { @@ -7422,7 +7262,7 @@ type ChangeAzureDatabaseExporterResponse struct { func (x *ChangeAzureDatabaseExporterResponse) Reset() { *x = ChangeAzureDatabaseExporterResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[75] + mi := &file_inventory_v1_agents_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7435,7 +7275,7 @@ func (x *ChangeAzureDatabaseExporterResponse) String() string { func (*ChangeAzureDatabaseExporterResponse) ProtoMessage() {} func (x *ChangeAzureDatabaseExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[75] + mi := &file_inventory_v1_agents_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7448,7 +7288,7 @@ func (x *ChangeAzureDatabaseExporterResponse) ProtoReflect() protoreflect.Messag // Deprecated: Use ChangeAzureDatabaseExporterResponse.ProtoReflect.Descriptor instead. func (*ChangeAzureDatabaseExporterResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{75} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{63} } func (x *ChangeAzureDatabaseExporterResponse) GetAzureDatabaseExporter() *AzureDatabaseExporter { @@ -7471,7 +7311,7 @@ type RemoveAgentRequest struct { func (x *RemoveAgentRequest) Reset() { *x = RemoveAgentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[76] + mi := &file_inventory_v1_agents_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7484,7 +7324,7 @@ func (x *RemoveAgentRequest) String() string { func (*RemoveAgentRequest) ProtoMessage() {} func (x *RemoveAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[76] + mi := &file_inventory_v1_agents_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7497,7 +7337,7 @@ func (x *RemoveAgentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveAgentRequest.ProtoReflect.Descriptor instead. func (*RemoveAgentRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{76} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{64} } func (x *RemoveAgentRequest) GetAgentId() string { @@ -7523,7 +7363,7 @@ type RemoveAgentResponse struct { func (x *RemoveAgentResponse) Reset() { *x = RemoveAgentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_inventory_v1_agents_proto_msgTypes[77] + mi := &file_inventory_v1_agents_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7536,7 +7376,7 @@ func (x *RemoveAgentResponse) String() string { func (*RemoveAgentResponse) ProtoMessage() {} func (x *RemoveAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_agents_proto_msgTypes[77] + mi := &file_inventory_v1_agents_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7549,7 +7389,7 @@ func (x *RemoveAgentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveAgentResponse.ProtoReflect.Descriptor instead. func (*RemoveAgentResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_agents_proto_rawDescGZIP(), []int{77} + return file_inventory_v1_agents_proto_rawDescGZIP(), []int{65} } var File_inventory_v1_agents_proto protoreflect.FileDescriptor @@ -8382,57 +8222,212 @@ var file_inventory_v1_agents_proto_rawDesc = []byte{ 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x18, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4c, 0x6f, 0x67, 0x4c, 0x69, 0x6e, - 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xde, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x50, - 0x4d, 0x4d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, - 0x0a, 0x0f, 0x72, 0x75, 0x6e, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, - 0x52, 0x0c, 0x72, 0x75, 0x6e, 0x73, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x57, - 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x4d, 0x4d, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4a, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, - 0x4d, 0x4d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x33, 0x0a, 0x09, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x4d, 0x4d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x6d, 0x6d, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x22, 0x91, 0x03, 0x0a, 0x16, 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x64, 0x65, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, - 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x5b, 0x0a, 0x0d, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x36, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xdc, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x50, + 0x4d, 0x4d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x0a, + 0x0f, 0x72, 0x75, 0x6e, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, + 0x0c, 0x72, 0x75, 0x6e, 0x73, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x56, 0x0a, + 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x4d, 0x4d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xda, 0x0a, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x09, 0x70, 0x6d, + 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, + 0x50, 0x4d, 0x4d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, + 0x52, 0x08, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x4a, 0x0a, 0x0d, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, - 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, - 0x75, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, - 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, - 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x27, - 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x5a, 0x0a, 0x17, 0x41, 0x64, 0x64, 0x4e, - 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x22, 0x7e, 0x0a, 0x19, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x6f, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x0f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, + 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x53, 0x0a, 0x10, 0x6d, 0x6f, 0x6e, 0x67, + 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x6f, + 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x56, 0x0a, + 0x11, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, + 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x48, 0x00, 0x52, 0x10, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x56, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, + 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x10, 0x70, 0x72, 0x6f, + 0x78, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x56, 0x0a, + 0x11, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x48, 0x00, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x0c, 0x72, 0x64, 0x73, 0x5f, 0x65, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x44, + 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, + 0x00, 0x52, 0x0b, 0x72, 0x64, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x66, + 0x0a, 0x17, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, + 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x64, 0x64, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, + 0x15, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x6d, 0x0a, 0x1a, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, + 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, + 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x17, 0x71, 0x61, + 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x64, 0x0a, 0x17, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, + 0x71, 0x6c, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, + 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x14, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, + 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x6d, 0x0a, 0x1a, 0x71, + 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, + 0x00, 0x52, 0x17, 0x71, 0x61, 0x6e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x50, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x82, 0x01, 0x0a, 0x21, 0x71, + 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, + 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, + 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, + 0x85, 0x01, 0x0a, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, + 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, + 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, + 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x1f, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, + 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, + 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x22, 0xfc, 0x09, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x09, 0x70, 0x6d, 0x6d, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x4d, 0x4d, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x08, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, + 0x41, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x48, 0x00, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x12, 0x47, 0x0a, 0x0f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, + 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0e, 0x6d, 0x79, 0x73, + 0x71, 0x6c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x10, 0x6d, + 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x11, 0x70, 0x6f, 0x73, 0x74, 0x67, + 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x48, 0x00, 0x52, 0x10, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, + 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x48, 0x00, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x48, 0x00, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x0c, 0x72, 0x64, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x64, 0x73, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x12, 0x5d, 0x0a, 0x17, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x61, + 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x15, 0x61, 0x7a, + 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x12, 0x64, 0x0a, 0x1a, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, + 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, + 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x00, + 0x52, 0x17, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x65, 0x72, 0x66, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x5b, 0x0a, 0x17, 0x71, 0x61, 0x6e, + 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, + 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x00, + 0x52, 0x14, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, + 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x64, 0x0a, 0x1a, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, + 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, + 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x48, 0x00, 0x52, 0x17, 0x71, 0x61, 0x6e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x50, + 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x79, 0x0a, 0x21, + 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, + 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, + 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, + 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x7c, 0x0a, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x70, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, + 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, + 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1f, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, + 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x22, 0x8f, 0x03, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x29, 0x0a, 0x0c, + 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, + 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, + 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, + 0x70, 0x6f, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0x7e, 0x0a, 0x19, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, @@ -8446,220 +8441,198 @@ var file_inventory_v1_agents_proto_rawDesc = []byte{ 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x22, 0x9f, 0x06, 0x0a, 0x18, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, - 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, - 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, - 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, - 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x15, - 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, - 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, - 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x1c, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x19, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x74, 0x61, 0x74, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x5d, 0x0a, 0x0d, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x38, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, - 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, - 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x21, 0x0a, - 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, - 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, - 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, - 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x65, - 0x78, 0x70, 0x6f, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x11, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x83, 0x01, 0x0a, 0x19, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, - 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x5f, 0x65, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x53, 0x51, - 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x6d, 0x79, 0x73, 0x71, - 0x6c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x80, 0x01, 0x0a, 0x1b, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, - 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, - 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x65, - 0x0a, 0x1c, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, - 0x0a, 0x0f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0xeb, 0x07, 0x0a, 0x19, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, - 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, - 0x10, 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, - 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, - 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, - 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, - 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, - 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x6c, 0x73, 0x5f, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, - 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x48, 0x0a, 0x21, 0x74, 0x6c, 0x73, 0x5f, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, - 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x1d, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x5e, 0x0a, 0x0d, 0x63, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x22, 0x9d, 0x06, 0x0a, 0x17, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, + 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, + 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, + 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x75, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, + 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, + 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x15, 0x0a, + 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, + 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x12, + 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x1c, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x19, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x74, 0x61, 0x74, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x5c, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x39, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, - 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, - 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x21, 0x0a, - 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, - 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, - 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, - 0x39, 0x0a, 0x18, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x6d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x18, 0x0e, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, - 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x61, 0x75, 0x74, - 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x74, - 0x61, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x73, 0x74, 0x61, 0x74, 0x73, 0x43, 0x6f, 0x6c, 0x6c, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x12, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x10, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4c, - 0x69, 0x6d, 0x69, 0x74, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x32, 0x37, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x70, + 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2d, + 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, + 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x25, 0x0a, + 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, - 0x6f, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x14, 0x20, 0x01, + 0x6f, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x66, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, - 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x48, 0x0a, 0x10, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, - 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0f, 0x6d, 0x6f, 0x6e, 0x67, - 0x6f, 0x64, 0x62, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x81, 0x01, 0x0a, 0x1c, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, - 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, - 0x69, 0x0a, 0x1d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x48, 0x0a, 0x10, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, - 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, - 0x64, 0x62, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x94, 0x06, 0x0a, 0x1a, 0x41, - 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, - 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, - 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, - 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, - 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, - 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, - 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x5f, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, - 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, - 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, - 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, - 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, - 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, - 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x15, - 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, - 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, - 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, + 0x02, 0x38, 0x01, 0x22, 0x80, 0x01, 0x0a, 0x1b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, + 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x65, 0x0a, 0x1c, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, + 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x6d, + 0x79, 0x73, 0x71, 0x6c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0xe9, 0x07, + 0x0a, 0x18, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, + 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, + 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, + 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, + 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, + 0x2e, 0x0a, 0x13, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x6c, + 0x73, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, + 0x48, 0x0a, 0x21, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1d, 0x74, 0x6c, 0x73, 0x43, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6c, + 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, 0x73, + 0x5f, 0x63, 0x61, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, + 0x12, 0x5d, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, + 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, + 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, + 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, + 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x39, 0x0a, 0x18, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, + 0x6d, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, + 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x16, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0f, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, - 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x64, 0x69, - 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x10, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x12, 0x61, 0x75, 0x74, 0x6f, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, - 0x72, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x6f, 0x73, - 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0x6a, 0x0a, 0x1b, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4b, 0x0a, 0x11, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, - 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x6f, 0x73, - 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x82, 0x01, + 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x73, 0x74, 0x61, + 0x74, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x0a, + 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, + 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, + 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, + 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x81, 0x01, 0x0a, 0x1c, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, + 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, + 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x69, 0x0a, + 0x1d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, + 0x0a, 0x10, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x92, 0x06, 0x0a, 0x19, 0x41, 0x64, 0x64, + 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, + 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, + 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, + 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, + 0x72, 0x69, 0x66, 0x79, 0x12, 0x5e, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, + 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x75, 0x73, 0x68, + 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, + 0x70, 0x75, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x64, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, + 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, + 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, + 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x12, 0x17, 0x0a, 0x07, + 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, + 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x33, 0x0a, 0x09, + 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x12, 0x61, 0x75, 0x74, 0x6f, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4c, 0x69, + 0x6d, 0x69, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x5f, 0x65, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, + 0x70, 0x6f, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x3f, 0x0a, 0x11, + 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x82, 0x01, 0x0a, 0x1d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, @@ -8675,101 +8648,94 @@ var file_inventory_v1_agents_proto_rawDesc = []byte{ 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x22, 0x97, 0x05, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, - 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, - 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, - 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, - 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x5f, - 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, - 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, - 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, - 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, - 0x65, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x4d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x33, 0x0a, 0x09, - 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, - 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, - 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6a, 0x0a, 0x1b, 0x41, - 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x11, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x82, 0x01, 0x0a, 0x1d, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, - 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, - 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x6d, 0x0a, 0x1e, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, - 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, - 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0xe8, 0x05, 0x0a, 0x21, - 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, - 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, - 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, - 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, - 0x15, 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, - 0x72, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, - 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x61, - 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x0e, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, - 0x6e, 0x67, 0x74, 0x68, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x41, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x72, 0x22, 0x95, 0x05, 0x0a, 0x19, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, + 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, + 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, + 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x75, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, + 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, + 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x5e, 0x0a, + 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, + 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, + 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x4d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, + 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, + 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, + 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x82, 0x01, 0x0a, 0x1d, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, + 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, + 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x6d, + 0x0a, 0x1e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4b, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, + 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x72, 0x6f, + 0x78, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0xe6, 0x05, + 0x0a, 0x20, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, + 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, + 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, + 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, + 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, + 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, + 0x65, 0x72, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, + 0x72, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x6d, + 0x61, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, + 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x65, 0x0a, 0x0d, 0x63, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, + 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, @@ -8785,352 +8751,305 @@ var file_inventory_v1_agents_proto_rawDesc = []byte{ 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x88, 0x01, 0x0a, 0x22, 0x41, 0x64, 0x64, 0x51, 0x41, - 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, - 0x1a, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x17, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, - 0x71, 0x6c, 0x50, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x22, 0x89, 0x01, 0x0a, 0x24, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, - 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, - 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, - 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x8b, 0x01, - 0x0a, 0x25, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, - 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x1a, 0x71, 0x61, 0x6e, 0x5f, 0x6d, - 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, - 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x52, 0x17, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x65, 0x72, 0x66, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x95, 0x06, 0x0a, 0x1e, - 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, - 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, - 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x70, - 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, - 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, - 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x75, 0x73, - 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, - 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, - 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x15, 0x0a, 0x06, - 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6c, - 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, - 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x12, 0x17, - 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, - 0x68, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, - 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x5f, 0x73, - 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6d, 0x61, 0x78, 0x53, 0x6c, 0x6f, 0x77, 0x6c, - 0x6f, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x63, 0x0a, 0x0d, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x3e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, - 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, - 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, - 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, - 0x65, 0x63, 0x6b, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x18, - 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x12, 0x33, 0x0a, - 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x7c, 0x0a, 0x1f, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, - 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x17, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, - 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x5f, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, - 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x14, 0x71, 0x61, 0x6e, - 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x22, 0x86, 0x01, 0x0a, 0x21, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, - 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, - 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x7f, 0x0a, 0x22, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, - 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x59, 0x0a, 0x17, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x6c, - 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x14, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, - 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0xa9, 0x06, 0x0a, 0x21, - 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, - 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, - 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, - 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, - 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x48, 0x0a, 0x21, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x69, - 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x1d, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x89, 0x01, 0x0a, 0x24, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x22, 0x8b, 0x01, 0x0a, 0x25, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, + 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x1a, + 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x17, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, + 0x6c, 0x50, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x22, 0x93, 0x06, 0x0a, 0x1d, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, + 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, + 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, + 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, + 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, + 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, - 0x68, 0x12, 0x66, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x6f, - 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, - 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, - 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x39, 0x0a, - 0x18, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x6d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, - 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x61, 0x75, 0x74, 0x68, 0x65, - 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, - 0x65, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0e, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, - 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x88, 0x01, 0x0a, 0x22, 0x41, 0x64, 0x64, 0x51, + 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, + 0x65, 0x72, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, + 0x72, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x6d, + 0x61, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, + 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, + 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x15, 0x6d, + 0x61, 0x78, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6d, 0x61, 0x78, 0x53, + 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x62, + 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, + 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, + 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x69, + 0x6e, 0x67, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, + 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, + 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, + 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x86, 0x01, 0x0a, 0x21, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, + 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, + 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, + 0x7f, 0x0a, 0x22, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, + 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x17, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, + 0x71, 0x6c, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, + 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x14, 0x71, 0x61, 0x6e, 0x4d, + 0x79, 0x73, 0x71, 0x6c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x22, 0xa7, 0x06, 0x0a, 0x20, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, + 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, + 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, + 0x12, 0x26, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, + 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, + 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, + 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x6c, + 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, + 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x48, 0x0a, 0x21, 0x74, 0x6c, + 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, + 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1d, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x28, 0x0a, 0x10, 0x6d, + 0x61, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, + 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, + 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x65, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, - 0x0a, 0x1a, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x70, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x17, 0x71, 0x61, 0x6e, 0x4d, 0x6f, - 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x22, 0x89, 0x01, 0x0a, 0x24, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, - 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, - 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, - 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x8b, - 0x01, 0x0a, 0x25, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, - 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x1a, 0x71, 0x61, 0x6e, 0x5f, - 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, - 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x4d, - 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x17, 0x71, 0x61, 0x6e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x50, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0xc0, 0x05, 0x0a, - 0x28, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, - 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, - 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, - 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, - 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, - 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, - 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, - 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x6d, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x48, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, - 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, - 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x70, - 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, - 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x61, 0x72, - 0x73, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, - 0x6d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x15, - 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, - 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, - 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, - 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3f, - 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0xa4, 0x01, 0x0a, 0x29, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, - 0x21, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, - 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, + 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, + 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, + 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x12, 0x39, 0x0a, 0x18, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x12, 0x37, 0x0a, 0x17, 0x61, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, + 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x61, 0x75, + 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, + 0x62, 0x61, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, + 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x89, 0x01, 0x0a, 0x24, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, + 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x8b, 0x01, 0x0a, 0x25, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x62, 0x0a, 0x1a, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, + 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x17, 0x71, 0x61, 0x6e, + 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x22, 0xbe, 0x05, 0x0a, 0x27, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, + 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, + 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x6c, + 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, + 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, - 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x90, 0x01, 0x0a, 0x2b, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, - 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0xa7, 0x01, 0x0a, 0x2c, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, - 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x21, 0x71, 0x61, - 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, - 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, - 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x22, 0xf8, 0x05, 0x0a, 0x29, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, - 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, - 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, + 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, + 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x50, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x61, + 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, + 0x6e, 0x67, 0x74, 0x68, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, + 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, + 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, + 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, + 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x90, 0x01, 0x0a, 0x2b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, - 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, - 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, - 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, - 0x28, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, - 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, - 0x6e, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, - 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, - 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, - 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, - 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, - 0x65, 0x63, 0x6b, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x18, - 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x12, 0x15, 0x0a, - 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, - 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x12, - 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, - 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3f, 0x0a, - 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa8, - 0x01, 0x0a, 0x2a, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, + 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0xa7, 0x01, 0x0a, 0x2c, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, + 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x21, 0x71, 0x61, 0x6e, + 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, + 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, + 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x22, 0xf6, 0x05, 0x0a, 0x28, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, + 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, + 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, + 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0a, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, + 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x49, 0x64, 0x12, 0x23, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x75, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, + 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, + 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x28, 0x0a, + 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, + 0x68, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x6d, 0x0a, + 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, + 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, + 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, + 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, + 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x50, 0x61, 0x72, 0x73, 0x69, 0x6e, 0x67, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, + 0x73, 0x5f, 0x63, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, + 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x12, 0x17, 0x0a, 0x07, + 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, + 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x91, 0x01, 0x0a, 0x2c, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, - 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, - 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, - 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, - 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1f, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, - 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, - 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x91, 0x01, 0x0a, 0x2c, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, - 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, + 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, + 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, + 0xab, 0x01, 0x0a, 0x2d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, + 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, + 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7a, 0x0a, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, + 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, + 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, + 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, + 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1f, 0x71, 0x61, + 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, + 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0xc5, 0x04, + 0x0a, 0x14, 0x41, 0x64, 0x64, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, - 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, - 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0xab, 0x01, - 0x0a, 0x2d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, - 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, - 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x7a, 0x0a, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, - 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x5f, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, - 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, - 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1f, 0x71, 0x61, 0x6e, 0x50, - 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, - 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0xc7, 0x04, 0x0a, 0x15, - 0x41, 0x64, 0x64, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, - 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, - 0x12, 0x20, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, - 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x77, 0x73, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x77, 0x73, 0x41, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x77, 0x73, 0x5f, - 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x61, 0x77, 0x73, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x5a, - 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, - 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, + 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x20, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x06, 0x6e, 0x6f, 0x64, + 0x65, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x77, 0x73, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x77, 0x73, + 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x77, 0x73, + 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x61, 0x77, 0x73, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, + 0x59, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, @@ -9152,666 +9071,450 @@ var file_inventory_v1_agents_proto_rawDesc = []byte{ 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x56, 0x0a, 0x16, 0x41, 0x64, 0x64, 0x52, 0x44, 0x53, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3c, 0x0a, 0x0c, 0x72, 0x64, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x52, 0x0b, 0x72, 0x64, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x7d, 0x0a, - 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, - 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, - 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x59, 0x0a, 0x19, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x72, 0x64, 0x73, - 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x72, 0x64, 0x73, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0xd1, 0x03, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x45, - 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x0f, 0x72, 0x75, 0x6e, 0x73, 0x5f, 0x6f, - 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0c, 0x72, 0x75, 0x6e, 0x73, 0x4f, 0x6e, - 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, - 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2c, 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0b, 0xfa, - 0x42, 0x08, 0x2a, 0x06, 0x10, 0x80, 0x80, 0x04, 0x20, 0x00, 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x5f, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x7d, 0x0a, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, + 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x59, 0x0a, 0x19, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x44, + 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x72, 0x64, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x52, 0x0b, 0x72, 0x64, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, + 0xcf, 0x03, 0x0a, 0x19, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x0a, + 0x0f, 0x72, 0x75, 0x6e, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, + 0x0c, 0x72, 0x75, 0x6e, 0x73, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, + 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x50, 0x61, 0x74, 0x68, 0x12, + 0x2c, 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0b, 0xfa, 0x42, 0x08, 0x2a, 0x06, 0x10, 0x80, 0x80, 0x04, 0x20, + 0x00, 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x5e, 0x0a, + 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0a, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x21, 0x0a, + 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, + 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x82, 0x01, 0x0a, 0x1d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x6d, 0x0a, 0x1e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, - 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, - 0x75, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6a, 0x0a, 0x1b, 0x41, - 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x11, 0x65, 0x78, - 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x82, 0x01, 0x0a, 0x1d, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, - 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, - 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x6d, 0x0a, 0x1e, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, - 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0xd1, 0x05, 0x0a, 0x1f, - 0x41, 0x64, 0x64, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, - 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x07, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, - 0x72, 0x02, 0x10, 0x01, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, - 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x43, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x63, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x11, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, - 0x63, 0x72, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x65, - 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, - 0x7a, 0x75, 0x72, 0x65, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x15, - 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x61, 0x7a, 0x75, - 0x72, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x12, 0x30, 0x0a, 0x14, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, - 0x61, 0x7a, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x12, 0x48, 0x0a, 0x1c, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, - 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, - 0x01, 0x52, 0x19, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x64, 0x0a, 0x0d, - 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x75, - 0x73, 0x68, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, - 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3f, - 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x7f, 0x0a, 0x20, 0x41, 0x64, 0x64, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x17, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, - 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x15, 0x61, 0x7a, 0x75, 0x72, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x22, 0x87, 0x01, 0x0a, 0x22, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, - 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0xcf, 0x05, 0x0a, 0x1e, 0x41, 0x64, 0x64, 0x41, 0x7a, 0x75, + 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x29, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, + 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x06, 0x6e, + 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x61, 0x7a, 0x75, 0x72, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2e, 0x0a, + 0x13, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x7a, 0x75, 0x72, + 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x26, 0x0a, + 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x54, 0x65, 0x6e, + 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x7a, 0x75, + 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x48, 0x0a, 0x1c, 0x61, + 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x19, 0x61, 0x7a, 0x75, 0x72, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x63, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x41, + 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, + 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x21, + 0x0a, 0x0c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, + 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x87, 0x01, 0x0a, 0x22, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, + 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x22, 0x82, 0x01, 0x0a, 0x23, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x17, 0x61, 0x7a, 0x75, + 0x72, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, + 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, + 0x15, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x4e, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, + 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0xc7, 0x04, + 0x0a, 0x09, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x41, + 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x47, 0x45, 0x4e, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4d, 0x4d, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, + 0x01, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x56, 0x4d, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x0e, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x47, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x45, 0x58, + 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x47, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x44, 0x5f, 0x45, 0x58, + 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, 0x03, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x47, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x4f, 0x4e, 0x47, 0x4f, 0x44, 0x42, 0x5f, 0x45, + 0x58, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, 0x04, 0x12, 0x20, 0x0a, 0x1c, 0x41, 0x47, 0x45, + 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x47, 0x52, 0x45, 0x53, + 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, 0x05, 0x12, 0x20, 0x0a, 0x1c, 0x41, + 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x53, + 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, 0x06, 0x12, 0x29, 0x0a, + 0x25, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x51, 0x41, 0x4e, 0x5f, + 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x50, 0x45, 0x52, 0x46, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, + 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x07, 0x12, 0x26, 0x0a, 0x22, 0x41, 0x47, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x51, 0x41, 0x4e, 0x5f, 0x4d, 0x59, 0x53, 0x51, 0x4c, + 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x4c, 0x4f, 0x47, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x08, + 0x12, 0x29, 0x0a, 0x25, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x51, + 0x41, 0x4e, 0x5f, 0x4d, 0x4f, 0x4e, 0x47, 0x4f, 0x44, 0x42, 0x5f, 0x50, 0x52, 0x4f, 0x46, 0x49, + 0x4c, 0x45, 0x52, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x09, 0x12, 0x30, 0x0a, 0x2c, 0x41, + 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x51, 0x41, 0x4e, 0x5f, 0x50, 0x4f, + 0x53, 0x54, 0x47, 0x52, 0x45, 0x53, 0x51, 0x4c, 0x5f, 0x50, 0x47, 0x53, 0x54, 0x41, 0x54, 0x45, + 0x4d, 0x45, 0x4e, 0x54, 0x53, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x0a, 0x12, 0x31, 0x0a, + 0x2d, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x51, 0x41, 0x4e, 0x5f, + 0x50, 0x4f, 0x53, 0x54, 0x47, 0x52, 0x45, 0x53, 0x51, 0x4c, 0x5f, 0x50, 0x47, 0x53, 0x54, 0x41, + 0x54, 0x4d, 0x4f, 0x4e, 0x49, 0x54, 0x4f, 0x52, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x0d, + 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, + 0x44, 0x53, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, 0x0b, 0x12, 0x20, 0x0a, + 0x1c, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, + 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, 0x0c, 0x12, + 0x26, 0x0a, 0x22, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x5a, + 0x55, 0x52, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x45, 0x58, 0x50, + 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, 0x0f, 0x32, 0xca, 0x21, 0x0a, 0x0d, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa4, 0x01, 0x0a, 0x0a, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x92, 0x41, 0x2c, + 0x12, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x1d, 0x52, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, + 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x9b, 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x2e, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x92, 0x41, + 0x2a, 0x12, 0x09, 0x47, 0x65, 0x74, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x1d, 0x52, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x20, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x20, 0x62, 0x79, 0x20, 0x49, 0x44, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x47, 0x65, 0x74, 0x12, 0xac, + 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, + 0x21, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x92, 0x41, 0x2b, 0x12, 0x0e, 0x47, 0x65, 0x74, + 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x20, 0x6c, 0x6f, 0x67, 0x73, 0x1a, 0x19, 0x52, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x73, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x20, 0x6c, 0x6f, 0x67, 0x73, 0x20, + 0x62, 0x79, 0x20, 0x49, 0x44, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x01, 0x2a, 0x22, + 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0xab, 0x01, + 0x0a, 0x08, 0x41, 0x64, 0x64, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x60, 0x92, 0x41, 0x3a, 0x12, 0x19, + 0x41, 0x64, 0x64, 0x20, 0x61, 0x6e, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20, + 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x1d, 0x41, 0x64, 0x64, 0x73, 0x20, + 0x61, 0x6e, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x49, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x01, + 0x2a, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x41, 0x64, 0x64, 0x12, 0xd2, 0x01, 0x0a, 0x12, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x12, 0x27, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x82, 0x01, 0x0a, 0x23, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, - 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x17, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, - 0x62, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x15, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, - 0x4e, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, - 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, - 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, - 0x15, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0xc7, 0x04, 0x0a, 0x09, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x18, 0x0a, 0x14, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, - 0x4d, 0x4d, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x47, - 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x4d, 0x5f, 0x41, 0x47, 0x45, 0x4e, - 0x54, 0x10, 0x0e, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, - 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x44, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, - 0x03, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x4d, 0x4f, 0x4e, 0x47, 0x4f, 0x44, 0x42, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, - 0x10, 0x04, 0x12, 0x20, 0x0a, 0x1c, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x47, 0x52, 0x45, 0x53, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, - 0x45, 0x52, 0x10, 0x05, 0x12, 0x20, 0x0a, 0x1c, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4f, - 0x52, 0x54, 0x45, 0x52, 0x10, 0x06, 0x12, 0x29, 0x0a, 0x25, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x51, 0x41, 0x4e, 0x5f, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x50, - 0x45, 0x52, 0x46, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, - 0x07, 0x12, 0x26, 0x0a, 0x22, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x51, 0x41, 0x4e, 0x5f, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x4c, 0x4f, - 0x47, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x08, 0x12, 0x29, 0x0a, 0x25, 0x41, 0x47, 0x45, - 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x51, 0x41, 0x4e, 0x5f, 0x4d, 0x4f, 0x4e, 0x47, - 0x4f, 0x44, 0x42, 0x5f, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x52, 0x5f, 0x41, 0x47, 0x45, - 0x4e, 0x54, 0x10, 0x09, 0x12, 0x30, 0x0a, 0x2c, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x51, 0x41, 0x4e, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x47, 0x52, 0x45, 0x53, 0x51, - 0x4c, 0x5f, 0x50, 0x47, 0x53, 0x54, 0x41, 0x54, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x53, 0x5f, 0x41, - 0x47, 0x45, 0x4e, 0x54, 0x10, 0x0a, 0x12, 0x31, 0x0a, 0x2d, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x51, 0x41, 0x4e, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x47, 0x52, 0x45, - 0x53, 0x51, 0x4c, 0x5f, 0x50, 0x47, 0x53, 0x54, 0x41, 0x54, 0x4d, 0x4f, 0x4e, 0x49, 0x54, 0x4f, - 0x52, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x0d, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x47, 0x45, - 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x44, 0x53, 0x5f, 0x45, 0x58, 0x50, 0x4f, - 0x52, 0x54, 0x45, 0x52, 0x10, 0x0b, 0x12, 0x20, 0x0a, 0x1c, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x58, - 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, 0x0c, 0x12, 0x26, 0x0a, 0x22, 0x41, 0x47, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x44, 0x41, 0x54, - 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x52, 0x10, 0x0f, - 0x32, 0x89, 0x3a, 0x0a, 0x0d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0xa4, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x1f, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x92, 0x41, 0x2c, 0x12, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x20, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x1d, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, - 0x61, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, - 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x9b, 0x01, 0x0a, 0x08, 0x47, 0x65, - 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x92, 0x41, 0x2a, 0x12, 0x09, 0x47, 0x65, 0x74, 0x20, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x1d, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, - 0x20, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x20, 0x62, 0x79, - 0x20, 0x49, 0x44, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, - 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x2f, 0x47, 0x65, 0x74, 0x12, 0xac, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x21, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x55, 0x92, 0x41, 0x2b, 0x12, 0x0e, 0x47, 0x65, 0x74, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x20, - 0x6c, 0x6f, 0x67, 0x73, 0x1a, 0x19, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x20, 0x6c, 0x6f, 0x67, 0x73, 0x20, 0x62, 0x79, 0x20, 0x49, 0x44, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x47, - 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0xa2, 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x50, 0x4d, - 0x4d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x4d, 0x4d, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x4d, 0x4d, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x92, 0x41, 0x20, - 0x12, 0x0d, 0x41, 0x64, 0x64, 0x20, 0x50, 0x4d, 0x4d, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, - 0x0f, 0x41, 0x64, 0x64, 0x73, 0x20, 0x50, 0x4d, 0x4d, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x3a, 0x01, 0x2a, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, - 0x41, 0x64, 0x64, 0x50, 0x4d, 0x4d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0xc0, 0x01, 0x0a, 0x0f, - 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, - 0x24, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x64, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x60, 0x92, 0x41, - 0x2e, 0x12, 0x11, 0x41, 0x64, 0x64, 0x20, 0x4e, 0x6f, 0x64, 0x65, 0x20, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x1a, 0x19, 0x41, 0x64, 0x64, 0x73, 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x5f, - 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x41, - 0x64, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xd2, - 0x01, 0x0a, 0x12, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, + 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x92, 0x41, 0x34, 0x12, 0x14, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x20, 0x4e, 0x6f, 0x64, 0x65, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x1a, 0x1c, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x92, 0x41, 0x34, 0x12, 0x14, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x4e, 0x6f, 0x64, 0x65, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x1a, 0x1c, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x64, - 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x12, 0xcc, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, - 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, - 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x66, 0x92, 0x41, 0x32, 0x12, - 0x13, 0x41, 0x64, 0x64, 0x20, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x20, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x1a, 0x1b, 0x41, 0x64, 0x64, 0x73, 0x20, 0x6d, 0x79, 0x73, 0x71, 0x6c, - 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x12, 0xde, 0x01, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x53, - 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x69, 0x6e, + 0x12, 0xde, 0x01, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x53, 0x51, 0x4c, + 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, + 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x6f, 0x92, 0x41, 0x38, 0x12, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x6d, 0x79, + 0x73, 0x71, 0x6c, 0x64, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x1e, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x5f, 0x65, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x2e, 0x3a, 0x01, 0x2a, 0x22, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x12, 0xe4, 0x01, 0x0a, 0x15, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x6e, 0x67, + 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x53, 0x51, - 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x6f, 0x92, 0x41, 0x38, 0x12, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, - 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, - 0x1e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x5f, + 0x65, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x6e, + 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0x92, 0x41, 0x3a, 0x12, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x1a, 0x1f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x6d, 0x6f, 0x6e, 0x67, + 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x3a, 0x01, 0x2a, 0x22, 0x2a, 0x2f, 0x76, + 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xea, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, + 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, + 0x92, 0x41, 0x3c, 0x12, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x50, 0x6f, 0x73, 0x74, + 0x67, 0x72, 0x65, 0x73, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x20, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x3a, 0x01, 0x2a, 0x22, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, + 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x12, 0xd2, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, - 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, - 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x92, - 0x41, 0x34, 0x12, 0x14, 0x41, 0x64, 0x64, 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x20, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x1c, 0x41, 0x64, 0x64, 0x73, 0x20, 0x6d, - 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, - 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xe4, 0x01, 0x0a, 0x15, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0x92, 0x41, 0x3a, - 0x12, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, - 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x1f, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x73, 0x20, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, - 0x3a, 0x01, 0x2a, 0x22, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, - 0xd8, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6c, 0x92, 0x41, - 0x36, 0x12, 0x15, 0x41, 0x64, 0x64, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x20, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x1d, 0x41, 0x64, 0x64, 0x73, 0x20, 0x70, - 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a, - 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xea, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x67, - 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x75, 0x92, 0x41, 0x3c, 0x12, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x50, 0x6f, - 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, - 0x20, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, - 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xd8, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, - 0x28, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6c, 0x92, 0x41, 0x36, 0x12, 0x15, 0x41, 0x64, 0x64, 0x20, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x1a, 0x1d, 0x41, 0x64, 0x64, 0x73, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, - 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x41, - 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x12, 0xea, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x2b, 0x2e, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xea, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x12, 0x2b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, 0x92, 0x41, 0x3c, 0x12, 0x18, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x20, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, - 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, - 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, - 0x91, 0x02, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, - 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2f, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, - 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x30, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x8f, 0x01, 0x92, 0x41, 0x52, 0x12, 0x20, 0x41, 0x64, 0x64, 0x20, 0x27, 0x51, 0x41, - 0x4e, 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x2e, 0x41, 0x64, 0x64, 0x73, 0x20, - 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, - 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x3a, - 0x01, 0x2a, 0x22, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, - 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x12, 0xa3, 0x02, 0x0a, 0x1d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, - 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, - 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, - 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x98, - 0x01, 0x92, 0x41, 0x58, 0x12, 0x23, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x27, 0x51, 0x41, - 0x4e, 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x31, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x73, 0x20, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, - 0x69, 0x63, 0x73, 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x37, 0x3a, 0x01, 0x2a, 0x22, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, 0x92, 0x41, 0x3c, + 0x12, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, + 0x4c, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x20, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x73, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0xff, 0x01, 0x0a, 0x17, 0x41, 0x64, - 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, - 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, - 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x86, 0x01, 0x92, 0x41, 0x4c, 0x12, 0x1d, 0x41, 0x64, 0x64, 0x20, 0x27, 0x51, - 0x41, 0x4e, 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, - 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x2b, 0x41, 0x64, 0x64, 0x73, 0x20, 0x27, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x20, 0x4d, - 0x79, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x27, 0x20, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x3a, 0x01, 0x2a, 0x22, 0x2c, 0x2f, - 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x2f, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, - 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x91, 0x02, 0x0a, 0x1a, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, - 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2f, 0x2e, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8f, 0x01, - 0x92, 0x41, 0x52, 0x12, 0x20, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x27, 0x51, 0x41, 0x4e, - 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x27, 0x20, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x27, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x20, - 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x27, 0x20, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x3a, 0x01, 0x2a, 0x22, 0x2f, + 0x67, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x12, 0xa3, 0x02, 0x0a, 0x1d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, + 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, + 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, + 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x98, 0x01, + 0x92, 0x41, 0x58, 0x12, 0x23, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x27, 0x51, 0x41, 0x4e, + 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x31, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x20, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, + 0x63, 0x73, 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x37, 0x3a, 0x01, 0x2a, 0x22, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x91, 0x02, 0x0a, 0x1a, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, + 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2f, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, + 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, + 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8f, 0x01, 0x92, 0x41, 0x52, + 0x12, 0x20, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x27, 0x51, 0x41, 0x4e, 0x20, 0x4d, 0x79, + 0x53, 0x51, 0x4c, 0x20, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x27, 0x20, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x1a, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x27, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x20, 0x4d, 0x79, 0x53, + 0x51, 0x4c, 0x20, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x3a, 0x01, 0x2a, 0x22, 0x2f, 0x2f, 0x76, 0x31, + 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, + 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0xa3, 0x02, 0x0a, + 0x1d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, + 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, + 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, + 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x98, 0x01, 0x92, 0x41, 0x58, 0x12, 0x23, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x27, 0x51, 0x41, 0x4e, 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, + 0x44, 0x42, 0x20, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x27, 0x20, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x1a, 0x31, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x27, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x20, 0x4d, 0x6f, 0x6e, + 0x67, 0x6f, 0x44, 0x42, 0x20, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x27, 0x20, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x01, 0x2a, 0x22, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x79, - 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, - 0x91, 0x02, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, - 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2f, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, - 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x30, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x8f, 0x01, 0x92, 0x41, 0x52, 0x12, 0x20, 0x41, 0x64, 0x64, 0x20, 0x27, 0x51, 0x41, - 0x4e, 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x20, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, - 0x65, 0x72, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x2e, 0x41, 0x64, 0x64, 0x73, 0x20, - 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, - 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x20, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x72, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x3a, - 0x01, 0x2a, 0x22, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x4d, - 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x12, 0xa3, 0x02, 0x0a, 0x1d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, - 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x6f, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, - 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x98, - 0x01, 0x92, 0x41, 0x58, 0x12, 0x23, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x27, 0x51, 0x41, - 0x4e, 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x20, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, - 0x65, 0x72, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x31, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x73, 0x20, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, - 0x69, 0x63, 0x73, 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x20, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x72, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x37, 0x3a, 0x01, 0x2a, 0x22, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0xc7, 0x02, 0x0a, 0x21, 0x41, 0x64, - 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, - 0x36, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, - 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, - 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0xb0, 0x01, 0x92, 0x41, 0x6c, 0x12, 0x2d, 0x41, 0x64, 0x64, 0x20, 0x27, 0x51, 0x41, 0x4e, - 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, 0x70, 0x67, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x27, 0x20, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x3b, 0x41, 0x64, 0x64, 0x73, 0x20, 0x27, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x20, 0x50, 0x6f, 0x73, - 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, 0x70, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22, 0x36, 0x2f, 0x76, 0x31, - 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, - 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x12, 0xd9, 0x02, 0x0a, 0x24, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, - 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, - 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, + 0x6e, 0x74, 0x12, 0xd9, 0x02, 0x0a, 0x24, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x01, 0x92, 0x41, 0x72, 0x12, 0x30, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x20, 0x27, 0x51, 0x41, 0x4e, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, - 0x4c, 0x20, 0x70, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x3e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x73, 0x20, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, - 0x79, 0x74, 0x69, 0x63, 0x73, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, - 0x20, 0x70, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x3e, 0x3a, 0x01, 0x2a, 0x22, 0x39, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x2e, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, - 0xc5, 0x02, 0x0a, 0x22, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, - 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xb9, 0x01, 0x92, 0x41, 0x72, 0x12, 0x30, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x20, 0x27, 0x51, 0x41, 0x4e, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, + 0x20, 0x70, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x3e, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x73, 0x20, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, + 0x74, 0x69, 0x63, 0x73, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, + 0x70, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, + 0x3a, 0x01, 0x2a, 0x22, 0x39, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0xd7, + 0x02, 0x0a, 0x25, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, - 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x38, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, - 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xab, 0x01, 0x92, 0x41, 0x66, 0x12, - 0x2a, 0x41, 0x64, 0x64, 0x20, 0x27, 0x51, 0x41, 0x4e, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x53, 0x51, 0x4c, 0x20, 0x70, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x6d, 0x6f, 0x6e, - 0x69, 0x74, 0x6f, 0x72, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x38, 0x41, 0x64, 0x64, - 0x73, 0x20, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, - 0x63, 0x73, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, 0x70, 0x67, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x27, 0x20, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x3a, 0x01, 0x2a, 0x22, 0x37, - 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x41, 0x64, 0x64, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, - 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, - 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0xd7, 0x02, 0x0a, 0x25, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, - 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x12, 0x3a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, - 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, - 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb4, 0x01, 0x92, 0x41, 0x6c, - 0x12, 0x2d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x27, 0x51, 0x41, 0x4e, 0x20, 0x50, 0x6f, - 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, 0x70, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, - 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, - 0x3b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, - 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x53, 0x51, 0x4c, 0x20, 0x70, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x6d, 0x6f, 0x6e, - 0x69, 0x74, 0x6f, 0x72, 0x27, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x3f, 0x3a, 0x01, 0x2a, 0x22, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, - 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x12, 0xba, 0x01, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x12, 0x23, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x44, 0x53, 0x45, + 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, + 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, + 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, + 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, + 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xb4, 0x01, 0x92, 0x41, 0x6c, 0x12, 0x2d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, + 0x27, 0x51, 0x41, 0x4e, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, + 0x70, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x27, + 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x3b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, + 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x20, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, + 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, 0x70, 0x67, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x27, 0x20, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x3a, 0x01, 0x2a, 0x22, 0x3a, 0x2f, 0x76, + 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, + 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0xcc, 0x01, 0x0a, 0x11, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x26, + 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x5d, 0x92, 0x41, 0x2c, 0x12, 0x10, 0x41, 0x64, 0x64, 0x20, 0x52, 0x44, 0x53, 0x20, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x18, 0x41, 0x64, 0x64, 0x73, 0x20, 0x72, 0x64, 0x73, - 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, - 0x41, 0x64, 0x64, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xcc, - 0x01, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x66, 0x92, 0x41, 0x32, 0x12, 0x13, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x20, 0x52, 0x44, 0x53, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, - 0x1b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x72, 0x64, 0x73, 0x5f, 0x65, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x52, 0x44, 0x53, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xd8, 0x01, - 0x0a, 0x13, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x66, 0x92, 0x41, 0x32, 0x12, 0x13, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x52, 0x44, 0x53, + 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x1b, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x73, 0x20, 0x72, 0x64, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, + 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x44, 0x53, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xea, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x29, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6c, 0x92, 0x41, 0x36, 0x12, - 0x15, 0x41, 0x64, 0x64, 0x20, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x1d, 0x41, 0x64, 0x64, 0x73, 0x20, 0x65, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, - 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xea, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, - 0x92, 0x41, 0x3c, 0x12, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x45, 0x78, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x20, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, - 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, + 0x2c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0xf8, 0x01, 0x0a, 0x18, 0x41, 0x64, 0x64, 0x41, 0x7a, 0x75, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, 0x92, + 0x41, 0x3c, 0x12, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x20, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x12, 0x8b, 0x02, 0x0a, 0x1b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, + 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x12, 0x30, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, + 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x86, 0x01, 0x92, 0x41, 0x48, 0x12, + 0x1e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x44, 0x61, + 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, + 0x26, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x20, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x3a, 0x01, 0x2a, + 0x22, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x12, 0x2d, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x64, 0x64, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, - 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2e, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x64, 0x64, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, - 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x7d, 0x92, 0x41, 0x42, 0x12, 0x1b, 0x41, 0x64, 0x64, 0x20, 0x41, 0x7a, 0x75, 0x72, - 0x65, 0x20, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x1a, 0x23, 0x41, 0x64, 0x64, 0x73, 0x20, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x3a, 0x01, - 0x2a, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, - 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x41, 0x64, 0x64, 0x41, 0x7a, 0x75, 0x72, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x12, 0x8b, 0x02, 0x0a, 0x1b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x12, 0x30, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x86, 0x01, 0x92, 0x41, 0x48, 0x12, 0x1e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x20, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x20, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, - 0x73, 0x65, 0x20, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x1a, 0x26, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x73, 0x20, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x20, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x3a, 0x01, 0x2a, 0x22, 0x30, 0x2f, 0x76, - 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x73, 0x2f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x61, - 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x9b, - 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x20, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x47, 0x92, 0x41, 0x1e, 0x12, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x73, 0x20, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, - 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0xa5, 0x01, 0x0a, - 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x42, 0x0b, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, - 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x49, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x49, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x49, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x49, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x72, 0x12, 0xbf, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x12, 0x20, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6b, 0x92, 0x41, 0x42, 0x12, 0x1e, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x20, 0x66, 0x72, + 0x6f, 0x6d, 0x20, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x20, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x20, 0x66, + 0x72, 0x6f, 0x6d, 0x20, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x42, 0xa5, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x3b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x49, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x0c, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x18, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x49, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -9828,7 +9531,7 @@ func file_inventory_v1_agents_proto_rawDescGZIP() []byte { var ( file_inventory_v1_agents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventory_v1_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 107) + file_inventory_v1_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 95) file_inventory_v1_agents_proto_goTypes = []interface{}{ (AgentType)(0), // 0: inventory.v1.AgentType (*PMMAgent)(nil), // 1: inventory.v1.PMMAgent @@ -9853,137 +9556,125 @@ var ( (*GetAgentResponse)(nil), // 20: inventory.v1.GetAgentResponse (*GetAgentLogsRequest)(nil), // 21: inventory.v1.GetAgentLogsRequest (*GetAgentLogsResponse)(nil), // 22: inventory.v1.GetAgentLogsResponse - (*AddPMMAgentRequest)(nil), // 23: inventory.v1.AddPMMAgentRequest - (*AddPMMAgentResponse)(nil), // 24: inventory.v1.AddPMMAgentResponse - (*AddNodeExporterRequest)(nil), // 25: inventory.v1.AddNodeExporterRequest - (*AddNodeExporterResponse)(nil), // 26: inventory.v1.AddNodeExporterResponse + (*AddPMMAgentParams)(nil), // 23: inventory.v1.AddPMMAgentParams + (*AddAgentRequest)(nil), // 24: inventory.v1.AddAgentRequest + (*AddAgentResponse)(nil), // 25: inventory.v1.AddAgentResponse + (*AddNodeExporterParams)(nil), // 26: inventory.v1.AddNodeExporterParams (*ChangeNodeExporterRequest)(nil), // 27: inventory.v1.ChangeNodeExporterRequest (*ChangeNodeExporterResponse)(nil), // 28: inventory.v1.ChangeNodeExporterResponse - (*AddMySQLdExporterRequest)(nil), // 29: inventory.v1.AddMySQLdExporterRequest - (*AddMySQLdExporterResponse)(nil), // 30: inventory.v1.AddMySQLdExporterResponse - (*ChangeMySQLdExporterRequest)(nil), // 31: inventory.v1.ChangeMySQLdExporterRequest - (*ChangeMySQLdExporterResponse)(nil), // 32: inventory.v1.ChangeMySQLdExporterResponse - (*AddMongoDBExporterRequest)(nil), // 33: inventory.v1.AddMongoDBExporterRequest - (*AddMongoDBExporterResponse)(nil), // 34: inventory.v1.AddMongoDBExporterResponse - (*ChangeMongoDBExporterRequest)(nil), // 35: inventory.v1.ChangeMongoDBExporterRequest - (*ChangeMongoDBExporterResponse)(nil), // 36: inventory.v1.ChangeMongoDBExporterResponse - (*AddPostgresExporterRequest)(nil), // 37: inventory.v1.AddPostgresExporterRequest - (*AddPostgresExporterResponse)(nil), // 38: inventory.v1.AddPostgresExporterResponse - (*ChangePostgresExporterRequest)(nil), // 39: inventory.v1.ChangePostgresExporterRequest - (*ChangePostgresExporterResponse)(nil), // 40: inventory.v1.ChangePostgresExporterResponse - (*AddProxySQLExporterRequest)(nil), // 41: inventory.v1.AddProxySQLExporterRequest - (*AddProxySQLExporterResponse)(nil), // 42: inventory.v1.AddProxySQLExporterResponse - (*ChangeProxySQLExporterRequest)(nil), // 43: inventory.v1.ChangeProxySQLExporterRequest - (*ChangeProxySQLExporterResponse)(nil), // 44: inventory.v1.ChangeProxySQLExporterResponse - (*AddQANMySQLPerfSchemaAgentRequest)(nil), // 45: inventory.v1.AddQANMySQLPerfSchemaAgentRequest - (*AddQANMySQLPerfSchemaAgentResponse)(nil), // 46: inventory.v1.AddQANMySQLPerfSchemaAgentResponse - (*ChangeQANMySQLPerfSchemaAgentRequest)(nil), // 47: inventory.v1.ChangeQANMySQLPerfSchemaAgentRequest - (*ChangeQANMySQLPerfSchemaAgentResponse)(nil), // 48: inventory.v1.ChangeQANMySQLPerfSchemaAgentResponse - (*AddQANMySQLSlowlogAgentRequest)(nil), // 49: inventory.v1.AddQANMySQLSlowlogAgentRequest - (*AddQANMySQLSlowlogAgentResponse)(nil), // 50: inventory.v1.AddQANMySQLSlowlogAgentResponse - (*ChangeQANMySQLSlowlogAgentRequest)(nil), // 51: inventory.v1.ChangeQANMySQLSlowlogAgentRequest - (*ChangeQANMySQLSlowlogAgentResponse)(nil), // 52: inventory.v1.ChangeQANMySQLSlowlogAgentResponse - (*AddQANMongoDBProfilerAgentRequest)(nil), // 53: inventory.v1.AddQANMongoDBProfilerAgentRequest - (*AddQANMongoDBProfilerAgentResponse)(nil), // 54: inventory.v1.AddQANMongoDBProfilerAgentResponse - (*ChangeQANMongoDBProfilerAgentRequest)(nil), // 55: inventory.v1.ChangeQANMongoDBProfilerAgentRequest - (*ChangeQANMongoDBProfilerAgentResponse)(nil), // 56: inventory.v1.ChangeQANMongoDBProfilerAgentResponse - (*AddQANPostgreSQLPgStatementsAgentRequest)(nil), // 57: inventory.v1.AddQANPostgreSQLPgStatementsAgentRequest - (*AddQANPostgreSQLPgStatementsAgentResponse)(nil), // 58: inventory.v1.AddQANPostgreSQLPgStatementsAgentResponse - (*ChangeQANPostgreSQLPgStatementsAgentRequest)(nil), // 59: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentRequest - (*ChangeQANPostgreSQLPgStatementsAgentResponse)(nil), // 60: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentResponse - (*AddQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 61: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentRequest - (*AddQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 62: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentResponse - (*ChangeQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 63: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentRequest - (*ChangeQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 64: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentResponse - (*AddRDSExporterRequest)(nil), // 65: inventory.v1.AddRDSExporterRequest - (*AddRDSExporterResponse)(nil), // 66: inventory.v1.AddRDSExporterResponse - (*ChangeRDSExporterRequest)(nil), // 67: inventory.v1.ChangeRDSExporterRequest - (*ChangeRDSExporterResponse)(nil), // 68: inventory.v1.ChangeRDSExporterResponse - (*AddExternalExporterRequest)(nil), // 69: inventory.v1.AddExternalExporterRequest - (*AddExternalExporterResponse)(nil), // 70: inventory.v1.AddExternalExporterResponse - (*ChangeExternalExporterRequest)(nil), // 71: inventory.v1.ChangeExternalExporterRequest - (*ChangeExternalExporterResponse)(nil), // 72: inventory.v1.ChangeExternalExporterResponse - (*AddAzureDatabaseExporterRequest)(nil), // 73: inventory.v1.AddAzureDatabaseExporterRequest - (*AddAzureDatabaseExporterResponse)(nil), // 74: inventory.v1.AddAzureDatabaseExporterResponse - (*ChangeAzureDatabaseExporterRequest)(nil), // 75: inventory.v1.ChangeAzureDatabaseExporterRequest - (*ChangeAzureDatabaseExporterResponse)(nil), // 76: inventory.v1.ChangeAzureDatabaseExporterResponse - (*RemoveAgentRequest)(nil), // 77: inventory.v1.RemoveAgentRequest - (*RemoveAgentResponse)(nil), // 78: inventory.v1.RemoveAgentResponse - nil, // 79: inventory.v1.PMMAgent.CustomLabelsEntry - nil, // 80: inventory.v1.NodeExporter.CustomLabelsEntry - nil, // 81: inventory.v1.MySQLdExporter.CustomLabelsEntry - nil, // 82: inventory.v1.MongoDBExporter.CustomLabelsEntry - nil, // 83: inventory.v1.PostgresExporter.CustomLabelsEntry - nil, // 84: inventory.v1.ProxySQLExporter.CustomLabelsEntry - nil, // 85: inventory.v1.QANMySQLPerfSchemaAgent.CustomLabelsEntry - nil, // 86: inventory.v1.QANMySQLSlowlogAgent.CustomLabelsEntry - nil, // 87: inventory.v1.QANMongoDBProfilerAgent.CustomLabelsEntry - nil, // 88: inventory.v1.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry - nil, // 89: inventory.v1.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry - nil, // 90: inventory.v1.RDSExporter.CustomLabelsEntry - nil, // 91: inventory.v1.ExternalExporter.CustomLabelsEntry - nil, // 92: inventory.v1.AzureDatabaseExporter.CustomLabelsEntry - nil, // 93: inventory.v1.ChangeCommonAgentParams.CustomLabelsEntry - nil, // 94: inventory.v1.AddPMMAgentRequest.CustomLabelsEntry - nil, // 95: inventory.v1.AddNodeExporterRequest.CustomLabelsEntry - nil, // 96: inventory.v1.AddMySQLdExporterRequest.CustomLabelsEntry - nil, // 97: inventory.v1.AddMongoDBExporterRequest.CustomLabelsEntry - nil, // 98: inventory.v1.AddPostgresExporterRequest.CustomLabelsEntry - nil, // 99: inventory.v1.AddProxySQLExporterRequest.CustomLabelsEntry - nil, // 100: inventory.v1.AddQANMySQLPerfSchemaAgentRequest.CustomLabelsEntry - nil, // 101: inventory.v1.AddQANMySQLSlowlogAgentRequest.CustomLabelsEntry - nil, // 102: inventory.v1.AddQANMongoDBProfilerAgentRequest.CustomLabelsEntry - nil, // 103: inventory.v1.AddQANPostgreSQLPgStatementsAgentRequest.CustomLabelsEntry - nil, // 104: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentRequest.CustomLabelsEntry - nil, // 105: inventory.v1.AddRDSExporterRequest.CustomLabelsEntry - nil, // 106: inventory.v1.AddExternalExporterRequest.CustomLabelsEntry - nil, // 107: inventory.v1.AddAzureDatabaseExporterRequest.CustomLabelsEntry - (AgentStatus)(0), // 108: inventory.v1.AgentStatus - (LogLevel)(0), // 109: inventory.v1.LogLevel + (*AddMySQLdExporterParams)(nil), // 29: inventory.v1.AddMySQLdExporterParams + (*ChangeMySQLdExporterRequest)(nil), // 30: inventory.v1.ChangeMySQLdExporterRequest + (*ChangeMySQLdExporterResponse)(nil), // 31: inventory.v1.ChangeMySQLdExporterResponse + (*AddMongoDBExporterParams)(nil), // 32: inventory.v1.AddMongoDBExporterParams + (*ChangeMongoDBExporterRequest)(nil), // 33: inventory.v1.ChangeMongoDBExporterRequest + (*ChangeMongoDBExporterResponse)(nil), // 34: inventory.v1.ChangeMongoDBExporterResponse + (*AddPostgresExporterParams)(nil), // 35: inventory.v1.AddPostgresExporterParams + (*ChangePostgresExporterRequest)(nil), // 36: inventory.v1.ChangePostgresExporterRequest + (*ChangePostgresExporterResponse)(nil), // 37: inventory.v1.ChangePostgresExporterResponse + (*AddProxySQLExporterParams)(nil), // 38: inventory.v1.AddProxySQLExporterParams + (*ChangeProxySQLExporterRequest)(nil), // 39: inventory.v1.ChangeProxySQLExporterRequest + (*ChangeProxySQLExporterResponse)(nil), // 40: inventory.v1.ChangeProxySQLExporterResponse + (*AddQANMySQLPerfSchemaAgentParams)(nil), // 41: inventory.v1.AddQANMySQLPerfSchemaAgentParams + (*ChangeQANMySQLPerfSchemaAgentRequest)(nil), // 42: inventory.v1.ChangeQANMySQLPerfSchemaAgentRequest + (*ChangeQANMySQLPerfSchemaAgentResponse)(nil), // 43: inventory.v1.ChangeQANMySQLPerfSchemaAgentResponse + (*AddQANMySQLSlowlogAgentParams)(nil), // 44: inventory.v1.AddQANMySQLSlowlogAgentParams + (*ChangeQANMySQLSlowlogAgentRequest)(nil), // 45: inventory.v1.ChangeQANMySQLSlowlogAgentRequest + (*ChangeQANMySQLSlowlogAgentResponse)(nil), // 46: inventory.v1.ChangeQANMySQLSlowlogAgentResponse + (*AddQANMongoDBProfilerAgentParams)(nil), // 47: inventory.v1.AddQANMongoDBProfilerAgentParams + (*ChangeQANMongoDBProfilerAgentRequest)(nil), // 48: inventory.v1.ChangeQANMongoDBProfilerAgentRequest + (*ChangeQANMongoDBProfilerAgentResponse)(nil), // 49: inventory.v1.ChangeQANMongoDBProfilerAgentResponse + (*AddQANPostgreSQLPgStatementsAgentParams)(nil), // 50: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams + (*ChangeQANPostgreSQLPgStatementsAgentRequest)(nil), // 51: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentRequest + (*ChangeQANPostgreSQLPgStatementsAgentResponse)(nil), // 52: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentResponse + (*AddQANPostgreSQLPgStatMonitorAgentParams)(nil), // 53: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams + (*ChangeQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 54: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentRequest + (*ChangeQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 55: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentResponse + (*AddRDSExporterParams)(nil), // 56: inventory.v1.AddRDSExporterParams + (*ChangeRDSExporterRequest)(nil), // 57: inventory.v1.ChangeRDSExporterRequest + (*ChangeRDSExporterResponse)(nil), // 58: inventory.v1.ChangeRDSExporterResponse + (*AddExternalExporterParams)(nil), // 59: inventory.v1.AddExternalExporterParams + (*ChangeExternalExporterRequest)(nil), // 60: inventory.v1.ChangeExternalExporterRequest + (*ChangeExternalExporterResponse)(nil), // 61: inventory.v1.ChangeExternalExporterResponse + (*AddAzureDatabaseExporterParams)(nil), // 62: inventory.v1.AddAzureDatabaseExporterParams + (*ChangeAzureDatabaseExporterRequest)(nil), // 63: inventory.v1.ChangeAzureDatabaseExporterRequest + (*ChangeAzureDatabaseExporterResponse)(nil), // 64: inventory.v1.ChangeAzureDatabaseExporterResponse + (*RemoveAgentRequest)(nil), // 65: inventory.v1.RemoveAgentRequest + (*RemoveAgentResponse)(nil), // 66: inventory.v1.RemoveAgentResponse + nil, // 67: inventory.v1.PMMAgent.CustomLabelsEntry + nil, // 68: inventory.v1.NodeExporter.CustomLabelsEntry + nil, // 69: inventory.v1.MySQLdExporter.CustomLabelsEntry + nil, // 70: inventory.v1.MongoDBExporter.CustomLabelsEntry + nil, // 71: inventory.v1.PostgresExporter.CustomLabelsEntry + nil, // 72: inventory.v1.ProxySQLExporter.CustomLabelsEntry + nil, // 73: inventory.v1.QANMySQLPerfSchemaAgent.CustomLabelsEntry + nil, // 74: inventory.v1.QANMySQLSlowlogAgent.CustomLabelsEntry + nil, // 75: inventory.v1.QANMongoDBProfilerAgent.CustomLabelsEntry + nil, // 76: inventory.v1.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry + nil, // 77: inventory.v1.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry + nil, // 78: inventory.v1.RDSExporter.CustomLabelsEntry + nil, // 79: inventory.v1.ExternalExporter.CustomLabelsEntry + nil, // 80: inventory.v1.AzureDatabaseExporter.CustomLabelsEntry + nil, // 81: inventory.v1.ChangeCommonAgentParams.CustomLabelsEntry + nil, // 82: inventory.v1.AddPMMAgentParams.CustomLabelsEntry + nil, // 83: inventory.v1.AddNodeExporterParams.CustomLabelsEntry + nil, // 84: inventory.v1.AddMySQLdExporterParams.CustomLabelsEntry + nil, // 85: inventory.v1.AddMongoDBExporterParams.CustomLabelsEntry + nil, // 86: inventory.v1.AddPostgresExporterParams.CustomLabelsEntry + nil, // 87: inventory.v1.AddProxySQLExporterParams.CustomLabelsEntry + nil, // 88: inventory.v1.AddQANMySQLPerfSchemaAgentParams.CustomLabelsEntry + nil, // 89: inventory.v1.AddQANMySQLSlowlogAgentParams.CustomLabelsEntry + nil, // 90: inventory.v1.AddQANMongoDBProfilerAgentParams.CustomLabelsEntry + nil, // 91: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams.CustomLabelsEntry + nil, // 92: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams.CustomLabelsEntry + nil, // 93: inventory.v1.AddRDSExporterParams.CustomLabelsEntry + nil, // 94: inventory.v1.AddExternalExporterParams.CustomLabelsEntry + nil, // 95: inventory.v1.AddAzureDatabaseExporterParams.CustomLabelsEntry + (AgentStatus)(0), // 96: inventory.v1.AgentStatus + (LogLevel)(0), // 97: inventory.v1.LogLevel } ) var file_inventory_v1_agents_proto_depIdxs = []int32{ - 79, // 0: inventory.v1.PMMAgent.custom_labels:type_name -> inventory.v1.PMMAgent.CustomLabelsEntry - 108, // 1: inventory.v1.VMAgent.status:type_name -> inventory.v1.AgentStatus - 80, // 2: inventory.v1.NodeExporter.custom_labels:type_name -> inventory.v1.NodeExporter.CustomLabelsEntry - 108, // 3: inventory.v1.NodeExporter.status:type_name -> inventory.v1.AgentStatus - 109, // 4: inventory.v1.NodeExporter.log_level:type_name -> inventory.v1.LogLevel - 81, // 5: inventory.v1.MySQLdExporter.custom_labels:type_name -> inventory.v1.MySQLdExporter.CustomLabelsEntry - 108, // 6: inventory.v1.MySQLdExporter.status:type_name -> inventory.v1.AgentStatus - 109, // 7: inventory.v1.MySQLdExporter.log_level:type_name -> inventory.v1.LogLevel - 82, // 8: inventory.v1.MongoDBExporter.custom_labels:type_name -> inventory.v1.MongoDBExporter.CustomLabelsEntry - 108, // 9: inventory.v1.MongoDBExporter.status:type_name -> inventory.v1.AgentStatus - 109, // 10: inventory.v1.MongoDBExporter.log_level:type_name -> inventory.v1.LogLevel - 83, // 11: inventory.v1.PostgresExporter.custom_labels:type_name -> inventory.v1.PostgresExporter.CustomLabelsEntry - 108, // 12: inventory.v1.PostgresExporter.status:type_name -> inventory.v1.AgentStatus - 109, // 13: inventory.v1.PostgresExporter.log_level:type_name -> inventory.v1.LogLevel - 84, // 14: inventory.v1.ProxySQLExporter.custom_labels:type_name -> inventory.v1.ProxySQLExporter.CustomLabelsEntry - 108, // 15: inventory.v1.ProxySQLExporter.status:type_name -> inventory.v1.AgentStatus - 109, // 16: inventory.v1.ProxySQLExporter.log_level:type_name -> inventory.v1.LogLevel - 85, // 17: inventory.v1.QANMySQLPerfSchemaAgent.custom_labels:type_name -> inventory.v1.QANMySQLPerfSchemaAgent.CustomLabelsEntry - 108, // 18: inventory.v1.QANMySQLPerfSchemaAgent.status:type_name -> inventory.v1.AgentStatus - 109, // 19: inventory.v1.QANMySQLPerfSchemaAgent.log_level:type_name -> inventory.v1.LogLevel - 86, // 20: inventory.v1.QANMySQLSlowlogAgent.custom_labels:type_name -> inventory.v1.QANMySQLSlowlogAgent.CustomLabelsEntry - 108, // 21: inventory.v1.QANMySQLSlowlogAgent.status:type_name -> inventory.v1.AgentStatus - 109, // 22: inventory.v1.QANMySQLSlowlogAgent.log_level:type_name -> inventory.v1.LogLevel - 87, // 23: inventory.v1.QANMongoDBProfilerAgent.custom_labels:type_name -> inventory.v1.QANMongoDBProfilerAgent.CustomLabelsEntry - 108, // 24: inventory.v1.QANMongoDBProfilerAgent.status:type_name -> inventory.v1.AgentStatus - 109, // 25: inventory.v1.QANMongoDBProfilerAgent.log_level:type_name -> inventory.v1.LogLevel - 88, // 26: inventory.v1.QANPostgreSQLPgStatementsAgent.custom_labels:type_name -> inventory.v1.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry - 108, // 27: inventory.v1.QANPostgreSQLPgStatementsAgent.status:type_name -> inventory.v1.AgentStatus - 109, // 28: inventory.v1.QANPostgreSQLPgStatementsAgent.log_level:type_name -> inventory.v1.LogLevel - 89, // 29: inventory.v1.QANPostgreSQLPgStatMonitorAgent.custom_labels:type_name -> inventory.v1.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry - 108, // 30: inventory.v1.QANPostgreSQLPgStatMonitorAgent.status:type_name -> inventory.v1.AgentStatus - 109, // 31: inventory.v1.QANPostgreSQLPgStatMonitorAgent.log_level:type_name -> inventory.v1.LogLevel - 90, // 32: inventory.v1.RDSExporter.custom_labels:type_name -> inventory.v1.RDSExporter.CustomLabelsEntry - 108, // 33: inventory.v1.RDSExporter.status:type_name -> inventory.v1.AgentStatus - 109, // 34: inventory.v1.RDSExporter.log_level:type_name -> inventory.v1.LogLevel - 91, // 35: inventory.v1.ExternalExporter.custom_labels:type_name -> inventory.v1.ExternalExporter.CustomLabelsEntry - 92, // 36: inventory.v1.AzureDatabaseExporter.custom_labels:type_name -> inventory.v1.AzureDatabaseExporter.CustomLabelsEntry - 108, // 37: inventory.v1.AzureDatabaseExporter.status:type_name -> inventory.v1.AgentStatus - 109, // 38: inventory.v1.AzureDatabaseExporter.log_level:type_name -> inventory.v1.LogLevel - 93, // 39: inventory.v1.ChangeCommonAgentParams.custom_labels:type_name -> inventory.v1.ChangeCommonAgentParams.CustomLabelsEntry + 67, // 0: inventory.v1.PMMAgent.custom_labels:type_name -> inventory.v1.PMMAgent.CustomLabelsEntry + 96, // 1: inventory.v1.VMAgent.status:type_name -> inventory.v1.AgentStatus + 68, // 2: inventory.v1.NodeExporter.custom_labels:type_name -> inventory.v1.NodeExporter.CustomLabelsEntry + 96, // 3: inventory.v1.NodeExporter.status:type_name -> inventory.v1.AgentStatus + 97, // 4: inventory.v1.NodeExporter.log_level:type_name -> inventory.v1.LogLevel + 69, // 5: inventory.v1.MySQLdExporter.custom_labels:type_name -> inventory.v1.MySQLdExporter.CustomLabelsEntry + 96, // 6: inventory.v1.MySQLdExporter.status:type_name -> inventory.v1.AgentStatus + 97, // 7: inventory.v1.MySQLdExporter.log_level:type_name -> inventory.v1.LogLevel + 70, // 8: inventory.v1.MongoDBExporter.custom_labels:type_name -> inventory.v1.MongoDBExporter.CustomLabelsEntry + 96, // 9: inventory.v1.MongoDBExporter.status:type_name -> inventory.v1.AgentStatus + 97, // 10: inventory.v1.MongoDBExporter.log_level:type_name -> inventory.v1.LogLevel + 71, // 11: inventory.v1.PostgresExporter.custom_labels:type_name -> inventory.v1.PostgresExporter.CustomLabelsEntry + 96, // 12: inventory.v1.PostgresExporter.status:type_name -> inventory.v1.AgentStatus + 97, // 13: inventory.v1.PostgresExporter.log_level:type_name -> inventory.v1.LogLevel + 72, // 14: inventory.v1.ProxySQLExporter.custom_labels:type_name -> inventory.v1.ProxySQLExporter.CustomLabelsEntry + 96, // 15: inventory.v1.ProxySQLExporter.status:type_name -> inventory.v1.AgentStatus + 97, // 16: inventory.v1.ProxySQLExporter.log_level:type_name -> inventory.v1.LogLevel + 73, // 17: inventory.v1.QANMySQLPerfSchemaAgent.custom_labels:type_name -> inventory.v1.QANMySQLPerfSchemaAgent.CustomLabelsEntry + 96, // 18: inventory.v1.QANMySQLPerfSchemaAgent.status:type_name -> inventory.v1.AgentStatus + 97, // 19: inventory.v1.QANMySQLPerfSchemaAgent.log_level:type_name -> inventory.v1.LogLevel + 74, // 20: inventory.v1.QANMySQLSlowlogAgent.custom_labels:type_name -> inventory.v1.QANMySQLSlowlogAgent.CustomLabelsEntry + 96, // 21: inventory.v1.QANMySQLSlowlogAgent.status:type_name -> inventory.v1.AgentStatus + 97, // 22: inventory.v1.QANMySQLSlowlogAgent.log_level:type_name -> inventory.v1.LogLevel + 75, // 23: inventory.v1.QANMongoDBProfilerAgent.custom_labels:type_name -> inventory.v1.QANMongoDBProfilerAgent.CustomLabelsEntry + 96, // 24: inventory.v1.QANMongoDBProfilerAgent.status:type_name -> inventory.v1.AgentStatus + 97, // 25: inventory.v1.QANMongoDBProfilerAgent.log_level:type_name -> inventory.v1.LogLevel + 76, // 26: inventory.v1.QANPostgreSQLPgStatementsAgent.custom_labels:type_name -> inventory.v1.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry + 96, // 27: inventory.v1.QANPostgreSQLPgStatementsAgent.status:type_name -> inventory.v1.AgentStatus + 97, // 28: inventory.v1.QANPostgreSQLPgStatementsAgent.log_level:type_name -> inventory.v1.LogLevel + 77, // 29: inventory.v1.QANPostgreSQLPgStatMonitorAgent.custom_labels:type_name -> inventory.v1.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry + 96, // 30: inventory.v1.QANPostgreSQLPgStatMonitorAgent.status:type_name -> inventory.v1.AgentStatus + 97, // 31: inventory.v1.QANPostgreSQLPgStatMonitorAgent.log_level:type_name -> inventory.v1.LogLevel + 78, // 32: inventory.v1.RDSExporter.custom_labels:type_name -> inventory.v1.RDSExporter.CustomLabelsEntry + 96, // 33: inventory.v1.RDSExporter.status:type_name -> inventory.v1.AgentStatus + 97, // 34: inventory.v1.RDSExporter.log_level:type_name -> inventory.v1.LogLevel + 79, // 35: inventory.v1.ExternalExporter.custom_labels:type_name -> inventory.v1.ExternalExporter.CustomLabelsEntry + 80, // 36: inventory.v1.AzureDatabaseExporter.custom_labels:type_name -> inventory.v1.AzureDatabaseExporter.CustomLabelsEntry + 96, // 37: inventory.v1.AzureDatabaseExporter.status:type_name -> inventory.v1.AgentStatus + 97, // 38: inventory.v1.AzureDatabaseExporter.log_level:type_name -> inventory.v1.LogLevel + 81, // 39: inventory.v1.ChangeCommonAgentParams.custom_labels:type_name -> inventory.v1.ChangeCommonAgentParams.CustomLabelsEntry 0, // 40: inventory.v1.ListAgentsRequest.agent_type:type_name -> inventory.v1.AgentType 1, // 41: inventory.v1.ListAgentsResponse.pmm_agent:type_name -> inventory.v1.PMMAgent 2, // 42: inventory.v1.ListAgentsResponse.vm_agent:type_name -> inventory.v1.VMAgent @@ -10015,139 +9706,127 @@ var file_inventory_v1_agents_proto_depIdxs = []int32{ 13, // 68: inventory.v1.GetAgentResponse.rds_exporter:type_name -> inventory.v1.RDSExporter 14, // 69: inventory.v1.GetAgentResponse.external_exporter:type_name -> inventory.v1.ExternalExporter 15, // 70: inventory.v1.GetAgentResponse.azure_database_exporter:type_name -> inventory.v1.AzureDatabaseExporter - 94, // 71: inventory.v1.AddPMMAgentRequest.custom_labels:type_name -> inventory.v1.AddPMMAgentRequest.CustomLabelsEntry - 1, // 72: inventory.v1.AddPMMAgentResponse.pmm_agent:type_name -> inventory.v1.PMMAgent - 95, // 73: inventory.v1.AddNodeExporterRequest.custom_labels:type_name -> inventory.v1.AddNodeExporterRequest.CustomLabelsEntry - 109, // 74: inventory.v1.AddNodeExporterRequest.log_level:type_name -> inventory.v1.LogLevel - 3, // 75: inventory.v1.AddNodeExporterResponse.node_exporter:type_name -> inventory.v1.NodeExporter - 16, // 76: inventory.v1.ChangeNodeExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 3, // 77: inventory.v1.ChangeNodeExporterResponse.node_exporter:type_name -> inventory.v1.NodeExporter - 96, // 78: inventory.v1.AddMySQLdExporterRequest.custom_labels:type_name -> inventory.v1.AddMySQLdExporterRequest.CustomLabelsEntry - 109, // 79: inventory.v1.AddMySQLdExporterRequest.log_level:type_name -> inventory.v1.LogLevel - 4, // 80: inventory.v1.AddMySQLdExporterResponse.mysqld_exporter:type_name -> inventory.v1.MySQLdExporter - 16, // 81: inventory.v1.ChangeMySQLdExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 4, // 82: inventory.v1.ChangeMySQLdExporterResponse.mysqld_exporter:type_name -> inventory.v1.MySQLdExporter - 97, // 83: inventory.v1.AddMongoDBExporterRequest.custom_labels:type_name -> inventory.v1.AddMongoDBExporterRequest.CustomLabelsEntry - 109, // 84: inventory.v1.AddMongoDBExporterRequest.log_level:type_name -> inventory.v1.LogLevel - 5, // 85: inventory.v1.AddMongoDBExporterResponse.mongodb_exporter:type_name -> inventory.v1.MongoDBExporter - 16, // 86: inventory.v1.ChangeMongoDBExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 5, // 87: inventory.v1.ChangeMongoDBExporterResponse.mongodb_exporter:type_name -> inventory.v1.MongoDBExporter - 98, // 88: inventory.v1.AddPostgresExporterRequest.custom_labels:type_name -> inventory.v1.AddPostgresExporterRequest.CustomLabelsEntry - 109, // 89: inventory.v1.AddPostgresExporterRequest.log_level:type_name -> inventory.v1.LogLevel - 6, // 90: inventory.v1.AddPostgresExporterResponse.postgres_exporter:type_name -> inventory.v1.PostgresExporter - 16, // 91: inventory.v1.ChangePostgresExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 6, // 92: inventory.v1.ChangePostgresExporterResponse.postgres_exporter:type_name -> inventory.v1.PostgresExporter - 99, // 93: inventory.v1.AddProxySQLExporterRequest.custom_labels:type_name -> inventory.v1.AddProxySQLExporterRequest.CustomLabelsEntry - 109, // 94: inventory.v1.AddProxySQLExporterRequest.log_level:type_name -> inventory.v1.LogLevel - 7, // 95: inventory.v1.AddProxySQLExporterResponse.proxysql_exporter:type_name -> inventory.v1.ProxySQLExporter - 16, // 96: inventory.v1.ChangeProxySQLExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 7, // 97: inventory.v1.ChangeProxySQLExporterResponse.proxysql_exporter:type_name -> inventory.v1.ProxySQLExporter - 100, // 98: inventory.v1.AddQANMySQLPerfSchemaAgentRequest.custom_labels:type_name -> inventory.v1.AddQANMySQLPerfSchemaAgentRequest.CustomLabelsEntry - 109, // 99: inventory.v1.AddQANMySQLPerfSchemaAgentRequest.log_level:type_name -> inventory.v1.LogLevel - 8, // 100: inventory.v1.AddQANMySQLPerfSchemaAgentResponse.qan_mysql_perfschema_agent:type_name -> inventory.v1.QANMySQLPerfSchemaAgent - 16, // 101: inventory.v1.ChangeQANMySQLPerfSchemaAgentRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 8, // 102: inventory.v1.ChangeQANMySQLPerfSchemaAgentResponse.qan_mysql_perfschema_agent:type_name -> inventory.v1.QANMySQLPerfSchemaAgent - 101, // 103: inventory.v1.AddQANMySQLSlowlogAgentRequest.custom_labels:type_name -> inventory.v1.AddQANMySQLSlowlogAgentRequest.CustomLabelsEntry - 109, // 104: inventory.v1.AddQANMySQLSlowlogAgentRequest.log_level:type_name -> inventory.v1.LogLevel - 9, // 105: inventory.v1.AddQANMySQLSlowlogAgentResponse.qan_mysql_slowlog_agent:type_name -> inventory.v1.QANMySQLSlowlogAgent - 16, // 106: inventory.v1.ChangeQANMySQLSlowlogAgentRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 9, // 107: inventory.v1.ChangeQANMySQLSlowlogAgentResponse.qan_mysql_slowlog_agent:type_name -> inventory.v1.QANMySQLSlowlogAgent - 102, // 108: inventory.v1.AddQANMongoDBProfilerAgentRequest.custom_labels:type_name -> inventory.v1.AddQANMongoDBProfilerAgentRequest.CustomLabelsEntry - 109, // 109: inventory.v1.AddQANMongoDBProfilerAgentRequest.log_level:type_name -> inventory.v1.LogLevel - 10, // 110: inventory.v1.AddQANMongoDBProfilerAgentResponse.qan_mongodb_profiler_agent:type_name -> inventory.v1.QANMongoDBProfilerAgent - 16, // 111: inventory.v1.ChangeQANMongoDBProfilerAgentRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 10, // 112: inventory.v1.ChangeQANMongoDBProfilerAgentResponse.qan_mongodb_profiler_agent:type_name -> inventory.v1.QANMongoDBProfilerAgent - 103, // 113: inventory.v1.AddQANPostgreSQLPgStatementsAgentRequest.custom_labels:type_name -> inventory.v1.AddQANPostgreSQLPgStatementsAgentRequest.CustomLabelsEntry - 109, // 114: inventory.v1.AddQANPostgreSQLPgStatementsAgentRequest.log_level:type_name -> inventory.v1.LogLevel - 11, // 115: inventory.v1.AddQANPostgreSQLPgStatementsAgentResponse.qan_postgresql_pgstatements_agent:type_name -> inventory.v1.QANPostgreSQLPgStatementsAgent - 16, // 116: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 11, // 117: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentResponse.qan_postgresql_pgstatements_agent:type_name -> inventory.v1.QANPostgreSQLPgStatementsAgent - 104, // 118: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentRequest.custom_labels:type_name -> inventory.v1.AddQANPostgreSQLPgStatMonitorAgentRequest.CustomLabelsEntry - 109, // 119: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentRequest.log_level:type_name -> inventory.v1.LogLevel - 12, // 120: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentResponse.qan_postgresql_pgstatmonitor_agent:type_name -> inventory.v1.QANPostgreSQLPgStatMonitorAgent - 16, // 121: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 12, // 122: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentResponse.qan_postgresql_pgstatmonitor_agent:type_name -> inventory.v1.QANPostgreSQLPgStatMonitorAgent - 105, // 123: inventory.v1.AddRDSExporterRequest.custom_labels:type_name -> inventory.v1.AddRDSExporterRequest.CustomLabelsEntry - 109, // 124: inventory.v1.AddRDSExporterRequest.log_level:type_name -> inventory.v1.LogLevel - 13, // 125: inventory.v1.AddRDSExporterResponse.rds_exporter:type_name -> inventory.v1.RDSExporter - 16, // 126: inventory.v1.ChangeRDSExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 13, // 127: inventory.v1.ChangeRDSExporterResponse.rds_exporter:type_name -> inventory.v1.RDSExporter - 106, // 128: inventory.v1.AddExternalExporterRequest.custom_labels:type_name -> inventory.v1.AddExternalExporterRequest.CustomLabelsEntry - 14, // 129: inventory.v1.AddExternalExporterResponse.external_exporter:type_name -> inventory.v1.ExternalExporter - 16, // 130: inventory.v1.ChangeExternalExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 14, // 131: inventory.v1.ChangeExternalExporterResponse.external_exporter:type_name -> inventory.v1.ExternalExporter - 107, // 132: inventory.v1.AddAzureDatabaseExporterRequest.custom_labels:type_name -> inventory.v1.AddAzureDatabaseExporterRequest.CustomLabelsEntry - 109, // 133: inventory.v1.AddAzureDatabaseExporterRequest.log_level:type_name -> inventory.v1.LogLevel - 15, // 134: inventory.v1.AddAzureDatabaseExporterResponse.azure_database_exporter:type_name -> inventory.v1.AzureDatabaseExporter - 16, // 135: inventory.v1.ChangeAzureDatabaseExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams - 15, // 136: inventory.v1.ChangeAzureDatabaseExporterResponse.azure_database_exporter:type_name -> inventory.v1.AzureDatabaseExporter - 17, // 137: inventory.v1.AgentsService.ListAgents:input_type -> inventory.v1.ListAgentsRequest - 19, // 138: inventory.v1.AgentsService.GetAgent:input_type -> inventory.v1.GetAgentRequest - 21, // 139: inventory.v1.AgentsService.GetAgentLogs:input_type -> inventory.v1.GetAgentLogsRequest - 23, // 140: inventory.v1.AgentsService.AddPMMAgent:input_type -> inventory.v1.AddPMMAgentRequest - 25, // 141: inventory.v1.AgentsService.AddNodeExporter:input_type -> inventory.v1.AddNodeExporterRequest - 27, // 142: inventory.v1.AgentsService.ChangeNodeExporter:input_type -> inventory.v1.ChangeNodeExporterRequest - 29, // 143: inventory.v1.AgentsService.AddMySQLdExporter:input_type -> inventory.v1.AddMySQLdExporterRequest - 31, // 144: inventory.v1.AgentsService.ChangeMySQLdExporter:input_type -> inventory.v1.ChangeMySQLdExporterRequest - 33, // 145: inventory.v1.AgentsService.AddMongoDBExporter:input_type -> inventory.v1.AddMongoDBExporterRequest - 35, // 146: inventory.v1.AgentsService.ChangeMongoDBExporter:input_type -> inventory.v1.ChangeMongoDBExporterRequest - 37, // 147: inventory.v1.AgentsService.AddPostgresExporter:input_type -> inventory.v1.AddPostgresExporterRequest - 39, // 148: inventory.v1.AgentsService.ChangePostgresExporter:input_type -> inventory.v1.ChangePostgresExporterRequest - 41, // 149: inventory.v1.AgentsService.AddProxySQLExporter:input_type -> inventory.v1.AddProxySQLExporterRequest - 43, // 150: inventory.v1.AgentsService.ChangeProxySQLExporter:input_type -> inventory.v1.ChangeProxySQLExporterRequest - 45, // 151: inventory.v1.AgentsService.AddQANMySQLPerfSchemaAgent:input_type -> inventory.v1.AddQANMySQLPerfSchemaAgentRequest - 47, // 152: inventory.v1.AgentsService.ChangeQANMySQLPerfSchemaAgent:input_type -> inventory.v1.ChangeQANMySQLPerfSchemaAgentRequest - 49, // 153: inventory.v1.AgentsService.AddQANMySQLSlowlogAgent:input_type -> inventory.v1.AddQANMySQLSlowlogAgentRequest - 51, // 154: inventory.v1.AgentsService.ChangeQANMySQLSlowlogAgent:input_type -> inventory.v1.ChangeQANMySQLSlowlogAgentRequest - 53, // 155: inventory.v1.AgentsService.AddQANMongoDBProfilerAgent:input_type -> inventory.v1.AddQANMongoDBProfilerAgentRequest - 55, // 156: inventory.v1.AgentsService.ChangeQANMongoDBProfilerAgent:input_type -> inventory.v1.ChangeQANMongoDBProfilerAgentRequest - 57, // 157: inventory.v1.AgentsService.AddQANPostgreSQLPgStatementsAgent:input_type -> inventory.v1.AddQANPostgreSQLPgStatementsAgentRequest - 59, // 158: inventory.v1.AgentsService.ChangeQANPostgreSQLPgStatementsAgent:input_type -> inventory.v1.ChangeQANPostgreSQLPgStatementsAgentRequest - 61, // 159: inventory.v1.AgentsService.AddQANPostgreSQLPgStatMonitorAgent:input_type -> inventory.v1.AddQANPostgreSQLPgStatMonitorAgentRequest - 63, // 160: inventory.v1.AgentsService.ChangeQANPostgreSQLPgStatMonitorAgent:input_type -> inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentRequest - 65, // 161: inventory.v1.AgentsService.AddRDSExporter:input_type -> inventory.v1.AddRDSExporterRequest - 67, // 162: inventory.v1.AgentsService.ChangeRDSExporter:input_type -> inventory.v1.ChangeRDSExporterRequest - 69, // 163: inventory.v1.AgentsService.AddExternalExporter:input_type -> inventory.v1.AddExternalExporterRequest - 71, // 164: inventory.v1.AgentsService.ChangeExternalExporter:input_type -> inventory.v1.ChangeExternalExporterRequest - 73, // 165: inventory.v1.AgentsService.AddAzureDatabaseExporter:input_type -> inventory.v1.AddAzureDatabaseExporterRequest - 75, // 166: inventory.v1.AgentsService.ChangeAzureDatabaseExporter:input_type -> inventory.v1.ChangeAzureDatabaseExporterRequest - 77, // 167: inventory.v1.AgentsService.RemoveAgent:input_type -> inventory.v1.RemoveAgentRequest - 18, // 168: inventory.v1.AgentsService.ListAgents:output_type -> inventory.v1.ListAgentsResponse - 20, // 169: inventory.v1.AgentsService.GetAgent:output_type -> inventory.v1.GetAgentResponse - 22, // 170: inventory.v1.AgentsService.GetAgentLogs:output_type -> inventory.v1.GetAgentLogsResponse - 24, // 171: inventory.v1.AgentsService.AddPMMAgent:output_type -> inventory.v1.AddPMMAgentResponse - 26, // 172: inventory.v1.AgentsService.AddNodeExporter:output_type -> inventory.v1.AddNodeExporterResponse + 82, // 71: inventory.v1.AddPMMAgentParams.custom_labels:type_name -> inventory.v1.AddPMMAgentParams.CustomLabelsEntry + 23, // 72: inventory.v1.AddAgentRequest.pmm_agent:type_name -> inventory.v1.AddPMMAgentParams + 26, // 73: inventory.v1.AddAgentRequest.node_exporter:type_name -> inventory.v1.AddNodeExporterParams + 29, // 74: inventory.v1.AddAgentRequest.mysqld_exporter:type_name -> inventory.v1.AddMySQLdExporterParams + 32, // 75: inventory.v1.AddAgentRequest.mongodb_exporter:type_name -> inventory.v1.AddMongoDBExporterParams + 35, // 76: inventory.v1.AddAgentRequest.postgres_exporter:type_name -> inventory.v1.AddPostgresExporterParams + 38, // 77: inventory.v1.AddAgentRequest.proxysql_exporter:type_name -> inventory.v1.AddProxySQLExporterParams + 59, // 78: inventory.v1.AddAgentRequest.external_exporter:type_name -> inventory.v1.AddExternalExporterParams + 56, // 79: inventory.v1.AddAgentRequest.rds_exporter:type_name -> inventory.v1.AddRDSExporterParams + 62, // 80: inventory.v1.AddAgentRequest.azure_database_exporter:type_name -> inventory.v1.AddAzureDatabaseExporterParams + 41, // 81: inventory.v1.AddAgentRequest.qan_mysql_perfschema_agent:type_name -> inventory.v1.AddQANMySQLPerfSchemaAgentParams + 44, // 82: inventory.v1.AddAgentRequest.qan_mysql_slowlog_agent:type_name -> inventory.v1.AddQANMySQLSlowlogAgentParams + 47, // 83: inventory.v1.AddAgentRequest.qan_mongodb_profiler_agent:type_name -> inventory.v1.AddQANMongoDBProfilerAgentParams + 50, // 84: inventory.v1.AddAgentRequest.qan_postgresql_pgstatements_agent:type_name -> inventory.v1.AddQANPostgreSQLPgStatementsAgentParams + 53, // 85: inventory.v1.AddAgentRequest.qan_postgresql_pgstatmonitor_agent:type_name -> inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams + 1, // 86: inventory.v1.AddAgentResponse.pmm_agent:type_name -> inventory.v1.PMMAgent + 3, // 87: inventory.v1.AddAgentResponse.node_exporter:type_name -> inventory.v1.NodeExporter + 4, // 88: inventory.v1.AddAgentResponse.mysqld_exporter:type_name -> inventory.v1.MySQLdExporter + 5, // 89: inventory.v1.AddAgentResponse.mongodb_exporter:type_name -> inventory.v1.MongoDBExporter + 6, // 90: inventory.v1.AddAgentResponse.postgres_exporter:type_name -> inventory.v1.PostgresExporter + 7, // 91: inventory.v1.AddAgentResponse.proxysql_exporter:type_name -> inventory.v1.ProxySQLExporter + 14, // 92: inventory.v1.AddAgentResponse.external_exporter:type_name -> inventory.v1.ExternalExporter + 13, // 93: inventory.v1.AddAgentResponse.rds_exporter:type_name -> inventory.v1.RDSExporter + 15, // 94: inventory.v1.AddAgentResponse.azure_database_exporter:type_name -> inventory.v1.AzureDatabaseExporter + 8, // 95: inventory.v1.AddAgentResponse.qan_mysql_perfschema_agent:type_name -> inventory.v1.QANMySQLPerfSchemaAgent + 9, // 96: inventory.v1.AddAgentResponse.qan_mysql_slowlog_agent:type_name -> inventory.v1.QANMySQLSlowlogAgent + 10, // 97: inventory.v1.AddAgentResponse.qan_mongodb_profiler_agent:type_name -> inventory.v1.QANMongoDBProfilerAgent + 11, // 98: inventory.v1.AddAgentResponse.qan_postgresql_pgstatements_agent:type_name -> inventory.v1.QANPostgreSQLPgStatementsAgent + 12, // 99: inventory.v1.AddAgentResponse.qan_postgresql_pgstatmonitor_agent:type_name -> inventory.v1.QANPostgreSQLPgStatMonitorAgent + 83, // 100: inventory.v1.AddNodeExporterParams.custom_labels:type_name -> inventory.v1.AddNodeExporterParams.CustomLabelsEntry + 97, // 101: inventory.v1.AddNodeExporterParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 102: inventory.v1.ChangeNodeExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 3, // 103: inventory.v1.ChangeNodeExporterResponse.node_exporter:type_name -> inventory.v1.NodeExporter + 84, // 104: inventory.v1.AddMySQLdExporterParams.custom_labels:type_name -> inventory.v1.AddMySQLdExporterParams.CustomLabelsEntry + 97, // 105: inventory.v1.AddMySQLdExporterParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 106: inventory.v1.ChangeMySQLdExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 4, // 107: inventory.v1.ChangeMySQLdExporterResponse.mysqld_exporter:type_name -> inventory.v1.MySQLdExporter + 85, // 108: inventory.v1.AddMongoDBExporterParams.custom_labels:type_name -> inventory.v1.AddMongoDBExporterParams.CustomLabelsEntry + 97, // 109: inventory.v1.AddMongoDBExporterParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 110: inventory.v1.ChangeMongoDBExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 5, // 111: inventory.v1.ChangeMongoDBExporterResponse.mongodb_exporter:type_name -> inventory.v1.MongoDBExporter + 86, // 112: inventory.v1.AddPostgresExporterParams.custom_labels:type_name -> inventory.v1.AddPostgresExporterParams.CustomLabelsEntry + 97, // 113: inventory.v1.AddPostgresExporterParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 114: inventory.v1.ChangePostgresExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 6, // 115: inventory.v1.ChangePostgresExporterResponse.postgres_exporter:type_name -> inventory.v1.PostgresExporter + 87, // 116: inventory.v1.AddProxySQLExporterParams.custom_labels:type_name -> inventory.v1.AddProxySQLExporterParams.CustomLabelsEntry + 97, // 117: inventory.v1.AddProxySQLExporterParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 118: inventory.v1.ChangeProxySQLExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 7, // 119: inventory.v1.ChangeProxySQLExporterResponse.proxysql_exporter:type_name -> inventory.v1.ProxySQLExporter + 88, // 120: inventory.v1.AddQANMySQLPerfSchemaAgentParams.custom_labels:type_name -> inventory.v1.AddQANMySQLPerfSchemaAgentParams.CustomLabelsEntry + 97, // 121: inventory.v1.AddQANMySQLPerfSchemaAgentParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 122: inventory.v1.ChangeQANMySQLPerfSchemaAgentRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 8, // 123: inventory.v1.ChangeQANMySQLPerfSchemaAgentResponse.qan_mysql_perfschema_agent:type_name -> inventory.v1.QANMySQLPerfSchemaAgent + 89, // 124: inventory.v1.AddQANMySQLSlowlogAgentParams.custom_labels:type_name -> inventory.v1.AddQANMySQLSlowlogAgentParams.CustomLabelsEntry + 97, // 125: inventory.v1.AddQANMySQLSlowlogAgentParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 126: inventory.v1.ChangeQANMySQLSlowlogAgentRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 9, // 127: inventory.v1.ChangeQANMySQLSlowlogAgentResponse.qan_mysql_slowlog_agent:type_name -> inventory.v1.QANMySQLSlowlogAgent + 90, // 128: inventory.v1.AddQANMongoDBProfilerAgentParams.custom_labels:type_name -> inventory.v1.AddQANMongoDBProfilerAgentParams.CustomLabelsEntry + 97, // 129: inventory.v1.AddQANMongoDBProfilerAgentParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 130: inventory.v1.ChangeQANMongoDBProfilerAgentRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 10, // 131: inventory.v1.ChangeQANMongoDBProfilerAgentResponse.qan_mongodb_profiler_agent:type_name -> inventory.v1.QANMongoDBProfilerAgent + 91, // 132: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams.custom_labels:type_name -> inventory.v1.AddQANPostgreSQLPgStatementsAgentParams.CustomLabelsEntry + 97, // 133: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 134: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 11, // 135: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentResponse.qan_postgresql_pgstatements_agent:type_name -> inventory.v1.QANPostgreSQLPgStatementsAgent + 92, // 136: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams.custom_labels:type_name -> inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams.CustomLabelsEntry + 97, // 137: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 138: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 12, // 139: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentResponse.qan_postgresql_pgstatmonitor_agent:type_name -> inventory.v1.QANPostgreSQLPgStatMonitorAgent + 93, // 140: inventory.v1.AddRDSExporterParams.custom_labels:type_name -> inventory.v1.AddRDSExporterParams.CustomLabelsEntry + 97, // 141: inventory.v1.AddRDSExporterParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 142: inventory.v1.ChangeRDSExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 13, // 143: inventory.v1.ChangeRDSExporterResponse.rds_exporter:type_name -> inventory.v1.RDSExporter + 94, // 144: inventory.v1.AddExternalExporterParams.custom_labels:type_name -> inventory.v1.AddExternalExporterParams.CustomLabelsEntry + 16, // 145: inventory.v1.ChangeExternalExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 14, // 146: inventory.v1.ChangeExternalExporterResponse.external_exporter:type_name -> inventory.v1.ExternalExporter + 95, // 147: inventory.v1.AddAzureDatabaseExporterParams.custom_labels:type_name -> inventory.v1.AddAzureDatabaseExporterParams.CustomLabelsEntry + 97, // 148: inventory.v1.AddAzureDatabaseExporterParams.log_level:type_name -> inventory.v1.LogLevel + 16, // 149: inventory.v1.ChangeAzureDatabaseExporterRequest.common:type_name -> inventory.v1.ChangeCommonAgentParams + 15, // 150: inventory.v1.ChangeAzureDatabaseExporterResponse.azure_database_exporter:type_name -> inventory.v1.AzureDatabaseExporter + 17, // 151: inventory.v1.AgentsService.ListAgents:input_type -> inventory.v1.ListAgentsRequest + 19, // 152: inventory.v1.AgentsService.GetAgent:input_type -> inventory.v1.GetAgentRequest + 21, // 153: inventory.v1.AgentsService.GetAgentLogs:input_type -> inventory.v1.GetAgentLogsRequest + 24, // 154: inventory.v1.AgentsService.AddAgent:input_type -> inventory.v1.AddAgentRequest + 27, // 155: inventory.v1.AgentsService.ChangeNodeExporter:input_type -> inventory.v1.ChangeNodeExporterRequest + 30, // 156: inventory.v1.AgentsService.ChangeMySQLdExporter:input_type -> inventory.v1.ChangeMySQLdExporterRequest + 33, // 157: inventory.v1.AgentsService.ChangeMongoDBExporter:input_type -> inventory.v1.ChangeMongoDBExporterRequest + 36, // 158: inventory.v1.AgentsService.ChangePostgresExporter:input_type -> inventory.v1.ChangePostgresExporterRequest + 39, // 159: inventory.v1.AgentsService.ChangeProxySQLExporter:input_type -> inventory.v1.ChangeProxySQLExporterRequest + 42, // 160: inventory.v1.AgentsService.ChangeQANMySQLPerfSchemaAgent:input_type -> inventory.v1.ChangeQANMySQLPerfSchemaAgentRequest + 45, // 161: inventory.v1.AgentsService.ChangeQANMySQLSlowlogAgent:input_type -> inventory.v1.ChangeQANMySQLSlowlogAgentRequest + 48, // 162: inventory.v1.AgentsService.ChangeQANMongoDBProfilerAgent:input_type -> inventory.v1.ChangeQANMongoDBProfilerAgentRequest + 51, // 163: inventory.v1.AgentsService.ChangeQANPostgreSQLPgStatementsAgent:input_type -> inventory.v1.ChangeQANPostgreSQLPgStatementsAgentRequest + 54, // 164: inventory.v1.AgentsService.ChangeQANPostgreSQLPgStatMonitorAgent:input_type -> inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentRequest + 57, // 165: inventory.v1.AgentsService.ChangeRDSExporter:input_type -> inventory.v1.ChangeRDSExporterRequest + 60, // 166: inventory.v1.AgentsService.ChangeExternalExporter:input_type -> inventory.v1.ChangeExternalExporterRequest + 63, // 167: inventory.v1.AgentsService.ChangeAzureDatabaseExporter:input_type -> inventory.v1.ChangeAzureDatabaseExporterRequest + 65, // 168: inventory.v1.AgentsService.RemoveAgent:input_type -> inventory.v1.RemoveAgentRequest + 18, // 169: inventory.v1.AgentsService.ListAgents:output_type -> inventory.v1.ListAgentsResponse + 20, // 170: inventory.v1.AgentsService.GetAgent:output_type -> inventory.v1.GetAgentResponse + 22, // 171: inventory.v1.AgentsService.GetAgentLogs:output_type -> inventory.v1.GetAgentLogsResponse + 25, // 172: inventory.v1.AgentsService.AddAgent:output_type -> inventory.v1.AddAgentResponse 28, // 173: inventory.v1.AgentsService.ChangeNodeExporter:output_type -> inventory.v1.ChangeNodeExporterResponse - 30, // 174: inventory.v1.AgentsService.AddMySQLdExporter:output_type -> inventory.v1.AddMySQLdExporterResponse - 32, // 175: inventory.v1.AgentsService.ChangeMySQLdExporter:output_type -> inventory.v1.ChangeMySQLdExporterResponse - 34, // 176: inventory.v1.AgentsService.AddMongoDBExporter:output_type -> inventory.v1.AddMongoDBExporterResponse - 36, // 177: inventory.v1.AgentsService.ChangeMongoDBExporter:output_type -> inventory.v1.ChangeMongoDBExporterResponse - 38, // 178: inventory.v1.AgentsService.AddPostgresExporter:output_type -> inventory.v1.AddPostgresExporterResponse - 40, // 179: inventory.v1.AgentsService.ChangePostgresExporter:output_type -> inventory.v1.ChangePostgresExporterResponse - 42, // 180: inventory.v1.AgentsService.AddProxySQLExporter:output_type -> inventory.v1.AddProxySQLExporterResponse - 44, // 181: inventory.v1.AgentsService.ChangeProxySQLExporter:output_type -> inventory.v1.ChangeProxySQLExporterResponse - 46, // 182: inventory.v1.AgentsService.AddQANMySQLPerfSchemaAgent:output_type -> inventory.v1.AddQANMySQLPerfSchemaAgentResponse - 48, // 183: inventory.v1.AgentsService.ChangeQANMySQLPerfSchemaAgent:output_type -> inventory.v1.ChangeQANMySQLPerfSchemaAgentResponse - 50, // 184: inventory.v1.AgentsService.AddQANMySQLSlowlogAgent:output_type -> inventory.v1.AddQANMySQLSlowlogAgentResponse - 52, // 185: inventory.v1.AgentsService.ChangeQANMySQLSlowlogAgent:output_type -> inventory.v1.ChangeQANMySQLSlowlogAgentResponse - 54, // 186: inventory.v1.AgentsService.AddQANMongoDBProfilerAgent:output_type -> inventory.v1.AddQANMongoDBProfilerAgentResponse - 56, // 187: inventory.v1.AgentsService.ChangeQANMongoDBProfilerAgent:output_type -> inventory.v1.ChangeQANMongoDBProfilerAgentResponse - 58, // 188: inventory.v1.AgentsService.AddQANPostgreSQLPgStatementsAgent:output_type -> inventory.v1.AddQANPostgreSQLPgStatementsAgentResponse - 60, // 189: inventory.v1.AgentsService.ChangeQANPostgreSQLPgStatementsAgent:output_type -> inventory.v1.ChangeQANPostgreSQLPgStatementsAgentResponse - 62, // 190: inventory.v1.AgentsService.AddQANPostgreSQLPgStatMonitorAgent:output_type -> inventory.v1.AddQANPostgreSQLPgStatMonitorAgentResponse - 64, // 191: inventory.v1.AgentsService.ChangeQANPostgreSQLPgStatMonitorAgent:output_type -> inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentResponse - 66, // 192: inventory.v1.AgentsService.AddRDSExporter:output_type -> inventory.v1.AddRDSExporterResponse - 68, // 193: inventory.v1.AgentsService.ChangeRDSExporter:output_type -> inventory.v1.ChangeRDSExporterResponse - 70, // 194: inventory.v1.AgentsService.AddExternalExporter:output_type -> inventory.v1.AddExternalExporterResponse - 72, // 195: inventory.v1.AgentsService.ChangeExternalExporter:output_type -> inventory.v1.ChangeExternalExporterResponse - 74, // 196: inventory.v1.AgentsService.AddAzureDatabaseExporter:output_type -> inventory.v1.AddAzureDatabaseExporterResponse - 76, // 197: inventory.v1.AgentsService.ChangeAzureDatabaseExporter:output_type -> inventory.v1.ChangeAzureDatabaseExporterResponse - 78, // 198: inventory.v1.AgentsService.RemoveAgent:output_type -> inventory.v1.RemoveAgentResponse - 168, // [168:199] is the sub-list for method output_type - 137, // [137:168] is the sub-list for method input_type - 137, // [137:137] is the sub-list for extension type_name - 137, // [137:137] is the sub-list for extension extendee - 0, // [0:137] is the sub-list for field type_name + 31, // 174: inventory.v1.AgentsService.ChangeMySQLdExporter:output_type -> inventory.v1.ChangeMySQLdExporterResponse + 34, // 175: inventory.v1.AgentsService.ChangeMongoDBExporter:output_type -> inventory.v1.ChangeMongoDBExporterResponse + 37, // 176: inventory.v1.AgentsService.ChangePostgresExporter:output_type -> inventory.v1.ChangePostgresExporterResponse + 40, // 177: inventory.v1.AgentsService.ChangeProxySQLExporter:output_type -> inventory.v1.ChangeProxySQLExporterResponse + 43, // 178: inventory.v1.AgentsService.ChangeQANMySQLPerfSchemaAgent:output_type -> inventory.v1.ChangeQANMySQLPerfSchemaAgentResponse + 46, // 179: inventory.v1.AgentsService.ChangeQANMySQLSlowlogAgent:output_type -> inventory.v1.ChangeQANMySQLSlowlogAgentResponse + 49, // 180: inventory.v1.AgentsService.ChangeQANMongoDBProfilerAgent:output_type -> inventory.v1.ChangeQANMongoDBProfilerAgentResponse + 52, // 181: inventory.v1.AgentsService.ChangeQANPostgreSQLPgStatementsAgent:output_type -> inventory.v1.ChangeQANPostgreSQLPgStatementsAgentResponse + 55, // 182: inventory.v1.AgentsService.ChangeQANPostgreSQLPgStatMonitorAgent:output_type -> inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentResponse + 58, // 183: inventory.v1.AgentsService.ChangeRDSExporter:output_type -> inventory.v1.ChangeRDSExporterResponse + 61, // 184: inventory.v1.AgentsService.ChangeExternalExporter:output_type -> inventory.v1.ChangeExternalExporterResponse + 64, // 185: inventory.v1.AgentsService.ChangeAzureDatabaseExporter:output_type -> inventory.v1.ChangeAzureDatabaseExporterResponse + 66, // 186: inventory.v1.AgentsService.RemoveAgent:output_type -> inventory.v1.RemoveAgentResponse + 169, // [169:187] is the sub-list for method output_type + 151, // [151:169] is the sub-list for method input_type + 151, // [151:151] is the sub-list for extension type_name + 151, // [151:151] is the sub-list for extension extendee + 0, // [0:151] is the sub-list for field type_name } func init() { file_inventory_v1_agents_proto_init() } @@ -10423,7 +10102,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddPMMAgentRequest); i { + switch v := v.(*AddPMMAgentParams); i { case 0: return &v.state case 1: @@ -10435,7 +10114,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddPMMAgentResponse); i { + switch v := v.(*AddAgentRequest); i { case 0: return &v.state case 1: @@ -10447,7 +10126,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddNodeExporterRequest); i { + switch v := v.(*AddAgentResponse); i { case 0: return &v.state case 1: @@ -10459,7 +10138,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddNodeExporterResponse); i { + switch v := v.(*AddNodeExporterParams); i { case 0: return &v.state case 1: @@ -10495,7 +10174,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddMySQLdExporterRequest); i { + switch v := v.(*AddMySQLdExporterParams); i { case 0: return &v.state case 1: @@ -10507,7 +10186,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddMySQLdExporterResponse); i { + switch v := v.(*ChangeMySQLdExporterRequest); i { case 0: return &v.state case 1: @@ -10519,7 +10198,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeMySQLdExporterRequest); i { + switch v := v.(*ChangeMySQLdExporterResponse); i { case 0: return &v.state case 1: @@ -10531,7 +10210,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeMySQLdExporterResponse); i { + switch v := v.(*AddMongoDBExporterParams); i { case 0: return &v.state case 1: @@ -10543,7 +10222,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddMongoDBExporterRequest); i { + switch v := v.(*ChangeMongoDBExporterRequest); i { case 0: return &v.state case 1: @@ -10555,7 +10234,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddMongoDBExporterResponse); i { + switch v := v.(*ChangeMongoDBExporterResponse); i { case 0: return &v.state case 1: @@ -10567,7 +10246,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeMongoDBExporterRequest); i { + switch v := v.(*AddPostgresExporterParams); i { case 0: return &v.state case 1: @@ -10579,7 +10258,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeMongoDBExporterResponse); i { + switch v := v.(*ChangePostgresExporterRequest); i { case 0: return &v.state case 1: @@ -10591,7 +10270,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddPostgresExporterRequest); i { + switch v := v.(*ChangePostgresExporterResponse); i { case 0: return &v.state case 1: @@ -10603,7 +10282,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddPostgresExporterResponse); i { + switch v := v.(*AddProxySQLExporterParams); i { case 0: return &v.state case 1: @@ -10615,7 +10294,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangePostgresExporterRequest); i { + switch v := v.(*ChangeProxySQLExporterRequest); i { case 0: return &v.state case 1: @@ -10627,7 +10306,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangePostgresExporterResponse); i { + switch v := v.(*ChangeProxySQLExporterResponse); i { case 0: return &v.state case 1: @@ -10639,7 +10318,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddProxySQLExporterRequest); i { + switch v := v.(*AddQANMySQLPerfSchemaAgentParams); i { case 0: return &v.state case 1: @@ -10651,7 +10330,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddProxySQLExporterResponse); i { + switch v := v.(*ChangeQANMySQLPerfSchemaAgentRequest); i { case 0: return &v.state case 1: @@ -10663,7 +10342,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeProxySQLExporterRequest); i { + switch v := v.(*ChangeQANMySQLPerfSchemaAgentResponse); i { case 0: return &v.state case 1: @@ -10675,7 +10354,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeProxySQLExporterResponse); i { + switch v := v.(*AddQANMySQLSlowlogAgentParams); i { case 0: return &v.state case 1: @@ -10687,7 +10366,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddQANMySQLPerfSchemaAgentRequest); i { + switch v := v.(*ChangeQANMySQLSlowlogAgentRequest); i { case 0: return &v.state case 1: @@ -10699,7 +10378,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddQANMySQLPerfSchemaAgentResponse); i { + switch v := v.(*ChangeQANMySQLSlowlogAgentResponse); i { case 0: return &v.state case 1: @@ -10711,7 +10390,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeQANMySQLPerfSchemaAgentRequest); i { + switch v := v.(*AddQANMongoDBProfilerAgentParams); i { case 0: return &v.state case 1: @@ -10723,7 +10402,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeQANMySQLPerfSchemaAgentResponse); i { + switch v := v.(*ChangeQANMongoDBProfilerAgentRequest); i { case 0: return &v.state case 1: @@ -10735,7 +10414,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddQANMySQLSlowlogAgentRequest); i { + switch v := v.(*ChangeQANMongoDBProfilerAgentResponse); i { case 0: return &v.state case 1: @@ -10747,7 +10426,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddQANMySQLSlowlogAgentResponse); i { + switch v := v.(*AddQANPostgreSQLPgStatementsAgentParams); i { case 0: return &v.state case 1: @@ -10759,7 +10438,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeQANMySQLSlowlogAgentRequest); i { + switch v := v.(*ChangeQANPostgreSQLPgStatementsAgentRequest); i { case 0: return &v.state case 1: @@ -10771,7 +10450,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeQANMySQLSlowlogAgentResponse); i { + switch v := v.(*ChangeQANPostgreSQLPgStatementsAgentResponse); i { case 0: return &v.state case 1: @@ -10783,7 +10462,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddQANMongoDBProfilerAgentRequest); i { + switch v := v.(*AddQANPostgreSQLPgStatMonitorAgentParams); i { case 0: return &v.state case 1: @@ -10795,7 +10474,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddQANMongoDBProfilerAgentResponse); i { + switch v := v.(*ChangeQANPostgreSQLPgStatMonitorAgentRequest); i { case 0: return &v.state case 1: @@ -10807,7 +10486,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeQANMongoDBProfilerAgentRequest); i { + switch v := v.(*ChangeQANPostgreSQLPgStatMonitorAgentResponse); i { case 0: return &v.state case 1: @@ -10819,7 +10498,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeQANMongoDBProfilerAgentResponse); i { + switch v := v.(*AddRDSExporterParams); i { case 0: return &v.state case 1: @@ -10831,7 +10510,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddQANPostgreSQLPgStatementsAgentRequest); i { + switch v := v.(*ChangeRDSExporterRequest); i { case 0: return &v.state case 1: @@ -10843,7 +10522,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddQANPostgreSQLPgStatementsAgentResponse); i { + switch v := v.(*ChangeRDSExporterResponse); i { case 0: return &v.state case 1: @@ -10855,7 +10534,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeQANPostgreSQLPgStatementsAgentRequest); i { + switch v := v.(*AddExternalExporterParams); i { case 0: return &v.state case 1: @@ -10867,7 +10546,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeQANPostgreSQLPgStatementsAgentResponse); i { + switch v := v.(*ChangeExternalExporterRequest); i { case 0: return &v.state case 1: @@ -10879,7 +10558,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddQANPostgreSQLPgStatMonitorAgentRequest); i { + switch v := v.(*ChangeExternalExporterResponse); i { case 0: return &v.state case 1: @@ -10891,7 +10570,7 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddQANPostgreSQLPgStatMonitorAgentResponse); i { + switch v := v.(*AddAzureDatabaseExporterParams); i { case 0: return &v.state case 1: @@ -10903,150 +10582,6 @@ func file_inventory_v1_agents_proto_init() { } } file_inventory_v1_agents_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeQANPostgreSQLPgStatMonitorAgentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeQANPostgreSQLPgStatMonitorAgentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddRDSExporterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddRDSExporterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeRDSExporterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeRDSExporterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddExternalExporterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddExternalExporterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeExternalExporterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeExternalExporterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddAzureDatabaseExporterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddAzureDatabaseExporterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_inventory_v1_agents_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChangeAzureDatabaseExporterRequest); i { case 0: return &v.state @@ -11058,7 +10593,7 @@ func file_inventory_v1_agents_proto_init() { return nil } } - file_inventory_v1_agents_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + file_inventory_v1_agents_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChangeAzureDatabaseExporterResponse); i { case 0: return &v.state @@ -11070,7 +10605,7 @@ func file_inventory_v1_agents_proto_init() { return nil } } - file_inventory_v1_agents_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + file_inventory_v1_agents_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveAgentRequest); i { case 0: return &v.state @@ -11082,7 +10617,7 @@ func file_inventory_v1_agents_proto_init() { return nil } } - file_inventory_v1_agents_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + file_inventory_v1_agents_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveAgentResponse); i { case 0: return &v.state @@ -11112,13 +10647,45 @@ func file_inventory_v1_agents_proto_init() { (*GetAgentResponse_ExternalExporter)(nil), (*GetAgentResponse_AzureDatabaseExporter)(nil), } + file_inventory_v1_agents_proto_msgTypes[23].OneofWrappers = []interface{}{ + (*AddAgentRequest_PmmAgent)(nil), + (*AddAgentRequest_NodeExporter)(nil), + (*AddAgentRequest_MysqldExporter)(nil), + (*AddAgentRequest_MongodbExporter)(nil), + (*AddAgentRequest_PostgresExporter)(nil), + (*AddAgentRequest_ProxysqlExporter)(nil), + (*AddAgentRequest_ExternalExporter)(nil), + (*AddAgentRequest_RdsExporter)(nil), + (*AddAgentRequest_AzureDatabaseExporter)(nil), + (*AddAgentRequest_QanMysqlPerfschemaAgent)(nil), + (*AddAgentRequest_QanMysqlSlowlogAgent)(nil), + (*AddAgentRequest_QanMongodbProfilerAgent)(nil), + (*AddAgentRequest_QanPostgresqlPgstatementsAgent)(nil), + (*AddAgentRequest_QanPostgresqlPgstatmonitorAgent)(nil), + } + file_inventory_v1_agents_proto_msgTypes[24].OneofWrappers = []interface{}{ + (*AddAgentResponse_PmmAgent)(nil), + (*AddAgentResponse_NodeExporter)(nil), + (*AddAgentResponse_MysqldExporter)(nil), + (*AddAgentResponse_MongodbExporter)(nil), + (*AddAgentResponse_PostgresExporter)(nil), + (*AddAgentResponse_ProxysqlExporter)(nil), + (*AddAgentResponse_ExternalExporter)(nil), + (*AddAgentResponse_RdsExporter)(nil), + (*AddAgentResponse_AzureDatabaseExporter)(nil), + (*AddAgentResponse_QanMysqlPerfschemaAgent)(nil), + (*AddAgentResponse_QanMysqlSlowlogAgent)(nil), + (*AddAgentResponse_QanMongodbProfilerAgent)(nil), + (*AddAgentResponse_QanPostgresqlPgstatementsAgent)(nil), + (*AddAgentResponse_QanPostgresqlPgstatmonitorAgent)(nil), + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_inventory_v1_agents_proto_rawDesc, NumEnums: 1, - NumMessages: 107, + NumMessages: 95, NumExtensions: 0, NumServices: 1, }, diff --git a/api/inventory/v1/agents.pb.gw.go b/api/inventory/v1/agents.pb.gw.go index 544e12966a..c7954fee8a 100644 --- a/api/inventory/v1/agents.pb.gw.go +++ b/api/inventory/v1/agents.pb.gw.go @@ -129,8 +129,8 @@ func local_request_AgentsService_GetAgentLogs_0(ctx context.Context, marshaler r return msg, metadata, err } -func request_AgentsService_AddPMMAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddPMMAgentRequest +func request_AgentsService_AddAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddAgentRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -141,12 +141,12 @@ func request_AgentsService_AddPMMAgent_0(ctx context.Context, marshaler runtime. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.AddPMMAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.AddAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_AgentsService_AddPMMAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddPMMAgentRequest +func local_request_AgentsService_AddAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddAgentRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -157,39 +157,7 @@ func local_request_AgentsService_AddPMMAgent_0(ctx context.Context, marshaler ru return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.AddPMMAgent(ctx, &protoReq) - return msg, metadata, err -} - -func request_AgentsService_AddNodeExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddNodeExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddNodeExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_AddNodeExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddNodeExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddNodeExporter(ctx, &protoReq) + msg, err := server.AddAgent(ctx, &protoReq) return msg, metadata, err } @@ -225,38 +193,6 @@ func local_request_AgentsService_ChangeNodeExporter_0(ctx context.Context, marsh return msg, metadata, err } -func request_AgentsService_AddMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddMySQLdExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddMySQLdExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_AddMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddMySQLdExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddMySQLdExporter(ctx, &protoReq) - return msg, metadata, err -} - func request_AgentsService_ChangeMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ChangeMySQLdExporterRequest var metadata runtime.ServerMetadata @@ -289,38 +225,6 @@ func local_request_AgentsService_ChangeMySQLdExporter_0(ctx context.Context, mar return msg, metadata, err } -func request_AgentsService_AddMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddMongoDBExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddMongoDBExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_AddMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddMongoDBExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddMongoDBExporter(ctx, &protoReq) - return msg, metadata, err -} - func request_AgentsService_ChangeMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ChangeMongoDBExporterRequest var metadata runtime.ServerMetadata @@ -353,38 +257,6 @@ func local_request_AgentsService_ChangeMongoDBExporter_0(ctx context.Context, ma return msg, metadata, err } -func request_AgentsService_AddPostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddPostgresExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddPostgresExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_AddPostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddPostgresExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddPostgresExporter(ctx, &protoReq) - return msg, metadata, err -} - func request_AgentsService_ChangePostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ChangePostgresExporterRequest var metadata runtime.ServerMetadata @@ -417,38 +289,6 @@ func local_request_AgentsService_ChangePostgresExporter_0(ctx context.Context, m return msg, metadata, err } -func request_AgentsService_AddProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddProxySQLExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddProxySQLExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_AddProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddProxySQLExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddProxySQLExporter(ctx, &protoReq) - return msg, metadata, err -} - func request_AgentsService_ChangeProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ChangeProxySQLExporterRequest var metadata runtime.ServerMetadata @@ -481,38 +321,6 @@ func local_request_AgentsService_ChangeProxySQLExporter_0(ctx context.Context, m return msg, metadata, err } -func request_AgentsService_AddQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddQANMySQLPerfSchemaAgentRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddQANMySQLPerfSchemaAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_AddQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddQANMySQLPerfSchemaAgentRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddQANMySQLPerfSchemaAgent(ctx, &protoReq) - return msg, metadata, err -} - func request_AgentsService_ChangeQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ChangeQANMySQLPerfSchemaAgentRequest var metadata runtime.ServerMetadata @@ -545,38 +353,6 @@ func local_request_AgentsService_ChangeQANMySQLPerfSchemaAgent_0(ctx context.Con return msg, metadata, err } -func request_AgentsService_AddQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddQANMySQLSlowlogAgentRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddQANMySQLSlowlogAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_AddQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddQANMySQLSlowlogAgentRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddQANMySQLSlowlogAgent(ctx, &protoReq) - return msg, metadata, err -} - func request_AgentsService_ChangeQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ChangeQANMySQLSlowlogAgentRequest var metadata runtime.ServerMetadata @@ -609,24 +385,8 @@ func local_request_AgentsService_ChangeQANMySQLSlowlogAgent_0(ctx context.Contex return msg, metadata, err } -func request_AgentsService_AddQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddQANMongoDBProfilerAgentRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddQANMongoDBProfilerAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_AddQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddQANMongoDBProfilerAgentRequest +func request_AgentsService_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeQANMongoDBProfilerAgentRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -637,11 +397,11 @@ func local_request_AgentsService_AddQANMongoDBProfilerAgent_0(ctx context.Contex return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.AddQANMongoDBProfilerAgent(ctx, &protoReq) + msg, err := client.ChangeQANMongoDBProfilerAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func request_AgentsService_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { +func local_request_AgentsService_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ChangeQANMongoDBProfilerAgentRequest var metadata runtime.ServerMetadata @@ -653,12 +413,12 @@ func request_AgentsService_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ChangeQANMongoDBProfilerAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := server.ChangeQANMongoDBProfilerAgent(ctx, &protoReq) return msg, metadata, err } -func local_request_AgentsService_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeQANMongoDBProfilerAgentRequest +func request_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeQANPostgreSQLPgStatementsAgentRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -669,12 +429,12 @@ func local_request_AgentsService_ChangeQANMongoDBProfilerAgent_0(ctx context.Con return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ChangeQANMongoDBProfilerAgent(ctx, &protoReq) + msg, err := client.ChangeQANPostgreSQLPgStatementsAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func request_AgentsService_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddQANPostgreSQLPgStatementsAgentRequest +func local_request_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeQANPostgreSQLPgStatementsAgentRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -685,12 +445,12 @@ func request_AgentsService_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Conte return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.AddQANPostgreSQLPgStatementsAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := server.ChangeQANPostgreSQLPgStatementsAgent(ctx, &protoReq) return msg, metadata, err } -func local_request_AgentsService_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddQANPostgreSQLPgStatementsAgentRequest +func request_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeQANPostgreSQLPgStatMonitorAgentRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -701,12 +461,12 @@ func local_request_AgentsService_AddQANPostgreSQLPgStatementsAgent_0(ctx context return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.AddQANPostgreSQLPgStatementsAgent(ctx, &protoReq) + msg, err := client.ChangeQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func request_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeQANPostgreSQLPgStatementsAgentRequest +func local_request_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeQANPostgreSQLPgStatMonitorAgentRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -717,12 +477,12 @@ func request_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Co return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ChangeQANPostgreSQLPgStatementsAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := server.ChangeQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq) return msg, metadata, err } -func local_request_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeQANPostgreSQLPgStatementsAgentRequest +func request_AgentsService_ChangeRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeRDSExporterRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -733,12 +493,12 @@ func local_request_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(ctx cont return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ChangeQANPostgreSQLPgStatementsAgent(ctx, &protoReq) + msg, err := client.ChangeRDSExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func request_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddQANPostgreSQLPgStatMonitorAgentRequest +func local_request_AgentsService_ChangeRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeRDSExporterRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -749,12 +509,12 @@ func request_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Cont return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.AddQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := server.ChangeRDSExporter(ctx, &protoReq) return msg, metadata, err } -func local_request_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddQANPostgreSQLPgStatMonitorAgentRequest +func request_AgentsService_ChangeExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeExternalExporterRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -765,12 +525,12 @@ func local_request_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0(ctx contex return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.AddQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq) + msg, err := client.ChangeExternalExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func request_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeQANPostgreSQLPgStatMonitorAgentRequest +func local_request_AgentsService_ChangeExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeExternalExporterRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -781,12 +541,12 @@ func request_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.C return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ChangeQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := server.ChangeExternalExporter(ctx, &protoReq) return msg, metadata, err } -func local_request_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeQANPostgreSQLPgStatMonitorAgentRequest +func request_AgentsService_ChangeAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeAzureDatabaseExporterRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -797,12 +557,12 @@ func local_request_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx con return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ChangeQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq) + msg, err := client.ChangeAzureDatabaseExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func request_AgentsService_AddRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddRDSExporterRequest +func local_request_AgentsService_ChangeAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeAzureDatabaseExporterRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -813,12 +573,12 @@ func request_AgentsService_AddRDSExporter_0(ctx context.Context, marshaler runti return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.AddRDSExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := server.ChangeAzureDatabaseExporter(ctx, &protoReq) return msg, metadata, err } -func local_request_AgentsService_AddRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddRDSExporterRequest +func request_AgentsService_RemoveAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RemoveAgentRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -829,12 +589,12 @@ func local_request_AgentsService_AddRDSExporter_0(ctx context.Context, marshaler return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.AddRDSExporter(ctx, &protoReq) + msg, err := client.RemoveAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func request_AgentsService_ChangeRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeRDSExporterRequest +func local_request_AgentsService_RemoveAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RemoveAgentRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -845,183 +605,7 @@ func request_AgentsService_ChangeRDSExporter_0(ctx context.Context, marshaler ru return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ChangeRDSExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_ChangeRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeRDSExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ChangeRDSExporter(ctx, &protoReq) - return msg, metadata, err -} - -func request_AgentsService_AddExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddExternalExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddExternalExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_AddExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddExternalExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddExternalExporter(ctx, &protoReq) - return msg, metadata, err -} - -func request_AgentsService_ChangeExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeExternalExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ChangeExternalExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_ChangeExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeExternalExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ChangeExternalExporter(ctx, &protoReq) - return msg, metadata, err -} - -func request_AgentsService_AddAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddAzureDatabaseExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddAzureDatabaseExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_AddAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddAzureDatabaseExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddAzureDatabaseExporter(ctx, &protoReq) - return msg, metadata, err -} - -func request_AgentsService_ChangeAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeAzureDatabaseExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ChangeAzureDatabaseExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_ChangeAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeAzureDatabaseExporterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ChangeAzureDatabaseExporter(ctx, &protoReq) - return msg, metadata, err -} - -func request_AgentsService_RemoveAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RemoveAgentRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RemoveAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AgentsService_RemoveAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RemoveAgentRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.RemoveAgent(ctx, &protoReq) + msg, err := server.RemoveAgent(ctx, &protoReq) return msg, metadata, err } @@ -1102,31 +686,7 @@ func RegisterAgentsServiceHandlerServer(ctx context.Context, mux *runtime.ServeM forward_AgentsService_GetAgentLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddPMMAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddPMMAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddPMMAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddPMMAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddPMMAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_AddAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1134,12 +694,12 @@ func RegisterAgentsServiceHandlerServer(ctx context.Context, mux *runtime.ServeM inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddNodeExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddNodeExporter")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/Add")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_AgentsService_AddNodeExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_AgentsService_AddAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1147,7 +707,7 @@ func RegisterAgentsServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_AgentsService_AddNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_AddAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) mux.Handle("POST", pattern_AgentsService_ChangeNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1174,30 +734,6 @@ func RegisterAgentsServiceHandlerServer(ctx context.Context, mux *runtime.ServeM forward_AgentsService_ChangeNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddMySQLdExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddMySQLdExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddMySQLdExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle("POST", pattern_AgentsService_ChangeMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1222,30 +758,6 @@ func RegisterAgentsServiceHandlerServer(ctx context.Context, mux *runtime.ServeM forward_AgentsService_ChangeMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddMongoDBExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddMongoDBExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddMongoDBExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle("POST", pattern_AgentsService_ChangeMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1267,1160 +779,647 @@ func RegisterAgentsServiceHandlerServer(ctx context.Context, mux *runtime.ServeM return } - forward_AgentsService_ChangeMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddPostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddPostgresExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddPostgresExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddPostgresExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddPostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_ChangePostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangePostgresExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangePostgresExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_ChangePostgresExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ChangePostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddProxySQLExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddProxySQLExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddProxySQLExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_ChangeProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeProxySQLExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeProxySQLExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_ChangeProxySQLExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ChangeProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddQANMySQLPerfSchemaAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddQANMySQLPerfSchemaAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddQANMySQLPerfSchemaAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_ChangeQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMySQLPerfSchemaAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMySQLPerfSchemaAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddQANMySQLSlowlogAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddQANMySQLSlowlogAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddQANMySQLSlowlogAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_ChangeQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMySQLSlowlogAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMySQLSlowlogAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_ChangeQANMySQLSlowlogAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ChangeQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddQANMongoDBProfilerAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddQANMongoDBProfilerAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddQANMongoDBProfilerAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_ChangeQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMongoDBProfilerAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMongoDBProfilerAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_ChangeQANMongoDBProfilerAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ChangeQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddQANPostgreSQLPgStatementsAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddQANPostgreSQLPgStatementsAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANPostgreSQLPgStatementsAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANPostgreSQLPgStatementsAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddQANPostgreSQLPgStatMonitorAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANPostgreSQLPgStatMonitorAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANPostgreSQLPgStatMonitorAgent")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddRDSExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddRDSExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddRDSExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_ChangeRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeRDSExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeRDSExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_ChangeRDSExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ChangeRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddExternalExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddExternalExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddExternalExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_ChangeExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeExternalExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeExternalExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_ChangeExternalExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ChangeExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_AddAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/AddAzureDatabaseExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddAzureDatabaseExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_AddAzureDatabaseExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_AddAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_ChangeAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeAzureDatabaseExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeAzureDatabaseExporter")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_ChangeAzureDatabaseExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ChangeAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_RemoveAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/RemoveAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/Remove")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentsService_RemoveAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_RemoveAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - return nil -} - -// RegisterAgentsServiceHandlerFromEndpoint is same as RegisterAgentsServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAgentsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAgentsServiceHandler(ctx, mux, conn) -} - -// RegisterAgentsServiceHandler registers the http handlers for service AgentsService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAgentsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAgentsServiceHandlerClient(ctx, mux, NewAgentsServiceClient(conn)) -} - -// RegisterAgentsServiceHandlerClient registers the http handlers for service AgentsService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AgentsServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AgentsServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "AgentsServiceClient" to call the correct interceptors. -func RegisterAgentsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AgentsServiceClient) error { - mux.Handle("POST", pattern_AgentsService_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ListAgents", runtime.WithHTTPPathPattern("/v1/inventory/Agents/List")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AgentsService_ListAgents_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_ListAgents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_AgentsService_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/GetAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/Get")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AgentsService_GetAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentsService_GetAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_GetAgentLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangePostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/GetAgentLogs", runtime.WithHTTPPathPattern("/v1/inventory/Agents/GetLogs")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangePostgresExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangePostgresExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_GetAgentLogs_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_ChangePostgresExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_GetAgentLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangePostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddPMMAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddPMMAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddPMMAgent")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeProxySQLExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeProxySQLExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddPMMAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_ChangeProxySQLExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddPMMAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddNodeExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddNodeExporter")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMySQLPerfSchemaAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMySQLPerfSchemaAgent")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddNodeExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeNodeExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeNodeExporter")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMySQLSlowlogAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMySQLSlowlogAgent")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeNodeExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_ChangeQANMySQLSlowlogAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddMySQLdExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddMySQLdExporter")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMongoDBProfilerAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMongoDBProfilerAgent")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddMySQLdExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_ChangeQANMongoDBProfilerAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeMySQLdExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeMySQLdExporter")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANPostgreSQLPgStatementsAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANPostgreSQLPgStatementsAgent")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeMySQLdExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddMongoDBExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddMongoDBExporter")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANPostgreSQLPgStatMonitorAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANPostgreSQLPgStatMonitorAgent")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddMongoDBExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeMongoDBExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeMongoDBExporter")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeRDSExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeRDSExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeMongoDBExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_ChangeRDSExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddPostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddPostgresExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddPostgresExporter")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeExternalExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeExternalExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddPostgresExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_ChangeExternalExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddPostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangePostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangePostgresExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangePostgresExporter")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeAzureDatabaseExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeAzureDatabaseExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangePostgresExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_ChangeAzureDatabaseExporter_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangePostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_RemoveAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddProxySQLExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddProxySQLExporter")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/inventory.v1.AgentsService/RemoveAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/Remove")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddProxySQLExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := local_request_AgentsService_RemoveAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_RemoveAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + return nil +} + +// RegisterAgentsServiceHandlerFromEndpoint is same as RegisterAgentsServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAgentsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterAgentsServiceHandler(ctx, mux, conn) +} + +// RegisterAgentsServiceHandler registers the http handlers for service AgentsService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAgentsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAgentsServiceHandlerClient(ctx, mux, NewAgentsServiceClient(conn)) +} + +// RegisterAgentsServiceHandlerClient registers the http handlers for service AgentsService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AgentsServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AgentsServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "AgentsServiceClient" to call the correct interceptors. +func RegisterAgentsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AgentsServiceClient) error { + mux.Handle("POST", pattern_AgentsService_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeProxySQLExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeProxySQLExporter")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ListAgents", runtime.WithHTTPPathPattern("/v1/inventory/Agents/List")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeProxySQLExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ListAgents_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ListAgents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddQANMySQLPerfSchemaAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddQANMySQLPerfSchemaAgent")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/GetAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/Get")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddQANMySQLPerfSchemaAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_GetAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_GetAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_GetAgentLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMySQLPerfSchemaAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMySQLPerfSchemaAgent")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/GetAgentLogs", runtime.WithHTTPPathPattern("/v1/inventory/Agents/GetLogs")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_GetAgentLogs_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_GetAgentLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_AddAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddQANMySQLSlowlogAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddQANMySQLSlowlogAgent")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/Add")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddQANMySQLSlowlogAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_AddAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_AddAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMySQLSlowlogAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMySQLSlowlogAgent")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeNodeExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeNodeExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeQANMySQLSlowlogAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeNodeExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddQANMongoDBProfilerAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddQANMongoDBProfilerAgent")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeMySQLdExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeMySQLdExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddQANMongoDBProfilerAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeMySQLdExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMongoDBProfilerAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMongoDBProfilerAgent")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeMongoDBExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeMongoDBExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeQANMongoDBProfilerAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeMongoDBExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangePostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddQANPostgreSQLPgStatementsAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangePostgresExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangePostgresExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddQANPostgreSQLPgStatementsAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangePostgresExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangePostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANPostgreSQLPgStatementsAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANPostgreSQLPgStatementsAgent")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeProxySQLExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeProxySQLExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeProxySQLExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddQANPostgreSQLPgStatMonitorAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMySQLPerfSchemaAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMySQLPerfSchemaAgent")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANPostgreSQLPgStatMonitorAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANPostgreSQLPgStatMonitorAgent")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMySQLSlowlogAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMySQLSlowlogAgent")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeQANMySQLSlowlogAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddRDSExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddRDSExporter")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANMongoDBProfilerAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANMongoDBProfilerAgent")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddRDSExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeQANMongoDBProfilerAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeRDSExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeRDSExporter")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANPostgreSQLPgStatementsAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANPostgreSQLPgStatementsAgent")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeRDSExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddExternalExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddExternalExporter")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeQANPostgreSQLPgStatMonitorAgent", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeQANPostgreSQLPgStatMonitorAgent")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddExternalExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_ChangeExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeExternalExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeExternalExporter")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeRDSExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeRDSExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_ChangeExternalExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeRDSExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_ChangeExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_AgentsService_AddAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_AgentsService_ChangeExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/AddAzureDatabaseExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/AddAzureDatabaseExporter")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/inventory.v1.AgentsService/ChangeExternalExporter", runtime.WithHTTPPathPattern("/v1/inventory/Agents/ChangeExternalExporter")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AgentsService_AddAzureDatabaseExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_AgentsService_ChangeExternalExporter_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AgentsService_AddAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_AgentsService_ChangeExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) mux.Handle("POST", pattern_AgentsService_ChangeAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2475,58 +1474,32 @@ var ( pattern_AgentsService_GetAgentLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "GetLogs"}, "")) - pattern_AgentsService_AddPMMAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddPMMAgent"}, "")) - - pattern_AgentsService_AddNodeExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddNodeExporter"}, "")) + pattern_AgentsService_AddAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "Add"}, "")) pattern_AgentsService_ChangeNodeExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeNodeExporter"}, "")) - pattern_AgentsService_AddMySQLdExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddMySQLdExporter"}, "")) - pattern_AgentsService_ChangeMySQLdExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeMySQLdExporter"}, "")) - pattern_AgentsService_AddMongoDBExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddMongoDBExporter"}, "")) - pattern_AgentsService_ChangeMongoDBExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeMongoDBExporter"}, "")) - pattern_AgentsService_AddPostgresExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddPostgresExporter"}, "")) - pattern_AgentsService_ChangePostgresExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangePostgresExporter"}, "")) - pattern_AgentsService_AddProxySQLExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddProxySQLExporter"}, "")) - pattern_AgentsService_ChangeProxySQLExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeProxySQLExporter"}, "")) - pattern_AgentsService_AddQANMySQLPerfSchemaAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddQANMySQLPerfSchemaAgent"}, "")) - pattern_AgentsService_ChangeQANMySQLPerfSchemaAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeQANMySQLPerfSchemaAgent"}, "")) - pattern_AgentsService_AddQANMySQLSlowlogAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddQANMySQLSlowlogAgent"}, "")) - pattern_AgentsService_ChangeQANMySQLSlowlogAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeQANMySQLSlowlogAgent"}, "")) - pattern_AgentsService_AddQANMongoDBProfilerAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddQANMongoDBProfilerAgent"}, "")) - pattern_AgentsService_ChangeQANMongoDBProfilerAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeQANMongoDBProfilerAgent"}, "")) - pattern_AgentsService_AddQANPostgreSQLPgStatementsAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddQANPostgreSQLPgStatementsAgent"}, "")) - pattern_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeQANPostgreSQLPgStatementsAgent"}, "")) - pattern_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddQANPostgreSQLPgStatMonitorAgent"}, "")) - pattern_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeQANPostgreSQLPgStatMonitorAgent"}, "")) - pattern_AgentsService_AddRDSExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddRDSExporter"}, "")) - pattern_AgentsService_ChangeRDSExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeRDSExporter"}, "")) - pattern_AgentsService_AddExternalExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddExternalExporter"}, "")) - pattern_AgentsService_ChangeExternalExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeExternalExporter"}, "")) - pattern_AgentsService_AddAzureDatabaseExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "AddAzureDatabaseExporter"}, "")) - pattern_AgentsService_ChangeAzureDatabaseExporter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "ChangeAzureDatabaseExporter"}, "")) pattern_AgentsService_RemoveAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "inventory", "Agents", "Remove"}, "")) @@ -2539,58 +1512,32 @@ var ( forward_AgentsService_GetAgentLogs_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddPMMAgent_0 = runtime.ForwardResponseMessage - - forward_AgentsService_AddNodeExporter_0 = runtime.ForwardResponseMessage + forward_AgentsService_AddAgent_0 = runtime.ForwardResponseMessage forward_AgentsService_ChangeNodeExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddMySQLdExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeMySQLdExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddMongoDBExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeMongoDBExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddPostgresExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangePostgresExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddProxySQLExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeProxySQLExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddQANMySQLPerfSchemaAgent_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeQANMySQLPerfSchemaAgent_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddQANMySQLSlowlogAgent_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeQANMySQLSlowlogAgent_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddQANMongoDBProfilerAgent_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeQANMongoDBProfilerAgent_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddQANPostgreSQLPgStatementsAgent_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeQANPostgreSQLPgStatementsAgent_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddQANPostgreSQLPgStatMonitorAgent_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddRDSExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeRDSExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddExternalExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeExternalExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_AddAzureDatabaseExporter_0 = runtime.ForwardResponseMessage - forward_AgentsService_ChangeAzureDatabaseExporter_0 = runtime.ForwardResponseMessage forward_AgentsService_RemoveAgent_0 = runtime.ForwardResponseMessage diff --git a/api/inventory/v1/agents.pb.validate.go b/api/inventory/v1/agents.pb.validate.go index b3d8950dbd..385561b704 100644 --- a/api/inventory/v1/agents.pb.validate.go +++ b/api/inventory/v1/agents.pb.validate.go @@ -3820,22 +3820,22 @@ var _ interface { ErrorName() string } = GetAgentLogsResponseValidationError{} -// Validate checks the field values on AddPMMAgentRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddPMMAgentRequest) Validate() error { +// Validate checks the field values on AddPMMAgentParams with the rules defined +// in the proto definition for this message. If any rules are violated, the +// first error encountered is returned, or nil if there are no violations. +func (m *AddPMMAgentParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddPMMAgentRequest with the rules +// ValidateAll checks the field values on AddPMMAgentParams with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in -// AddPMMAgentRequestMultiError, or nil if none found. -func (m *AddPMMAgentRequest) ValidateAll() error { +// AddPMMAgentParamsMultiError, or nil if none found. +func (m *AddPMMAgentParams) ValidateAll() error { return m.validate(true) } -func (m *AddPMMAgentRequest) validate(all bool) error { +func (m *AddPMMAgentParams) validate(all bool) error { if m == nil { return nil } @@ -3843,7 +3843,7 @@ func (m *AddPMMAgentRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetRunsOnNodeId()) < 1 { - err := AddPMMAgentRequestValidationError{ + err := AddPMMAgentParamsValidationError{ field: "RunsOnNodeId", reason: "value length must be at least 1 runes", } @@ -3856,19 +3856,19 @@ func (m *AddPMMAgentRequest) validate(all bool) error { // no validation rules for CustomLabels if len(errors) > 0 { - return AddPMMAgentRequestMultiError(errors) + return AddPMMAgentParamsMultiError(errors) } return nil } -// AddPMMAgentRequestMultiError is an error wrapping multiple validation errors -// returned by AddPMMAgentRequest.ValidateAll() if the designated constraints +// AddPMMAgentParamsMultiError is an error wrapping multiple validation errors +// returned by AddPMMAgentParams.ValidateAll() if the designated constraints // aren't met. -type AddPMMAgentRequestMultiError []error +type AddPMMAgentParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddPMMAgentRequestMultiError) Error() string { +func (m AddPMMAgentParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -3877,11 +3877,11 @@ func (m AddPMMAgentRequestMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddPMMAgentRequestMultiError) AllErrors() []error { return m } +func (m AddPMMAgentParamsMultiError) AllErrors() []error { return m } -// AddPMMAgentRequestValidationError is the validation error returned by -// AddPMMAgentRequest.Validate if the designated constraints aren't met. -type AddPMMAgentRequestValidationError struct { +// AddPMMAgentParamsValidationError is the validation error returned by +// AddPMMAgentParams.Validate if the designated constraints aren't met. +type AddPMMAgentParamsValidationError struct { field string reason string cause error @@ -3889,24 +3889,24 @@ type AddPMMAgentRequestValidationError struct { } // Field function returns field value. -func (e AddPMMAgentRequestValidationError) Field() string { return e.field } +func (e AddPMMAgentParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddPMMAgentRequestValidationError) Reason() string { return e.reason } +func (e AddPMMAgentParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddPMMAgentRequestValidationError) Cause() error { return e.cause } +func (e AddPMMAgentParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddPMMAgentRequestValidationError) Key() bool { return e.key } +func (e AddPMMAgentParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddPMMAgentRequestValidationError) ErrorName() string { - return "AddPMMAgentRequestValidationError" +func (e AddPMMAgentParamsValidationError) ErrorName() string { + return "AddPMMAgentParamsValidationError" } // Error satisfies the builtin error interface -func (e AddPMMAgentRequestValidationError) Error() string { +func (e AddPMMAgentParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -3918,14 +3918,14 @@ func (e AddPMMAgentRequestValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddPMMAgentRequest.%s: %s%s", + "invalid %sAddPMMAgentParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddPMMAgentRequestValidationError{} +var _ error = AddPMMAgentParamsValidationError{} var _ interface { Field() string @@ -3933,194 +3933,1304 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddPMMAgentRequestValidationError{} +} = AddPMMAgentParamsValidationError{} -// Validate checks the field values on AddPMMAgentResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddPMMAgentResponse) Validate() error { +// Validate checks the field values on AddAgentRequest with the rules defined +// in the proto definition for this message. If any rules are violated, the +// first error encountered is returned, or nil if there are no violations. +func (m *AddAgentRequest) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddPMMAgentResponse with the rules +// ValidateAll checks the field values on AddAgentRequest with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in -// AddPMMAgentResponseMultiError, or nil if none found. -func (m *AddPMMAgentResponse) ValidateAll() error { +// AddAgentRequestMultiError, or nil if none found. +func (m *AddAgentRequest) ValidateAll() error { return m.validate(true) } -func (m *AddPMMAgentResponse) validate(all bool) error { +func (m *AddAgentRequest) validate(all bool) error { if m == nil { return nil } var errors []error - if all { - switch v := interface{}(m.GetPmmAgent()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddPMMAgentResponseValidationError{ - field: "PmmAgent", - reason: "embedded message failed validation", - cause: err, - }) + switch v := m.Exporter.(type) { + case *AddAgentRequest_PmmAgent: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", } - case interface{ Validate() error }: + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetPmmAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "PmmAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "PmmAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetPmmAgent()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - errors = append(errors, AddPMMAgentResponseValidationError{ + return AddAgentRequestValidationError{ field: "PmmAgent", reason: "embedded message failed validation", cause: err, - }) + } } } - } else if v, ok := interface{}(m.GetPmmAgent()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddPMMAgentResponseValidationError{ - field: "PmmAgent", - reason: "embedded message failed validation", - cause: err, + + case *AddAgentRequest_NodeExporter: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err } + errors = append(errors, err) } - } - - if len(errors) > 0 { - return AddPMMAgentResponseMultiError(errors) - } - - return nil -} - -// AddPMMAgentResponseMultiError is an error wrapping multiple validation -// errors returned by AddPMMAgentResponse.ValidateAll() if the designated -// constraints aren't met. -type AddPMMAgentResponseMultiError []error -// Error returns a concatenation of all the error messages it wraps. -func (m AddPMMAgentResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} + if all { + switch v := interface{}(m.GetNodeExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "NodeExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "NodeExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetNodeExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "NodeExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } -// AllErrors returns a list of validation violation errors. -func (m AddPMMAgentResponseMultiError) AllErrors() []error { return m } + case *AddAgentRequest_MysqldExporter: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } -// AddPMMAgentResponseValidationError is the validation error returned by -// AddPMMAgentResponse.Validate if the designated constraints aren't met. -type AddPMMAgentResponseValidationError struct { - field string - reason string - cause error - key bool -} + if all { + switch v := interface{}(m.GetMysqldExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "MysqldExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "MysqldExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetMysqldExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "MysqldExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } -// Field function returns field value. -func (e AddPMMAgentResponseValidationError) Field() string { return e.field } + case *AddAgentRequest_MongodbExporter: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } -// Reason function returns reason value. -func (e AddPMMAgentResponseValidationError) Reason() string { return e.reason } + if all { + switch v := interface{}(m.GetMongodbExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "MongodbExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "MongodbExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetMongodbExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "MongodbExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } -// Cause function returns cause value. -func (e AddPMMAgentResponseValidationError) Cause() error { return e.cause } + case *AddAgentRequest_PostgresExporter: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } -// Key function returns key value. -func (e AddPMMAgentResponseValidationError) Key() bool { return e.key } + if all { + switch v := interface{}(m.GetPostgresExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "PostgresExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "PostgresExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetPostgresExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "PostgresExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } -// ErrorName returns error name. -func (e AddPMMAgentResponseValidationError) ErrorName() string { - return "AddPMMAgentResponseValidationError" -} + case *AddAgentRequest_ProxysqlExporter: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } -// Error satisfies the builtin error interface -func (e AddPMMAgentResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } + if all { + switch v := interface{}(m.GetProxysqlExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "ProxysqlExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "ProxysqlExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetProxysqlExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "ProxysqlExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } - key := "" - if e.key { - key = "key for " - } + case *AddAgentRequest_ExternalExporter: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetExternalExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "ExternalExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "ExternalExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetExternalExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "ExternalExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentRequest_RdsExporter: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetRdsExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "RdsExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "RdsExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetRdsExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "RdsExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentRequest_AzureDatabaseExporter: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetAzureDatabaseExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "AzureDatabaseExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "AzureDatabaseExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetAzureDatabaseExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "AzureDatabaseExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentRequest_QanMysqlPerfschemaAgent: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetQanMysqlPerfschemaAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "QanMysqlPerfschemaAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "QanMysqlPerfschemaAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetQanMysqlPerfschemaAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "QanMysqlPerfschemaAgent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentRequest_QanMysqlSlowlogAgent: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetQanMysqlSlowlogAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "QanMysqlSlowlogAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "QanMysqlSlowlogAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetQanMysqlSlowlogAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "QanMysqlSlowlogAgent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentRequest_QanMongodbProfilerAgent: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetQanMongodbProfilerAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "QanMongodbProfilerAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "QanMongodbProfilerAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetQanMongodbProfilerAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "QanMongodbProfilerAgent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentRequest_QanPostgresqlPgstatementsAgent: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetQanPostgresqlPgstatementsAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "QanPostgresqlPgstatementsAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "QanPostgresqlPgstatementsAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetQanPostgresqlPgstatementsAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "QanPostgresqlPgstatementsAgent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentRequest_QanPostgresqlPgstatmonitorAgent: + if v == nil { + err := AddAgentRequestValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetQanPostgresqlPgstatmonitorAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "QanPostgresqlPgstatmonitorAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentRequestValidationError{ + field: "QanPostgresqlPgstatmonitorAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetQanPostgresqlPgstatmonitorAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentRequestValidationError{ + field: "QanPostgresqlPgstatmonitorAgent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + _ = v // ensures v is used + } + + if len(errors) > 0 { + return AddAgentRequestMultiError(errors) + } + + return nil +} + +// AddAgentRequestMultiError is an error wrapping multiple validation errors +// returned by AddAgentRequest.ValidateAll() if the designated constraints +// aren't met. +type AddAgentRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m AddAgentRequestMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m AddAgentRequestMultiError) AllErrors() []error { return m } + +// AddAgentRequestValidationError is the validation error returned by +// AddAgentRequest.Validate if the designated constraints aren't met. +type AddAgentRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AddAgentRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AddAgentRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AddAgentRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AddAgentRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AddAgentRequestValidationError) ErrorName() string { return "AddAgentRequestValidationError" } + +// Error satisfies the builtin error interface +func (e AddAgentRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } return fmt.Sprintf( - "invalid %sAddPMMAgentResponse.%s: %s%s", + "invalid %sAddAgentRequest.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddPMMAgentResponseValidationError{} +var _ error = AddAgentRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AddAgentRequestValidationError{} + +// Validate checks the field values on AddAgentResponse with the rules defined +// in the proto definition for this message. If any rules are violated, the +// first error encountered is returned, or nil if there are no violations. +func (m *AddAgentResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on AddAgentResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// AddAgentResponseMultiError, or nil if none found. +func (m *AddAgentResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *AddAgentResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for TableCount + + switch v := m.Exporter.(type) { + case *AddAgentResponse_PmmAgent: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetPmmAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "PmmAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "PmmAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetPmmAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "PmmAgent", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentResponse_NodeExporter: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetNodeExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "NodeExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "NodeExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetNodeExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "NodeExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentResponse_MysqldExporter: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetMysqldExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "MysqldExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "MysqldExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetMysqldExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "MysqldExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentResponse_MongodbExporter: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetMongodbExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "MongodbExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "MongodbExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetMongodbExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "MongodbExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentResponse_PostgresExporter: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetPostgresExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "PostgresExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "PostgresExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetPostgresExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "PostgresExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentResponse_ProxysqlExporter: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetProxysqlExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "ProxysqlExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "ProxysqlExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetProxysqlExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "ProxysqlExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentResponse_ExternalExporter: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetExternalExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "ExternalExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "ExternalExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetExternalExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "ExternalExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentResponse_RdsExporter: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetRdsExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "RdsExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "RdsExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetRdsExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "RdsExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *AddAgentResponse_AzureDatabaseExporter: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetAzureDatabaseExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "AzureDatabaseExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "AzureDatabaseExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetAzureDatabaseExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "AzureDatabaseExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddPMMAgentResponseValidationError{} + case *AddAgentResponse_QanMysqlPerfschemaAgent: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } -// Validate checks the field values on AddNodeExporterRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddNodeExporterRequest) Validate() error { - return m.validate(false) -} + if all { + switch v := interface{}(m.GetQanMysqlPerfschemaAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "QanMysqlPerfschemaAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "QanMysqlPerfschemaAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetQanMysqlPerfschemaAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "QanMysqlPerfschemaAgent", + reason: "embedded message failed validation", + cause: err, + } + } + } -// ValidateAll checks the field values on AddNodeExporterRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// AddNodeExporterRequestMultiError, or nil if none found. -func (m *AddNodeExporterRequest) ValidateAll() error { - return m.validate(true) -} + case *AddAgentResponse_QanMysqlSlowlogAgent: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } -func (m *AddNodeExporterRequest) validate(all bool) error { - if m == nil { - return nil - } + if all { + switch v := interface{}(m.GetQanMysqlSlowlogAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "QanMysqlSlowlogAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "QanMysqlSlowlogAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetQanMysqlSlowlogAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "QanMysqlSlowlogAgent", + reason: "embedded message failed validation", + cause: err, + } + } + } - var errors []error + case *AddAgentResponse_QanMongodbProfilerAgent: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } - if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddNodeExporterRequestValidationError{ - field: "PmmAgentId", - reason: "value length must be at least 1 runes", + if all { + switch v := interface{}(m.GetQanMongodbProfilerAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "QanMongodbProfilerAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "QanMongodbProfilerAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetQanMongodbProfilerAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "QanMongodbProfilerAgent", + reason: "embedded message failed validation", + cause: err, + } + } } - if !all { - return err + + case *AddAgentResponse_QanPostgresqlPgstatementsAgent: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) } - errors = append(errors, err) - } - // no validation rules for CustomLabels + if all { + switch v := interface{}(m.GetQanPostgresqlPgstatementsAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "QanPostgresqlPgstatementsAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "QanPostgresqlPgstatementsAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetQanPostgresqlPgstatementsAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "QanPostgresqlPgstatementsAgent", + reason: "embedded message failed validation", + cause: err, + } + } + } - // no validation rules for PushMetrics + case *AddAgentResponse_QanPostgresqlPgstatmonitorAgent: + if v == nil { + err := AddAgentResponseValidationError{ + field: "Exporter", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } - // no validation rules for LogLevel + if all { + switch v := interface{}(m.GetQanPostgresqlPgstatmonitorAgent()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "QanPostgresqlPgstatmonitorAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddAgentResponseValidationError{ + field: "QanPostgresqlPgstatmonitorAgent", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetQanPostgresqlPgstatmonitorAgent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddAgentResponseValidationError{ + field: "QanPostgresqlPgstatmonitorAgent", + reason: "embedded message failed validation", + cause: err, + } + } + } - // no validation rules for ExposeExporter + default: + _ = v // ensures v is used + } if len(errors) > 0 { - return AddNodeExporterRequestMultiError(errors) + return AddAgentResponseMultiError(errors) } return nil } -// AddNodeExporterRequestMultiError is an error wrapping multiple validation -// errors returned by AddNodeExporterRequest.ValidateAll() if the designated -// constraints aren't met. -type AddNodeExporterRequestMultiError []error +// AddAgentResponseMultiError is an error wrapping multiple validation errors +// returned by AddAgentResponse.ValidateAll() if the designated constraints +// aren't met. +type AddAgentResponseMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddNodeExporterRequestMultiError) Error() string { +func (m AddAgentResponseMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -4129,11 +5239,11 @@ func (m AddNodeExporterRequestMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddNodeExporterRequestMultiError) AllErrors() []error { return m } +func (m AddAgentResponseMultiError) AllErrors() []error { return m } -// AddNodeExporterRequestValidationError is the validation error returned by -// AddNodeExporterRequest.Validate if the designated constraints aren't met. -type AddNodeExporterRequestValidationError struct { +// AddAgentResponseValidationError is the validation error returned by +// AddAgentResponse.Validate if the designated constraints aren't met. +type AddAgentResponseValidationError struct { field string reason string cause error @@ -4141,24 +5251,22 @@ type AddNodeExporterRequestValidationError struct { } // Field function returns field value. -func (e AddNodeExporterRequestValidationError) Field() string { return e.field } +func (e AddAgentResponseValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddNodeExporterRequestValidationError) Reason() string { return e.reason } +func (e AddAgentResponseValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddNodeExporterRequestValidationError) Cause() error { return e.cause } +func (e AddAgentResponseValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddNodeExporterRequestValidationError) Key() bool { return e.key } +func (e AddAgentResponseValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddNodeExporterRequestValidationError) ErrorName() string { - return "AddNodeExporterRequestValidationError" -} +func (e AddAgentResponseValidationError) ErrorName() string { return "AddAgentResponseValidationError" } // Error satisfies the builtin error interface -func (e AddNodeExporterRequestValidationError) Error() string { +func (e AddAgentResponseValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -4170,14 +5278,14 @@ func (e AddNodeExporterRequestValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddNodeExporterRequest.%s: %s%s", + "invalid %sAddAgentResponse.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddNodeExporterRequestValidationError{} +var _ error = AddAgentResponseValidationError{} var _ interface { Field() string @@ -4185,73 +5293,63 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddNodeExporterRequestValidationError{} +} = AddAgentResponseValidationError{} -// Validate checks the field values on AddNodeExporterResponse with the rules +// Validate checks the field values on AddNodeExporterParams with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddNodeExporterResponse) Validate() error { +func (m *AddNodeExporterParams) Validate() error { return m.validate(false) -} - -// ValidateAll checks the field values on AddNodeExporterResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// AddNodeExporterResponseMultiError, or nil if none found. -func (m *AddNodeExporterResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddNodeExporterResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetNodeExporter()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddNodeExporterResponseValidationError{ - field: "NodeExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddNodeExporterResponseValidationError{ - field: "NodeExporter", - reason: "embedded message failed validation", - cause: err, - }) - } +} + +// ValidateAll checks the field values on AddNodeExporterParams with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// AddNodeExporterParamsMultiError, or nil if none found. +func (m *AddNodeExporterParams) ValidateAll() error { + return m.validate(true) +} + +func (m *AddNodeExporterParams) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { + err := AddNodeExporterParamsValidationError{ + field: "PmmAgentId", + reason: "value length must be at least 1 runes", } - } else if v, ok := interface{}(m.GetNodeExporter()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddNodeExporterResponseValidationError{ - field: "NodeExporter", - reason: "embedded message failed validation", - cause: err, - } + if !all { + return err } + errors = append(errors, err) } + // no validation rules for CustomLabels + + // no validation rules for PushMetrics + + // no validation rules for LogLevel + + // no validation rules for ExposeExporter + if len(errors) > 0 { - return AddNodeExporterResponseMultiError(errors) + return AddNodeExporterParamsMultiError(errors) } return nil } -// AddNodeExporterResponseMultiError is an error wrapping multiple validation -// errors returned by AddNodeExporterResponse.ValidateAll() if the designated +// AddNodeExporterParamsMultiError is an error wrapping multiple validation +// errors returned by AddNodeExporterParams.ValidateAll() if the designated // constraints aren't met. -type AddNodeExporterResponseMultiError []error +type AddNodeExporterParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddNodeExporterResponseMultiError) Error() string { +func (m AddNodeExporterParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -4260,11 +5358,11 @@ func (m AddNodeExporterResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddNodeExporterResponseMultiError) AllErrors() []error { return m } +func (m AddNodeExporterParamsMultiError) AllErrors() []error { return m } -// AddNodeExporterResponseValidationError is the validation error returned by -// AddNodeExporterResponse.Validate if the designated constraints aren't met. -type AddNodeExporterResponseValidationError struct { +// AddNodeExporterParamsValidationError is the validation error returned by +// AddNodeExporterParams.Validate if the designated constraints aren't met. +type AddNodeExporterParamsValidationError struct { field string reason string cause error @@ -4272,24 +5370,24 @@ type AddNodeExporterResponseValidationError struct { } // Field function returns field value. -func (e AddNodeExporterResponseValidationError) Field() string { return e.field } +func (e AddNodeExporterParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddNodeExporterResponseValidationError) Reason() string { return e.reason } +func (e AddNodeExporterParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddNodeExporterResponseValidationError) Cause() error { return e.cause } +func (e AddNodeExporterParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddNodeExporterResponseValidationError) Key() bool { return e.key } +func (e AddNodeExporterParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddNodeExporterResponseValidationError) ErrorName() string { - return "AddNodeExporterResponseValidationError" +func (e AddNodeExporterParamsValidationError) ErrorName() string { + return "AddNodeExporterParamsValidationError" } // Error satisfies the builtin error interface -func (e AddNodeExporterResponseValidationError) Error() string { +func (e AddNodeExporterParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -4301,14 +5399,14 @@ func (e AddNodeExporterResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddNodeExporterResponse.%s: %s%s", + "invalid %sAddNodeExporterParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddNodeExporterResponseValidationError{} +var _ error = AddNodeExporterParamsValidationError{} var _ interface { Field() string @@ -4316,7 +5414,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddNodeExporterResponseValidationError{} +} = AddNodeExporterParamsValidationError{} // Validate checks the field values on ChangeNodeExporterRequest with the rules // defined in the proto definition for this message. If any rules are @@ -4591,22 +5689,22 @@ var _ interface { ErrorName() string } = ChangeNodeExporterResponseValidationError{} -// Validate checks the field values on AddMySQLdExporterRequest with the rules +// Validate checks the field values on AddMySQLdExporterParams with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddMySQLdExporterRequest) Validate() error { +func (m *AddMySQLdExporterParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddMySQLdExporterRequest with the +// ValidateAll checks the field values on AddMySQLdExporterParams with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in -// AddMySQLdExporterRequestMultiError, or nil if none found. -func (m *AddMySQLdExporterRequest) ValidateAll() error { +// AddMySQLdExporterParamsMultiError, or nil if none found. +func (m *AddMySQLdExporterParams) ValidateAll() error { return m.validate(true) } -func (m *AddMySQLdExporterRequest) validate(all bool) error { +func (m *AddMySQLdExporterParams) validate(all bool) error { if m == nil { return nil } @@ -4614,7 +5712,7 @@ func (m *AddMySQLdExporterRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddMySQLdExporterRequestValidationError{ + err := AddMySQLdExporterParamsValidationError{ field: "PmmAgentId", reason: "value length must be at least 1 runes", } @@ -4625,7 +5723,7 @@ func (m *AddMySQLdExporterRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetServiceId()) < 1 { - err := AddMySQLdExporterRequestValidationError{ + err := AddMySQLdExporterParamsValidationError{ field: "ServiceId", reason: "value length must be at least 1 runes", } @@ -4636,7 +5734,7 @@ func (m *AddMySQLdExporterRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetUsername()) < 1 { - err := AddMySQLdExporterRequestValidationError{ + err := AddMySQLdExporterParamsValidationError{ field: "Username", reason: "value length must be at least 1 runes", } @@ -4673,152 +5771,19 @@ func (m *AddMySQLdExporterRequest) validate(all bool) error { // no validation rules for ExposeExporter if len(errors) > 0 { - return AddMySQLdExporterRequestMultiError(errors) + return AddMySQLdExporterParamsMultiError(errors) } return nil } -// AddMySQLdExporterRequestMultiError is an error wrapping multiple validation -// errors returned by AddMySQLdExporterRequest.ValidateAll() if the designated +// AddMySQLdExporterParamsMultiError is an error wrapping multiple validation +// errors returned by AddMySQLdExporterParams.ValidateAll() if the designated // constraints aren't met. -type AddMySQLdExporterRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddMySQLdExporterRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddMySQLdExporterRequestMultiError) AllErrors() []error { return m } - -// AddMySQLdExporterRequestValidationError is the validation error returned by -// AddMySQLdExporterRequest.Validate if the designated constraints aren't met. -type AddMySQLdExporterRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddMySQLdExporterRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddMySQLdExporterRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddMySQLdExporterRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddMySQLdExporterRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddMySQLdExporterRequestValidationError) ErrorName() string { - return "AddMySQLdExporterRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddMySQLdExporterRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddMySQLdExporterRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddMySQLdExporterRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddMySQLdExporterRequestValidationError{} - -// Validate checks the field values on AddMySQLdExporterResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddMySQLdExporterResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on AddMySQLdExporterResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// AddMySQLdExporterResponseMultiError, or nil if none found. -func (m *AddMySQLdExporterResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddMySQLdExporterResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetMysqldExporter()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddMySQLdExporterResponseValidationError{ - field: "MysqldExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddMySQLdExporterResponseValidationError{ - field: "MysqldExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetMysqldExporter()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddMySQLdExporterResponseValidationError{ - field: "MysqldExporter", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for TableCount - - if len(errors) > 0 { - return AddMySQLdExporterResponseMultiError(errors) - } - - return nil -} - -// AddMySQLdExporterResponseMultiError is an error wrapping multiple validation -// errors returned by AddMySQLdExporterResponse.ValidateAll() if the -// designated constraints aren't met. -type AddMySQLdExporterResponseMultiError []error +type AddMySQLdExporterParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddMySQLdExporterResponseMultiError) Error() string { +func (m AddMySQLdExporterParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -4827,11 +5792,11 @@ func (m AddMySQLdExporterResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddMySQLdExporterResponseMultiError) AllErrors() []error { return m } +func (m AddMySQLdExporterParamsMultiError) AllErrors() []error { return m } -// AddMySQLdExporterResponseValidationError is the validation error returned by -// AddMySQLdExporterResponse.Validate if the designated constraints aren't met. -type AddMySQLdExporterResponseValidationError struct { +// AddMySQLdExporterParamsValidationError is the validation error returned by +// AddMySQLdExporterParams.Validate if the designated constraints aren't met. +type AddMySQLdExporterParamsValidationError struct { field string reason string cause error @@ -4839,24 +5804,24 @@ type AddMySQLdExporterResponseValidationError struct { } // Field function returns field value. -func (e AddMySQLdExporterResponseValidationError) Field() string { return e.field } +func (e AddMySQLdExporterParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddMySQLdExporterResponseValidationError) Reason() string { return e.reason } +func (e AddMySQLdExporterParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddMySQLdExporterResponseValidationError) Cause() error { return e.cause } +func (e AddMySQLdExporterParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddMySQLdExporterResponseValidationError) Key() bool { return e.key } +func (e AddMySQLdExporterParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddMySQLdExporterResponseValidationError) ErrorName() string { - return "AddMySQLdExporterResponseValidationError" +func (e AddMySQLdExporterParamsValidationError) ErrorName() string { + return "AddMySQLdExporterParamsValidationError" } // Error satisfies the builtin error interface -func (e AddMySQLdExporterResponseValidationError) Error() string { +func (e AddMySQLdExporterParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -4868,14 +5833,14 @@ func (e AddMySQLdExporterResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddMySQLdExporterResponse.%s: %s%s", + "invalid %sAddMySQLdExporterParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddMySQLdExporterResponseValidationError{} +var _ error = AddMySQLdExporterParamsValidationError{} var _ interface { Field() string @@ -4883,7 +5848,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddMySQLdExporterResponseValidationError{} +} = AddMySQLdExporterParamsValidationError{} // Validate checks the field values on ChangeMySQLdExporterRequest with the // rules defined in the proto definition for this message. If any rules are @@ -5160,22 +6125,22 @@ var _ interface { ErrorName() string } = ChangeMySQLdExporterResponseValidationError{} -// Validate checks the field values on AddMongoDBExporterRequest with the rules +// Validate checks the field values on AddMongoDBExporterParams with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddMongoDBExporterRequest) Validate() error { +func (m *AddMongoDBExporterParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddMongoDBExporterRequest with the +// ValidateAll checks the field values on AddMongoDBExporterParams with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in -// AddMongoDBExporterRequestMultiError, or nil if none found. -func (m *AddMongoDBExporterRequest) ValidateAll() error { +// AddMongoDBExporterParamsMultiError, or nil if none found. +func (m *AddMongoDBExporterParams) ValidateAll() error { return m.validate(true) } -func (m *AddMongoDBExporterRequest) validate(all bool) error { +func (m *AddMongoDBExporterParams) validate(all bool) error { if m == nil { return nil } @@ -5183,7 +6148,7 @@ func (m *AddMongoDBExporterRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddMongoDBExporterRequestValidationError{ + err := AddMongoDBExporterParamsValidationError{ field: "PmmAgentId", reason: "value length must be at least 1 runes", } @@ -5194,7 +6159,7 @@ func (m *AddMongoDBExporterRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetServiceId()) < 1 { - err := AddMongoDBExporterRequestValidationError{ + err := AddMongoDBExporterParamsValidationError{ field: "ServiceId", reason: "value length must be at least 1 runes", } @@ -5220,167 +6185,36 @@ func (m *AddMongoDBExporterRequest) validate(all bool) error { // no validation rules for CustomLabels - // no validation rules for SkipConnectionCheck - - // no validation rules for PushMetrics - - // no validation rules for AuthenticationMechanism - - // no validation rules for AuthenticationDatabase - - // no validation rules for AgentPassword - - // no validation rules for CollectionsLimit - - // no validation rules for LogLevel - - // no validation rules for ExposeExporter - - if len(errors) > 0 { - return AddMongoDBExporterRequestMultiError(errors) - } - - return nil -} - -// AddMongoDBExporterRequestMultiError is an error wrapping multiple validation -// errors returned by AddMongoDBExporterRequest.ValidateAll() if the -// designated constraints aren't met. -type AddMongoDBExporterRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddMongoDBExporterRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddMongoDBExporterRequestMultiError) AllErrors() []error { return m } - -// AddMongoDBExporterRequestValidationError is the validation error returned by -// AddMongoDBExporterRequest.Validate if the designated constraints aren't met. -type AddMongoDBExporterRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddMongoDBExporterRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddMongoDBExporterRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddMongoDBExporterRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddMongoDBExporterRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddMongoDBExporterRequestValidationError) ErrorName() string { - return "AddMongoDBExporterRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddMongoDBExporterRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddMongoDBExporterRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddMongoDBExporterRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddMongoDBExporterRequestValidationError{} - -// Validate checks the field values on AddMongoDBExporterResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddMongoDBExporterResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on AddMongoDBExporterResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// AddMongoDBExporterResponseMultiError, or nil if none found. -func (m *AddMongoDBExporterResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddMongoDBExporterResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetMongodbExporter()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddMongoDBExporterResponseValidationError{ - field: "MongodbExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddMongoDBExporterResponseValidationError{ - field: "MongodbExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetMongodbExporter()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddMongoDBExporterResponseValidationError{ - field: "MongodbExporter", - reason: "embedded message failed validation", - cause: err, - } - } - } + // no validation rules for SkipConnectionCheck + + // no validation rules for PushMetrics + + // no validation rules for AuthenticationMechanism + + // no validation rules for AuthenticationDatabase + + // no validation rules for AgentPassword + + // no validation rules for CollectionsLimit + + // no validation rules for LogLevel + + // no validation rules for ExposeExporter if len(errors) > 0 { - return AddMongoDBExporterResponseMultiError(errors) + return AddMongoDBExporterParamsMultiError(errors) } return nil } -// AddMongoDBExporterResponseMultiError is an error wrapping multiple -// validation errors returned by AddMongoDBExporterResponse.ValidateAll() if -// the designated constraints aren't met. -type AddMongoDBExporterResponseMultiError []error +// AddMongoDBExporterParamsMultiError is an error wrapping multiple validation +// errors returned by AddMongoDBExporterParams.ValidateAll() if the designated +// constraints aren't met. +type AddMongoDBExporterParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddMongoDBExporterResponseMultiError) Error() string { +func (m AddMongoDBExporterParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -5389,11 +6223,11 @@ func (m AddMongoDBExporterResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddMongoDBExporterResponseMultiError) AllErrors() []error { return m } +func (m AddMongoDBExporterParamsMultiError) AllErrors() []error { return m } -// AddMongoDBExporterResponseValidationError is the validation error returned -// by AddMongoDBExporterResponse.Validate if the designated constraints aren't met. -type AddMongoDBExporterResponseValidationError struct { +// AddMongoDBExporterParamsValidationError is the validation error returned by +// AddMongoDBExporterParams.Validate if the designated constraints aren't met. +type AddMongoDBExporterParamsValidationError struct { field string reason string cause error @@ -5401,24 +6235,24 @@ type AddMongoDBExporterResponseValidationError struct { } // Field function returns field value. -func (e AddMongoDBExporterResponseValidationError) Field() string { return e.field } +func (e AddMongoDBExporterParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddMongoDBExporterResponseValidationError) Reason() string { return e.reason } +func (e AddMongoDBExporterParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddMongoDBExporterResponseValidationError) Cause() error { return e.cause } +func (e AddMongoDBExporterParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddMongoDBExporterResponseValidationError) Key() bool { return e.key } +func (e AddMongoDBExporterParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddMongoDBExporterResponseValidationError) ErrorName() string { - return "AddMongoDBExporterResponseValidationError" +func (e AddMongoDBExporterParamsValidationError) ErrorName() string { + return "AddMongoDBExporterParamsValidationError" } // Error satisfies the builtin error interface -func (e AddMongoDBExporterResponseValidationError) Error() string { +func (e AddMongoDBExporterParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -5430,14 +6264,14 @@ func (e AddMongoDBExporterResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddMongoDBExporterResponse.%s: %s%s", + "invalid %sAddMongoDBExporterParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddMongoDBExporterResponseValidationError{} +var _ error = AddMongoDBExporterParamsValidationError{} var _ interface { Field() string @@ -5445,7 +6279,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddMongoDBExporterResponseValidationError{} +} = AddMongoDBExporterParamsValidationError{} // Validate checks the field values on ChangeMongoDBExporterRequest with the // rules defined in the proto definition for this message. If any rules are @@ -5722,22 +6556,22 @@ var _ interface { ErrorName() string } = ChangeMongoDBExporterResponseValidationError{} -// Validate checks the field values on AddPostgresExporterRequest with the -// rules defined in the proto definition for this message. If any rules are +// Validate checks the field values on AddPostgresExporterParams with the rules +// defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddPostgresExporterRequest) Validate() error { +func (m *AddPostgresExporterParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddPostgresExporterRequest with the +// ValidateAll checks the field values on AddPostgresExporterParams with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in -// AddPostgresExporterRequestMultiError, or nil if none found. -func (m *AddPostgresExporterRequest) ValidateAll() error { +// AddPostgresExporterParamsMultiError, or nil if none found. +func (m *AddPostgresExporterParams) ValidateAll() error { return m.validate(true) } -func (m *AddPostgresExporterRequest) validate(all bool) error { +func (m *AddPostgresExporterParams) validate(all bool) error { if m == nil { return nil } @@ -5745,7 +6579,7 @@ func (m *AddPostgresExporterRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddPostgresExporterRequestValidationError{ + err := AddPostgresExporterParamsValidationError{ field: "PmmAgentId", reason: "value length must be at least 1 runes", } @@ -5756,7 +6590,7 @@ func (m *AddPostgresExporterRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetServiceId()) < 1 { - err := AddPostgresExporterRequestValidationError{ + err := AddPostgresExporterParamsValidationError{ field: "ServiceId", reason: "value length must be at least 1 runes", } @@ -5767,7 +6601,7 @@ func (m *AddPostgresExporterRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetUsername()) < 1 { - err := AddPostgresExporterRequestValidationError{ + err := AddPostgresExporterParamsValidationError{ field: "Username", reason: "value length must be at least 1 runes", } @@ -5804,150 +6638,19 @@ func (m *AddPostgresExporterRequest) validate(all bool) error { // no validation rules for ExposeExporter if len(errors) > 0 { - return AddPostgresExporterRequestMultiError(errors) - } - - return nil -} - -// AddPostgresExporterRequestMultiError is an error wrapping multiple -// validation errors returned by AddPostgresExporterRequest.ValidateAll() if -// the designated constraints aren't met. -type AddPostgresExporterRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddPostgresExporterRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddPostgresExporterRequestMultiError) AllErrors() []error { return m } - -// AddPostgresExporterRequestValidationError is the validation error returned -// by AddPostgresExporterRequest.Validate if the designated constraints aren't met. -type AddPostgresExporterRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddPostgresExporterRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddPostgresExporterRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddPostgresExporterRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddPostgresExporterRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddPostgresExporterRequestValidationError) ErrorName() string { - return "AddPostgresExporterRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddPostgresExporterRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddPostgresExporterRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddPostgresExporterRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddPostgresExporterRequestValidationError{} - -// Validate checks the field values on AddPostgresExporterResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddPostgresExporterResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on AddPostgresExporterResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// AddPostgresExporterResponseMultiError, or nil if none found. -func (m *AddPostgresExporterResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddPostgresExporterResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetPostgresExporter()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddPostgresExporterResponseValidationError{ - field: "PostgresExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddPostgresExporterResponseValidationError{ - field: "PostgresExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetPostgresExporter()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddPostgresExporterResponseValidationError{ - field: "PostgresExporter", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return AddPostgresExporterResponseMultiError(errors) + return AddPostgresExporterParamsMultiError(errors) } return nil } -// AddPostgresExporterResponseMultiError is an error wrapping multiple -// validation errors returned by AddPostgresExporterResponse.ValidateAll() if -// the designated constraints aren't met. -type AddPostgresExporterResponseMultiError []error +// AddPostgresExporterParamsMultiError is an error wrapping multiple validation +// errors returned by AddPostgresExporterParams.ValidateAll() if the +// designated constraints aren't met. +type AddPostgresExporterParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddPostgresExporterResponseMultiError) Error() string { +func (m AddPostgresExporterParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -5956,12 +6659,11 @@ func (m AddPostgresExporterResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddPostgresExporterResponseMultiError) AllErrors() []error { return m } +func (m AddPostgresExporterParamsMultiError) AllErrors() []error { return m } -// AddPostgresExporterResponseValidationError is the validation error returned -// by AddPostgresExporterResponse.Validate if the designated constraints -// aren't met. -type AddPostgresExporterResponseValidationError struct { +// AddPostgresExporterParamsValidationError is the validation error returned by +// AddPostgresExporterParams.Validate if the designated constraints aren't met. +type AddPostgresExporterParamsValidationError struct { field string reason string cause error @@ -5969,24 +6671,24 @@ type AddPostgresExporterResponseValidationError struct { } // Field function returns field value. -func (e AddPostgresExporterResponseValidationError) Field() string { return e.field } +func (e AddPostgresExporterParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddPostgresExporterResponseValidationError) Reason() string { return e.reason } +func (e AddPostgresExporterParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddPostgresExporterResponseValidationError) Cause() error { return e.cause } +func (e AddPostgresExporterParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddPostgresExporterResponseValidationError) Key() bool { return e.key } +func (e AddPostgresExporterParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddPostgresExporterResponseValidationError) ErrorName() string { - return "AddPostgresExporterResponseValidationError" +func (e AddPostgresExporterParamsValidationError) ErrorName() string { + return "AddPostgresExporterParamsValidationError" } // Error satisfies the builtin error interface -func (e AddPostgresExporterResponseValidationError) Error() string { +func (e AddPostgresExporterParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -5998,14 +6700,14 @@ func (e AddPostgresExporterResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddPostgresExporterResponse.%s: %s%s", + "invalid %sAddPostgresExporterParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddPostgresExporterResponseValidationError{} +var _ error = AddPostgresExporterParamsValidationError{} var _ interface { Field() string @@ -6013,7 +6715,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddPostgresExporterResponseValidationError{} +} = AddPostgresExporterParamsValidationError{} // Validate checks the field values on ChangePostgresExporterRequest with the // rules defined in the proto definition for this message. If any rules are @@ -6290,22 +6992,22 @@ var _ interface { ErrorName() string } = ChangePostgresExporterResponseValidationError{} -// Validate checks the field values on AddProxySQLExporterRequest with the -// rules defined in the proto definition for this message. If any rules are +// Validate checks the field values on AddProxySQLExporterParams with the rules +// defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddProxySQLExporterRequest) Validate() error { +func (m *AddProxySQLExporterParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddProxySQLExporterRequest with the +// ValidateAll checks the field values on AddProxySQLExporterParams with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in -// AddProxySQLExporterRequestMultiError, or nil if none found. -func (m *AddProxySQLExporterRequest) ValidateAll() error { +// AddProxySQLExporterParamsMultiError, or nil if none found. +func (m *AddProxySQLExporterParams) ValidateAll() error { return m.validate(true) } -func (m *AddProxySQLExporterRequest) validate(all bool) error { +func (m *AddProxySQLExporterParams) validate(all bool) error { if m == nil { return nil } @@ -6313,7 +7015,7 @@ func (m *AddProxySQLExporterRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddProxySQLExporterRequestValidationError{ + err := AddProxySQLExporterParamsValidationError{ field: "PmmAgentId", reason: "value length must be at least 1 runes", } @@ -6324,7 +7026,7 @@ func (m *AddProxySQLExporterRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetServiceId()) < 1 { - err := AddProxySQLExporterRequestValidationError{ + err := AddProxySQLExporterParamsValidationError{ field: "ServiceId", reason: "value length must be at least 1 runes", } @@ -6333,181 +7035,50 @@ func (m *AddProxySQLExporterRequest) validate(all bool) error { } errors = append(errors, err) } - - if utf8.RuneCountInString(m.GetUsername()) < 1 { - err := AddProxySQLExporterRequestValidationError{ - field: "Username", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - // no validation rules for Password - - // no validation rules for Tls - - // no validation rules for TlsSkipVerify - - // no validation rules for CustomLabels - - // no validation rules for SkipConnectionCheck - - // no validation rules for PushMetrics - - // no validation rules for AgentPassword - - // no validation rules for LogLevel - - // no validation rules for ExposeExporter - - if len(errors) > 0 { - return AddProxySQLExporterRequestMultiError(errors) - } - - return nil -} - -// AddProxySQLExporterRequestMultiError is an error wrapping multiple -// validation errors returned by AddProxySQLExporterRequest.ValidateAll() if -// the designated constraints aren't met. -type AddProxySQLExporterRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddProxySQLExporterRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddProxySQLExporterRequestMultiError) AllErrors() []error { return m } - -// AddProxySQLExporterRequestValidationError is the validation error returned -// by AddProxySQLExporterRequest.Validate if the designated constraints aren't met. -type AddProxySQLExporterRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddProxySQLExporterRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddProxySQLExporterRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddProxySQLExporterRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddProxySQLExporterRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddProxySQLExporterRequestValidationError) ErrorName() string { - return "AddProxySQLExporterRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddProxySQLExporterRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddProxySQLExporterRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddProxySQLExporterRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddProxySQLExporterRequestValidationError{} - -// Validate checks the field values on AddProxySQLExporterResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddProxySQLExporterResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on AddProxySQLExporterResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// AddProxySQLExporterResponseMultiError, or nil if none found. -func (m *AddProxySQLExporterResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddProxySQLExporterResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetProxysqlExporter()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddProxySQLExporterResponseValidationError{ - field: "ProxysqlExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddProxySQLExporterResponseValidationError{ - field: "ProxysqlExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetProxysqlExporter()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddProxySQLExporterResponseValidationError{ - field: "ProxysqlExporter", - reason: "embedded message failed validation", - cause: err, - } + + if utf8.RuneCountInString(m.GetUsername()) < 1 { + err := AddProxySQLExporterParamsValidationError{ + field: "Username", + reason: "value length must be at least 1 runes", } + if !all { + return err + } + errors = append(errors, err) } + // no validation rules for Password + + // no validation rules for Tls + + // no validation rules for TlsSkipVerify + + // no validation rules for CustomLabels + + // no validation rules for SkipConnectionCheck + + // no validation rules for PushMetrics + + // no validation rules for AgentPassword + + // no validation rules for LogLevel + + // no validation rules for ExposeExporter + if len(errors) > 0 { - return AddProxySQLExporterResponseMultiError(errors) + return AddProxySQLExporterParamsMultiError(errors) } return nil } -// AddProxySQLExporterResponseMultiError is an error wrapping multiple -// validation errors returned by AddProxySQLExporterResponse.ValidateAll() if -// the designated constraints aren't met. -type AddProxySQLExporterResponseMultiError []error +// AddProxySQLExporterParamsMultiError is an error wrapping multiple validation +// errors returned by AddProxySQLExporterParams.ValidateAll() if the +// designated constraints aren't met. +type AddProxySQLExporterParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddProxySQLExporterResponseMultiError) Error() string { +func (m AddProxySQLExporterParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -6516,12 +7087,11 @@ func (m AddProxySQLExporterResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddProxySQLExporterResponseMultiError) AllErrors() []error { return m } +func (m AddProxySQLExporterParamsMultiError) AllErrors() []error { return m } -// AddProxySQLExporterResponseValidationError is the validation error returned -// by AddProxySQLExporterResponse.Validate if the designated constraints -// aren't met. -type AddProxySQLExporterResponseValidationError struct { +// AddProxySQLExporterParamsValidationError is the validation error returned by +// AddProxySQLExporterParams.Validate if the designated constraints aren't met. +type AddProxySQLExporterParamsValidationError struct { field string reason string cause error @@ -6529,24 +7099,24 @@ type AddProxySQLExporterResponseValidationError struct { } // Field function returns field value. -func (e AddProxySQLExporterResponseValidationError) Field() string { return e.field } +func (e AddProxySQLExporterParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddProxySQLExporterResponseValidationError) Reason() string { return e.reason } +func (e AddProxySQLExporterParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddProxySQLExporterResponseValidationError) Cause() error { return e.cause } +func (e AddProxySQLExporterParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddProxySQLExporterResponseValidationError) Key() bool { return e.key } +func (e AddProxySQLExporterParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddProxySQLExporterResponseValidationError) ErrorName() string { - return "AddProxySQLExporterResponseValidationError" +func (e AddProxySQLExporterParamsValidationError) ErrorName() string { + return "AddProxySQLExporterParamsValidationError" } // Error satisfies the builtin error interface -func (e AddProxySQLExporterResponseValidationError) Error() string { +func (e AddProxySQLExporterParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -6558,14 +7128,14 @@ func (e AddProxySQLExporterResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddProxySQLExporterResponse.%s: %s%s", + "invalid %sAddProxySQLExporterParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddProxySQLExporterResponseValidationError{} +var _ error = AddProxySQLExporterParamsValidationError{} var _ interface { Field() string @@ -6573,7 +7143,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddProxySQLExporterResponseValidationError{} +} = AddProxySQLExporterParamsValidationError{} // Validate checks the field values on ChangeProxySQLExporterRequest with the // rules defined in the proto definition for this message. If any rules are @@ -6850,23 +7420,23 @@ var _ interface { ErrorName() string } = ChangeProxySQLExporterResponseValidationError{} -// Validate checks the field values on AddQANMySQLPerfSchemaAgentRequest with +// Validate checks the field values on AddQANMySQLPerfSchemaAgentParams with // the rules defined in the proto definition for this message. If any rules // are violated, the first error encountered is returned, or nil if there are // no violations. -func (m *AddQANMySQLPerfSchemaAgentRequest) Validate() error { +func (m *AddQANMySQLPerfSchemaAgentParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddQANMySQLPerfSchemaAgentRequest -// with the rules defined in the proto definition for this message. If any -// rules are violated, the result is a list of violation errors wrapped in -// AddQANMySQLPerfSchemaAgentRequestMultiError, or nil if none found. -func (m *AddQANMySQLPerfSchemaAgentRequest) ValidateAll() error { +// ValidateAll checks the field values on AddQANMySQLPerfSchemaAgentParams with +// the rules defined in the proto definition for this message. If any rules +// are violated, the result is a list of violation errors wrapped in +// AddQANMySQLPerfSchemaAgentParamsMultiError, or nil if none found. +func (m *AddQANMySQLPerfSchemaAgentParams) ValidateAll() error { return m.validate(true) } -func (m *AddQANMySQLPerfSchemaAgentRequest) validate(all bool) error { +func (m *AddQANMySQLPerfSchemaAgentParams) validate(all bool) error { if m == nil { return nil } @@ -6874,7 +7444,7 @@ func (m *AddQANMySQLPerfSchemaAgentRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddQANMySQLPerfSchemaAgentRequestValidationError{ + err := AddQANMySQLPerfSchemaAgentParamsValidationError{ field: "PmmAgentId", reason: "value length must be at least 1 runes", } @@ -6885,7 +7455,7 @@ func (m *AddQANMySQLPerfSchemaAgentRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetServiceId()) < 1 { - err := AddQANMySQLPerfSchemaAgentRequestValidationError{ + err := AddQANMySQLPerfSchemaAgentParamsValidationError{ field: "ServiceId", reason: "value length must be at least 1 runes", } @@ -6896,7 +7466,7 @@ func (m *AddQANMySQLPerfSchemaAgentRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetUsername()) < 1 { - err := AddQANMySQLPerfSchemaAgentRequestValidationError{ + err := AddQANMySQLPerfSchemaAgentParamsValidationError{ field: "Username", reason: "value length must be at least 1 runes", } @@ -6931,154 +7501,20 @@ func (m *AddQANMySQLPerfSchemaAgentRequest) validate(all bool) error { // no validation rules for LogLevel if len(errors) > 0 { - return AddQANMySQLPerfSchemaAgentRequestMultiError(errors) - } - - return nil -} - -// AddQANMySQLPerfSchemaAgentRequestMultiError is an error wrapping multiple -// validation errors returned by -// AddQANMySQLPerfSchemaAgentRequest.ValidateAll() if the designated -// constraints aren't met. -type AddQANMySQLPerfSchemaAgentRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddQANMySQLPerfSchemaAgentRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddQANMySQLPerfSchemaAgentRequestMultiError) AllErrors() []error { return m } - -// AddQANMySQLPerfSchemaAgentRequestValidationError is the validation error -// returned by AddQANMySQLPerfSchemaAgentRequest.Validate if the designated -// constraints aren't met. -type AddQANMySQLPerfSchemaAgentRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddQANMySQLPerfSchemaAgentRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddQANMySQLPerfSchemaAgentRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddQANMySQLPerfSchemaAgentRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddQANMySQLPerfSchemaAgentRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddQANMySQLPerfSchemaAgentRequestValidationError) ErrorName() string { - return "AddQANMySQLPerfSchemaAgentRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddQANMySQLPerfSchemaAgentRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddQANMySQLPerfSchemaAgentRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddQANMySQLPerfSchemaAgentRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddQANMySQLPerfSchemaAgentRequestValidationError{} - -// Validate checks the field values on AddQANMySQLPerfSchemaAgentResponse with -// the rules defined in the proto definition for this message. If any rules -// are violated, the first error encountered is returned, or nil if there are -// no violations. -func (m *AddQANMySQLPerfSchemaAgentResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on AddQANMySQLPerfSchemaAgentResponse -// with the rules defined in the proto definition for this message. If any -// rules are violated, the result is a list of violation errors wrapped in -// AddQANMySQLPerfSchemaAgentResponseMultiError, or nil if none found. -func (m *AddQANMySQLPerfSchemaAgentResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddQANMySQLPerfSchemaAgentResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetQanMysqlPerfschemaAgent()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddQANMySQLPerfSchemaAgentResponseValidationError{ - field: "QanMysqlPerfschemaAgent", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddQANMySQLPerfSchemaAgentResponseValidationError{ - field: "QanMysqlPerfschemaAgent", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetQanMysqlPerfschemaAgent()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddQANMySQLPerfSchemaAgentResponseValidationError{ - field: "QanMysqlPerfschemaAgent", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return AddQANMySQLPerfSchemaAgentResponseMultiError(errors) + return AddQANMySQLPerfSchemaAgentParamsMultiError(errors) } return nil } -// AddQANMySQLPerfSchemaAgentResponseMultiError is an error wrapping multiple +// AddQANMySQLPerfSchemaAgentParamsMultiError is an error wrapping multiple // validation errors returned by -// AddQANMySQLPerfSchemaAgentResponse.ValidateAll() if the designated +// AddQANMySQLPerfSchemaAgentParams.ValidateAll() if the designated // constraints aren't met. -type AddQANMySQLPerfSchemaAgentResponseMultiError []error +type AddQANMySQLPerfSchemaAgentParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddQANMySQLPerfSchemaAgentResponseMultiError) Error() string { +func (m AddQANMySQLPerfSchemaAgentParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -7087,12 +7523,12 @@ func (m AddQANMySQLPerfSchemaAgentResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddQANMySQLPerfSchemaAgentResponseMultiError) AllErrors() []error { return m } +func (m AddQANMySQLPerfSchemaAgentParamsMultiError) AllErrors() []error { return m } -// AddQANMySQLPerfSchemaAgentResponseValidationError is the validation error -// returned by AddQANMySQLPerfSchemaAgentResponse.Validate if the designated +// AddQANMySQLPerfSchemaAgentParamsValidationError is the validation error +// returned by AddQANMySQLPerfSchemaAgentParams.Validate if the designated // constraints aren't met. -type AddQANMySQLPerfSchemaAgentResponseValidationError struct { +type AddQANMySQLPerfSchemaAgentParamsValidationError struct { field string reason string cause error @@ -7100,24 +7536,24 @@ type AddQANMySQLPerfSchemaAgentResponseValidationError struct { } // Field function returns field value. -func (e AddQANMySQLPerfSchemaAgentResponseValidationError) Field() string { return e.field } +func (e AddQANMySQLPerfSchemaAgentParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddQANMySQLPerfSchemaAgentResponseValidationError) Reason() string { return e.reason } +func (e AddQANMySQLPerfSchemaAgentParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddQANMySQLPerfSchemaAgentResponseValidationError) Cause() error { return e.cause } +func (e AddQANMySQLPerfSchemaAgentParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddQANMySQLPerfSchemaAgentResponseValidationError) Key() bool { return e.key } +func (e AddQANMySQLPerfSchemaAgentParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddQANMySQLPerfSchemaAgentResponseValidationError) ErrorName() string { - return "AddQANMySQLPerfSchemaAgentResponseValidationError" +func (e AddQANMySQLPerfSchemaAgentParamsValidationError) ErrorName() string { + return "AddQANMySQLPerfSchemaAgentParamsValidationError" } // Error satisfies the builtin error interface -func (e AddQANMySQLPerfSchemaAgentResponseValidationError) Error() string { +func (e AddQANMySQLPerfSchemaAgentParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -7129,14 +7565,14 @@ func (e AddQANMySQLPerfSchemaAgentResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddQANMySQLPerfSchemaAgentResponse.%s: %s%s", + "invalid %sAddQANMySQLPerfSchemaAgentParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddQANMySQLPerfSchemaAgentResponseValidationError{} +var _ error = AddQANMySQLPerfSchemaAgentParamsValidationError{} var _ interface { Field() string @@ -7144,7 +7580,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddQANMySQLPerfSchemaAgentResponseValidationError{} +} = AddQANMySQLPerfSchemaAgentParamsValidationError{} // Validate checks the field values on ChangeQANMySQLPerfSchemaAgentRequest // with the rules defined in the proto definition for this message. If any @@ -7425,22 +7861,22 @@ var _ interface { ErrorName() string } = ChangeQANMySQLPerfSchemaAgentResponseValidationError{} -// Validate checks the field values on AddQANMySQLSlowlogAgentRequest with the +// Validate checks the field values on AddQANMySQLSlowlogAgentParams with the // rules defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddQANMySQLSlowlogAgentRequest) Validate() error { +func (m *AddQANMySQLSlowlogAgentParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddQANMySQLSlowlogAgentRequest with +// ValidateAll checks the field values on AddQANMySQLSlowlogAgentParams with // the rules defined in the proto definition for this message. If any rules // are violated, the result is a list of violation errors wrapped in -// AddQANMySQLSlowlogAgentRequestMultiError, or nil if none found. -func (m *AddQANMySQLSlowlogAgentRequest) ValidateAll() error { +// AddQANMySQLSlowlogAgentParamsMultiError, or nil if none found. +func (m *AddQANMySQLSlowlogAgentParams) ValidateAll() error { return m.validate(true) } -func (m *AddQANMySQLSlowlogAgentRequest) validate(all bool) error { +func (m *AddQANMySQLSlowlogAgentParams) validate(all bool) error { if m == nil { return nil } @@ -7448,7 +7884,7 @@ func (m *AddQANMySQLSlowlogAgentRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddQANMySQLSlowlogAgentRequestValidationError{ + err := AddQANMySQLSlowlogAgentParamsValidationError{ field: "PmmAgentId", reason: "value length must be at least 1 runes", } @@ -7459,7 +7895,7 @@ func (m *AddQANMySQLSlowlogAgentRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetServiceId()) < 1 { - err := AddQANMySQLSlowlogAgentRequestValidationError{ + err := AddQANMySQLSlowlogAgentParamsValidationError{ field: "ServiceId", reason: "value length must be at least 1 runes", } @@ -7470,7 +7906,7 @@ func (m *AddQANMySQLSlowlogAgentRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetUsername()) < 1 { - err := AddQANMySQLSlowlogAgentRequestValidationError{ + err := AddQANMySQLSlowlogAgentParamsValidationError{ field: "Username", reason: "value length must be at least 1 runes", } @@ -7492,166 +7928,34 @@ func (m *AddQANMySQLSlowlogAgentRequest) validate(all bool) error { // no validation rules for TlsKey - // no validation rules for MaxQueryLength - - // no validation rules for DisableQueryExamples - - // no validation rules for MaxSlowlogFileSize - - // no validation rules for CustomLabels - - // no validation rules for SkipConnectionCheck - - // no validation rules for DisableCommentsParsing - - // no validation rules for LogLevel - - if len(errors) > 0 { - return AddQANMySQLSlowlogAgentRequestMultiError(errors) - } - - return nil -} - -// AddQANMySQLSlowlogAgentRequestMultiError is an error wrapping multiple -// validation errors returned by AddQANMySQLSlowlogAgentRequest.ValidateAll() -// if the designated constraints aren't met. -type AddQANMySQLSlowlogAgentRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddQANMySQLSlowlogAgentRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddQANMySQLSlowlogAgentRequestMultiError) AllErrors() []error { return m } - -// AddQANMySQLSlowlogAgentRequestValidationError is the validation error -// returned by AddQANMySQLSlowlogAgentRequest.Validate if the designated -// constraints aren't met. -type AddQANMySQLSlowlogAgentRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddQANMySQLSlowlogAgentRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddQANMySQLSlowlogAgentRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddQANMySQLSlowlogAgentRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddQANMySQLSlowlogAgentRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddQANMySQLSlowlogAgentRequestValidationError) ErrorName() string { - return "AddQANMySQLSlowlogAgentRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddQANMySQLSlowlogAgentRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddQANMySQLSlowlogAgentRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddQANMySQLSlowlogAgentRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddQANMySQLSlowlogAgentRequestValidationError{} - -// Validate checks the field values on AddQANMySQLSlowlogAgentResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddQANMySQLSlowlogAgentResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on AddQANMySQLSlowlogAgentResponse with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// AddQANMySQLSlowlogAgentResponseMultiError, or nil if none found. -func (m *AddQANMySQLSlowlogAgentResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddQANMySQLSlowlogAgentResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetQanMysqlSlowlogAgent()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddQANMySQLSlowlogAgentResponseValidationError{ - field: "QanMysqlSlowlogAgent", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddQANMySQLSlowlogAgentResponseValidationError{ - field: "QanMysqlSlowlogAgent", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetQanMysqlSlowlogAgent()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddQANMySQLSlowlogAgentResponseValidationError{ - field: "QanMysqlSlowlogAgent", - reason: "embedded message failed validation", - cause: err, - } - } - } + // no validation rules for MaxQueryLength + + // no validation rules for DisableQueryExamples + + // no validation rules for MaxSlowlogFileSize + + // no validation rules for CustomLabels + + // no validation rules for SkipConnectionCheck + + // no validation rules for DisableCommentsParsing + + // no validation rules for LogLevel if len(errors) > 0 { - return AddQANMySQLSlowlogAgentResponseMultiError(errors) + return AddQANMySQLSlowlogAgentParamsMultiError(errors) } return nil } -// AddQANMySQLSlowlogAgentResponseMultiError is an error wrapping multiple -// validation errors returned by AddQANMySQLSlowlogAgentResponse.ValidateAll() +// AddQANMySQLSlowlogAgentParamsMultiError is an error wrapping multiple +// validation errors returned by AddQANMySQLSlowlogAgentParams.ValidateAll() // if the designated constraints aren't met. -type AddQANMySQLSlowlogAgentResponseMultiError []error +type AddQANMySQLSlowlogAgentParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddQANMySQLSlowlogAgentResponseMultiError) Error() string { +func (m AddQANMySQLSlowlogAgentParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -7660,12 +7964,12 @@ func (m AddQANMySQLSlowlogAgentResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddQANMySQLSlowlogAgentResponseMultiError) AllErrors() []error { return m } +func (m AddQANMySQLSlowlogAgentParamsMultiError) AllErrors() []error { return m } -// AddQANMySQLSlowlogAgentResponseValidationError is the validation error -// returned by AddQANMySQLSlowlogAgentResponse.Validate if the designated +// AddQANMySQLSlowlogAgentParamsValidationError is the validation error +// returned by AddQANMySQLSlowlogAgentParams.Validate if the designated // constraints aren't met. -type AddQANMySQLSlowlogAgentResponseValidationError struct { +type AddQANMySQLSlowlogAgentParamsValidationError struct { field string reason string cause error @@ -7673,24 +7977,24 @@ type AddQANMySQLSlowlogAgentResponseValidationError struct { } // Field function returns field value. -func (e AddQANMySQLSlowlogAgentResponseValidationError) Field() string { return e.field } +func (e AddQANMySQLSlowlogAgentParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddQANMySQLSlowlogAgentResponseValidationError) Reason() string { return e.reason } +func (e AddQANMySQLSlowlogAgentParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddQANMySQLSlowlogAgentResponseValidationError) Cause() error { return e.cause } +func (e AddQANMySQLSlowlogAgentParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddQANMySQLSlowlogAgentResponseValidationError) Key() bool { return e.key } +func (e AddQANMySQLSlowlogAgentParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddQANMySQLSlowlogAgentResponseValidationError) ErrorName() string { - return "AddQANMySQLSlowlogAgentResponseValidationError" +func (e AddQANMySQLSlowlogAgentParamsValidationError) ErrorName() string { + return "AddQANMySQLSlowlogAgentParamsValidationError" } // Error satisfies the builtin error interface -func (e AddQANMySQLSlowlogAgentResponseValidationError) Error() string { +func (e AddQANMySQLSlowlogAgentParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -7702,14 +8006,14 @@ func (e AddQANMySQLSlowlogAgentResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddQANMySQLSlowlogAgentResponse.%s: %s%s", + "invalid %sAddQANMySQLSlowlogAgentParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddQANMySQLSlowlogAgentResponseValidationError{} +var _ error = AddQANMySQLSlowlogAgentParamsValidationError{} var _ interface { Field() string @@ -7717,7 +8021,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddQANMySQLSlowlogAgentResponseValidationError{} +} = AddQANMySQLSlowlogAgentParamsValidationError{} // Validate checks the field values on ChangeQANMySQLSlowlogAgentRequest with // the rules defined in the proto definition for this message. If any rules @@ -7998,23 +8302,23 @@ var _ interface { ErrorName() string } = ChangeQANMySQLSlowlogAgentResponseValidationError{} -// Validate checks the field values on AddQANMongoDBProfilerAgentRequest with +// Validate checks the field values on AddQANMongoDBProfilerAgentParams with // the rules defined in the proto definition for this message. If any rules // are violated, the first error encountered is returned, or nil if there are // no violations. -func (m *AddQANMongoDBProfilerAgentRequest) Validate() error { +func (m *AddQANMongoDBProfilerAgentParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddQANMongoDBProfilerAgentRequest -// with the rules defined in the proto definition for this message. If any -// rules are violated, the result is a list of violation errors wrapped in -// AddQANMongoDBProfilerAgentRequestMultiError, or nil if none found. -func (m *AddQANMongoDBProfilerAgentRequest) ValidateAll() error { +// ValidateAll checks the field values on AddQANMongoDBProfilerAgentParams with +// the rules defined in the proto definition for this message. If any rules +// are violated, the result is a list of violation errors wrapped in +// AddQANMongoDBProfilerAgentParamsMultiError, or nil if none found. +func (m *AddQANMongoDBProfilerAgentParams) ValidateAll() error { return m.validate(true) } -func (m *AddQANMongoDBProfilerAgentRequest) validate(all bool) error { +func (m *AddQANMongoDBProfilerAgentParams) validate(all bool) error { if m == nil { return nil } @@ -8022,7 +8326,7 @@ func (m *AddQANMongoDBProfilerAgentRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddQANMongoDBProfilerAgentRequestValidationError{ + err := AddQANMongoDBProfilerAgentParamsValidationError{ field: "PmmAgentId", reason: "value length must be at least 1 runes", } @@ -8033,7 +8337,7 @@ func (m *AddQANMongoDBProfilerAgentRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetServiceId()) < 1 { - err := AddQANMongoDBProfilerAgentRequestValidationError{ + err := AddQANMongoDBProfilerAgentParamsValidationError{ field: "ServiceId", reason: "value length must be at least 1 runes", } @@ -8070,154 +8374,20 @@ func (m *AddQANMongoDBProfilerAgentRequest) validate(all bool) error { // no validation rules for LogLevel if len(errors) > 0 { - return AddQANMongoDBProfilerAgentRequestMultiError(errors) - } - - return nil -} - -// AddQANMongoDBProfilerAgentRequestMultiError is an error wrapping multiple -// validation errors returned by -// AddQANMongoDBProfilerAgentRequest.ValidateAll() if the designated -// constraints aren't met. -type AddQANMongoDBProfilerAgentRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddQANMongoDBProfilerAgentRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddQANMongoDBProfilerAgentRequestMultiError) AllErrors() []error { return m } - -// AddQANMongoDBProfilerAgentRequestValidationError is the validation error -// returned by AddQANMongoDBProfilerAgentRequest.Validate if the designated -// constraints aren't met. -type AddQANMongoDBProfilerAgentRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddQANMongoDBProfilerAgentRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddQANMongoDBProfilerAgentRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddQANMongoDBProfilerAgentRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddQANMongoDBProfilerAgentRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddQANMongoDBProfilerAgentRequestValidationError) ErrorName() string { - return "AddQANMongoDBProfilerAgentRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddQANMongoDBProfilerAgentRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddQANMongoDBProfilerAgentRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddQANMongoDBProfilerAgentRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddQANMongoDBProfilerAgentRequestValidationError{} - -// Validate checks the field values on AddQANMongoDBProfilerAgentResponse with -// the rules defined in the proto definition for this message. If any rules -// are violated, the first error encountered is returned, or nil if there are -// no violations. -func (m *AddQANMongoDBProfilerAgentResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on AddQANMongoDBProfilerAgentResponse -// with the rules defined in the proto definition for this message. If any -// rules are violated, the result is a list of violation errors wrapped in -// AddQANMongoDBProfilerAgentResponseMultiError, or nil if none found. -func (m *AddQANMongoDBProfilerAgentResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddQANMongoDBProfilerAgentResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetQanMongodbProfilerAgent()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddQANMongoDBProfilerAgentResponseValidationError{ - field: "QanMongodbProfilerAgent", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddQANMongoDBProfilerAgentResponseValidationError{ - field: "QanMongodbProfilerAgent", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetQanMongodbProfilerAgent()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddQANMongoDBProfilerAgentResponseValidationError{ - field: "QanMongodbProfilerAgent", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return AddQANMongoDBProfilerAgentResponseMultiError(errors) + return AddQANMongoDBProfilerAgentParamsMultiError(errors) } return nil } -// AddQANMongoDBProfilerAgentResponseMultiError is an error wrapping multiple +// AddQANMongoDBProfilerAgentParamsMultiError is an error wrapping multiple // validation errors returned by -// AddQANMongoDBProfilerAgentResponse.ValidateAll() if the designated +// AddQANMongoDBProfilerAgentParams.ValidateAll() if the designated // constraints aren't met. -type AddQANMongoDBProfilerAgentResponseMultiError []error +type AddQANMongoDBProfilerAgentParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddQANMongoDBProfilerAgentResponseMultiError) Error() string { +func (m AddQANMongoDBProfilerAgentParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -8226,12 +8396,12 @@ func (m AddQANMongoDBProfilerAgentResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddQANMongoDBProfilerAgentResponseMultiError) AllErrors() []error { return m } +func (m AddQANMongoDBProfilerAgentParamsMultiError) AllErrors() []error { return m } -// AddQANMongoDBProfilerAgentResponseValidationError is the validation error -// returned by AddQANMongoDBProfilerAgentResponse.Validate if the designated +// AddQANMongoDBProfilerAgentParamsValidationError is the validation error +// returned by AddQANMongoDBProfilerAgentParams.Validate if the designated // constraints aren't met. -type AddQANMongoDBProfilerAgentResponseValidationError struct { +type AddQANMongoDBProfilerAgentParamsValidationError struct { field string reason string cause error @@ -8239,24 +8409,24 @@ type AddQANMongoDBProfilerAgentResponseValidationError struct { } // Field function returns field value. -func (e AddQANMongoDBProfilerAgentResponseValidationError) Field() string { return e.field } +func (e AddQANMongoDBProfilerAgentParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddQANMongoDBProfilerAgentResponseValidationError) Reason() string { return e.reason } +func (e AddQANMongoDBProfilerAgentParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddQANMongoDBProfilerAgentResponseValidationError) Cause() error { return e.cause } +func (e AddQANMongoDBProfilerAgentParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddQANMongoDBProfilerAgentResponseValidationError) Key() bool { return e.key } +func (e AddQANMongoDBProfilerAgentParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddQANMongoDBProfilerAgentResponseValidationError) ErrorName() string { - return "AddQANMongoDBProfilerAgentResponseValidationError" +func (e AddQANMongoDBProfilerAgentParamsValidationError) ErrorName() string { + return "AddQANMongoDBProfilerAgentParamsValidationError" } // Error satisfies the builtin error interface -func (e AddQANMongoDBProfilerAgentResponseValidationError) Error() string { +func (e AddQANMongoDBProfilerAgentParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -8268,14 +8438,14 @@ func (e AddQANMongoDBProfilerAgentResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddQANMongoDBProfilerAgentResponse.%s: %s%s", + "invalid %sAddQANMongoDBProfilerAgentParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddQANMongoDBProfilerAgentResponseValidationError{} +var _ error = AddQANMongoDBProfilerAgentParamsValidationError{} var _ interface { Field() string @@ -8283,7 +8453,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddQANMongoDBProfilerAgentResponseValidationError{} +} = AddQANMongoDBProfilerAgentParamsValidationError{} // Validate checks the field values on ChangeQANMongoDBProfilerAgentRequest // with the rules defined in the proto definition for this message. If any @@ -8564,235 +8734,100 @@ var _ interface { ErrorName() string } = ChangeQANMongoDBProfilerAgentResponseValidationError{} -// Validate checks the field values on AddQANPostgreSQLPgStatementsAgentRequest +// Validate checks the field values on AddQANPostgreSQLPgStatementsAgentParams // with the rules defined in the proto definition for this message. If any // rules are violated, the first error encountered is returned, or nil if // there are no violations. -func (m *AddQANPostgreSQLPgStatementsAgentRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on -// AddQANPostgreSQLPgStatementsAgentRequest with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in -// AddQANPostgreSQLPgStatementsAgentRequestMultiError, or nil if none found. -func (m *AddQANPostgreSQLPgStatementsAgentRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *AddQANPostgreSQLPgStatementsAgentRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddQANPostgreSQLPgStatementsAgentRequestValidationError{ - field: "PmmAgentId", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if utf8.RuneCountInString(m.GetServiceId()) < 1 { - err := AddQANPostgreSQLPgStatementsAgentRequestValidationError{ - field: "ServiceId", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if utf8.RuneCountInString(m.GetUsername()) < 1 { - err := AddQANPostgreSQLPgStatementsAgentRequestValidationError{ - field: "Username", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - // no validation rules for Password - - // no validation rules for Tls - - // no validation rules for TlsSkipVerify - - // no validation rules for CustomLabels - - // no validation rules for SkipConnectionCheck - - // no validation rules for DisableCommentsParsing - - // no validation rules for MaxQueryLength - - // no validation rules for TlsCa - - // no validation rules for TlsCert - - // no validation rules for TlsKey - - // no validation rules for LogLevel - - if len(errors) > 0 { - return AddQANPostgreSQLPgStatementsAgentRequestMultiError(errors) - } - - return nil -} - -// AddQANPostgreSQLPgStatementsAgentRequestMultiError is an error wrapping -// multiple validation errors returned by -// AddQANPostgreSQLPgStatementsAgentRequest.ValidateAll() if the designated -// constraints aren't met. -type AddQANPostgreSQLPgStatementsAgentRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddQANPostgreSQLPgStatementsAgentRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddQANPostgreSQLPgStatementsAgentRequestMultiError) AllErrors() []error { return m } - -// AddQANPostgreSQLPgStatementsAgentRequestValidationError is the validation -// error returned by AddQANPostgreSQLPgStatementsAgentRequest.Validate if the -// designated constraints aren't met. -type AddQANPostgreSQLPgStatementsAgentRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddQANPostgreSQLPgStatementsAgentRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddQANPostgreSQLPgStatementsAgentRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddQANPostgreSQLPgStatementsAgentRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddQANPostgreSQLPgStatementsAgentRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddQANPostgreSQLPgStatementsAgentRequestValidationError) ErrorName() string { - return "AddQANPostgreSQLPgStatementsAgentRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddQANPostgreSQLPgStatementsAgentRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddQANPostgreSQLPgStatementsAgentRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddQANPostgreSQLPgStatementsAgentRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddQANPostgreSQLPgStatementsAgentRequestValidationError{} - -// Validate checks the field values on -// AddQANPostgreSQLPgStatementsAgentResponse with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *AddQANPostgreSQLPgStatementsAgentResponse) Validate() error { +func (m *AddQANPostgreSQLPgStatementsAgentParams) Validate() error { return m.validate(false) } // ValidateAll checks the field values on -// AddQANPostgreSQLPgStatementsAgentResponse with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in -// AddQANPostgreSQLPgStatementsAgentResponseMultiError, or nil if none found. -func (m *AddQANPostgreSQLPgStatementsAgentResponse) ValidateAll() error { +// AddQANPostgreSQLPgStatementsAgentParams with the rules defined in the proto +// definition for this message. If any rules are violated, the result is a +// list of violation errors wrapped in +// AddQANPostgreSQLPgStatementsAgentParamsMultiError, or nil if none found. +func (m *AddQANPostgreSQLPgStatementsAgentParams) ValidateAll() error { return m.validate(true) } -func (m *AddQANPostgreSQLPgStatementsAgentResponse) validate(all bool) error { +func (m *AddQANPostgreSQLPgStatementsAgentParams) validate(all bool) error { if m == nil { return nil } var errors []error - if all { - switch v := interface{}(m.GetQanPostgresqlPgstatementsAgent()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddQANPostgreSQLPgStatementsAgentResponseValidationError{ - field: "QanPostgresqlPgstatementsAgent", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddQANPostgreSQLPgStatementsAgentResponseValidationError{ - field: "QanPostgresqlPgstatementsAgent", - reason: "embedded message failed validation", - cause: err, - }) - } + if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { + err := AddQANPostgreSQLPgStatementsAgentParamsValidationError{ + field: "PmmAgentId", + reason: "value length must be at least 1 runes", } - } else if v, ok := interface{}(m.GetQanPostgresqlPgstatementsAgent()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddQANPostgreSQLPgStatementsAgentResponseValidationError{ - field: "QanPostgresqlPgstatementsAgent", - reason: "embedded message failed validation", - cause: err, - } + if !all { + return err + } + errors = append(errors, err) + } + + if utf8.RuneCountInString(m.GetServiceId()) < 1 { + err := AddQANPostgreSQLPgStatementsAgentParamsValidationError{ + field: "ServiceId", + reason: "value length must be at least 1 runes", + } + if !all { + return err + } + errors = append(errors, err) + } + + if utf8.RuneCountInString(m.GetUsername()) < 1 { + err := AddQANPostgreSQLPgStatementsAgentParamsValidationError{ + field: "Username", + reason: "value length must be at least 1 runes", + } + if !all { + return err } + errors = append(errors, err) } + // no validation rules for Password + + // no validation rules for Tls + + // no validation rules for TlsSkipVerify + + // no validation rules for CustomLabels + + // no validation rules for SkipConnectionCheck + + // no validation rules for DisableCommentsParsing + + // no validation rules for MaxQueryLength + + // no validation rules for TlsCa + + // no validation rules for TlsCert + + // no validation rules for TlsKey + + // no validation rules for LogLevel + if len(errors) > 0 { - return AddQANPostgreSQLPgStatementsAgentResponseMultiError(errors) + return AddQANPostgreSQLPgStatementsAgentParamsMultiError(errors) } return nil } -// AddQANPostgreSQLPgStatementsAgentResponseMultiError is an error wrapping +// AddQANPostgreSQLPgStatementsAgentParamsMultiError is an error wrapping // multiple validation errors returned by -// AddQANPostgreSQLPgStatementsAgentResponse.ValidateAll() if the designated +// AddQANPostgreSQLPgStatementsAgentParams.ValidateAll() if the designated // constraints aren't met. -type AddQANPostgreSQLPgStatementsAgentResponseMultiError []error +type AddQANPostgreSQLPgStatementsAgentParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddQANPostgreSQLPgStatementsAgentResponseMultiError) Error() string { +func (m AddQANPostgreSQLPgStatementsAgentParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -8801,12 +8836,12 @@ func (m AddQANPostgreSQLPgStatementsAgentResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddQANPostgreSQLPgStatementsAgentResponseMultiError) AllErrors() []error { return m } +func (m AddQANPostgreSQLPgStatementsAgentParamsMultiError) AllErrors() []error { return m } -// AddQANPostgreSQLPgStatementsAgentResponseValidationError is the validation -// error returned by AddQANPostgreSQLPgStatementsAgentResponse.Validate if the +// AddQANPostgreSQLPgStatementsAgentParamsValidationError is the validation +// error returned by AddQANPostgreSQLPgStatementsAgentParams.Validate if the // designated constraints aren't met. -type AddQANPostgreSQLPgStatementsAgentResponseValidationError struct { +type AddQANPostgreSQLPgStatementsAgentParamsValidationError struct { field string reason string cause error @@ -8814,24 +8849,24 @@ type AddQANPostgreSQLPgStatementsAgentResponseValidationError struct { } // Field function returns field value. -func (e AddQANPostgreSQLPgStatementsAgentResponseValidationError) Field() string { return e.field } +func (e AddQANPostgreSQLPgStatementsAgentParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddQANPostgreSQLPgStatementsAgentResponseValidationError) Reason() string { return e.reason } +func (e AddQANPostgreSQLPgStatementsAgentParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddQANPostgreSQLPgStatementsAgentResponseValidationError) Cause() error { return e.cause } +func (e AddQANPostgreSQLPgStatementsAgentParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddQANPostgreSQLPgStatementsAgentResponseValidationError) Key() bool { return e.key } +func (e AddQANPostgreSQLPgStatementsAgentParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddQANPostgreSQLPgStatementsAgentResponseValidationError) ErrorName() string { - return "AddQANPostgreSQLPgStatementsAgentResponseValidationError" +func (e AddQANPostgreSQLPgStatementsAgentParamsValidationError) ErrorName() string { + return "AddQANPostgreSQLPgStatementsAgentParamsValidationError" } // Error satisfies the builtin error interface -func (e AddQANPostgreSQLPgStatementsAgentResponseValidationError) Error() string { +func (e AddQANPostgreSQLPgStatementsAgentParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -8843,14 +8878,14 @@ func (e AddQANPostgreSQLPgStatementsAgentResponseValidationError) Error() string } return fmt.Sprintf( - "invalid %sAddQANPostgreSQLPgStatementsAgentResponse.%s: %s%s", + "invalid %sAddQANPostgreSQLPgStatementsAgentParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddQANPostgreSQLPgStatementsAgentResponseValidationError{} +var _ error = AddQANPostgreSQLPgStatementsAgentParamsValidationError{} var _ interface { Field() string @@ -8858,7 +8893,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddQANPostgreSQLPgStatementsAgentResponseValidationError{} +} = AddQANPostgreSQLPgStatementsAgentParamsValidationError{} // Validate checks the field values on // ChangeQANPostgreSQLPgStatementsAgentRequest with the rules defined in the @@ -9142,24 +9177,24 @@ var _ interface { ErrorName() string } = ChangeQANPostgreSQLPgStatementsAgentResponseValidationError{} -// Validate checks the field values on -// AddQANPostgreSQLPgStatMonitorAgentRequest with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *AddQANPostgreSQLPgStatMonitorAgentRequest) Validate() error { +// Validate checks the field values on AddQANPostgreSQLPgStatMonitorAgentParams +// with the rules defined in the proto definition for this message. If any +// rules are violated, the first error encountered is returned, or nil if +// there are no violations. +func (m *AddQANPostgreSQLPgStatMonitorAgentParams) Validate() error { return m.validate(false) } // ValidateAll checks the field values on -// AddQANPostgreSQLPgStatMonitorAgentRequest with the rules defined in the +// AddQANPostgreSQLPgStatMonitorAgentParams with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in -// AddQANPostgreSQLPgStatMonitorAgentRequestMultiError, or nil if none found. -func (m *AddQANPostgreSQLPgStatMonitorAgentRequest) ValidateAll() error { +// AddQANPostgreSQLPgStatMonitorAgentParamsMultiError, or nil if none found. +func (m *AddQANPostgreSQLPgStatMonitorAgentParams) ValidateAll() error { return m.validate(true) } -func (m *AddQANPostgreSQLPgStatMonitorAgentRequest) validate(all bool) error { +func (m *AddQANPostgreSQLPgStatMonitorAgentParams) validate(all bool) error { if m == nil { return nil } @@ -9167,7 +9202,7 @@ func (m *AddQANPostgreSQLPgStatMonitorAgentRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddQANPostgreSQLPgStatMonitorAgentRequestValidationError{ + err := AddQANPostgreSQLPgStatMonitorAgentParamsValidationError{ field: "PmmAgentId", reason: "value length must be at least 1 runes", } @@ -9178,7 +9213,7 @@ func (m *AddQANPostgreSQLPgStatMonitorAgentRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetServiceId()) < 1 { - err := AddQANPostgreSQLPgStatMonitorAgentRequestValidationError{ + err := AddQANPostgreSQLPgStatMonitorAgentParamsValidationError{ field: "ServiceId", reason: "value length must be at least 1 runes", } @@ -9189,7 +9224,7 @@ func (m *AddQANPostgreSQLPgStatMonitorAgentRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetUsername()) < 1 { - err := AddQANPostgreSQLPgStatMonitorAgentRequestValidationError{ + err := AddQANPostgreSQLPgStatMonitorAgentParamsValidationError{ field: "Username", reason: "value length must be at least 1 runes", } @@ -9224,20 +9259,20 @@ func (m *AddQANPostgreSQLPgStatMonitorAgentRequest) validate(all bool) error { // no validation rules for LogLevel if len(errors) > 0 { - return AddQANPostgreSQLPgStatMonitorAgentRequestMultiError(errors) + return AddQANPostgreSQLPgStatMonitorAgentParamsMultiError(errors) } return nil } -// AddQANPostgreSQLPgStatMonitorAgentRequestMultiError is an error wrapping +// AddQANPostgreSQLPgStatMonitorAgentParamsMultiError is an error wrapping // multiple validation errors returned by -// AddQANPostgreSQLPgStatMonitorAgentRequest.ValidateAll() if the designated +// AddQANPostgreSQLPgStatMonitorAgentParams.ValidateAll() if the designated // constraints aren't met. -type AddQANPostgreSQLPgStatMonitorAgentRequestMultiError []error +type AddQANPostgreSQLPgStatMonitorAgentParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddQANPostgreSQLPgStatMonitorAgentRequestMultiError) Error() string { +func (m AddQANPostgreSQLPgStatMonitorAgentParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -9246,147 +9281,12 @@ func (m AddQANPostgreSQLPgStatMonitorAgentRequestMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddQANPostgreSQLPgStatMonitorAgentRequestMultiError) AllErrors() []error { return m } +func (m AddQANPostgreSQLPgStatMonitorAgentParamsMultiError) AllErrors() []error { return m } -// AddQANPostgreSQLPgStatMonitorAgentRequestValidationError is the validation -// error returned by AddQANPostgreSQLPgStatMonitorAgentRequest.Validate if the +// AddQANPostgreSQLPgStatMonitorAgentParamsValidationError is the validation +// error returned by AddQANPostgreSQLPgStatMonitorAgentParams.Validate if the // designated constraints aren't met. -type AddQANPostgreSQLPgStatMonitorAgentRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddQANPostgreSQLPgStatMonitorAgentRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddQANPostgreSQLPgStatMonitorAgentRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddQANPostgreSQLPgStatMonitorAgentRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddQANPostgreSQLPgStatMonitorAgentRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddQANPostgreSQLPgStatMonitorAgentRequestValidationError) ErrorName() string { - return "AddQANPostgreSQLPgStatMonitorAgentRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddQANPostgreSQLPgStatMonitorAgentRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddQANPostgreSQLPgStatMonitorAgentRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddQANPostgreSQLPgStatMonitorAgentRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddQANPostgreSQLPgStatMonitorAgentRequestValidationError{} - -// Validate checks the field values on -// AddQANPostgreSQLPgStatMonitorAgentResponse with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *AddQANPostgreSQLPgStatMonitorAgentResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on -// AddQANPostgreSQLPgStatMonitorAgentResponse with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in -// AddQANPostgreSQLPgStatMonitorAgentResponseMultiError, or nil if none found. -func (m *AddQANPostgreSQLPgStatMonitorAgentResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddQANPostgreSQLPgStatMonitorAgentResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetQanPostgresqlPgstatmonitorAgent()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddQANPostgreSQLPgStatMonitorAgentResponseValidationError{ - field: "QanPostgresqlPgstatmonitorAgent", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddQANPostgreSQLPgStatMonitorAgentResponseValidationError{ - field: "QanPostgresqlPgstatmonitorAgent", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetQanPostgresqlPgstatmonitorAgent()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddQANPostgreSQLPgStatMonitorAgentResponseValidationError{ - field: "QanPostgresqlPgstatmonitorAgent", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return AddQANPostgreSQLPgStatMonitorAgentResponseMultiError(errors) - } - - return nil -} - -// AddQANPostgreSQLPgStatMonitorAgentResponseMultiError is an error wrapping -// multiple validation errors returned by -// AddQANPostgreSQLPgStatMonitorAgentResponse.ValidateAll() if the designated -// constraints aren't met. -type AddQANPostgreSQLPgStatMonitorAgentResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddQANPostgreSQLPgStatMonitorAgentResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddQANPostgreSQLPgStatMonitorAgentResponseMultiError) AllErrors() []error { return m } - -// AddQANPostgreSQLPgStatMonitorAgentResponseValidationError is the validation -// error returned by AddQANPostgreSQLPgStatMonitorAgentResponse.Validate if -// the designated constraints aren't met. -type AddQANPostgreSQLPgStatMonitorAgentResponseValidationError struct { +type AddQANPostgreSQLPgStatMonitorAgentParamsValidationError struct { field string reason string cause error @@ -9394,24 +9294,24 @@ type AddQANPostgreSQLPgStatMonitorAgentResponseValidationError struct { } // Field function returns field value. -func (e AddQANPostgreSQLPgStatMonitorAgentResponseValidationError) Field() string { return e.field } +func (e AddQANPostgreSQLPgStatMonitorAgentParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddQANPostgreSQLPgStatMonitorAgentResponseValidationError) Reason() string { return e.reason } +func (e AddQANPostgreSQLPgStatMonitorAgentParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddQANPostgreSQLPgStatMonitorAgentResponseValidationError) Cause() error { return e.cause } +func (e AddQANPostgreSQLPgStatMonitorAgentParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddQANPostgreSQLPgStatMonitorAgentResponseValidationError) Key() bool { return e.key } +func (e AddQANPostgreSQLPgStatMonitorAgentParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddQANPostgreSQLPgStatMonitorAgentResponseValidationError) ErrorName() string { - return "AddQANPostgreSQLPgStatMonitorAgentResponseValidationError" +func (e AddQANPostgreSQLPgStatMonitorAgentParamsValidationError) ErrorName() string { + return "AddQANPostgreSQLPgStatMonitorAgentParamsValidationError" } // Error satisfies the builtin error interface -func (e AddQANPostgreSQLPgStatMonitorAgentResponseValidationError) Error() string { +func (e AddQANPostgreSQLPgStatMonitorAgentParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -9423,14 +9323,14 @@ func (e AddQANPostgreSQLPgStatMonitorAgentResponseValidationError) Error() strin } return fmt.Sprintf( - "invalid %sAddQANPostgreSQLPgStatMonitorAgentResponse.%s: %s%s", + "invalid %sAddQANPostgreSQLPgStatMonitorAgentParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddQANPostgreSQLPgStatMonitorAgentResponseValidationError{} +var _ error = AddQANPostgreSQLPgStatMonitorAgentParamsValidationError{} var _ interface { Field() string @@ -9438,7 +9338,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddQANPostgreSQLPgStatMonitorAgentResponseValidationError{} +} = AddQANPostgreSQLPgStatMonitorAgentParamsValidationError{} // Validate checks the field values on // ChangeQANPostgreSQLPgStatMonitorAgentRequest with the rules defined in the @@ -9725,22 +9625,22 @@ var _ interface { ErrorName() string } = ChangeQANPostgreSQLPgStatMonitorAgentResponseValidationError{} -// Validate checks the field values on AddRDSExporterRequest with the rules +// Validate checks the field values on AddRDSExporterParams with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddRDSExporterRequest) Validate() error { +func (m *AddRDSExporterParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddRDSExporterRequest with the rules +// ValidateAll checks the field values on AddRDSExporterParams with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in -// AddRDSExporterRequestMultiError, or nil if none found. -func (m *AddRDSExporterRequest) ValidateAll() error { +// AddRDSExporterParamsMultiError, or nil if none found. +func (m *AddRDSExporterParams) ValidateAll() error { return m.validate(true) } -func (m *AddRDSExporterRequest) validate(all bool) error { +func (m *AddRDSExporterParams) validate(all bool) error { if m == nil { return nil } @@ -9748,7 +9648,7 @@ func (m *AddRDSExporterRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddRDSExporterRequestValidationError{ + err := AddRDSExporterParamsValidationError{ field: "PmmAgentId", reason: "value length must be at least 1 runes", } @@ -9759,7 +9659,7 @@ func (m *AddRDSExporterRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetNodeId()) < 1 { - err := AddRDSExporterRequestValidationError{ + err := AddRDSExporterParamsValidationError{ field: "NodeId", reason: "value length must be at least 1 runes", } @@ -9775,161 +9675,30 @@ func (m *AddRDSExporterRequest) validate(all bool) error { // no validation rules for CustomLabels - // no validation rules for SkipConnectionCheck - - // no validation rules for DisableBasicMetrics - - // no validation rules for DisableEnhancedMetrics - - // no validation rules for PushMetrics - - // no validation rules for LogLevel - - if len(errors) > 0 { - return AddRDSExporterRequestMultiError(errors) - } - - return nil -} - -// AddRDSExporterRequestMultiError is an error wrapping multiple validation -// errors returned by AddRDSExporterRequest.ValidateAll() if the designated -// constraints aren't met. -type AddRDSExporterRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddRDSExporterRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddRDSExporterRequestMultiError) AllErrors() []error { return m } - -// AddRDSExporterRequestValidationError is the validation error returned by -// AddRDSExporterRequest.Validate if the designated constraints aren't met. -type AddRDSExporterRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddRDSExporterRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddRDSExporterRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddRDSExporterRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddRDSExporterRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddRDSExporterRequestValidationError) ErrorName() string { - return "AddRDSExporterRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddRDSExporterRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddRDSExporterRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddRDSExporterRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddRDSExporterRequestValidationError{} - -// Validate checks the field values on AddRDSExporterResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddRDSExporterResponse) Validate() error { - return m.validate(false) -} + // no validation rules for SkipConnectionCheck -// ValidateAll checks the field values on AddRDSExporterResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// AddRDSExporterResponseMultiError, or nil if none found. -func (m *AddRDSExporterResponse) ValidateAll() error { - return m.validate(true) -} + // no validation rules for DisableBasicMetrics -func (m *AddRDSExporterResponse) validate(all bool) error { - if m == nil { - return nil - } + // no validation rules for DisableEnhancedMetrics - var errors []error + // no validation rules for PushMetrics - if all { - switch v := interface{}(m.GetRdsExporter()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddRDSExporterResponseValidationError{ - field: "RdsExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddRDSExporterResponseValidationError{ - field: "RdsExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetRdsExporter()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddRDSExporterResponseValidationError{ - field: "RdsExporter", - reason: "embedded message failed validation", - cause: err, - } - } - } + // no validation rules for LogLevel if len(errors) > 0 { - return AddRDSExporterResponseMultiError(errors) + return AddRDSExporterParamsMultiError(errors) } return nil } -// AddRDSExporterResponseMultiError is an error wrapping multiple validation -// errors returned by AddRDSExporterResponse.ValidateAll() if the designated +// AddRDSExporterParamsMultiError is an error wrapping multiple validation +// errors returned by AddRDSExporterParams.ValidateAll() if the designated // constraints aren't met. -type AddRDSExporterResponseMultiError []error +type AddRDSExporterParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddRDSExporterResponseMultiError) Error() string { +func (m AddRDSExporterParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -9938,11 +9707,11 @@ func (m AddRDSExporterResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddRDSExporterResponseMultiError) AllErrors() []error { return m } +func (m AddRDSExporterParamsMultiError) AllErrors() []error { return m } -// AddRDSExporterResponseValidationError is the validation error returned by -// AddRDSExporterResponse.Validate if the designated constraints aren't met. -type AddRDSExporterResponseValidationError struct { +// AddRDSExporterParamsValidationError is the validation error returned by +// AddRDSExporterParams.Validate if the designated constraints aren't met. +type AddRDSExporterParamsValidationError struct { field string reason string cause error @@ -9950,24 +9719,24 @@ type AddRDSExporterResponseValidationError struct { } // Field function returns field value. -func (e AddRDSExporterResponseValidationError) Field() string { return e.field } +func (e AddRDSExporterParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddRDSExporterResponseValidationError) Reason() string { return e.reason } +func (e AddRDSExporterParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddRDSExporterResponseValidationError) Cause() error { return e.cause } +func (e AddRDSExporterParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddRDSExporterResponseValidationError) Key() bool { return e.key } +func (e AddRDSExporterParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddRDSExporterResponseValidationError) ErrorName() string { - return "AddRDSExporterResponseValidationError" +func (e AddRDSExporterParamsValidationError) ErrorName() string { + return "AddRDSExporterParamsValidationError" } // Error satisfies the builtin error interface -func (e AddRDSExporterResponseValidationError) Error() string { +func (e AddRDSExporterParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -9979,14 +9748,14 @@ func (e AddRDSExporterResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddRDSExporterResponse.%s: %s%s", + "invalid %sAddRDSExporterParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddRDSExporterResponseValidationError{} +var _ error = AddRDSExporterParamsValidationError{} var _ interface { Field() string @@ -9994,7 +9763,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddRDSExporterResponseValidationError{} +} = AddRDSExporterParamsValidationError{} // Validate checks the field values on ChangeRDSExporterRequest with the rules // defined in the proto definition for this message. If any rules are @@ -10269,22 +10038,22 @@ var _ interface { ErrorName() string } = ChangeRDSExporterResponseValidationError{} -// Validate checks the field values on AddExternalExporterRequest with the -// rules defined in the proto definition for this message. If any rules are +// Validate checks the field values on AddExternalExporterParams with the rules +// defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddExternalExporterRequest) Validate() error { +func (m *AddExternalExporterParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddExternalExporterRequest with the +// ValidateAll checks the field values on AddExternalExporterParams with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in -// AddExternalExporterRequestMultiError, or nil if none found. -func (m *AddExternalExporterRequest) ValidateAll() error { +// AddExternalExporterParamsMultiError, or nil if none found. +func (m *AddExternalExporterParams) ValidateAll() error { return m.validate(true) } -func (m *AddExternalExporterRequest) validate(all bool) error { +func (m *AddExternalExporterParams) validate(all bool) error { if m == nil { return nil } @@ -10292,7 +10061,7 @@ func (m *AddExternalExporterRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetRunsOnNodeId()) < 1 { - err := AddExternalExporterRequestValidationError{ + err := AddExternalExporterParamsValidationError{ field: "RunsOnNodeId", reason: "value length must be at least 1 runes", } @@ -10313,7 +10082,7 @@ func (m *AddExternalExporterRequest) validate(all bool) error { // no validation rules for MetricsPath if val := m.GetListenPort(); val <= 0 || val >= 65536 { - err := AddExternalExporterRequestValidationError{ + err := AddExternalExporterParamsValidationError{ field: "ListenPort", reason: "value must be inside range (0, 65536)", } @@ -10328,150 +10097,19 @@ func (m *AddExternalExporterRequest) validate(all bool) error { // no validation rules for PushMetrics if len(errors) > 0 { - return AddExternalExporterRequestMultiError(errors) - } - - return nil -} - -// AddExternalExporterRequestMultiError is an error wrapping multiple -// validation errors returned by AddExternalExporterRequest.ValidateAll() if -// the designated constraints aren't met. -type AddExternalExporterRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddExternalExporterRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddExternalExporterRequestMultiError) AllErrors() []error { return m } - -// AddExternalExporterRequestValidationError is the validation error returned -// by AddExternalExporterRequest.Validate if the designated constraints aren't met. -type AddExternalExporterRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddExternalExporterRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddExternalExporterRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddExternalExporterRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddExternalExporterRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddExternalExporterRequestValidationError) ErrorName() string { - return "AddExternalExporterRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddExternalExporterRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddExternalExporterRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddExternalExporterRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddExternalExporterRequestValidationError{} - -// Validate checks the field values on AddExternalExporterResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddExternalExporterResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on AddExternalExporterResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// AddExternalExporterResponseMultiError, or nil if none found. -func (m *AddExternalExporterResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddExternalExporterResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetExternalExporter()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddExternalExporterResponseValidationError{ - field: "ExternalExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddExternalExporterResponseValidationError{ - field: "ExternalExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetExternalExporter()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddExternalExporterResponseValidationError{ - field: "ExternalExporter", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return AddExternalExporterResponseMultiError(errors) + return AddExternalExporterParamsMultiError(errors) } return nil } -// AddExternalExporterResponseMultiError is an error wrapping multiple -// validation errors returned by AddExternalExporterResponse.ValidateAll() if -// the designated constraints aren't met. -type AddExternalExporterResponseMultiError []error +// AddExternalExporterParamsMultiError is an error wrapping multiple validation +// errors returned by AddExternalExporterParams.ValidateAll() if the +// designated constraints aren't met. +type AddExternalExporterParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddExternalExporterResponseMultiError) Error() string { +func (m AddExternalExporterParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -10480,12 +10118,11 @@ func (m AddExternalExporterResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddExternalExporterResponseMultiError) AllErrors() []error { return m } +func (m AddExternalExporterParamsMultiError) AllErrors() []error { return m } -// AddExternalExporterResponseValidationError is the validation error returned -// by AddExternalExporterResponse.Validate if the designated constraints -// aren't met. -type AddExternalExporterResponseValidationError struct { +// AddExternalExporterParamsValidationError is the validation error returned by +// AddExternalExporterParams.Validate if the designated constraints aren't met. +type AddExternalExporterParamsValidationError struct { field string reason string cause error @@ -10493,24 +10130,24 @@ type AddExternalExporterResponseValidationError struct { } // Field function returns field value. -func (e AddExternalExporterResponseValidationError) Field() string { return e.field } +func (e AddExternalExporterParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddExternalExporterResponseValidationError) Reason() string { return e.reason } +func (e AddExternalExporterParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddExternalExporterResponseValidationError) Cause() error { return e.cause } +func (e AddExternalExporterParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddExternalExporterResponseValidationError) Key() bool { return e.key } +func (e AddExternalExporterParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddExternalExporterResponseValidationError) ErrorName() string { - return "AddExternalExporterResponseValidationError" +func (e AddExternalExporterParamsValidationError) ErrorName() string { + return "AddExternalExporterParamsValidationError" } // Error satisfies the builtin error interface -func (e AddExternalExporterResponseValidationError) Error() string { +func (e AddExternalExporterParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -10522,14 +10159,14 @@ func (e AddExternalExporterResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddExternalExporterResponse.%s: %s%s", + "invalid %sAddExternalExporterParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddExternalExporterResponseValidationError{} +var _ error = AddExternalExporterParamsValidationError{} var _ interface { Field() string @@ -10537,7 +10174,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddExternalExporterResponseValidationError{} +} = AddExternalExporterParamsValidationError{} // Validate checks the field values on ChangeExternalExporterRequest with the // rules defined in the proto definition for this message. If any rules are @@ -10814,22 +10451,22 @@ var _ interface { ErrorName() string } = ChangeExternalExporterResponseValidationError{} -// Validate checks the field values on AddAzureDatabaseExporterRequest with the +// Validate checks the field values on AddAzureDatabaseExporterParams with the // rules defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. -func (m *AddAzureDatabaseExporterRequest) Validate() error { +func (m *AddAzureDatabaseExporterParams) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on AddAzureDatabaseExporterRequest with +// ValidateAll checks the field values on AddAzureDatabaseExporterParams with // the rules defined in the proto definition for this message. If any rules // are violated, the result is a list of violation errors wrapped in -// AddAzureDatabaseExporterRequestMultiError, or nil if none found. -func (m *AddAzureDatabaseExporterRequest) ValidateAll() error { +// AddAzureDatabaseExporterParamsMultiError, or nil if none found. +func (m *AddAzureDatabaseExporterParams) ValidateAll() error { return m.validate(true) } -func (m *AddAzureDatabaseExporterRequest) validate(all bool) error { +func (m *AddAzureDatabaseExporterParams) validate(all bool) error { if m == nil { return nil } @@ -10837,7 +10474,7 @@ func (m *AddAzureDatabaseExporterRequest) validate(all bool) error { var errors []error if utf8.RuneCountInString(m.GetPmmAgentId()) < 1 { - err := AddAzureDatabaseExporterRequestValidationError{ + err := AddAzureDatabaseExporterParamsValidationError{ field: "PmmAgentId", reason: "value length must be at least 1 runes", } @@ -10848,7 +10485,7 @@ func (m *AddAzureDatabaseExporterRequest) validate(all bool) error { } if utf8.RuneCountInString(m.GetNodeId()) < 1 { - err := AddAzureDatabaseExporterRequestValidationError{ + err := AddAzureDatabaseExporterParamsValidationError{ field: "NodeId", reason: "value length must be at least 1 runes", } @@ -10869,7 +10506,7 @@ func (m *AddAzureDatabaseExporterRequest) validate(all bool) error { // no validation rules for AzureResourceGroup if utf8.RuneCountInString(m.GetAzureDatabaseResourceType()) < 1 { - err := AddAzureDatabaseExporterRequestValidationError{ + err := AddAzureDatabaseExporterParamsValidationError{ field: "AzureDatabaseResourceType", reason: "value length must be at least 1 runes", } @@ -10888,153 +10525,19 @@ func (m *AddAzureDatabaseExporterRequest) validate(all bool) error { // no validation rules for LogLevel if len(errors) > 0 { - return AddAzureDatabaseExporterRequestMultiError(errors) + return AddAzureDatabaseExporterParamsMultiError(errors) } return nil } -// AddAzureDatabaseExporterRequestMultiError is an error wrapping multiple -// validation errors returned by AddAzureDatabaseExporterRequest.ValidateAll() +// AddAzureDatabaseExporterParamsMultiError is an error wrapping multiple +// validation errors returned by AddAzureDatabaseExporterParams.ValidateAll() // if the designated constraints aren't met. -type AddAzureDatabaseExporterRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AddAzureDatabaseExporterRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AddAzureDatabaseExporterRequestMultiError) AllErrors() []error { return m } - -// AddAzureDatabaseExporterRequestValidationError is the validation error -// returned by AddAzureDatabaseExporterRequest.Validate if the designated -// constraints aren't met. -type AddAzureDatabaseExporterRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddAzureDatabaseExporterRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddAzureDatabaseExporterRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddAzureDatabaseExporterRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddAzureDatabaseExporterRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddAzureDatabaseExporterRequestValidationError) ErrorName() string { - return "AddAzureDatabaseExporterRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddAzureDatabaseExporterRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddAzureDatabaseExporterRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddAzureDatabaseExporterRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddAzureDatabaseExporterRequestValidationError{} - -// Validate checks the field values on AddAzureDatabaseExporterResponse with -// the rules defined in the proto definition for this message. If any rules -// are violated, the first error encountered is returned, or nil if there are -// no violations. -func (m *AddAzureDatabaseExporterResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on AddAzureDatabaseExporterResponse with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// AddAzureDatabaseExporterResponseMultiError, or nil if none found. -func (m *AddAzureDatabaseExporterResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *AddAzureDatabaseExporterResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetAzureDatabaseExporter()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AddAzureDatabaseExporterResponseValidationError{ - field: "AzureDatabaseExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AddAzureDatabaseExporterResponseValidationError{ - field: "AzureDatabaseExporter", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetAzureDatabaseExporter()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddAzureDatabaseExporterResponseValidationError{ - field: "AzureDatabaseExporter", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return AddAzureDatabaseExporterResponseMultiError(errors) - } - - return nil -} - -// AddAzureDatabaseExporterResponseMultiError is an error wrapping multiple -// validation errors returned by -// AddAzureDatabaseExporterResponse.ValidateAll() if the designated -// constraints aren't met. -type AddAzureDatabaseExporterResponseMultiError []error +type AddAzureDatabaseExporterParamsMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m AddAzureDatabaseExporterResponseMultiError) Error() string { +func (m AddAzureDatabaseExporterParamsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -11043,12 +10546,12 @@ func (m AddAzureDatabaseExporterResponseMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m AddAzureDatabaseExporterResponseMultiError) AllErrors() []error { return m } +func (m AddAzureDatabaseExporterParamsMultiError) AllErrors() []error { return m } -// AddAzureDatabaseExporterResponseValidationError is the validation error -// returned by AddAzureDatabaseExporterResponse.Validate if the designated +// AddAzureDatabaseExporterParamsValidationError is the validation error +// returned by AddAzureDatabaseExporterParams.Validate if the designated // constraints aren't met. -type AddAzureDatabaseExporterResponseValidationError struct { +type AddAzureDatabaseExporterParamsValidationError struct { field string reason string cause error @@ -11056,24 +10559,24 @@ type AddAzureDatabaseExporterResponseValidationError struct { } // Field function returns field value. -func (e AddAzureDatabaseExporterResponseValidationError) Field() string { return e.field } +func (e AddAzureDatabaseExporterParamsValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e AddAzureDatabaseExporterResponseValidationError) Reason() string { return e.reason } +func (e AddAzureDatabaseExporterParamsValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e AddAzureDatabaseExporterResponseValidationError) Cause() error { return e.cause } +func (e AddAzureDatabaseExporterParamsValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e AddAzureDatabaseExporterResponseValidationError) Key() bool { return e.key } +func (e AddAzureDatabaseExporterParamsValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e AddAzureDatabaseExporterResponseValidationError) ErrorName() string { - return "AddAzureDatabaseExporterResponseValidationError" +func (e AddAzureDatabaseExporterParamsValidationError) ErrorName() string { + return "AddAzureDatabaseExporterParamsValidationError" } // Error satisfies the builtin error interface -func (e AddAzureDatabaseExporterResponseValidationError) Error() string { +func (e AddAzureDatabaseExporterParamsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -11085,14 +10588,14 @@ func (e AddAzureDatabaseExporterResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sAddAzureDatabaseExporterResponse.%s: %s%s", + "invalid %sAddAzureDatabaseExporterParams.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = AddAzureDatabaseExporterResponseValidationError{} +var _ error = AddAzureDatabaseExporterParamsValidationError{} var _ interface { Field() string @@ -11100,7 +10603,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = AddAzureDatabaseExporterResponseValidationError{} +} = AddAzureDatabaseExporterParamsValidationError{} // Validate checks the field values on ChangeAzureDatabaseExporterRequest with // the rules defined in the proto definition for this message. If any rules diff --git a/api/inventory/v1/agents.proto b/api/inventory/v1/agents.proto index e05c2df9d7..e51c494848 100644 --- a/api/inventory/v1/agents.proto +++ b/api/inventory/v1/agents.proto @@ -649,17 +649,13 @@ message GetAgentLogsResponse { // Add PMMAgent -message AddPMMAgentRequest { +message AddPMMAgentParams { // Node identifier where this instance runs. string runs_on_node_id = 1 [(validate.rules).string.min_len = 1]; // Custom user-assigned labels. map custom_labels = 2; } -message AddPMMAgentResponse { - PMMAgent pmm_agent = 1; -} - // TODO Change PMMAgent? // TODO Add VMAgent? @@ -668,7 +664,47 @@ message AddPMMAgentResponse { // Add/Change NodeExporter -message AddNodeExporterRequest { +message AddAgentRequest { + oneof exporter { + AddPMMAgentParams pmm_agent = 1; + AddNodeExporterParams node_exporter = 2; + AddMySQLdExporterParams mysqld_exporter = 3; + AddMongoDBExporterParams mongodb_exporter = 4; + AddPostgresExporterParams postgres_exporter = 5; + AddProxySQLExporterParams proxysql_exporter = 6; + AddExternalExporterParams external_exporter = 7; + AddRDSExporterParams rds_exporter = 8; + AddAzureDatabaseExporterParams azure_database_exporter = 9; + AddQANMySQLPerfSchemaAgentParams qan_mysql_perfschema_agent = 10; + AddQANMySQLSlowlogAgentParams qan_mysql_slowlog_agent = 11; + AddQANMongoDBProfilerAgentParams qan_mongodb_profiler_agent = 12; + AddQANPostgreSQLPgStatementsAgentParams qan_postgresql_pgstatements_agent = 13; + AddQANPostgreSQLPgStatMonitorAgentParams qan_postgresql_pgstatmonitor_agent = 14; + } +} + +message AddAgentResponse { + oneof exporter { + PMMAgent pmm_agent = 1; + NodeExporter node_exporter = 2; + MySQLdExporter mysqld_exporter = 3; + MongoDBExporter mongodb_exporter = 4; + PostgresExporter postgres_exporter = 5; + ProxySQLExporter proxysql_exporter = 6; + ExternalExporter external_exporter = 7; + RDSExporter rds_exporter = 8; + AzureDatabaseExporter azure_database_exporter = 9; + QANMySQLPerfSchemaAgent qan_mysql_perfschema_agent = 10; + QANMySQLSlowlogAgent qan_mysql_slowlog_agent = 11; + QANMongoDBProfilerAgent qan_mongodb_profiler_agent = 12; + QANPostgreSQLPgStatementsAgent qan_postgresql_pgstatements_agent = 13; + QANPostgreSQLPgStatMonitorAgent qan_postgresql_pgstatmonitor_agent = 14; + } + // Actual table count for SQL databases at the moment of adding. + int32 table_count = 15; +} + +message AddNodeExporterParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Custom user-assigned labels. @@ -683,10 +719,6 @@ message AddNodeExporterRequest { bool expose_exporter = 6; } -message AddNodeExporterResponse { - NodeExporter node_exporter = 1; -} - message ChangeNodeExporterRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -698,7 +730,7 @@ message ChangeNodeExporterResponse { // Add/Change MySQLdExporter -message AddMySQLdExporterRequest { +message AddMySQLdExporterParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Service identifier. @@ -737,12 +769,6 @@ message AddMySQLdExporterRequest { bool expose_exporter = 17; } -message AddMySQLdExporterResponse { - MySQLdExporter mysqld_exporter = 1; - // Actual table count at the moment of adding. - int32 table_count = 2; -} - message ChangeMySQLdExporterRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -754,7 +780,7 @@ message ChangeMySQLdExporterResponse { // Add/Change MongoDBExporter -message AddMongoDBExporterRequest { +message AddMongoDBExporterParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Service identifier. @@ -800,10 +826,6 @@ message AddMongoDBExporterRequest { bool expose_exporter = 20; } -message AddMongoDBExporterResponse { - MongoDBExporter mongodb_exporter = 1; -} - message ChangeMongoDBExporterRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -815,7 +837,7 @@ message ChangeMongoDBExporterResponse { // Add/Change PostgresExporter -message AddPostgresExporterRequest { +message AddPostgresExporterParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Service identifier. @@ -852,10 +874,6 @@ message AddPostgresExporterRequest { bool expose_exporter = 17; } -message AddPostgresExporterResponse { - PostgresExporter postgres_exporter = 1; -} - message ChangePostgresExporterRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -867,7 +885,7 @@ message ChangePostgresExporterResponse { // Add/Change ProxySQLExporter -message AddProxySQLExporterRequest { +message AddProxySQLExporterParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Service identifier. @@ -896,10 +914,6 @@ message AddProxySQLExporterRequest { bool expose_exporter = 13; } -message AddProxySQLExporterResponse { - ProxySQLExporter proxysql_exporter = 1; -} - message ChangeProxySQLExporterRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -911,7 +925,7 @@ message ChangeProxySQLExporterResponse { // Add/Change QANMySQLPerfSchemaAgent -message AddQANMySQLPerfSchemaAgentRequest { +message AddQANMySQLPerfSchemaAgentParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Service identifier. @@ -944,10 +958,6 @@ message AddQANMySQLPerfSchemaAgentRequest { LogLevel log_level = 13; } -message AddQANMySQLPerfSchemaAgentResponse { - QANMySQLPerfSchemaAgent qan_mysql_perfschema_agent = 1; -} - message ChangeQANMySQLPerfSchemaAgentRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -959,7 +969,7 @@ message ChangeQANMySQLPerfSchemaAgentResponse { // Add/Change QANMySQLSlowlogAgent -message AddQANMySQLSlowlogAgentRequest { +message AddQANMySQLSlowlogAgentParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Service identifier. @@ -995,10 +1005,6 @@ message AddQANMySQLSlowlogAgentRequest { LogLevel log_level = 14; } -message AddQANMySQLSlowlogAgentResponse { - QANMySQLSlowlogAgent qan_mysql_slowlog_agent = 1; -} - message ChangeQANMySQLSlowlogAgentRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -1010,7 +1016,7 @@ message ChangeQANMySQLSlowlogAgentResponse { // Add/Change QANMongoDBProfilerAgent -message AddQANMongoDBProfilerAgentRequest { +message AddQANMongoDBProfilerAgentParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Service identifier. @@ -1045,10 +1051,6 @@ message AddQANMongoDBProfilerAgentRequest { LogLevel log_level = 14; } -message AddQANMongoDBProfilerAgentResponse { - QANMongoDBProfilerAgent qan_mongodb_profiler_agent = 1; -} - message ChangeQANMongoDBProfilerAgentRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -1060,7 +1062,7 @@ message ChangeQANMongoDBProfilerAgentResponse { // Add/Change QANPostgreSQLPgStatementsAgent -message AddQANPostgreSQLPgStatementsAgentRequest { +message AddQANPostgreSQLPgStatementsAgentParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Service identifier. @@ -1091,10 +1093,6 @@ message AddQANPostgreSQLPgStatementsAgentRequest { LogLevel log_level = 12; } -message AddQANPostgreSQLPgStatementsAgentResponse { - QANPostgreSQLPgStatementsAgent qan_postgresql_pgstatements_agent = 1; -} - message ChangeQANPostgreSQLPgStatementsAgentRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -1106,7 +1104,7 @@ message ChangeQANPostgreSQLPgStatementsAgentResponse { // Add/Change QANPostgreSQLPgStatMonitorAgent -message AddQANPostgreSQLPgStatMonitorAgentRequest { +message AddQANPostgreSQLPgStatMonitorAgentParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Service identifier. @@ -1139,10 +1137,6 @@ message AddQANPostgreSQLPgStatMonitorAgentRequest { LogLevel log_level = 13; } -message AddQANPostgreSQLPgStatMonitorAgentResponse { - QANPostgreSQLPgStatMonitorAgent qan_postgresql_pgstatmonitor_agent = 1; -} - message ChangeQANPostgreSQLPgStatMonitorAgentRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -1154,7 +1148,7 @@ message ChangeQANPostgreSQLPgStatMonitorAgentResponse { // Add/Change RDSExporter -message AddRDSExporterRequest { +message AddRDSExporterParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Node identifier. @@ -1177,10 +1171,6 @@ message AddRDSExporterRequest { LogLevel log_level = 10; } -message AddRDSExporterResponse { - RDSExporter rds_exporter = 1; -} - message ChangeRDSExporterRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -1192,7 +1182,7 @@ message ChangeRDSExporterResponse { // Add/Change ExternalExporter -message AddExternalExporterRequest { +message AddExternalExporterParams { // The node identifier where this instance is run. string runs_on_node_id = 1 [(validate.rules).string.min_len = 1]; // Service identifier. @@ -1216,10 +1206,6 @@ message AddExternalExporterRequest { bool push_metrics = 11; } -message AddExternalExporterResponse { - ExternalExporter external_exporter = 1; -} - message ChangeExternalExporterRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -1231,7 +1217,7 @@ message ChangeExternalExporterResponse { // Add/Change AzureDatabaseExporter -message AddAzureDatabaseExporterRequest { +message AddAzureDatabaseExporterParams { // The pmm-agent identifier which runs this instance. string pmm_agent_id = 1 [(validate.rules).string.min_len = 1]; // Node identifier. @@ -1258,10 +1244,6 @@ message AddAzureDatabaseExporterRequest { LogLevel log_level = 12; } -message AddAzureDatabaseExporterResponse { - AzureDatabaseExporter azure_database_exporter = 1; -} - message ChangeAzureDatabaseExporterRequest { string agent_id = 1 [(validate.rules).string.min_len = 1]; ChangeCommonAgentParams common = 2; @@ -1316,26 +1298,16 @@ service AgentsService { description: "Returns Agent logs by ID." }; } - // AddPMMAgent adds pmm-agent Agent. - rpc AddPMMAgent(AddPMMAgentRequest) returns (AddPMMAgentResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddPMMAgent" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add PMM Agent" - description: "Adds PMM Agent." - }; - } - // AddNodeExporter adds node_exporter Agent. - rpc AddNodeExporter(AddNodeExporterRequest) returns (AddNodeExporterResponse) { + + // AddAgent adds any type of Agent to Inventory. + rpc AddAgent(AddAgentRequest) returns (AddAgentResponse) { option (google.api.http) = { - post: "/v1/inventory/Agents/AddNodeExporter" + post: "/v1/inventory/Agents/Add" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add Node Exporter" - description: "Adds node_exporter Agent." + summary: "Add an Agent to Inventory" + description: "Adds an Agent from Inventory." }; } // ChangeNodeExporter changes node_exporter Agent. @@ -1349,17 +1321,6 @@ service AgentsService { description: "Changes node_exporter Agent." }; } - // AddMySQLdExporter adds mysqld_exporter Agent. - rpc AddMySQLdExporter(AddMySQLdExporterRequest) returns (AddMySQLdExporterResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddMySQLdExporter" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add mysqld Exporter" - description: "Adds mysqld_exporter Agent." - }; - } // ChangeMySQLdExporter changes mysqld_exporter Agent. rpc ChangeMySQLdExporter(ChangeMySQLdExporterRequest) returns (ChangeMySQLdExporterResponse) { option (google.api.http) = { @@ -1371,17 +1332,6 @@ service AgentsService { description: "Changes mysqld_exporter Agent." }; } - // AddMongoDBExporter adds mongodb_exporter Agent. - rpc AddMongoDBExporter(AddMongoDBExporterRequest) returns (AddMongoDBExporterResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddMongoDBExporter" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add MongoDB Exporter" - description: "Adds mongodb_exporter Agent." - }; - } // ChangeMongoDBExporter changes mongodb_exporter Agent. rpc ChangeMongoDBExporter(ChangeMongoDBExporterRequest) returns (ChangeMongoDBExporterResponse) { option (google.api.http) = { @@ -1393,17 +1343,6 @@ service AgentsService { description: "Changes mongodb_exporter Agent." }; } - // AddPostgresExporter adds postgres_exporter Agent. - rpc AddPostgresExporter(AddPostgresExporterRequest) returns (AddPostgresExporterResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddPostgresExporter" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add Postgres Exporter" - description: "Adds postgres_exporter Agent." - }; - } // ChangePostgresExporter changes postgres_exporter Agent. rpc ChangePostgresExporter(ChangePostgresExporterRequest) returns (ChangePostgresExporterResponse) { option (google.api.http) = { @@ -1415,17 +1354,6 @@ service AgentsService { description: "Changes postgres_exporter Agent." }; } - // AddProxySQLExporter adds proxysql_exporter Agent. - rpc AddProxySQLExporter(AddProxySQLExporterRequest) returns (AddProxySQLExporterResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddProxySQLExporter" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add ProxySQL Exporter" - description: "Adds proxysql_exporter Agent." - }; - } // ChangeProxySQLExporter changes proxysql_exporter Agent. rpc ChangeProxySQLExporter(ChangeProxySQLExporterRequest) returns (ChangeProxySQLExporterResponse) { option (google.api.http) = { @@ -1437,17 +1365,6 @@ service AgentsService { description: "Changes proxysql_exporter Agent." }; } - // AddQANMySQLPerfSchemaAgent adds QAN MySQL PerfSchema Agent. - rpc AddQANMySQLPerfSchemaAgent(AddQANMySQLPerfSchemaAgentRequest) returns (AddQANMySQLPerfSchemaAgentResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddQANMySQLPerfSchemaAgent" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add 'QAN MySQL PerfSchema' Agent" - description: "Adds 'Query Analytics MySQL PerfSchema' Agent." - }; - } // ChangeQANMySQLPerfSchemaAgent changes QAN MySQL PerfSchema Agent. rpc ChangeQANMySQLPerfSchemaAgent(ChangeQANMySQLPerfSchemaAgentRequest) returns (ChangeQANMySQLPerfSchemaAgentResponse) { option (google.api.http) = { @@ -1459,17 +1376,6 @@ service AgentsService { description: "Changes 'Query Analytics MySQL PerfSchema' Agent." }; } - // AddQANMySQLSlowlogAgent adds QAN MySQL Slowlog Agent. - rpc AddQANMySQLSlowlogAgent(AddQANMySQLSlowlogAgentRequest) returns (AddQANMySQLSlowlogAgentResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddQANMySQLSlowlogAgent" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add 'QAN MySQL Slowlog' Agent" - description: "Adds 'Query Analytics MySQL Slowlog' Agent." - }; - } // ChangeQANMySQLSlowlogAgent changes QAN MySQL Slowlog Agent. rpc ChangeQANMySQLSlowlogAgent(ChangeQANMySQLSlowlogAgentRequest) returns (ChangeQANMySQLSlowlogAgentResponse) { option (google.api.http) = { @@ -1481,17 +1387,6 @@ service AgentsService { description: "Changes 'Query Analytics MySQL Slowlog' Agent." }; } - // AddQANMongoDBProfilerAgent adds QAN MongoDB Profiler Agent. - rpc AddQANMongoDBProfilerAgent(AddQANMongoDBProfilerAgentRequest) returns (AddQANMongoDBProfilerAgentResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddQANMongoDBProfilerAgent" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add 'QAN MongoDB Profiler' Agent" - description: "Adds 'Query Analytics MongoDB Profiler' Agent." - }; - } // ChangeQANMongoDBProfilerAgent changes QAN MongoDB Profiler Agent. rpc ChangeQANMongoDBProfilerAgent(ChangeQANMongoDBProfilerAgentRequest) returns (ChangeQANMongoDBProfilerAgentResponse) { option (google.api.http) = { @@ -1503,17 +1398,6 @@ service AgentsService { description: "Changes 'Query Analytics MongoDB Profiler' Agent." }; } - // AddQANPostgreSQLPgStatementsAgent adds QAN PostgreSQL PgStat Statements Agent. - rpc AddQANPostgreSQLPgStatementsAgent(AddQANPostgreSQLPgStatementsAgentRequest) returns (AddQANPostgreSQLPgStatementsAgentResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add 'QAN PostgreSQL pg_stat_statements' Agent" - description: "Adds 'Query Analytics PostgreSQL pg_stat_statements' Agent." - }; - } // ChangeQANPostgreSQLPgStatementsAgent changes QAN PostgreSQL PgStat Statements Agent. rpc ChangeQANPostgreSQLPgStatementsAgent(ChangeQANPostgreSQLPgStatementsAgentRequest) returns (ChangeQANPostgreSQLPgStatementsAgentResponse) { option (google.api.http) = { @@ -1525,17 +1409,6 @@ service AgentsService { description: "Changes 'Query Analytics PostgreSQL pg_stat_statements' Agent." }; } - // AddQANPostgreSQLPgStatMonitorAgent adds QAN PostgreSQL PgStat Monitor Agent. - rpc AddQANPostgreSQLPgStatMonitorAgent(AddQANPostgreSQLPgStatMonitorAgentRequest) returns (AddQANPostgreSQLPgStatMonitorAgentResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add 'QAN PostgreSQL pg_stat_monitor' Agent" - description: "Adds 'Query Analytics PostgreSQL pg_stat_monitor' Agent." - }; - } // ChangeQANPostgreSQLPgStatMonitorAgent changes QAN PostgreSQL PgStat Monitor Agent. rpc ChangeQANPostgreSQLPgStatMonitorAgent(ChangeQANPostgreSQLPgStatMonitorAgentRequest) returns (ChangeQANPostgreSQLPgStatMonitorAgentResponse) { option (google.api.http) = { @@ -1547,17 +1420,6 @@ service AgentsService { description: "Changes 'Query Analytics PostgreSQL pg_stat_monitor' Agent." }; } - // AddRDSExporter adds rds_exporter Agent. - rpc AddRDSExporter(AddRDSExporterRequest) returns (AddRDSExporterResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddRDSExporter" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add RDS Exporter" - description: "Adds rds_exporter Agent." - }; - } // ChangeRDSExporter changes rds_exporter Agent. rpc ChangeRDSExporter(ChangeRDSExporterRequest) returns (ChangeRDSExporterResponse) { option (google.api.http) = { @@ -1569,17 +1431,6 @@ service AgentsService { description: "Changes rds_exporter Agent." }; } - // AddExternalExporter adds external_exporter Agent. - rpc AddExternalExporter(AddExternalExporterRequest) returns (AddExternalExporterResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddExternalExporter" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add External Exporter" - description: "Adds external_exporter Agent." - }; - } // ChangeExternalExporter changes external_exporter Agent. rpc ChangeExternalExporter(ChangeExternalExporterRequest) returns (ChangeExternalExporterResponse) { option (google.api.http) = { @@ -1591,17 +1442,6 @@ service AgentsService { description: "Changes external_exporter Agent." }; } - // AddAzureDatabaseExporter adds azure_database_exporter Agent. - rpc AddAzureDatabaseExporter(AddAzureDatabaseExporterRequest) returns (AddAzureDatabaseExporterResponse) { - option (google.api.http) = { - post: "/v1/inventory/Agents/AddAzureDatabaseExporter" - body: "*" - }; - option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Add Azure Database Exporter" - description: "Adds azure_database_exporter Agent." - }; - } // ChangeAzureDatabaseExporter changes azure_database_exporter Agent. rpc ChangeAzureDatabaseExporter(ChangeAzureDatabaseExporterRequest) returns (ChangeAzureDatabaseExporterResponse) { option (google.api.http) = { @@ -1613,15 +1453,15 @@ service AgentsService { description: "Changes azure_database_exporter Agent." }; } - // RemoveAgent removes Agent. + // RemoveAgent removes an Agent. rpc RemoveAgent(RemoveAgentRequest) returns (RemoveAgentResponse) { option (google.api.http) = { post: "/v1/inventory/Agents/Remove" body: "*" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - summary: "Remove Agent" - description: "Removes Agent." + summary: "Remove an Agent from Inventory" + description: "Removes an Agent from Inventory." }; } } diff --git a/api/inventory/v1/agents_grpc.pb.go b/api/inventory/v1/agents_grpc.pb.go index ddb039b925..2745de9cde 100644 --- a/api/inventory/v1/agents_grpc.pb.go +++ b/api/inventory/v1/agents_grpc.pb.go @@ -23,32 +23,19 @@ const ( AgentsService_ListAgents_FullMethodName = "/inventory.v1.AgentsService/ListAgents" AgentsService_GetAgent_FullMethodName = "/inventory.v1.AgentsService/GetAgent" AgentsService_GetAgentLogs_FullMethodName = "/inventory.v1.AgentsService/GetAgentLogs" - AgentsService_AddPMMAgent_FullMethodName = "/inventory.v1.AgentsService/AddPMMAgent" - AgentsService_AddNodeExporter_FullMethodName = "/inventory.v1.AgentsService/AddNodeExporter" + AgentsService_AddAgent_FullMethodName = "/inventory.v1.AgentsService/AddAgent" AgentsService_ChangeNodeExporter_FullMethodName = "/inventory.v1.AgentsService/ChangeNodeExporter" - AgentsService_AddMySQLdExporter_FullMethodName = "/inventory.v1.AgentsService/AddMySQLdExporter" AgentsService_ChangeMySQLdExporter_FullMethodName = "/inventory.v1.AgentsService/ChangeMySQLdExporter" - AgentsService_AddMongoDBExporter_FullMethodName = "/inventory.v1.AgentsService/AddMongoDBExporter" AgentsService_ChangeMongoDBExporter_FullMethodName = "/inventory.v1.AgentsService/ChangeMongoDBExporter" - AgentsService_AddPostgresExporter_FullMethodName = "/inventory.v1.AgentsService/AddPostgresExporter" AgentsService_ChangePostgresExporter_FullMethodName = "/inventory.v1.AgentsService/ChangePostgresExporter" - AgentsService_AddProxySQLExporter_FullMethodName = "/inventory.v1.AgentsService/AddProxySQLExporter" AgentsService_ChangeProxySQLExporter_FullMethodName = "/inventory.v1.AgentsService/ChangeProxySQLExporter" - AgentsService_AddQANMySQLPerfSchemaAgent_FullMethodName = "/inventory.v1.AgentsService/AddQANMySQLPerfSchemaAgent" AgentsService_ChangeQANMySQLPerfSchemaAgent_FullMethodName = "/inventory.v1.AgentsService/ChangeQANMySQLPerfSchemaAgent" - AgentsService_AddQANMySQLSlowlogAgent_FullMethodName = "/inventory.v1.AgentsService/AddQANMySQLSlowlogAgent" AgentsService_ChangeQANMySQLSlowlogAgent_FullMethodName = "/inventory.v1.AgentsService/ChangeQANMySQLSlowlogAgent" - AgentsService_AddQANMongoDBProfilerAgent_FullMethodName = "/inventory.v1.AgentsService/AddQANMongoDBProfilerAgent" AgentsService_ChangeQANMongoDBProfilerAgent_FullMethodName = "/inventory.v1.AgentsService/ChangeQANMongoDBProfilerAgent" - AgentsService_AddQANPostgreSQLPgStatementsAgent_FullMethodName = "/inventory.v1.AgentsService/AddQANPostgreSQLPgStatementsAgent" AgentsService_ChangeQANPostgreSQLPgStatementsAgent_FullMethodName = "/inventory.v1.AgentsService/ChangeQANPostgreSQLPgStatementsAgent" - AgentsService_AddQANPostgreSQLPgStatMonitorAgent_FullMethodName = "/inventory.v1.AgentsService/AddQANPostgreSQLPgStatMonitorAgent" AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_FullMethodName = "/inventory.v1.AgentsService/ChangeQANPostgreSQLPgStatMonitorAgent" - AgentsService_AddRDSExporter_FullMethodName = "/inventory.v1.AgentsService/AddRDSExporter" AgentsService_ChangeRDSExporter_FullMethodName = "/inventory.v1.AgentsService/ChangeRDSExporter" - AgentsService_AddExternalExporter_FullMethodName = "/inventory.v1.AgentsService/AddExternalExporter" AgentsService_ChangeExternalExporter_FullMethodName = "/inventory.v1.AgentsService/ChangeExternalExporter" - AgentsService_AddAzureDatabaseExporter_FullMethodName = "/inventory.v1.AgentsService/AddAzureDatabaseExporter" AgentsService_ChangeAzureDatabaseExporter_FullMethodName = "/inventory.v1.AgentsService/ChangeAzureDatabaseExporter" AgentsService_RemoveAgent_FullMethodName = "/inventory.v1.AgentsService/RemoveAgent" ) @@ -63,61 +50,35 @@ type AgentsServiceClient interface { GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*GetAgentResponse, error) // GetAgentLogs returns Agent logs by ID. GetAgentLogs(ctx context.Context, in *GetAgentLogsRequest, opts ...grpc.CallOption) (*GetAgentLogsResponse, error) - // AddPMMAgent adds pmm-agent Agent. - AddPMMAgent(ctx context.Context, in *AddPMMAgentRequest, opts ...grpc.CallOption) (*AddPMMAgentResponse, error) - // AddNodeExporter adds node_exporter Agent. - AddNodeExporter(ctx context.Context, in *AddNodeExporterRequest, opts ...grpc.CallOption) (*AddNodeExporterResponse, error) + // AddAgent adds any type of Agent to Inventory. + AddAgent(ctx context.Context, in *AddAgentRequest, opts ...grpc.CallOption) (*AddAgentResponse, error) // ChangeNodeExporter changes node_exporter Agent. ChangeNodeExporter(ctx context.Context, in *ChangeNodeExporterRequest, opts ...grpc.CallOption) (*ChangeNodeExporterResponse, error) - // AddMySQLdExporter adds mysqld_exporter Agent. - AddMySQLdExporter(ctx context.Context, in *AddMySQLdExporterRequest, opts ...grpc.CallOption) (*AddMySQLdExporterResponse, error) // ChangeMySQLdExporter changes mysqld_exporter Agent. ChangeMySQLdExporter(ctx context.Context, in *ChangeMySQLdExporterRequest, opts ...grpc.CallOption) (*ChangeMySQLdExporterResponse, error) - // AddMongoDBExporter adds mongodb_exporter Agent. - AddMongoDBExporter(ctx context.Context, in *AddMongoDBExporterRequest, opts ...grpc.CallOption) (*AddMongoDBExporterResponse, error) // ChangeMongoDBExporter changes mongodb_exporter Agent. ChangeMongoDBExporter(ctx context.Context, in *ChangeMongoDBExporterRequest, opts ...grpc.CallOption) (*ChangeMongoDBExporterResponse, error) - // AddPostgresExporter adds postgres_exporter Agent. - AddPostgresExporter(ctx context.Context, in *AddPostgresExporterRequest, opts ...grpc.CallOption) (*AddPostgresExporterResponse, error) // ChangePostgresExporter changes postgres_exporter Agent. ChangePostgresExporter(ctx context.Context, in *ChangePostgresExporterRequest, opts ...grpc.CallOption) (*ChangePostgresExporterResponse, error) - // AddProxySQLExporter adds proxysql_exporter Agent. - AddProxySQLExporter(ctx context.Context, in *AddProxySQLExporterRequest, opts ...grpc.CallOption) (*AddProxySQLExporterResponse, error) // ChangeProxySQLExporter changes proxysql_exporter Agent. ChangeProxySQLExporter(ctx context.Context, in *ChangeProxySQLExporterRequest, opts ...grpc.CallOption) (*ChangeProxySQLExporterResponse, error) - // AddQANMySQLPerfSchemaAgent adds QAN MySQL PerfSchema Agent. - AddQANMySQLPerfSchemaAgent(ctx context.Context, in *AddQANMySQLPerfSchemaAgentRequest, opts ...grpc.CallOption) (*AddQANMySQLPerfSchemaAgentResponse, error) // ChangeQANMySQLPerfSchemaAgent changes QAN MySQL PerfSchema Agent. ChangeQANMySQLPerfSchemaAgent(ctx context.Context, in *ChangeQANMySQLPerfSchemaAgentRequest, opts ...grpc.CallOption) (*ChangeQANMySQLPerfSchemaAgentResponse, error) - // AddQANMySQLSlowlogAgent adds QAN MySQL Slowlog Agent. - AddQANMySQLSlowlogAgent(ctx context.Context, in *AddQANMySQLSlowlogAgentRequest, opts ...grpc.CallOption) (*AddQANMySQLSlowlogAgentResponse, error) // ChangeQANMySQLSlowlogAgent changes QAN MySQL Slowlog Agent. ChangeQANMySQLSlowlogAgent(ctx context.Context, in *ChangeQANMySQLSlowlogAgentRequest, opts ...grpc.CallOption) (*ChangeQANMySQLSlowlogAgentResponse, error) - // AddQANMongoDBProfilerAgent adds QAN MongoDB Profiler Agent. - AddQANMongoDBProfilerAgent(ctx context.Context, in *AddQANMongoDBProfilerAgentRequest, opts ...grpc.CallOption) (*AddQANMongoDBProfilerAgentResponse, error) // ChangeQANMongoDBProfilerAgent changes QAN MongoDB Profiler Agent. ChangeQANMongoDBProfilerAgent(ctx context.Context, in *ChangeQANMongoDBProfilerAgentRequest, opts ...grpc.CallOption) (*ChangeQANMongoDBProfilerAgentResponse, error) - // AddQANPostgreSQLPgStatementsAgent adds QAN PostgreSQL PgStat Statements Agent. - AddQANPostgreSQLPgStatementsAgent(ctx context.Context, in *AddQANPostgreSQLPgStatementsAgentRequest, opts ...grpc.CallOption) (*AddQANPostgreSQLPgStatementsAgentResponse, error) // ChangeQANPostgreSQLPgStatementsAgent changes QAN PostgreSQL PgStat Statements Agent. ChangeQANPostgreSQLPgStatementsAgent(ctx context.Context, in *ChangeQANPostgreSQLPgStatementsAgentRequest, opts ...grpc.CallOption) (*ChangeQANPostgreSQLPgStatementsAgentResponse, error) - // AddQANPostgreSQLPgStatMonitorAgent adds QAN PostgreSQL PgStat Monitor Agent. - AddQANPostgreSQLPgStatMonitorAgent(ctx context.Context, in *AddQANPostgreSQLPgStatMonitorAgentRequest, opts ...grpc.CallOption) (*AddQANPostgreSQLPgStatMonitorAgentResponse, error) // ChangeQANPostgreSQLPgStatMonitorAgent changes QAN PostgreSQL PgStat Monitor Agent. ChangeQANPostgreSQLPgStatMonitorAgent(ctx context.Context, in *ChangeQANPostgreSQLPgStatMonitorAgentRequest, opts ...grpc.CallOption) (*ChangeQANPostgreSQLPgStatMonitorAgentResponse, error) - // AddRDSExporter adds rds_exporter Agent. - AddRDSExporter(ctx context.Context, in *AddRDSExporterRequest, opts ...grpc.CallOption) (*AddRDSExporterResponse, error) // ChangeRDSExporter changes rds_exporter Agent. ChangeRDSExporter(ctx context.Context, in *ChangeRDSExporterRequest, opts ...grpc.CallOption) (*ChangeRDSExporterResponse, error) - // AddExternalExporter adds external_exporter Agent. - AddExternalExporter(ctx context.Context, in *AddExternalExporterRequest, opts ...grpc.CallOption) (*AddExternalExporterResponse, error) // ChangeExternalExporter changes external_exporter Agent. ChangeExternalExporter(ctx context.Context, in *ChangeExternalExporterRequest, opts ...grpc.CallOption) (*ChangeExternalExporterResponse, error) - // AddAzureDatabaseExporter adds azure_database_exporter Agent. - AddAzureDatabaseExporter(ctx context.Context, in *AddAzureDatabaseExporterRequest, opts ...grpc.CallOption) (*AddAzureDatabaseExporterResponse, error) // ChangeAzureDatabaseExporter changes azure_database_exporter Agent. ChangeAzureDatabaseExporter(ctx context.Context, in *ChangeAzureDatabaseExporterRequest, opts ...grpc.CallOption) (*ChangeAzureDatabaseExporterResponse, error) - // RemoveAgent removes Agent. + // RemoveAgent removes an Agent. RemoveAgent(ctx context.Context, in *RemoveAgentRequest, opts ...grpc.CallOption) (*RemoveAgentResponse, error) } @@ -156,18 +117,9 @@ func (c *agentsServiceClient) GetAgentLogs(ctx context.Context, in *GetAgentLogs return out, nil } -func (c *agentsServiceClient) AddPMMAgent(ctx context.Context, in *AddPMMAgentRequest, opts ...grpc.CallOption) (*AddPMMAgentResponse, error) { - out := new(AddPMMAgentResponse) - err := c.cc.Invoke(ctx, AgentsService_AddPMMAgent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentsServiceClient) AddNodeExporter(ctx context.Context, in *AddNodeExporterRequest, opts ...grpc.CallOption) (*AddNodeExporterResponse, error) { - out := new(AddNodeExporterResponse) - err := c.cc.Invoke(ctx, AgentsService_AddNodeExporter_FullMethodName, in, out, opts...) +func (c *agentsServiceClient) AddAgent(ctx context.Context, in *AddAgentRequest, opts ...grpc.CallOption) (*AddAgentResponse, error) { + out := new(AddAgentResponse) + err := c.cc.Invoke(ctx, AgentsService_AddAgent_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -183,15 +135,6 @@ func (c *agentsServiceClient) ChangeNodeExporter(ctx context.Context, in *Change return out, nil } -func (c *agentsServiceClient) AddMySQLdExporter(ctx context.Context, in *AddMySQLdExporterRequest, opts ...grpc.CallOption) (*AddMySQLdExporterResponse, error) { - out := new(AddMySQLdExporterResponse) - err := c.cc.Invoke(ctx, AgentsService_AddMySQLdExporter_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeMySQLdExporter(ctx context.Context, in *ChangeMySQLdExporterRequest, opts ...grpc.CallOption) (*ChangeMySQLdExporterResponse, error) { out := new(ChangeMySQLdExporterResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeMySQLdExporter_FullMethodName, in, out, opts...) @@ -201,15 +144,6 @@ func (c *agentsServiceClient) ChangeMySQLdExporter(ctx context.Context, in *Chan return out, nil } -func (c *agentsServiceClient) AddMongoDBExporter(ctx context.Context, in *AddMongoDBExporterRequest, opts ...grpc.CallOption) (*AddMongoDBExporterResponse, error) { - out := new(AddMongoDBExporterResponse) - err := c.cc.Invoke(ctx, AgentsService_AddMongoDBExporter_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeMongoDBExporter(ctx context.Context, in *ChangeMongoDBExporterRequest, opts ...grpc.CallOption) (*ChangeMongoDBExporterResponse, error) { out := new(ChangeMongoDBExporterResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeMongoDBExporter_FullMethodName, in, out, opts...) @@ -219,15 +153,6 @@ func (c *agentsServiceClient) ChangeMongoDBExporter(ctx context.Context, in *Cha return out, nil } -func (c *agentsServiceClient) AddPostgresExporter(ctx context.Context, in *AddPostgresExporterRequest, opts ...grpc.CallOption) (*AddPostgresExporterResponse, error) { - out := new(AddPostgresExporterResponse) - err := c.cc.Invoke(ctx, AgentsService_AddPostgresExporter_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangePostgresExporter(ctx context.Context, in *ChangePostgresExporterRequest, opts ...grpc.CallOption) (*ChangePostgresExporterResponse, error) { out := new(ChangePostgresExporterResponse) err := c.cc.Invoke(ctx, AgentsService_ChangePostgresExporter_FullMethodName, in, out, opts...) @@ -237,15 +162,6 @@ func (c *agentsServiceClient) ChangePostgresExporter(ctx context.Context, in *Ch return out, nil } -func (c *agentsServiceClient) AddProxySQLExporter(ctx context.Context, in *AddProxySQLExporterRequest, opts ...grpc.CallOption) (*AddProxySQLExporterResponse, error) { - out := new(AddProxySQLExporterResponse) - err := c.cc.Invoke(ctx, AgentsService_AddProxySQLExporter_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeProxySQLExporter(ctx context.Context, in *ChangeProxySQLExporterRequest, opts ...grpc.CallOption) (*ChangeProxySQLExporterResponse, error) { out := new(ChangeProxySQLExporterResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeProxySQLExporter_FullMethodName, in, out, opts...) @@ -255,15 +171,6 @@ func (c *agentsServiceClient) ChangeProxySQLExporter(ctx context.Context, in *Ch return out, nil } -func (c *agentsServiceClient) AddQANMySQLPerfSchemaAgent(ctx context.Context, in *AddQANMySQLPerfSchemaAgentRequest, opts ...grpc.CallOption) (*AddQANMySQLPerfSchemaAgentResponse, error) { - out := new(AddQANMySQLPerfSchemaAgentResponse) - err := c.cc.Invoke(ctx, AgentsService_AddQANMySQLPerfSchemaAgent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeQANMySQLPerfSchemaAgent(ctx context.Context, in *ChangeQANMySQLPerfSchemaAgentRequest, opts ...grpc.CallOption) (*ChangeQANMySQLPerfSchemaAgentResponse, error) { out := new(ChangeQANMySQLPerfSchemaAgentResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeQANMySQLPerfSchemaAgent_FullMethodName, in, out, opts...) @@ -273,15 +180,6 @@ func (c *agentsServiceClient) ChangeQANMySQLPerfSchemaAgent(ctx context.Context, return out, nil } -func (c *agentsServiceClient) AddQANMySQLSlowlogAgent(ctx context.Context, in *AddQANMySQLSlowlogAgentRequest, opts ...grpc.CallOption) (*AddQANMySQLSlowlogAgentResponse, error) { - out := new(AddQANMySQLSlowlogAgentResponse) - err := c.cc.Invoke(ctx, AgentsService_AddQANMySQLSlowlogAgent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeQANMySQLSlowlogAgent(ctx context.Context, in *ChangeQANMySQLSlowlogAgentRequest, opts ...grpc.CallOption) (*ChangeQANMySQLSlowlogAgentResponse, error) { out := new(ChangeQANMySQLSlowlogAgentResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeQANMySQLSlowlogAgent_FullMethodName, in, out, opts...) @@ -291,15 +189,6 @@ func (c *agentsServiceClient) ChangeQANMySQLSlowlogAgent(ctx context.Context, in return out, nil } -func (c *agentsServiceClient) AddQANMongoDBProfilerAgent(ctx context.Context, in *AddQANMongoDBProfilerAgentRequest, opts ...grpc.CallOption) (*AddQANMongoDBProfilerAgentResponse, error) { - out := new(AddQANMongoDBProfilerAgentResponse) - err := c.cc.Invoke(ctx, AgentsService_AddQANMongoDBProfilerAgent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeQANMongoDBProfilerAgent(ctx context.Context, in *ChangeQANMongoDBProfilerAgentRequest, opts ...grpc.CallOption) (*ChangeQANMongoDBProfilerAgentResponse, error) { out := new(ChangeQANMongoDBProfilerAgentResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeQANMongoDBProfilerAgent_FullMethodName, in, out, opts...) @@ -309,15 +198,6 @@ func (c *agentsServiceClient) ChangeQANMongoDBProfilerAgent(ctx context.Context, return out, nil } -func (c *agentsServiceClient) AddQANPostgreSQLPgStatementsAgent(ctx context.Context, in *AddQANPostgreSQLPgStatementsAgentRequest, opts ...grpc.CallOption) (*AddQANPostgreSQLPgStatementsAgentResponse, error) { - out := new(AddQANPostgreSQLPgStatementsAgentResponse) - err := c.cc.Invoke(ctx, AgentsService_AddQANPostgreSQLPgStatementsAgent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeQANPostgreSQLPgStatementsAgent(ctx context.Context, in *ChangeQANPostgreSQLPgStatementsAgentRequest, opts ...grpc.CallOption) (*ChangeQANPostgreSQLPgStatementsAgentResponse, error) { out := new(ChangeQANPostgreSQLPgStatementsAgentResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeQANPostgreSQLPgStatementsAgent_FullMethodName, in, out, opts...) @@ -327,15 +207,6 @@ func (c *agentsServiceClient) ChangeQANPostgreSQLPgStatementsAgent(ctx context.C return out, nil } -func (c *agentsServiceClient) AddQANPostgreSQLPgStatMonitorAgent(ctx context.Context, in *AddQANPostgreSQLPgStatMonitorAgentRequest, opts ...grpc.CallOption) (*AddQANPostgreSQLPgStatMonitorAgentResponse, error) { - out := new(AddQANPostgreSQLPgStatMonitorAgentResponse) - err := c.cc.Invoke(ctx, AgentsService_AddQANPostgreSQLPgStatMonitorAgent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeQANPostgreSQLPgStatMonitorAgent(ctx context.Context, in *ChangeQANPostgreSQLPgStatMonitorAgentRequest, opts ...grpc.CallOption) (*ChangeQANPostgreSQLPgStatMonitorAgentResponse, error) { out := new(ChangeQANPostgreSQLPgStatMonitorAgentResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_FullMethodName, in, out, opts...) @@ -345,15 +216,6 @@ func (c *agentsServiceClient) ChangeQANPostgreSQLPgStatMonitorAgent(ctx context. return out, nil } -func (c *agentsServiceClient) AddRDSExporter(ctx context.Context, in *AddRDSExporterRequest, opts ...grpc.CallOption) (*AddRDSExporterResponse, error) { - out := new(AddRDSExporterResponse) - err := c.cc.Invoke(ctx, AgentsService_AddRDSExporter_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeRDSExporter(ctx context.Context, in *ChangeRDSExporterRequest, opts ...grpc.CallOption) (*ChangeRDSExporterResponse, error) { out := new(ChangeRDSExporterResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeRDSExporter_FullMethodName, in, out, opts...) @@ -363,15 +225,6 @@ func (c *agentsServiceClient) ChangeRDSExporter(ctx context.Context, in *ChangeR return out, nil } -func (c *agentsServiceClient) AddExternalExporter(ctx context.Context, in *AddExternalExporterRequest, opts ...grpc.CallOption) (*AddExternalExporterResponse, error) { - out := new(AddExternalExporterResponse) - err := c.cc.Invoke(ctx, AgentsService_AddExternalExporter_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeExternalExporter(ctx context.Context, in *ChangeExternalExporterRequest, opts ...grpc.CallOption) (*ChangeExternalExporterResponse, error) { out := new(ChangeExternalExporterResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeExternalExporter_FullMethodName, in, out, opts...) @@ -381,15 +234,6 @@ func (c *agentsServiceClient) ChangeExternalExporter(ctx context.Context, in *Ch return out, nil } -func (c *agentsServiceClient) AddAzureDatabaseExporter(ctx context.Context, in *AddAzureDatabaseExporterRequest, opts ...grpc.CallOption) (*AddAzureDatabaseExporterResponse, error) { - out := new(AddAzureDatabaseExporterResponse) - err := c.cc.Invoke(ctx, AgentsService_AddAzureDatabaseExporter_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *agentsServiceClient) ChangeAzureDatabaseExporter(ctx context.Context, in *ChangeAzureDatabaseExporterRequest, opts ...grpc.CallOption) (*ChangeAzureDatabaseExporterResponse, error) { out := new(ChangeAzureDatabaseExporterResponse) err := c.cc.Invoke(ctx, AgentsService_ChangeAzureDatabaseExporter_FullMethodName, in, out, opts...) @@ -418,61 +262,35 @@ type AgentsServiceServer interface { GetAgent(context.Context, *GetAgentRequest) (*GetAgentResponse, error) // GetAgentLogs returns Agent logs by ID. GetAgentLogs(context.Context, *GetAgentLogsRequest) (*GetAgentLogsResponse, error) - // AddPMMAgent adds pmm-agent Agent. - AddPMMAgent(context.Context, *AddPMMAgentRequest) (*AddPMMAgentResponse, error) - // AddNodeExporter adds node_exporter Agent. - AddNodeExporter(context.Context, *AddNodeExporterRequest) (*AddNodeExporterResponse, error) + // AddAgent adds any type of Agent to Inventory. + AddAgent(context.Context, *AddAgentRequest) (*AddAgentResponse, error) // ChangeNodeExporter changes node_exporter Agent. ChangeNodeExporter(context.Context, *ChangeNodeExporterRequest) (*ChangeNodeExporterResponse, error) - // AddMySQLdExporter adds mysqld_exporter Agent. - AddMySQLdExporter(context.Context, *AddMySQLdExporterRequest) (*AddMySQLdExporterResponse, error) // ChangeMySQLdExporter changes mysqld_exporter Agent. ChangeMySQLdExporter(context.Context, *ChangeMySQLdExporterRequest) (*ChangeMySQLdExporterResponse, error) - // AddMongoDBExporter adds mongodb_exporter Agent. - AddMongoDBExporter(context.Context, *AddMongoDBExporterRequest) (*AddMongoDBExporterResponse, error) // ChangeMongoDBExporter changes mongodb_exporter Agent. ChangeMongoDBExporter(context.Context, *ChangeMongoDBExporterRequest) (*ChangeMongoDBExporterResponse, error) - // AddPostgresExporter adds postgres_exporter Agent. - AddPostgresExporter(context.Context, *AddPostgresExporterRequest) (*AddPostgresExporterResponse, error) // ChangePostgresExporter changes postgres_exporter Agent. ChangePostgresExporter(context.Context, *ChangePostgresExporterRequest) (*ChangePostgresExporterResponse, error) - // AddProxySQLExporter adds proxysql_exporter Agent. - AddProxySQLExporter(context.Context, *AddProxySQLExporterRequest) (*AddProxySQLExporterResponse, error) // ChangeProxySQLExporter changes proxysql_exporter Agent. ChangeProxySQLExporter(context.Context, *ChangeProxySQLExporterRequest) (*ChangeProxySQLExporterResponse, error) - // AddQANMySQLPerfSchemaAgent adds QAN MySQL PerfSchema Agent. - AddQANMySQLPerfSchemaAgent(context.Context, *AddQANMySQLPerfSchemaAgentRequest) (*AddQANMySQLPerfSchemaAgentResponse, error) // ChangeQANMySQLPerfSchemaAgent changes QAN MySQL PerfSchema Agent. ChangeQANMySQLPerfSchemaAgent(context.Context, *ChangeQANMySQLPerfSchemaAgentRequest) (*ChangeQANMySQLPerfSchemaAgentResponse, error) - // AddQANMySQLSlowlogAgent adds QAN MySQL Slowlog Agent. - AddQANMySQLSlowlogAgent(context.Context, *AddQANMySQLSlowlogAgentRequest) (*AddQANMySQLSlowlogAgentResponse, error) // ChangeQANMySQLSlowlogAgent changes QAN MySQL Slowlog Agent. ChangeQANMySQLSlowlogAgent(context.Context, *ChangeQANMySQLSlowlogAgentRequest) (*ChangeQANMySQLSlowlogAgentResponse, error) - // AddQANMongoDBProfilerAgent adds QAN MongoDB Profiler Agent. - AddQANMongoDBProfilerAgent(context.Context, *AddQANMongoDBProfilerAgentRequest) (*AddQANMongoDBProfilerAgentResponse, error) // ChangeQANMongoDBProfilerAgent changes QAN MongoDB Profiler Agent. ChangeQANMongoDBProfilerAgent(context.Context, *ChangeQANMongoDBProfilerAgentRequest) (*ChangeQANMongoDBProfilerAgentResponse, error) - // AddQANPostgreSQLPgStatementsAgent adds QAN PostgreSQL PgStat Statements Agent. - AddQANPostgreSQLPgStatementsAgent(context.Context, *AddQANPostgreSQLPgStatementsAgentRequest) (*AddQANPostgreSQLPgStatementsAgentResponse, error) // ChangeQANPostgreSQLPgStatementsAgent changes QAN PostgreSQL PgStat Statements Agent. ChangeQANPostgreSQLPgStatementsAgent(context.Context, *ChangeQANPostgreSQLPgStatementsAgentRequest) (*ChangeQANPostgreSQLPgStatementsAgentResponse, error) - // AddQANPostgreSQLPgStatMonitorAgent adds QAN PostgreSQL PgStat Monitor Agent. - AddQANPostgreSQLPgStatMonitorAgent(context.Context, *AddQANPostgreSQLPgStatMonitorAgentRequest) (*AddQANPostgreSQLPgStatMonitorAgentResponse, error) // ChangeQANPostgreSQLPgStatMonitorAgent changes QAN PostgreSQL PgStat Monitor Agent. ChangeQANPostgreSQLPgStatMonitorAgent(context.Context, *ChangeQANPostgreSQLPgStatMonitorAgentRequest) (*ChangeQANPostgreSQLPgStatMonitorAgentResponse, error) - // AddRDSExporter adds rds_exporter Agent. - AddRDSExporter(context.Context, *AddRDSExporterRequest) (*AddRDSExporterResponse, error) // ChangeRDSExporter changes rds_exporter Agent. ChangeRDSExporter(context.Context, *ChangeRDSExporterRequest) (*ChangeRDSExporterResponse, error) - // AddExternalExporter adds external_exporter Agent. - AddExternalExporter(context.Context, *AddExternalExporterRequest) (*AddExternalExporterResponse, error) // ChangeExternalExporter changes external_exporter Agent. ChangeExternalExporter(context.Context, *ChangeExternalExporterRequest) (*ChangeExternalExporterResponse, error) - // AddAzureDatabaseExporter adds azure_database_exporter Agent. - AddAzureDatabaseExporter(context.Context, *AddAzureDatabaseExporterRequest) (*AddAzureDatabaseExporterResponse, error) // ChangeAzureDatabaseExporter changes azure_database_exporter Agent. ChangeAzureDatabaseExporter(context.Context, *ChangeAzureDatabaseExporterRequest) (*ChangeAzureDatabaseExporterResponse, error) - // RemoveAgent removes Agent. + // RemoveAgent removes an Agent. RemoveAgent(context.Context, *RemoveAgentRequest) (*RemoveAgentResponse, error) mustEmbedUnimplementedAgentsServiceServer() } @@ -492,110 +310,58 @@ func (UnimplementedAgentsServiceServer) GetAgentLogs(context.Context, *GetAgentL return nil, status.Errorf(codes.Unimplemented, "method GetAgentLogs not implemented") } -func (UnimplementedAgentsServiceServer) AddPMMAgent(context.Context, *AddPMMAgentRequest) (*AddPMMAgentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddPMMAgent not implemented") -} - -func (UnimplementedAgentsServiceServer) AddNodeExporter(context.Context, *AddNodeExporterRequest) (*AddNodeExporterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddNodeExporter not implemented") +func (UnimplementedAgentsServiceServer) AddAgent(context.Context, *AddAgentRequest) (*AddAgentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddAgent not implemented") } func (UnimplementedAgentsServiceServer) ChangeNodeExporter(context.Context, *ChangeNodeExporterRequest) (*ChangeNodeExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeNodeExporter not implemented") } -func (UnimplementedAgentsServiceServer) AddMySQLdExporter(context.Context, *AddMySQLdExporterRequest) (*AddMySQLdExporterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddMySQLdExporter not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeMySQLdExporter(context.Context, *ChangeMySQLdExporterRequest) (*ChangeMySQLdExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeMySQLdExporter not implemented") } -func (UnimplementedAgentsServiceServer) AddMongoDBExporter(context.Context, *AddMongoDBExporterRequest) (*AddMongoDBExporterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddMongoDBExporter not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeMongoDBExporter(context.Context, *ChangeMongoDBExporterRequest) (*ChangeMongoDBExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeMongoDBExporter not implemented") } -func (UnimplementedAgentsServiceServer) AddPostgresExporter(context.Context, *AddPostgresExporterRequest) (*AddPostgresExporterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddPostgresExporter not implemented") -} - func (UnimplementedAgentsServiceServer) ChangePostgresExporter(context.Context, *ChangePostgresExporterRequest) (*ChangePostgresExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangePostgresExporter not implemented") } -func (UnimplementedAgentsServiceServer) AddProxySQLExporter(context.Context, *AddProxySQLExporterRequest) (*AddProxySQLExporterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddProxySQLExporter not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeProxySQLExporter(context.Context, *ChangeProxySQLExporterRequest) (*ChangeProxySQLExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeProxySQLExporter not implemented") } -func (UnimplementedAgentsServiceServer) AddQANMySQLPerfSchemaAgent(context.Context, *AddQANMySQLPerfSchemaAgentRequest) (*AddQANMySQLPerfSchemaAgentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddQANMySQLPerfSchemaAgent not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeQANMySQLPerfSchemaAgent(context.Context, *ChangeQANMySQLPerfSchemaAgentRequest) (*ChangeQANMySQLPerfSchemaAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANMySQLPerfSchemaAgent not implemented") } -func (UnimplementedAgentsServiceServer) AddQANMySQLSlowlogAgent(context.Context, *AddQANMySQLSlowlogAgentRequest) (*AddQANMySQLSlowlogAgentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddQANMySQLSlowlogAgent not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeQANMySQLSlowlogAgent(context.Context, *ChangeQANMySQLSlowlogAgentRequest) (*ChangeQANMySQLSlowlogAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANMySQLSlowlogAgent not implemented") } -func (UnimplementedAgentsServiceServer) AddQANMongoDBProfilerAgent(context.Context, *AddQANMongoDBProfilerAgentRequest) (*AddQANMongoDBProfilerAgentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddQANMongoDBProfilerAgent not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeQANMongoDBProfilerAgent(context.Context, *ChangeQANMongoDBProfilerAgentRequest) (*ChangeQANMongoDBProfilerAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANMongoDBProfilerAgent not implemented") } -func (UnimplementedAgentsServiceServer) AddQANPostgreSQLPgStatementsAgent(context.Context, *AddQANPostgreSQLPgStatementsAgentRequest) (*AddQANPostgreSQLPgStatementsAgentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddQANPostgreSQLPgStatementsAgent not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeQANPostgreSQLPgStatementsAgent(context.Context, *ChangeQANPostgreSQLPgStatementsAgentRequest) (*ChangeQANPostgreSQLPgStatementsAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANPostgreSQLPgStatementsAgent not implemented") } -func (UnimplementedAgentsServiceServer) AddQANPostgreSQLPgStatMonitorAgent(context.Context, *AddQANPostgreSQLPgStatMonitorAgentRequest) (*AddQANPostgreSQLPgStatMonitorAgentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddQANPostgreSQLPgStatMonitorAgent not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeQANPostgreSQLPgStatMonitorAgent(context.Context, *ChangeQANPostgreSQLPgStatMonitorAgentRequest) (*ChangeQANPostgreSQLPgStatMonitorAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANPostgreSQLPgStatMonitorAgent not implemented") } -func (UnimplementedAgentsServiceServer) AddRDSExporter(context.Context, *AddRDSExporterRequest) (*AddRDSExporterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddRDSExporter not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeRDSExporter(context.Context, *ChangeRDSExporterRequest) (*ChangeRDSExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeRDSExporter not implemented") } -func (UnimplementedAgentsServiceServer) AddExternalExporter(context.Context, *AddExternalExporterRequest) (*AddExternalExporterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddExternalExporter not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeExternalExporter(context.Context, *ChangeExternalExporterRequest) (*ChangeExternalExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeExternalExporter not implemented") } -func (UnimplementedAgentsServiceServer) AddAzureDatabaseExporter(context.Context, *AddAzureDatabaseExporterRequest) (*AddAzureDatabaseExporterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddAzureDatabaseExporter not implemented") -} - func (UnimplementedAgentsServiceServer) ChangeAzureDatabaseExporter(context.Context, *ChangeAzureDatabaseExporterRequest) (*ChangeAzureDatabaseExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeAzureDatabaseExporter not implemented") } @@ -670,38 +436,20 @@ func _AgentsService_GetAgentLogs_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _AgentsService_AddPMMAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddPMMAgentRequest) +func _AgentsService_AddAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddAgentRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AgentsServiceServer).AddPMMAgent(ctx, in) + return srv.(AgentsServiceServer).AddAgent(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AgentsService_AddPMMAgent_FullMethodName, + FullMethod: AgentsService_AddAgent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddPMMAgent(ctx, req.(*AddPMMAgentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentsService_AddNodeExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddNodeExporterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddNodeExporter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddNodeExporter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddNodeExporter(ctx, req.(*AddNodeExporterRequest)) + return srv.(AgentsServiceServer).AddAgent(ctx, req.(*AddAgentRequest)) } return interceptor(ctx, in, info, handler) } @@ -724,24 +472,6 @@ func _AgentsService_ChangeNodeExporter_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } -func _AgentsService_AddMySQLdExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddMySQLdExporterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddMySQLdExporter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddMySQLdExporter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddMySQLdExporter(ctx, req.(*AddMySQLdExporterRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeMySQLdExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeMySQLdExporterRequest) if err := dec(in); err != nil { @@ -760,24 +490,6 @@ func _AgentsService_ChangeMySQLdExporter_Handler(srv interface{}, ctx context.Co return interceptor(ctx, in, info, handler) } -func _AgentsService_AddMongoDBExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddMongoDBExporterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddMongoDBExporter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddMongoDBExporter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddMongoDBExporter(ctx, req.(*AddMongoDBExporterRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeMongoDBExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeMongoDBExporterRequest) if err := dec(in); err != nil { @@ -796,24 +508,6 @@ func _AgentsService_ChangeMongoDBExporter_Handler(srv interface{}, ctx context.C return interceptor(ctx, in, info, handler) } -func _AgentsService_AddPostgresExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddPostgresExporterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddPostgresExporter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddPostgresExporter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddPostgresExporter(ctx, req.(*AddPostgresExporterRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangePostgresExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangePostgresExporterRequest) if err := dec(in); err != nil { @@ -832,24 +526,6 @@ func _AgentsService_ChangePostgresExporter_Handler(srv interface{}, ctx context. return interceptor(ctx, in, info, handler) } -func _AgentsService_AddProxySQLExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddProxySQLExporterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddProxySQLExporter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddProxySQLExporter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddProxySQLExporter(ctx, req.(*AddProxySQLExporterRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeProxySQLExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeProxySQLExporterRequest) if err := dec(in); err != nil { @@ -868,24 +544,6 @@ func _AgentsService_ChangeProxySQLExporter_Handler(srv interface{}, ctx context. return interceptor(ctx, in, info, handler) } -func _AgentsService_AddQANMySQLPerfSchemaAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddQANMySQLPerfSchemaAgentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddQANMySQLPerfSchemaAgent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddQANMySQLPerfSchemaAgent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddQANMySQLPerfSchemaAgent(ctx, req.(*AddQANMySQLPerfSchemaAgentRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeQANMySQLPerfSchemaAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeQANMySQLPerfSchemaAgentRequest) if err := dec(in); err != nil { @@ -904,24 +562,6 @@ func _AgentsService_ChangeQANMySQLPerfSchemaAgent_Handler(srv interface{}, ctx c return interceptor(ctx, in, info, handler) } -func _AgentsService_AddQANMySQLSlowlogAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddQANMySQLSlowlogAgentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddQANMySQLSlowlogAgent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddQANMySQLSlowlogAgent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddQANMySQLSlowlogAgent(ctx, req.(*AddQANMySQLSlowlogAgentRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeQANMySQLSlowlogAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeQANMySQLSlowlogAgentRequest) if err := dec(in); err != nil { @@ -940,24 +580,6 @@ func _AgentsService_ChangeQANMySQLSlowlogAgent_Handler(srv interface{}, ctx cont return interceptor(ctx, in, info, handler) } -func _AgentsService_AddQANMongoDBProfilerAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddQANMongoDBProfilerAgentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddQANMongoDBProfilerAgent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddQANMongoDBProfilerAgent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddQANMongoDBProfilerAgent(ctx, req.(*AddQANMongoDBProfilerAgentRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeQANMongoDBProfilerAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeQANMongoDBProfilerAgentRequest) if err := dec(in); err != nil { @@ -976,24 +598,6 @@ func _AgentsService_ChangeQANMongoDBProfilerAgent_Handler(srv interface{}, ctx c return interceptor(ctx, in, info, handler) } -func _AgentsService_AddQANPostgreSQLPgStatementsAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddQANPostgreSQLPgStatementsAgentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddQANPostgreSQLPgStatementsAgent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddQANPostgreSQLPgStatementsAgent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddQANPostgreSQLPgStatementsAgent(ctx, req.(*AddQANPostgreSQLPgStatementsAgentRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeQANPostgreSQLPgStatementsAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeQANPostgreSQLPgStatementsAgentRequest) if err := dec(in); err != nil { @@ -1012,24 +616,6 @@ func _AgentsService_ChangeQANPostgreSQLPgStatementsAgent_Handler(srv interface{} return interceptor(ctx, in, info, handler) } -func _AgentsService_AddQANPostgreSQLPgStatMonitorAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddQANPostgreSQLPgStatMonitorAgentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddQANPostgreSQLPgStatMonitorAgent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddQANPostgreSQLPgStatMonitorAgent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddQANPostgreSQLPgStatMonitorAgent(ctx, req.(*AddQANPostgreSQLPgStatMonitorAgentRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeQANPostgreSQLPgStatMonitorAgentRequest) if err := dec(in); err != nil { @@ -1048,24 +634,6 @@ func _AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_Handler(srv interface{ return interceptor(ctx, in, info, handler) } -func _AgentsService_AddRDSExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddRDSExporterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddRDSExporter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddRDSExporter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddRDSExporter(ctx, req.(*AddRDSExporterRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeRDSExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeRDSExporterRequest) if err := dec(in); err != nil { @@ -1084,24 +652,6 @@ func _AgentsService_ChangeRDSExporter_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } -func _AgentsService_AddExternalExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddExternalExporterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddExternalExporter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddExternalExporter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddExternalExporter(ctx, req.(*AddExternalExporterRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeExternalExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeExternalExporterRequest) if err := dec(in); err != nil { @@ -1120,24 +670,6 @@ func _AgentsService_ChangeExternalExporter_Handler(srv interface{}, ctx context. return interceptor(ctx, in, info, handler) } -func _AgentsService_AddAzureDatabaseExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddAzureDatabaseExporterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentsServiceServer).AddAzureDatabaseExporter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentsService_AddAzureDatabaseExporter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentsServiceServer).AddAzureDatabaseExporter(ctx, req.(*AddAzureDatabaseExporterRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AgentsService_ChangeAzureDatabaseExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeAzureDatabaseExporterRequest) if err := dec(in); err != nil { @@ -1194,109 +726,57 @@ var AgentsService_ServiceDesc = grpc.ServiceDesc{ Handler: _AgentsService_GetAgentLogs_Handler, }, { - MethodName: "AddPMMAgent", - Handler: _AgentsService_AddPMMAgent_Handler, - }, - { - MethodName: "AddNodeExporter", - Handler: _AgentsService_AddNodeExporter_Handler, + MethodName: "AddAgent", + Handler: _AgentsService_AddAgent_Handler, }, { MethodName: "ChangeNodeExporter", Handler: _AgentsService_ChangeNodeExporter_Handler, }, - { - MethodName: "AddMySQLdExporter", - Handler: _AgentsService_AddMySQLdExporter_Handler, - }, { MethodName: "ChangeMySQLdExporter", Handler: _AgentsService_ChangeMySQLdExporter_Handler, }, - { - MethodName: "AddMongoDBExporter", - Handler: _AgentsService_AddMongoDBExporter_Handler, - }, { MethodName: "ChangeMongoDBExporter", Handler: _AgentsService_ChangeMongoDBExporter_Handler, }, - { - MethodName: "AddPostgresExporter", - Handler: _AgentsService_AddPostgresExporter_Handler, - }, { MethodName: "ChangePostgresExporter", Handler: _AgentsService_ChangePostgresExporter_Handler, }, - { - MethodName: "AddProxySQLExporter", - Handler: _AgentsService_AddProxySQLExporter_Handler, - }, { MethodName: "ChangeProxySQLExporter", Handler: _AgentsService_ChangeProxySQLExporter_Handler, }, - { - MethodName: "AddQANMySQLPerfSchemaAgent", - Handler: _AgentsService_AddQANMySQLPerfSchemaAgent_Handler, - }, { MethodName: "ChangeQANMySQLPerfSchemaAgent", Handler: _AgentsService_ChangeQANMySQLPerfSchemaAgent_Handler, }, - { - MethodName: "AddQANMySQLSlowlogAgent", - Handler: _AgentsService_AddQANMySQLSlowlogAgent_Handler, - }, { MethodName: "ChangeQANMySQLSlowlogAgent", Handler: _AgentsService_ChangeQANMySQLSlowlogAgent_Handler, }, - { - MethodName: "AddQANMongoDBProfilerAgent", - Handler: _AgentsService_AddQANMongoDBProfilerAgent_Handler, - }, { MethodName: "ChangeQANMongoDBProfilerAgent", Handler: _AgentsService_ChangeQANMongoDBProfilerAgent_Handler, }, - { - MethodName: "AddQANPostgreSQLPgStatementsAgent", - Handler: _AgentsService_AddQANPostgreSQLPgStatementsAgent_Handler, - }, { MethodName: "ChangeQANPostgreSQLPgStatementsAgent", Handler: _AgentsService_ChangeQANPostgreSQLPgStatementsAgent_Handler, }, - { - MethodName: "AddQANPostgreSQLPgStatMonitorAgent", - Handler: _AgentsService_AddQANPostgreSQLPgStatMonitorAgent_Handler, - }, { MethodName: "ChangeQANPostgreSQLPgStatMonitorAgent", Handler: _AgentsService_ChangeQANPostgreSQLPgStatMonitorAgent_Handler, }, - { - MethodName: "AddRDSExporter", - Handler: _AgentsService_AddRDSExporter_Handler, - }, { MethodName: "ChangeRDSExporter", Handler: _AgentsService_ChangeRDSExporter_Handler, }, - { - MethodName: "AddExternalExporter", - Handler: _AgentsService_AddExternalExporter_Handler, - }, { MethodName: "ChangeExternalExporter", Handler: _AgentsService_ChangeExternalExporter_Handler, }, - { - MethodName: "AddAzureDatabaseExporter", - Handler: _AgentsService_AddAzureDatabaseExporter_Handler, - }, { MethodName: "ChangeAzureDatabaseExporter", Handler: _AgentsService_ChangeAzureDatabaseExporter_Handler, diff --git a/api/inventory/v1/json/client/agents_service/add_agent_parameters.go b/api/inventory/v1/json/client/agents_service/add_agent_parameters.go new file mode 100644 index 0000000000..eca4592652 --- /dev/null +++ b/api/inventory/v1/json/client/agents_service/add_agent_parameters.go @@ -0,0 +1,144 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package agents_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewAddAgentParams creates a new AddAgentParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewAddAgentParams() *AddAgentParams { + return &AddAgentParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewAddAgentParamsWithTimeout creates a new AddAgentParams object +// with the ability to set a timeout on a request. +func NewAddAgentParamsWithTimeout(timeout time.Duration) *AddAgentParams { + return &AddAgentParams{ + timeout: timeout, + } +} + +// NewAddAgentParamsWithContext creates a new AddAgentParams object +// with the ability to set a context for a request. +func NewAddAgentParamsWithContext(ctx context.Context) *AddAgentParams { + return &AddAgentParams{ + Context: ctx, + } +} + +// NewAddAgentParamsWithHTTPClient creates a new AddAgentParams object +// with the ability to set a custom HTTPClient for a request. +func NewAddAgentParamsWithHTTPClient(client *http.Client) *AddAgentParams { + return &AddAgentParams{ + HTTPClient: client, + } +} + +/* +AddAgentParams contains all the parameters to send to the API endpoint + + for the add agent operation. + + Typically these are written to a http.Request. +*/ +type AddAgentParams struct { + // Body. + Body AddAgentBody + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the add agent params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *AddAgentParams) WithDefaults() *AddAgentParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the add agent params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *AddAgentParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the add agent params +func (o *AddAgentParams) WithTimeout(timeout time.Duration) *AddAgentParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the add agent params +func (o *AddAgentParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the add agent params +func (o *AddAgentParams) WithContext(ctx context.Context) *AddAgentParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the add agent params +func (o *AddAgentParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the add agent params +func (o *AddAgentParams) WithHTTPClient(client *http.Client) *AddAgentParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the add agent params +func (o *AddAgentParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the add agent params +func (o *AddAgentParams) WithBody(body AddAgentBody) *AddAgentParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the add agent params +func (o *AddAgentParams) SetBody(body AddAgentBody) { + o.Body = body +} + +// WriteToRequest writes these params to a swagger request +func (o *AddAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/inventory/v1/json/client/agents_service/add_agent_responses.go b/api/inventory/v1/json/client/agents_service/add_agent_responses.go new file mode 100644 index 0000000000..72567e7816 --- /dev/null +++ b/api/inventory/v1/json/client/agents_service/add_agent_responses.go @@ -0,0 +1,6148 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package agents_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + "fmt" + "io" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// AddAgentReader is a Reader for the AddAgent structure. +type AddAgentReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *AddAgentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewAddAgentOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewAddAgentDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewAddAgentOK creates a AddAgentOK with default headers values +func NewAddAgentOK() *AddAgentOK { + return &AddAgentOK{} +} + +/* +AddAgentOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type AddAgentOK struct { + Payload *AddAgentOKBody +} + +func (o *AddAgentOK) Error() string { + return fmt.Sprintf("[POST /v1/inventory/Agents/Add][%d] addAgentOk %+v", 200, o.Payload) +} + +func (o *AddAgentOK) GetPayload() *AddAgentOKBody { + return o.Payload +} + +func (o *AddAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddAgentOKBody) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAddAgentDefault creates a AddAgentDefault with default headers values +func NewAddAgentDefault(code int) *AddAgentDefault { + return &AddAgentDefault{ + _statusCode: code, + } +} + +/* +AddAgentDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type AddAgentDefault struct { + _statusCode int + + Payload *AddAgentDefaultBody +} + +// Code gets the status code for the add agent default response +func (o *AddAgentDefault) Code() int { + return o._statusCode +} + +func (o *AddAgentDefault) Error() string { + return fmt.Sprintf("[POST /v1/inventory/Agents/Add][%d] AddAgent default %+v", o._statusCode, o.Payload) +} + +func (o *AddAgentDefault) GetPayload() *AddAgentDefaultBody { + return o.Payload +} + +func (o *AddAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddAgentDefaultBody) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +/* +AddAgentBody add agent body +swagger:model AddAgentBody +*/ +type AddAgentBody struct { + // azure database exporter + AzureDatabaseExporter *AddAgentParamsBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` + + // external exporter + ExternalExporter *AddAgentParamsBodyExternalExporter `json:"external_exporter,omitempty"` + + // mongodb exporter + MongodbExporter *AddAgentParamsBodyMongodbExporter `json:"mongodb_exporter,omitempty"` + + // mysqld exporter + MysqldExporter *AddAgentParamsBodyMysqldExporter `json:"mysqld_exporter,omitempty"` + + // node exporter + NodeExporter *AddAgentParamsBodyNodeExporter `json:"node_exporter,omitempty"` + + // pmm agent + PMMAgent *AddAgentParamsBodyPMMAgent `json:"pmm_agent,omitempty"` + + // postgres exporter + PostgresExporter *AddAgentParamsBodyPostgresExporter `json:"postgres_exporter,omitempty"` + + // proxysql exporter + ProxysqlExporter *AddAgentParamsBodyProxysqlExporter `json:"proxysql_exporter,omitempty"` + + // qan mongodb profiler agent + QANMongodbProfilerAgent *AddAgentParamsBodyQANMongodbProfilerAgent `json:"qan_mongodb_profiler_agent,omitempty"` + + // qan mysql perfschema agent + QANMysqlPerfschemaAgent *AddAgentParamsBodyQANMysqlPerfschemaAgent `json:"qan_mysql_perfschema_agent,omitempty"` + + // qan mysql slowlog agent + QANMysqlSlowlogAgent *AddAgentParamsBodyQANMysqlSlowlogAgent `json:"qan_mysql_slowlog_agent,omitempty"` + + // qan postgresql pgstatements agent + QANPostgresqlPgstatementsAgent *AddAgentParamsBodyQANPostgresqlPgstatementsAgent `json:"qan_postgresql_pgstatements_agent,omitempty"` + + // qan postgresql pgstatmonitor agent + QANPostgresqlPgstatmonitorAgent *AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent `json:"qan_postgresql_pgstatmonitor_agent,omitempty"` + + // rds exporter + RDSExporter *AddAgentParamsBodyRDSExporter `json:"rds_exporter,omitempty"` +} + +// Validate validates this add agent body +func (o *AddAgentBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateAzureDatabaseExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateExternalExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateMongodbExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateMysqldExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateNodeExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validatePMMAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validatePostgresExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateProxysqlExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateQANMongodbProfilerAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validateQANMysqlPerfschemaAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validateQANMysqlSlowlogAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validateQANPostgresqlPgstatementsAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validateQANPostgresqlPgstatmonitorAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validateRDSExporter(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *AddAgentBody) validateAzureDatabaseExporter(formats strfmt.Registry) error { + if swag.IsZero(o.AzureDatabaseExporter) { // not required + return nil + } + + if o.AzureDatabaseExporter != nil { + if err := o.AzureDatabaseExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "azure_database_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "azure_database_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateExternalExporter(formats strfmt.Registry) error { + if swag.IsZero(o.ExternalExporter) { // not required + return nil + } + + if o.ExternalExporter != nil { + if err := o.ExternalExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "external_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "external_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateMongodbExporter(formats strfmt.Registry) error { + if swag.IsZero(o.MongodbExporter) { // not required + return nil + } + + if o.MongodbExporter != nil { + if err := o.MongodbExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "mongodb_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "mongodb_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateMysqldExporter(formats strfmt.Registry) error { + if swag.IsZero(o.MysqldExporter) { // not required + return nil + } + + if o.MysqldExporter != nil { + if err := o.MysqldExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "mysqld_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "mysqld_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateNodeExporter(formats strfmt.Registry) error { + if swag.IsZero(o.NodeExporter) { // not required + return nil + } + + if o.NodeExporter != nil { + if err := o.NodeExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "node_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "node_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validatePMMAgent(formats strfmt.Registry) error { + if swag.IsZero(o.PMMAgent) { // not required + return nil + } + + if o.PMMAgent != nil { + if err := o.PMMAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "pmm_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "pmm_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validatePostgresExporter(formats strfmt.Registry) error { + if swag.IsZero(o.PostgresExporter) { // not required + return nil + } + + if o.PostgresExporter != nil { + if err := o.PostgresExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "postgres_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "postgres_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateProxysqlExporter(formats strfmt.Registry) error { + if swag.IsZero(o.ProxysqlExporter) { // not required + return nil + } + + if o.ProxysqlExporter != nil { + if err := o.ProxysqlExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "proxysql_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "proxysql_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateQANMongodbProfilerAgent(formats strfmt.Registry) error { + if swag.IsZero(o.QANMongodbProfilerAgent) { // not required + return nil + } + + if o.QANMongodbProfilerAgent != nil { + if err := o.QANMongodbProfilerAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "qan_mongodb_profiler_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "qan_mongodb_profiler_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateQANMysqlPerfschemaAgent(formats strfmt.Registry) error { + if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required + return nil + } + + if o.QANMysqlPerfschemaAgent != nil { + if err := o.QANMysqlPerfschemaAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "qan_mysql_perfschema_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "qan_mysql_perfschema_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateQANMysqlSlowlogAgent(formats strfmt.Registry) error { + if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required + return nil + } + + if o.QANMysqlSlowlogAgent != nil { + if err := o.QANMysqlSlowlogAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "qan_mysql_slowlog_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "qan_mysql_slowlog_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateQANPostgresqlPgstatementsAgent(formats strfmt.Registry) error { + if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required + return nil + } + + if o.QANPostgresqlPgstatementsAgent != nil { + if err := o.QANPostgresqlPgstatementsAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "qan_postgresql_pgstatements_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "qan_postgresql_pgstatements_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateQANPostgresqlPgstatmonitorAgent(formats strfmt.Registry) error { + if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required + return nil + } + + if o.QANPostgresqlPgstatmonitorAgent != nil { + if err := o.QANPostgresqlPgstatmonitorAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "qan_postgresql_pgstatmonitor_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "qan_postgresql_pgstatmonitor_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) validateRDSExporter(formats strfmt.Registry) error { + if swag.IsZero(o.RDSExporter) { // not required + return nil + } + + if o.RDSExporter != nil { + if err := o.RDSExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "rds_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "rds_exporter") + } + return err + } + } + + return nil +} + +// ContextValidate validate this add agent body based on the context it is used +func (o *AddAgentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := o.contextValidateAzureDatabaseExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateExternalExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateMongodbExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateMysqldExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateNodeExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidatePMMAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidatePostgresExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateProxysqlExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateQANMongodbProfilerAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateQANMysqlPerfschemaAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateQANMysqlSlowlogAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateQANPostgresqlPgstatementsAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateQANPostgresqlPgstatmonitorAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateRDSExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *AddAgentBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { + if o.AzureDatabaseExporter != nil { + if err := o.AzureDatabaseExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "azure_database_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "azure_database_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { + if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "external_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "external_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { + if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "mongodb_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "mongodb_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { + if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "mysqld_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "mysqld_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { + if o.NodeExporter != nil { + if err := o.NodeExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "node_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "node_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { + if o.PMMAgent != nil { + if err := o.PMMAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "pmm_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "pmm_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { + if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "postgres_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "postgres_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { + if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "proxysql_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "proxysql_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfilerAgent != nil { + if err := o.QANMongodbProfilerAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "qan_mongodb_profiler_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "qan_mongodb_profiler_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschemaAgent != nil { + if err := o.QANMysqlPerfschemaAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "qan_mysql_perfschema_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "qan_mysql_perfschema_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlogAgent != nil { + if err := o.QANMysqlSlowlogAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "qan_mysql_slowlog_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "qan_mysql_slowlog_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { + if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "qan_postgresql_pgstatements_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "qan_postgresql_pgstatements_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { + if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "qan_postgresql_pgstatmonitor_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "qan_postgresql_pgstatmonitor_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { + if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("body" + "." + "rds_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("body" + "." + "rds_exporter") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentBody) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentBody) UnmarshalBinary(b []byte) error { + var res AddAgentBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentDefaultBody add agent default body +swagger:model AddAgentDefaultBody +*/ +type AddAgentDefaultBody struct { + // code + Code int32 `json:"code,omitempty"` + + // message + Message string `json:"message,omitempty"` + + // details + Details []*AddAgentDefaultBodyDetailsItems0 `json:"details"` +} + +// Validate validates this add agent default body +func (o *AddAgentDefaultBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateDetails(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *AddAgentDefaultBody) validateDetails(formats strfmt.Registry) error { + if swag.IsZero(o.Details) { // not required + return nil + } + + for i := 0; i < len(o.Details); i++ { + if swag.IsZero(o.Details[i]) { // not required + continue + } + + if o.Details[i] != nil { + if err := o.Details[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("AddAgent default" + "." + "details" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("AddAgent default" + "." + "details" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this add agent default body based on the context it is used +func (o *AddAgentDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := o.contextValidateDetails(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *AddAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { + if err := o.Details[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("AddAgent default" + "." + "details" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("AddAgent default" + "." + "details" + "." + strconv.Itoa(i)) + } + return err + } + } + } + + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentDefaultBody) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentDefaultBody) UnmarshalBinary(b []byte) error { + var res AddAgentDefaultBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentDefaultBodyDetailsItems0 add agent default body details items0 +swagger:model AddAgentDefaultBodyDetailsItems0 +*/ +type AddAgentDefaultBodyDetailsItems0 struct { + // at type + AtType string `json:"@type,omitempty"` +} + +// Validate validates this add agent default body details items0 +func (o *AddAgentDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this add agent default body details items0 based on context it is used +func (o *AddAgentDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { + var res AddAgentDefaultBodyDetailsItems0 + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBody add agent OK body +swagger:model AddAgentOKBody +*/ +type AddAgentOKBody struct { + // Actual table count for SQL databases at the moment of adding. + TableCount int32 `json:"table_count,omitempty"` + + // azure database exporter + AzureDatabaseExporter *AddAgentOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` + + // external exporter + ExternalExporter *AddAgentOKBodyExternalExporter `json:"external_exporter,omitempty"` + + // mongodb exporter + MongodbExporter *AddAgentOKBodyMongodbExporter `json:"mongodb_exporter,omitempty"` + + // mysqld exporter + MysqldExporter *AddAgentOKBodyMysqldExporter `json:"mysqld_exporter,omitempty"` + + // node exporter + NodeExporter *AddAgentOKBodyNodeExporter `json:"node_exporter,omitempty"` + + // pmm agent + PMMAgent *AddAgentOKBodyPMMAgent `json:"pmm_agent,omitempty"` + + // postgres exporter + PostgresExporter *AddAgentOKBodyPostgresExporter `json:"postgres_exporter,omitempty"` + + // proxysql exporter + ProxysqlExporter *AddAgentOKBodyProxysqlExporter `json:"proxysql_exporter,omitempty"` + + // qan mongodb profiler agent + QANMongodbProfilerAgent *AddAgentOKBodyQANMongodbProfilerAgent `json:"qan_mongodb_profiler_agent,omitempty"` + + // qan mysql perfschema agent + QANMysqlPerfschemaAgent *AddAgentOKBodyQANMysqlPerfschemaAgent `json:"qan_mysql_perfschema_agent,omitempty"` + + // qan mysql slowlog agent + QANMysqlSlowlogAgent *AddAgentOKBodyQANMysqlSlowlogAgent `json:"qan_mysql_slowlog_agent,omitempty"` + + // qan postgresql pgstatements agent + QANPostgresqlPgstatementsAgent *AddAgentOKBodyQANPostgresqlPgstatementsAgent `json:"qan_postgresql_pgstatements_agent,omitempty"` + + // qan postgresql pgstatmonitor agent + QANPostgresqlPgstatmonitorAgent *AddAgentOKBodyQANPostgresqlPgstatmonitorAgent `json:"qan_postgresql_pgstatmonitor_agent,omitempty"` + + // rds exporter + RDSExporter *AddAgentOKBodyRDSExporter `json:"rds_exporter,omitempty"` +} + +// Validate validates this add agent OK body +func (o *AddAgentOKBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateAzureDatabaseExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateExternalExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateMongodbExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateMysqldExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateNodeExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validatePMMAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validatePostgresExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateProxysqlExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateQANMongodbProfilerAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validateQANMysqlPerfschemaAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validateQANMysqlSlowlogAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validateQANPostgresqlPgstatementsAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validateQANPostgresqlPgstatmonitorAgent(formats); err != nil { + res = append(res, err) + } + + if err := o.validateRDSExporter(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *AddAgentOKBody) validateAzureDatabaseExporter(formats strfmt.Registry) error { + if swag.IsZero(o.AzureDatabaseExporter) { // not required + return nil + } + + if o.AzureDatabaseExporter != nil { + if err := o.AzureDatabaseExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "azure_database_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "azure_database_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateExternalExporter(formats strfmt.Registry) error { + if swag.IsZero(o.ExternalExporter) { // not required + return nil + } + + if o.ExternalExporter != nil { + if err := o.ExternalExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "external_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "external_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateMongodbExporter(formats strfmt.Registry) error { + if swag.IsZero(o.MongodbExporter) { // not required + return nil + } + + if o.MongodbExporter != nil { + if err := o.MongodbExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "mongodb_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "mongodb_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateMysqldExporter(formats strfmt.Registry) error { + if swag.IsZero(o.MysqldExporter) { // not required + return nil + } + + if o.MysqldExporter != nil { + if err := o.MysqldExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "mysqld_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "mysqld_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateNodeExporter(formats strfmt.Registry) error { + if swag.IsZero(o.NodeExporter) { // not required + return nil + } + + if o.NodeExporter != nil { + if err := o.NodeExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "node_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "node_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validatePMMAgent(formats strfmt.Registry) error { + if swag.IsZero(o.PMMAgent) { // not required + return nil + } + + if o.PMMAgent != nil { + if err := o.PMMAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "pmm_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "pmm_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validatePostgresExporter(formats strfmt.Registry) error { + if swag.IsZero(o.PostgresExporter) { // not required + return nil + } + + if o.PostgresExporter != nil { + if err := o.PostgresExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "postgres_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "postgres_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateProxysqlExporter(formats strfmt.Registry) error { + if swag.IsZero(o.ProxysqlExporter) { // not required + return nil + } + + if o.ProxysqlExporter != nil { + if err := o.ProxysqlExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "proxysql_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "proxysql_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateQANMongodbProfilerAgent(formats strfmt.Registry) error { + if swag.IsZero(o.QANMongodbProfilerAgent) { // not required + return nil + } + + if o.QANMongodbProfilerAgent != nil { + if err := o.QANMongodbProfilerAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "qan_mongodb_profiler_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "qan_mongodb_profiler_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateQANMysqlPerfschemaAgent(formats strfmt.Registry) error { + if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required + return nil + } + + if o.QANMysqlPerfschemaAgent != nil { + if err := o.QANMysqlPerfschemaAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "qan_mysql_perfschema_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "qan_mysql_perfschema_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateQANMysqlSlowlogAgent(formats strfmt.Registry) error { + if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required + return nil + } + + if o.QANMysqlSlowlogAgent != nil { + if err := o.QANMysqlSlowlogAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "qan_mysql_slowlog_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "qan_mysql_slowlog_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateQANPostgresqlPgstatementsAgent(formats strfmt.Registry) error { + if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required + return nil + } + + if o.QANPostgresqlPgstatementsAgent != nil { + if err := o.QANPostgresqlPgstatementsAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "qan_postgresql_pgstatements_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "qan_postgresql_pgstatements_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateQANPostgresqlPgstatmonitorAgent(formats strfmt.Registry) error { + if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required + return nil + } + + if o.QANPostgresqlPgstatmonitorAgent != nil { + if err := o.QANPostgresqlPgstatmonitorAgent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "qan_postgresql_pgstatmonitor_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "qan_postgresql_pgstatmonitor_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) validateRDSExporter(formats strfmt.Registry) error { + if swag.IsZero(o.RDSExporter) { // not required + return nil + } + + if o.RDSExporter != nil { + if err := o.RDSExporter.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "rds_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "rds_exporter") + } + return err + } + } + + return nil +} + +// ContextValidate validate this add agent OK body based on the context it is used +func (o *AddAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := o.contextValidateAzureDatabaseExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateExternalExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateMongodbExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateMysqldExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateNodeExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidatePMMAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidatePostgresExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateProxysqlExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateQANMongodbProfilerAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateQANMysqlPerfschemaAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateQANMysqlSlowlogAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateQANPostgresqlPgstatementsAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateQANPostgresqlPgstatmonitorAgent(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateRDSExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *AddAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { + if o.AzureDatabaseExporter != nil { + if err := o.AzureDatabaseExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "azure_database_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "azure_database_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { + if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "external_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "external_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { + if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "mongodb_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "mongodb_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { + if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "mysqld_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "mysqld_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { + if o.NodeExporter != nil { + if err := o.NodeExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "node_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "node_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { + if o.PMMAgent != nil { + if err := o.PMMAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "pmm_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "pmm_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { + if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "postgres_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "postgres_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { + if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "proxysql_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "proxysql_exporter") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfilerAgent != nil { + if err := o.QANMongodbProfilerAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "qan_mongodb_profiler_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "qan_mongodb_profiler_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschemaAgent != nil { + if err := o.QANMysqlPerfschemaAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "qan_mysql_perfschema_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "qan_mysql_perfschema_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlogAgent != nil { + if err := o.QANMysqlSlowlogAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "qan_mysql_slowlog_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "qan_mysql_slowlog_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { + if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "qan_postgresql_pgstatements_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "qan_postgresql_pgstatements_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { + if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "qan_postgresql_pgstatmonitor_agent") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "qan_postgresql_pgstatmonitor_agent") + } + return err + } + } + + return nil +} + +func (o *AddAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { + if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("addAgentOk" + "." + "rds_exporter") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("addAgentOk" + "." + "rds_exporter") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBody) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBody) UnmarshalBinary(b []byte) error { + var res AddAgentOKBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics. +swagger:model AddAgentOKBodyAzureDatabaseExporter +*/ +type AddAgentOKBodyAzureDatabaseExporter struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Node identifier. + NodeID string `json:"node_id,omitempty"` + + // Azure database subscription ID. + AzureDatabaseSubscriptionID string `json:"azure_database_subscription_id,omitempty"` + + // Azure database resource type (mysql, maria, postgres) + AzureDatabaseResourceType string `json:"azure_database_resource_type,omitempty"` + + // Custom user-assigned labels. + // + // Status fields below. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Listen port for scraping metrics (the same for several configurations). + ListenPort int64 `json:"listen_port,omitempty"` + + // True if the exporter operates in push metrics mode. + PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent OK body azure database exporter +func (o *AddAgentOKBodyAzureDatabaseExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyAzureDatabaseExporterTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyAzureDatabaseExporterTypeStatusPropEnum = append(addAgentOkBodyAzureDatabaseExporterTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyAzureDatabaseExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyAzureDatabaseExporter) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyAzureDatabaseExporterTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyAzureDatabaseExporter) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"azure_database_exporter"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyAzureDatabaseExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyAzureDatabaseExporterTypeLogLevelPropEnum = append(addAgentOkBodyAzureDatabaseExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyAzureDatabaseExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyAzureDatabaseExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyAzureDatabaseExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyAzureDatabaseExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"azure_database_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body azure database exporter based on context it is used +func (o *AddAgentOKBodyAzureDatabaseExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyAzureDatabaseExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyAzureDatabaseExporter) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyAzureDatabaseExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. +swagger:model AddAgentOKBodyExternalExporter +*/ +type AddAgentOKBodyExternalExporter struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // Node identifier where this instance runs. + RunsOnNodeID string `json:"runs_on_node_id,omitempty"` + + // If disabled, metrics from this exporter will not be collected. + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // HTTP basic auth username for collecting metrics. + Username string `json:"username,omitempty"` + + // Scheme to generate URI to exporter metrics endpoints. + Scheme string `json:"scheme,omitempty"` + + // Path under which metrics are exposed, used to generate URI. + MetricsPath string `json:"metrics_path,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Listen port for scraping metrics. + ListenPort int64 `json:"listen_port,omitempty"` + + // True if exporter uses push metrics mode. + PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` +} + +// Validate validates this add agent OK body external exporter +func (o *AddAgentOKBodyExternalExporter) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this add agent OK body external exporter based on context it is used +func (o *AddAgentOKBodyExternalExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyExternalExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyExternalExporter) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyExternalExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. +swagger:model AddAgentOKBodyMongodbExporter +*/ +type AddAgentOKBodyMongodbExporter struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // MongoDB username for scraping metrics. + Username string `json:"username,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // True if exporter uses push metrics mode. + PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` + + // List of disabled collector names. + // + // Status fields below. + DisabledCollectors []string `json:"disabled_collectors"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Listen port for scraping metrics. + ListenPort int64 `json:"listen_port,omitempty"` + + // List of colletions to get stats from. Can use * + StatsCollections []string `json:"stats_collections"` + + // Collections limit. Only get Databases and collection stats if the total number of collections in the server + // is less than this value. 0: no limit + CollectionsLimit int32 `json:"collections_limit,omitempty"` + + // Enable All collectors. + EnableAllCollectors bool `json:"enable_all_collectors,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` +} + +// Validate validates this add agent OK body mongodb exporter +func (o *AddAgentOKBodyMongodbExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyMongodbExporterTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyMongodbExporterTypeStatusPropEnum = append(addAgentOkBodyMongodbExporterTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyMongodbExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyMongodbExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyMongodbExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyMongodbExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyMongodbExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyMongodbExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyMongodbExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyMongodbExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyMongodbExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyMongodbExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyMongodbExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyMongodbExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyMongodbExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyMongodbExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyMongodbExporter) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyMongodbExporterTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyMongodbExporter) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"mongodb_exporter"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyMongodbExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyMongodbExporterTypeLogLevelPropEnum = append(addAgentOkBodyMongodbExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyMongodbExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyMongodbExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyMongodbExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyMongodbExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyMongodbExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyMongodbExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyMongodbExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyMongodbExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyMongodbExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyMongodbExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyMongodbExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyMongodbExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyMongodbExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyMongodbExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyMongodbExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"mongodb_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body mongodb exporter based on context it is used +func (o *AddAgentOKBodyMongodbExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyMongodbExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyMongodbExporter) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyMongodbExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. +swagger:model AddAgentOKBodyMysqldExporter +*/ +type AddAgentOKBodyMysqldExporter struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // MySQL username for scraping metrics. + Username string `json:"username,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Certificate Authority certificate chain. + TLSCa string `json:"tls_ca,omitempty"` + + // Client certificate. + TLSCert string `json:"tls_cert,omitempty"` + + // Password for decrypting tls_cert. + TLSKey string `json:"tls_key,omitempty"` + + // Tablestats group collectors are disabled if there are more than that number of tables. + // 0 means tablestats group collectors are always enabled (no limit). + // Negative value means tablestats group collectors are always disabled. + TablestatsGroupTableLimit int32 `json:"tablestats_group_table_limit,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // True if exporter uses push metrics mode. + PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` + + // List of disabled collector names. + // + // Status fields below. + DisabledCollectors []string `json:"disabled_collectors"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Listen port for scraping metrics. + ListenPort int64 `json:"listen_port,omitempty"` + + // True if tablestats group collectors are currently disabled. + TablestatsGroupDisabled bool `json:"tablestats_group_disabled,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` +} + +// Validate validates this add agent OK body mysqld exporter +func (o *AddAgentOKBodyMysqldExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyMysqldExporterTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyMysqldExporterTypeStatusPropEnum = append(addAgentOkBodyMysqldExporterTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyMysqldExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyMysqldExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyMysqldExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyMysqldExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyMysqldExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyMysqldExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyMysqldExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyMysqldExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyMysqldExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyMysqldExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyMysqldExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyMysqldExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyMysqldExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyMysqldExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyMysqldExporter) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyMysqldExporterTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyMysqldExporter) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"mysqld_exporter"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyMysqldExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyMysqldExporterTypeLogLevelPropEnum = append(addAgentOkBodyMysqldExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyMysqldExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyMysqldExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyMysqldExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyMysqldExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyMysqldExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyMysqldExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyMysqldExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyMysqldExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyMysqldExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyMysqldExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyMysqldExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyMysqldExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyMysqldExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyMysqldExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyMysqldExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"mysqld_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body mysqld exporter based on context it is used +func (o *AddAgentOKBodyMysqldExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyMysqldExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyMysqldExporter) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyMysqldExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyNodeExporter NodeExporter runs on Generic or Container Node and exposes its metrics. +swagger:model AddAgentOKBodyNodeExporter +*/ +type AddAgentOKBodyNodeExporter struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // True if exporter uses push metrics mode. + PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` + + // List of disabled collector names. + // + // Status fields below. + DisabledCollectors []string `json:"disabled_collectors"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Listen port for scraping metrics. + ListenPort int64 `json:"listen_port,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` +} + +// Validate validates this add agent OK body node exporter +func (o *AddAgentOKBodyNodeExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyNodeExporterTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyNodeExporterTypeStatusPropEnum = append(addAgentOkBodyNodeExporterTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyNodeExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyNodeExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyNodeExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyNodeExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyNodeExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyNodeExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyNodeExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyNodeExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyNodeExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyNodeExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyNodeExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyNodeExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyNodeExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyNodeExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyNodeExporter) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyNodeExporterTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyNodeExporter) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"node_exporter"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyNodeExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyNodeExporterTypeLogLevelPropEnum = append(addAgentOkBodyNodeExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyNodeExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyNodeExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyNodeExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyNodeExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyNodeExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyNodeExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyNodeExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyNodeExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyNodeExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyNodeExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyNodeExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyNodeExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyNodeExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyNodeExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyNodeExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"node_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body node exporter based on context it is used +func (o *AddAgentOKBodyNodeExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyNodeExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyNodeExporter) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyNodeExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. +swagger:model AddAgentOKBodyPMMAgent +*/ +type AddAgentOKBodyPMMAgent struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // Node identifier where this instance runs. + RunsOnNodeID string `json:"runs_on_node_id,omitempty"` + + // Custom user-assigned labels. + // + // Status fields below. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // True if Agent is running and connected to pmm-managed. + Connected bool `json:"connected,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` +} + +// Validate validates this add agent OK body PMM agent +func (o *AddAgentOKBodyPMMAgent) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this add agent OK body PMM agent based on context it is used +func (o *AddAgentOKBodyPMMAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyPMMAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyPMMAgent) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyPMMAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. +swagger:model AddAgentOKBodyPostgresExporter +*/ +type AddAgentOKBodyPostgresExporter struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // PostgreSQL username for scraping metrics. + Username string `json:"username,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // True if exporter uses push metrics mode. + PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` + + // List of disabled collector names. + DisabledCollectors []string `json:"disabled_collectors"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Listen port for scraping metrics. + ListenPort int64 `json:"listen_port,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Limit of databases for auto-discovery. + AutoDiscoveryLimit int32 `json:"auto_discovery_limit,omitempty"` + + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` +} + +// Validate validates this add agent OK body postgres exporter +func (o *AddAgentOKBodyPostgresExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyPostgresExporterTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyPostgresExporterTypeStatusPropEnum = append(addAgentOkBodyPostgresExporterTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyPostgresExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyPostgresExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyPostgresExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyPostgresExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyPostgresExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyPostgresExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyPostgresExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyPostgresExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyPostgresExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyPostgresExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyPostgresExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyPostgresExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyPostgresExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyPostgresExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyPostgresExporter) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyPostgresExporterTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyPostgresExporter) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"postgres_exporter"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyPostgresExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyPostgresExporterTypeLogLevelPropEnum = append(addAgentOkBodyPostgresExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyPostgresExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyPostgresExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyPostgresExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyPostgresExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyPostgresExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyPostgresExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyPostgresExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyPostgresExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyPostgresExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyPostgresExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyPostgresExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyPostgresExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyPostgresExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyPostgresExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyPostgresExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"postgres_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body postgres exporter based on context it is used +func (o *AddAgentOKBodyPostgresExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyPostgresExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyPostgresExporter) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyPostgresExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. +swagger:model AddAgentOKBodyProxysqlExporter +*/ +type AddAgentOKBodyProxysqlExporter struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // ProxySQL username for scraping metrics. + Username string `json:"username,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // True if exporter uses push metrics mode. + PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` + + // List of disabled collector names. + // + // Status fields below. + DisabledCollectors []string `json:"disabled_collectors"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Listen port for scraping metrics. + ListenPort int64 `json:"listen_port,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` +} + +// Validate validates this add agent OK body proxysql exporter +func (o *AddAgentOKBodyProxysqlExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyProxysqlExporterTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyProxysqlExporterTypeStatusPropEnum = append(addAgentOkBodyProxysqlExporterTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyProxysqlExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyProxysqlExporter) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyProxysqlExporterTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyProxysqlExporter) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"proxysql_exporter"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyProxysqlExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyProxysqlExporterTypeLogLevelPropEnum = append(addAgentOkBodyProxysqlExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyProxysqlExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyProxysqlExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyProxysqlExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyProxysqlExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"proxysql_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body proxysql exporter based on context it is used +func (o *AddAgentOKBodyProxysqlExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyProxysqlExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyProxysqlExporter) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyProxysqlExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. +swagger:model AddAgentOKBodyQANMongodbProfilerAgent +*/ +type AddAgentOKBodyQANMongodbProfilerAgent struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // MongoDB username for getting profiler data. + Username string `json:"username,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Limit query length in QAN (default: server-defined; -1: no limit). + // + // True if query examples are disabled. + // bool query_examples_disabled = 8; TODO https://jira.percona.com/browse/PMM-4650 + MaxQueryLength int32 `json:"max_query_length,omitempty"` + + // Custom user-assigned labels. + // + // Status fields below. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent OK body QAN mongodb profiler agent +func (o *AddAgentOKBodyQANMongodbProfilerAgent) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyQanMongodbProfilerAgentTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyQanMongodbProfilerAgentTypeStatusPropEnum = append(addAgentOkBodyQanMongodbProfilerAgentTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyQANMongodbProfilerAgent) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyQanMongodbProfilerAgentTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyQANMongodbProfilerAgent) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"qan_mongodb_profiler_agent"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyQanMongodbProfilerAgentTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyQanMongodbProfilerAgentTypeLogLevelPropEnum = append(addAgentOkBodyQanMongodbProfilerAgentTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyQANMongodbProfilerAgent) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyQanMongodbProfilerAgentTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyQANMongodbProfilerAgent) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"qan_mongodb_profiler_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body QAN mongodb profiler agent based on context it is used +func (o *AddAgentOKBodyQANMongodbProfilerAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyQANMongodbProfilerAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyQANMongodbProfilerAgent) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyQANMongodbProfilerAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +swagger:model AddAgentOKBodyQANMysqlPerfschemaAgent +*/ +type AddAgentOKBodyQANMysqlPerfschemaAgent struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // MySQL username for getting performance data. + Username string `json:"username,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Certificate Authority certificate chain. + TLSCa string `json:"tls_ca,omitempty"` + + // Client certificate. + TLSCert string `json:"tls_cert,omitempty"` + + // Password for decrypting tls_cert. + TLSKey string `json:"tls_key,omitempty"` + + // Disable parsing comments from queries and showing them in QAN. + DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` + + // Limit query length in QAN (default: server-defined; -1: no limit). + MaxQueryLength int32 `json:"max_query_length,omitempty"` + + // True if query examples are disabled. + QueryExamplesDisabled bool `json:"query_examples_disabled,omitempty"` + + // Custom user-assigned labels. + // + // Status fields below. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent OK body QAN mysql perfschema agent +func (o *AddAgentOKBodyQANMysqlPerfschemaAgent) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyQanMysqlPerfschemaAgentTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyQanMysqlPerfschemaAgentTypeStatusPropEnum = append(addAgentOkBodyQanMysqlPerfschemaAgentTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyQANMysqlPerfschemaAgent) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyQanMysqlPerfschemaAgentTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyQANMysqlPerfschemaAgent) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"qan_mysql_perfschema_agent"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum = append(addAgentOkBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyQANMysqlPerfschemaAgent) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyQANMysqlPerfschemaAgent) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"qan_mysql_perfschema_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body QAN mysql perfschema agent based on context it is used +func (o *AddAgentOKBodyQANMysqlPerfschemaAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyQANMysqlPerfschemaAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyQANMysqlPerfschemaAgent) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyQANMysqlPerfschemaAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +swagger:model AddAgentOKBodyQANMysqlSlowlogAgent +*/ +type AddAgentOKBodyQANMysqlSlowlogAgent struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // MySQL username for getting performance data. + Username string `json:"username,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Certificate Authority certificate chain. + TLSCa string `json:"tls_ca,omitempty"` + + // Client certificate. + TLSCert string `json:"tls_cert,omitempty"` + + // Password for decrypting tls_cert. + TLSKey string `json:"tls_key,omitempty"` + + // Disable parsing comments from queries and showing them in QAN. + DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` + + // Limit query length in QAN (default: server-defined; -1: no limit) + MaxQueryLength int32 `json:"max_query_length,omitempty"` + + // True if query examples are disabled. + QueryExamplesDisabled bool `json:"query_examples_disabled,omitempty"` + + // Slowlog file is rotated at this size if > 0. + MaxSlowlogFileSize string `json:"max_slowlog_file_size,omitempty"` + + // Custom user-assigned labels. + // + // Status fields below. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // mod tidy + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent OK body QAN mysql slowlog agent +func (o *AddAgentOKBodyQANMysqlSlowlogAgent) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyQanMysqlSlowlogAgentTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyQanMysqlSlowlogAgentTypeStatusPropEnum = append(addAgentOkBodyQanMysqlSlowlogAgentTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyQANMysqlSlowlogAgent) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyQanMysqlSlowlogAgentTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyQANMysqlSlowlogAgent) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"qan_mysql_slowlog_agent"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum = append(addAgentOkBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyQANMysqlSlowlogAgent) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyQANMysqlSlowlogAgent) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"qan_mysql_slowlog_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body QAN mysql slowlog agent based on context it is used +func (o *AddAgentOKBodyQANMysqlSlowlogAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyQANMysqlSlowlogAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyQANMysqlSlowlogAgent) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyQANMysqlSlowlogAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +swagger:model AddAgentOKBodyQANPostgresqlPgstatementsAgent +*/ +type AddAgentOKBodyQANPostgresqlPgstatementsAgent struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // PostgreSQL username for getting pg stat statements data. + Username string `json:"username,omitempty"` + + // Disable parsing comments from queries and showing them in QAN. + DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` + + // Limit query length in QAN (default: server-defined; -1: no limit). + MaxQueryLength int32 `json:"max_query_length,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Custom user-assigned labels. + // + // Status fields below. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent OK body QAN postgresql pgstatements agent +func (o *AddAgentOKBodyQANPostgresqlPgstatementsAgent) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyQanPostgresqlPgstatementsAgentTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyQanPostgresqlPgstatementsAgentTypeStatusPropEnum = append(addAgentOkBodyQanPostgresqlPgstatementsAgentTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyQANPostgresqlPgstatementsAgent) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyQanPostgresqlPgstatementsAgentTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyQANPostgresqlPgstatementsAgent) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"qan_postgresql_pgstatements_agent"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum = append(addAgentOkBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyQANPostgresqlPgstatementsAgent) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyQANPostgresqlPgstatementsAgent) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"qan_postgresql_pgstatements_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body QAN postgresql pgstatements agent based on context it is used +func (o *AddAgentOKBodyQANPostgresqlPgstatementsAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyQANPostgresqlPgstatementsAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyQANPostgresqlPgstatementsAgent) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyQANPostgresqlPgstatementsAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +swagger:model AddAgentOKBodyQANPostgresqlPgstatmonitorAgent +*/ +type AddAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // PostgreSQL username for getting pg stat monitor data. + Username string `json:"username,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Disable parsing comments from queries and showing them in QAN. + DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` + + // Limit query length in QAN (default: server-defined; -1: no limit). + MaxQueryLength int32 `json:"max_query_length,omitempty"` + + // True if query examples are disabled. + QueryExamplesDisabled bool `json:"query_examples_disabled,omitempty"` + + // Custom user-assigned labels. + // + // Status fields below. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent OK body QAN postgresql pgstatmonitor agent +func (o *AddAgentOKBodyQANPostgresqlPgstatmonitorAgent) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeStatusPropEnum = append(addAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyQANPostgresqlPgstatmonitorAgent) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyQANPostgresqlPgstatmonitorAgent) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"qan_postgresql_pgstatmonitor_agent"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum = append(addAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyQANPostgresqlPgstatmonitorAgent) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyQANPostgresqlPgstatmonitorAgent) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"qan_postgresql_pgstatmonitor_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body QAN postgresql pgstatmonitor agent based on context it is used +func (o *AddAgentOKBodyQANPostgresqlPgstatmonitorAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyQANPostgresqlPgstatmonitorAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyQANPostgresqlPgstatmonitorAgent) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyQANPostgresqlPgstatmonitorAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. +swagger:model AddAgentOKBodyRDSExporter +*/ +type AddAgentOKBodyRDSExporter struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Node identifier. + NodeID string `json:"node_id,omitempty"` + + // AWS Access Key. + AWSAccessKey string `json:"aws_access_key,omitempty"` + + // Custom user-assigned labels. + // + // Status fields below. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent finished. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] + Status *string `json:"status,omitempty"` + + // Listen port for scraping metrics (the same for several configurations). + // + // Metric collections flags below. + ListenPort int64 `json:"listen_port,omitempty"` + + // Basic metrics are disabled. + BasicMetricsDisabled bool `json:"basic_metrics_disabled,omitempty"` + + // Enhanced metrics are disabled. + EnhancedMetricsDisabled bool `json:"enhanced_metrics_disabled,omitempty"` + + // True if exporter uses push metrics mode. + PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Limit of databases for auto-discovery. + AutoDiscoveryLimit int32 `json:"auto_discovery_limit,omitempty"` +} + +// Validate validates this add agent OK body RDS exporter +func (o *AddAgentOKBodyRDSExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentOkBodyRdsExporterTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyRdsExporterTypeStatusPropEnum = append(addAgentOkBodyRdsExporterTypeStatusPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyRDSExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddAgentOKBodyRDSExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddAgentOKBodyRDSExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddAgentOKBodyRDSExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddAgentOKBodyRDSExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddAgentOKBodyRDSExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddAgentOKBodyRDSExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddAgentOKBodyRDSExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddAgentOKBodyRDSExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddAgentOKBodyRDSExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddAgentOKBodyRDSExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddAgentOKBodyRDSExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddAgentOKBodyRDSExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddAgentOKBodyRDSExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddAgentOKBodyRDSExporter) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyRdsExporterTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyRDSExporter) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addAgentOk"+"."+"rds_exporter"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +var addAgentOkBodyRdsExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentOkBodyRdsExporterTypeLogLevelPropEnum = append(addAgentOkBodyRdsExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentOKBodyRDSExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentOKBodyRDSExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentOKBodyRDSExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentOKBodyRDSExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentOKBodyRDSExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentOKBodyRDSExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentOKBodyRDSExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentOKBodyRDSExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentOKBodyRDSExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentOKBodyRDSExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentOKBodyRDSExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentOKBodyRDSExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentOKBodyRDSExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentOkBodyRdsExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentOKBodyRDSExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("addAgentOk"+"."+"rds_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent OK body RDS exporter based on context it is used +func (o *AddAgentOKBodyRDSExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentOKBodyRDSExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentOKBodyRDSExporter) UnmarshalBinary(b []byte) error { + var res AddAgentOKBodyRDSExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyAzureDatabaseExporter add agent params body azure database exporter +swagger:model AddAgentParamsBodyAzureDatabaseExporter +*/ +type AddAgentParamsBodyAzureDatabaseExporter struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Node identifier. + NodeID string `json:"node_id,omitempty"` + + // Azure client ID + AzureClientID string `json:"azure_client_id,omitempty"` + + // Azure client secret + AzureClientSecret string `json:"azure_client_secret,omitempty"` + + // Azure tanant ID + AzureTenantID string `json:"azure_tenant_id,omitempty"` + + // Azure subscription ID + AzureSubscriptionID string `json:"azure_subscription_id,omitempty"` + + // Azure resource group. + AzureResourceGroup string `json:"azure_resource_group,omitempty"` + + // Azure resource type (mysql, maria, postgres) + AzureDatabaseResourceType string `json:"azure_database_resource_type,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Enables push metrics mode for exporter. + PushMetrics bool `json:"push_metrics,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent params body azure database exporter +func (o *AddAgentParamsBodyAzureDatabaseExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyAzureDatabaseExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyAzureDatabaseExporterTypeLogLevelPropEnum = append(addAgentParamsBodyAzureDatabaseExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyAzureDatabaseExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyAzureDatabaseExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyAzureDatabaseExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyAzureDatabaseExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"azure_database_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body azure database exporter based on context it is used +func (o *AddAgentParamsBodyAzureDatabaseExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyAzureDatabaseExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyAzureDatabaseExporter) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyAzureDatabaseExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyExternalExporter add agent params body external exporter +swagger:model AddAgentParamsBodyExternalExporter +*/ +type AddAgentParamsBodyExternalExporter struct { + // The node identifier where this instance is run. + RunsOnNodeID string `json:"runs_on_node_id,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // HTTP basic auth username for collecting metrics. + Username string `json:"username,omitempty"` + + // HTTP basic auth password for collecting metrics. + Password string `json:"password,omitempty"` + + // Scheme to generate URI to exporter metrics endpoints(default: http). + Scheme string `json:"scheme,omitempty"` + + // Path under which metrics are exposed, used to generate URI(default: /metrics). + MetricsPath string `json:"metrics_path,omitempty"` + + // Listen port for scraping metrics. + ListenPort int64 `json:"listen_port,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Enables push metrics mode for exporter. + PushMetrics bool `json:"push_metrics,omitempty"` +} + +// Validate validates this add agent params body external exporter +func (o *AddAgentParamsBodyExternalExporter) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this add agent params body external exporter based on context it is used +func (o *AddAgentParamsBodyExternalExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyExternalExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyExternalExporter) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyExternalExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyMongodbExporter add agent params body mongodb exporter +swagger:model AddAgentParamsBodyMongodbExporter +*/ +type AddAgentParamsBodyMongodbExporter struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // MongoDB username for scraping metrics. + Username string `json:"username,omitempty"` + + // MongoDB password for scraping metrics. + Password string `json:"password,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Client certificate and key. + TLSCertificateKey string `json:"tls_certificate_key,omitempty"` + + // Password for decrypting tls_certificate_key. + TLSCertificateKeyFilePassword string `json:"tls_certificate_key_file_password,omitempty"` + + // Certificate Authority certificate chain. + TLSCa string `json:"tls_ca,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Enables push metrics mode for exporter. + PushMetrics bool `json:"push_metrics,omitempty"` + + // List of collector names to disable in this exporter. + DisableCollectors []string `json:"disable_collectors"` + + // Authentication mechanism. + // See https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism + // for details. + AuthenticationMechanism string `json:"authentication_mechanism,omitempty"` + + // Authentication database. + AuthenticationDatabase string `json:"authentication_database,omitempty"` + + // Custom password for exporter endpoint /metrics. + AgentPassword string `json:"agent_password,omitempty"` + + // List of colletions to get stats from. Can use * + StatsCollections []string `json:"stats_collections"` + + // Collections limit. Only get Databases and collection stats if the total number of collections in the server + // is less than this value. 0: no limit + CollectionsLimit int32 `json:"collections_limit,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` +} + +// Validate validates this add agent params body mongodb exporter +func (o *AddAgentParamsBodyMongodbExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyMongodbExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyMongodbExporterTypeLogLevelPropEnum = append(addAgentParamsBodyMongodbExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyMongodbExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyMongodbExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyMongodbExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyMongodbExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"mongodb_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body mongodb exporter based on context it is used +func (o *AddAgentParamsBodyMongodbExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyMongodbExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyMongodbExporter) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyMongodbExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyMysqldExporter add agent params body mysqld exporter +swagger:model AddAgentParamsBodyMysqldExporter +*/ +type AddAgentParamsBodyMysqldExporter struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // MySQL username for scraping metrics. + Username string `json:"username,omitempty"` + + // MySQL password for scraping metrics. + Password string `json:"password,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Certificate Authority certificate chain. + TLSCa string `json:"tls_ca,omitempty"` + + // Client certificate. + TLSCert string `json:"tls_cert,omitempty"` + + // Password for decrypting tls_cert. + TLSKey string `json:"tls_key,omitempty"` + + // Tablestats group collectors will be disabled if there are more than that number of tables. + // 0 means tablestats group collectors are always enabled (no limit). + // Negative value means tablestats group collectors are always disabled. + TablestatsGroupTableLimit int32 `json:"tablestats_group_table_limit,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Enables push metrics mode for exporter. + PushMetrics bool `json:"push_metrics,omitempty"` + + // List of collector names to disable in this exporter. + DisableCollectors []string `json:"disable_collectors"` + + // Custom password for exporter endpoint /metrics. + AgentPassword string `json:"agent_password,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` +} + +// Validate validates this add agent params body mysqld exporter +func (o *AddAgentParamsBodyMysqldExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyMysqldExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyMysqldExporterTypeLogLevelPropEnum = append(addAgentParamsBodyMysqldExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyMysqldExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyMysqldExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyMysqldExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyMysqldExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"mysqld_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body mysqld exporter based on context it is used +func (o *AddAgentParamsBodyMysqldExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyMysqldExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyMysqldExporter) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyMysqldExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyNodeExporter add agent params body node exporter +swagger:model AddAgentParamsBodyNodeExporter +*/ +type AddAgentParamsBodyNodeExporter struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Enables push metrics mode for exporter. + PushMetrics bool `json:"push_metrics,omitempty"` + + // List of collector names to disable in this exporter. + DisableCollectors []string `json:"disable_collectors"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Expose the node_exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` +} + +// Validate validates this add agent params body node exporter +func (o *AddAgentParamsBodyNodeExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyNodeExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyNodeExporterTypeLogLevelPropEnum = append(addAgentParamsBodyNodeExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyNodeExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyNodeExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyNodeExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyNodeExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyNodeExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyNodeExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyNodeExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyNodeExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyNodeExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyNodeExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyNodeExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyNodeExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyNodeExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyNodeExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyNodeExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"node_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body node exporter based on context it is used +func (o *AddAgentParamsBodyNodeExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyNodeExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyNodeExporter) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyNodeExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyPMMAgent add agent params body PMM agent +swagger:model AddAgentParamsBodyPMMAgent +*/ +type AddAgentParamsBodyPMMAgent struct { + // Node identifier where this instance runs. + RunsOnNodeID string `json:"runs_on_node_id,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` +} + +// Validate validates this add agent params body PMM agent +func (o *AddAgentParamsBodyPMMAgent) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this add agent params body PMM agent based on context it is used +func (o *AddAgentParamsBodyPMMAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyPMMAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyPMMAgent) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyPMMAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyPostgresExporter add agent params body postgres exporter +swagger:model AddAgentParamsBodyPostgresExporter +*/ +type AddAgentParamsBodyPostgresExporter struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // PostgreSQL username for scraping metrics. + Username string `json:"username,omitempty"` + + // PostgreSQL password for scraping metrics. + Password string `json:"password,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Enables push metrics mode for exporter. + PushMetrics bool `json:"push_metrics,omitempty"` + + // List of collector names to disable in this exporter. + DisableCollectors []string `json:"disable_collectors"` + + // TLS CA certificate. + TLSCa string `json:"tls_ca,omitempty"` + + // TLS Certifcate. + TLSCert string `json:"tls_cert,omitempty"` + + // TLS Certificate Key. + TLSKey string `json:"tls_key,omitempty"` + + // Custom password for exporter endpoint /metrics. + AgentPassword string `json:"agent_password,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Limit of databases for auto-discovery. + AutoDiscoveryLimit int32 `json:"auto_discovery_limit,omitempty"` + + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` +} + +// Validate validates this add agent params body postgres exporter +func (o *AddAgentParamsBodyPostgresExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyPostgresExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyPostgresExporterTypeLogLevelPropEnum = append(addAgentParamsBodyPostgresExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyPostgresExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyPostgresExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyPostgresExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyPostgresExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"postgres_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body postgres exporter based on context it is used +func (o *AddAgentParamsBodyPostgresExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyPostgresExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyPostgresExporter) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyPostgresExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyProxysqlExporter add agent params body proxysql exporter +swagger:model AddAgentParamsBodyProxysqlExporter +*/ +type AddAgentParamsBodyProxysqlExporter struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // ProxySQL username for scraping metrics. + Username string `json:"username,omitempty"` + + // ProxySQL password for scraping metrics. + Password string `json:"password,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Enables push metrics mode for exporter. + PushMetrics bool `json:"push_metrics,omitempty"` + + // List of collector names to disable in this exporter. + DisableCollectors []string `json:"disable_collectors"` + + // Custom password for exporter endpoint /metrics. + AgentPassword string `json:"agent_password,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` + + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` +} + +// Validate validates this add agent params body proxysql exporter +func (o *AddAgentParamsBodyProxysqlExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyProxysqlExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyProxysqlExporterTypeLogLevelPropEnum = append(addAgentParamsBodyProxysqlExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyProxysqlExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyProxysqlExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyProxysqlExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyProxysqlExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"proxysql_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body proxysql exporter based on context it is used +func (o *AddAgentParamsBodyProxysqlExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyProxysqlExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyProxysqlExporter) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyProxysqlExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyQANMongodbProfilerAgent add agent params body QAN mongodb profiler agent +swagger:model AddAgentParamsBodyQANMongodbProfilerAgent +*/ +type AddAgentParamsBodyQANMongodbProfilerAgent struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // MongoDB username for getting profile data. + Username string `json:"username,omitempty"` + + // MongoDB password for getting profile data. + Password string `json:"password,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Client certificate and key. + TLSCertificateKey string `json:"tls_certificate_key,omitempty"` + + // Password for decrypting tls_certificate_key. + TLSCertificateKeyFilePassword string `json:"tls_certificate_key_file_password,omitempty"` + + // Certificate Authority certificate chain. + TLSCa string `json:"tls_ca,omitempty"` + + // Limit query length in QAN (default: server-defined; -1: no limit). + MaxQueryLength int32 `json:"max_query_length,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Authentication mechanism. + // See https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism + // for details. + AuthenticationMechanism string `json:"authentication_mechanism,omitempty"` + + // Authentication database. + AuthenticationDatabase string `json:"authentication_database,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent params body QAN mongodb profiler agent +func (o *AddAgentParamsBodyQANMongodbProfilerAgent) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyQanMongodbProfilerAgentTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyQanMongodbProfilerAgentTypeLogLevelPropEnum = append(addAgentParamsBodyQanMongodbProfilerAgentTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyQANMongodbProfilerAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyQANMongodbProfilerAgent) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyQanMongodbProfilerAgentTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyQANMongodbProfilerAgent) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"qan_mongodb_profiler_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body QAN mongodb profiler agent based on context it is used +func (o *AddAgentParamsBodyQANMongodbProfilerAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyQANMongodbProfilerAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyQANMongodbProfilerAgent) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyQANMongodbProfilerAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyQANMysqlPerfschemaAgent add agent params body QAN mysql perfschema agent +swagger:model AddAgentParamsBodyQANMysqlPerfschemaAgent +*/ +type AddAgentParamsBodyQANMysqlPerfschemaAgent struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // MySQL username for getting performance data. + Username string `json:"username,omitempty"` + + // MySQL password for getting performance data. + Password string `json:"password,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Certificate Authority certificate chain. + TLSCa string `json:"tls_ca,omitempty"` + + // Client certificate. + TLSCert string `json:"tls_cert,omitempty"` + + // Password for decrypting tls_cert. + TLSKey string `json:"tls_key,omitempty"` + + // Limit query length in QAN (default: server-defined; -1: no limit) + MaxQueryLength int32 `json:"max_query_length,omitempty"` + + // Disable query examples. + DisableQueryExamples bool `json:"disable_query_examples,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Disable parsing comments from queries and showing them in QAN. + DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent params body QAN mysql perfschema agent +func (o *AddAgentParamsBodyQANMysqlPerfschemaAgent) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum = append(addAgentParamsBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyQANMysqlPerfschemaAgent) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyQANMysqlPerfschemaAgent) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"qan_mysql_perfschema_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body QAN mysql perfschema agent based on context it is used +func (o *AddAgentParamsBodyQANMysqlPerfschemaAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyQANMysqlPerfschemaAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyQANMysqlPerfschemaAgent) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyQANMysqlPerfschemaAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyQANMysqlSlowlogAgent add agent params body QAN mysql slowlog agent +swagger:model AddAgentParamsBodyQANMysqlSlowlogAgent +*/ +type AddAgentParamsBodyQANMysqlSlowlogAgent struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // MySQL username for getting slowlog data. + Username string `json:"username,omitempty"` + + // MySQL password for getting slowlog data. + Password string `json:"password,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Certificate Authority certificate chain. + TLSCa string `json:"tls_ca,omitempty"` + + // Client certificate. + TLSCert string `json:"tls_cert,omitempty"` + + // Password for decrypting tls_cert. + TLSKey string `json:"tls_key,omitempty"` + + // Limit query length in QAN (default: server-defined; -1: no limit). + MaxQueryLength int32 `json:"max_query_length,omitempty"` + + // Disable query examples. + DisableQueryExamples bool `json:"disable_query_examples,omitempty"` + + // Rotate slowlog file at this size if > 0. + // Use zero or negative value to disable rotation. + MaxSlowlogFileSize string `json:"max_slowlog_file_size,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Disable parsing comments from queries and showing them in QAN. + DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent params body QAN mysql slowlog agent +func (o *AddAgentParamsBodyQANMysqlSlowlogAgent) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum = append(addAgentParamsBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyQANMysqlSlowlogAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyQANMysqlSlowlogAgent) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyQANMysqlSlowlogAgent) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"qan_mysql_slowlog_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body QAN mysql slowlog agent based on context it is used +func (o *AddAgentParamsBodyQANMysqlSlowlogAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyQANMysqlSlowlogAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyQANMysqlSlowlogAgent) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyQANMysqlSlowlogAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyQANPostgresqlPgstatementsAgent add agent params body QAN postgresql pgstatements agent +swagger:model AddAgentParamsBodyQANPostgresqlPgstatementsAgent +*/ +type AddAgentParamsBodyQANPostgresqlPgstatementsAgent struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // PostgreSQL username for getting pg stat statements data. + Username string `json:"username,omitempty"` + + // PostgreSQL password for getting pg stat statements data. + Password string `json:"password,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Disable parsing comments from queries and showing them in QAN. + DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` + + // Limit query length in QAN (default: server-defined; -1: no limit). + MaxQueryLength int32 `json:"max_query_length,omitempty"` + + // TLS CA certificate. + TLSCa string `json:"tls_ca,omitempty"` + + // TLS Certifcate. + TLSCert string `json:"tls_cert,omitempty"` + + // TLS Certificate Key. + TLSKey string `json:"tls_key,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent params body QAN postgresql pgstatements agent +func (o *AddAgentParamsBodyQANPostgresqlPgstatementsAgent) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum = append(addAgentParamsBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyQANPostgresqlPgstatementsAgent) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyQANPostgresqlPgstatementsAgent) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"qan_postgresql_pgstatements_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body QAN postgresql pgstatements agent based on context it is used +func (o *AddAgentParamsBodyQANPostgresqlPgstatementsAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyQANPostgresqlPgstatementsAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyQANPostgresqlPgstatementsAgent) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyQANPostgresqlPgstatementsAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent add agent params body QAN postgresql pgstatmonitor agent +swagger:model AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent +*/ +type AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // PostgreSQL username for getting pg stat monitor data. + Username string `json:"username,omitempty"` + + // PostgreSQL password for getting pg stat monitor data. + Password string `json:"password,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Limit query length in QAN (default: server-defined; -1: no limit). + MaxQueryLength int32 `json:"max_query_length,omitempty"` + + // Disable query examples. + DisableQueryExamples bool `json:"disable_query_examples,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Disable parsing comments from queries and showing them in QAN. + DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` + + // TLS CA certificate. + TLSCa string `json:"tls_ca,omitempty"` + + // TLS Certifcate. + TLSCert string `json:"tls_cert,omitempty"` + + // TLS Certificate Key. + TLSKey string `json:"tls_key,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent params body QAN postgresql pgstatmonitor agent +func (o *AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum = append(addAgentParamsBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"qan_postgresql_pgstatmonitor_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body QAN postgresql pgstatmonitor agent based on context it is used +func (o *AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddAgentParamsBodyRDSExporter add agent params body RDS exporter +swagger:model AddAgentParamsBodyRDSExporter +*/ +type AddAgentParamsBodyRDSExporter struct { + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Node identifier. + NodeID string `json:"node_id,omitempty"` + + // AWS Access Key. + AWSAccessKey string `json:"aws_access_key,omitempty"` + + // AWS Secret Key. + AWSSecretKey string `json:"aws_secret_key,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Disable basic metrics. + DisableBasicMetrics bool `json:"disable_basic_metrics,omitempty"` + + // Disable enhanced metrics. + DisableEnhancedMetrics bool `json:"disable_enhanced_metrics,omitempty"` + + // Enables push metrics mode for exporter. + PushMetrics bool `json:"push_metrics,omitempty"` + + // Log level for exporters + // + // - LOG_LEVEL_UNSPECIFIED: Auto + // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] + LogLevel *string `json:"log_level,omitempty"` +} + +// Validate validates this add agent params body RDS exporter +func (o *AddAgentParamsBodyRDSExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateLogLevel(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addAgentParamsBodyRdsExporterTypeLogLevelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addAgentParamsBodyRdsExporterTypeLogLevelPropEnum = append(addAgentParamsBodyRdsExporterTypeLogLevelPropEnum, v) + } +} + +const ( + + // AddAgentParamsBodyRDSExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" + AddAgentParamsBodyRDSExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" + + // AddAgentParamsBodyRDSExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" + AddAgentParamsBodyRDSExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" + + // AddAgentParamsBodyRDSExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" + AddAgentParamsBodyRDSExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" + + // AddAgentParamsBodyRDSExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" + AddAgentParamsBodyRDSExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" + + // AddAgentParamsBodyRDSExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" + AddAgentParamsBodyRDSExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" + + // AddAgentParamsBodyRDSExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" + AddAgentParamsBodyRDSExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" +) + +// prop value enum +func (o *AddAgentParamsBodyRDSExporter) validateLogLevelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addAgentParamsBodyRdsExporterTypeLogLevelPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddAgentParamsBodyRDSExporter) validateLogLevel(formats strfmt.Registry) error { + if swag.IsZero(o.LogLevel) { // not required + return nil + } + + // value enum + if err := o.validateLogLevelEnum("body"+"."+"rds_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add agent params body RDS exporter based on context it is used +func (o *AddAgentParamsBodyRDSExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddAgentParamsBodyRDSExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddAgentParamsBodyRDSExporter) UnmarshalBinary(b []byte) error { + var res AddAgentParamsBodyRDSExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} diff --git a/api/inventory/v1/json/client/agents_service/add_azure_database_exporter_parameters.go b/api/inventory/v1/json/client/agents_service/add_azure_database_exporter_parameters.go deleted file mode 100644 index 1dd072c368..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_azure_database_exporter_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddAzureDatabaseExporterParams creates a new AddAzureDatabaseExporterParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddAzureDatabaseExporterParams() *AddAzureDatabaseExporterParams { - return &AddAzureDatabaseExporterParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddAzureDatabaseExporterParamsWithTimeout creates a new AddAzureDatabaseExporterParams object -// with the ability to set a timeout on a request. -func NewAddAzureDatabaseExporterParamsWithTimeout(timeout time.Duration) *AddAzureDatabaseExporterParams { - return &AddAzureDatabaseExporterParams{ - timeout: timeout, - } -} - -// NewAddAzureDatabaseExporterParamsWithContext creates a new AddAzureDatabaseExporterParams object -// with the ability to set a context for a request. -func NewAddAzureDatabaseExporterParamsWithContext(ctx context.Context) *AddAzureDatabaseExporterParams { - return &AddAzureDatabaseExporterParams{ - Context: ctx, - } -} - -// NewAddAzureDatabaseExporterParamsWithHTTPClient creates a new AddAzureDatabaseExporterParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddAzureDatabaseExporterParamsWithHTTPClient(client *http.Client) *AddAzureDatabaseExporterParams { - return &AddAzureDatabaseExporterParams{ - HTTPClient: client, - } -} - -/* -AddAzureDatabaseExporterParams contains all the parameters to send to the API endpoint - - for the add azure database exporter operation. - - Typically these are written to a http.Request. -*/ -type AddAzureDatabaseExporterParams struct { - // Body. - Body AddAzureDatabaseExporterBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add azure database exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddAzureDatabaseExporterParams) WithDefaults() *AddAzureDatabaseExporterParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add azure database exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddAzureDatabaseExporterParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add azure database exporter params -func (o *AddAzureDatabaseExporterParams) WithTimeout(timeout time.Duration) *AddAzureDatabaseExporterParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add azure database exporter params -func (o *AddAzureDatabaseExporterParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add azure database exporter params -func (o *AddAzureDatabaseExporterParams) WithContext(ctx context.Context) *AddAzureDatabaseExporterParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add azure database exporter params -func (o *AddAzureDatabaseExporterParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add azure database exporter params -func (o *AddAzureDatabaseExporterParams) WithHTTPClient(client *http.Client) *AddAzureDatabaseExporterParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add azure database exporter params -func (o *AddAzureDatabaseExporterParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add azure database exporter params -func (o *AddAzureDatabaseExporterParams) WithBody(body AddAzureDatabaseExporterBody) *AddAzureDatabaseExporterParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add azure database exporter params -func (o *AddAzureDatabaseExporterParams) SetBody(body AddAzureDatabaseExporterBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddAzureDatabaseExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_azure_database_exporter_responses.go b/api/inventory/v1/json/client/agents_service/add_azure_database_exporter_responses.go deleted file mode 100644 index d152ecfe49..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_azure_database_exporter_responses.go +++ /dev/null @@ -1,694 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddAzureDatabaseExporterReader is a Reader for the AddAzureDatabaseExporter structure. -type AddAzureDatabaseExporterReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddAzureDatabaseExporterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddAzureDatabaseExporterOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddAzureDatabaseExporterDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddAzureDatabaseExporterOK creates a AddAzureDatabaseExporterOK with default headers values -func NewAddAzureDatabaseExporterOK() *AddAzureDatabaseExporterOK { - return &AddAzureDatabaseExporterOK{} -} - -/* -AddAzureDatabaseExporterOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddAzureDatabaseExporterOK struct { - Payload *AddAzureDatabaseExporterOKBody -} - -func (o *AddAzureDatabaseExporterOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddAzureDatabaseExporter][%d] addAzureDatabaseExporterOk %+v", 200, o.Payload) -} - -func (o *AddAzureDatabaseExporterOK) GetPayload() *AddAzureDatabaseExporterOKBody { - return o.Payload -} - -func (o *AddAzureDatabaseExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddAzureDatabaseExporterOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddAzureDatabaseExporterDefault creates a AddAzureDatabaseExporterDefault with default headers values -func NewAddAzureDatabaseExporterDefault(code int) *AddAzureDatabaseExporterDefault { - return &AddAzureDatabaseExporterDefault{ - _statusCode: code, - } -} - -/* -AddAzureDatabaseExporterDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddAzureDatabaseExporterDefault struct { - _statusCode int - - Payload *AddAzureDatabaseExporterDefaultBody -} - -// Code gets the status code for the add azure database exporter default response -func (o *AddAzureDatabaseExporterDefault) Code() int { - return o._statusCode -} - -func (o *AddAzureDatabaseExporterDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddAzureDatabaseExporter][%d] AddAzureDatabaseExporter default %+v", o._statusCode, o.Payload) -} - -func (o *AddAzureDatabaseExporterDefault) GetPayload() *AddAzureDatabaseExporterDefaultBody { - return o.Payload -} - -func (o *AddAzureDatabaseExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddAzureDatabaseExporterDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddAzureDatabaseExporterBody add azure database exporter body -swagger:model AddAzureDatabaseExporterBody -*/ -type AddAzureDatabaseExporterBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Node identifier. - NodeID string `json:"node_id,omitempty"` - - // Azure client ID - AzureClientID string `json:"azure_client_id,omitempty"` - - // Azure client secret - AzureClientSecret string `json:"azure_client_secret,omitempty"` - - // Azure tanant ID - AzureTenantID string `json:"azure_tenant_id,omitempty"` - - // Azure subscription ID - AzureSubscriptionID string `json:"azure_subscription_id,omitempty"` - - // Azure resource group. - AzureResourceGroup string `json:"azure_resource_group,omitempty"` - - // Azure resource type (mysql, maria, postgres) - AzureDatabaseResourceType string `json:"azure_database_resource_type,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Enables push metrics mode for exporter. - PushMetrics bool `json:"push_metrics,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add azure database exporter body -func (o *AddAzureDatabaseExporterBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addAzureDatabaseExporterBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addAzureDatabaseExporterBodyTypeLogLevelPropEnum = append(addAzureDatabaseExporterBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddAzureDatabaseExporterBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddAzureDatabaseExporterBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddAzureDatabaseExporterBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddAzureDatabaseExporterBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddAzureDatabaseExporterBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddAzureDatabaseExporterBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddAzureDatabaseExporterBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddAzureDatabaseExporterBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddAzureDatabaseExporterBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddAzureDatabaseExporterBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddAzureDatabaseExporterBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddAzureDatabaseExporterBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddAzureDatabaseExporterBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addAzureDatabaseExporterBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddAzureDatabaseExporterBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add azure database exporter body based on context it is used -func (o *AddAzureDatabaseExporterBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddAzureDatabaseExporterBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddAzureDatabaseExporterBody) UnmarshalBinary(b []byte) error { - var res AddAzureDatabaseExporterBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddAzureDatabaseExporterDefaultBody add azure database exporter default body -swagger:model AddAzureDatabaseExporterDefaultBody -*/ -type AddAzureDatabaseExporterDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddAzureDatabaseExporterDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add azure database exporter default body -func (o *AddAzureDatabaseExporterDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddAzureDatabaseExporterDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddAzureDatabaseExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddAzureDatabaseExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add azure database exporter default body based on the context it is used -func (o *AddAzureDatabaseExporterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddAzureDatabaseExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddAzureDatabaseExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddAzureDatabaseExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddAzureDatabaseExporterDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddAzureDatabaseExporterDefaultBody) UnmarshalBinary(b []byte) error { - var res AddAzureDatabaseExporterDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddAzureDatabaseExporterDefaultBodyDetailsItems0 add azure database exporter default body details items0 -swagger:model AddAzureDatabaseExporterDefaultBodyDetailsItems0 -*/ -type AddAzureDatabaseExporterDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add azure database exporter default body details items0 -func (o *AddAzureDatabaseExporterDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add azure database exporter default body details items0 based on context it is used -func (o *AddAzureDatabaseExporterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddAzureDatabaseExporterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddAzureDatabaseExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddAzureDatabaseExporterDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddAzureDatabaseExporterOKBody add azure database exporter OK body -swagger:model AddAzureDatabaseExporterOKBody -*/ -type AddAzureDatabaseExporterOKBody struct { - // azure database exporter - AzureDatabaseExporter *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` -} - -// Validate validates this add azure database exporter OK body -func (o *AddAzureDatabaseExporterOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateAzureDatabaseExporter(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddAzureDatabaseExporterOKBody) validateAzureDatabaseExporter(formats strfmt.Registry) error { - if swag.IsZero(o.AzureDatabaseExporter) { // not required - return nil - } - - if o.AzureDatabaseExporter != nil { - if err := o.AzureDatabaseExporter.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addAzureDatabaseExporterOk" + "." + "azure_database_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addAzureDatabaseExporterOk" + "." + "azure_database_exporter") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add azure database exporter OK body based on the context it is used -func (o *AddAzureDatabaseExporterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateAzureDatabaseExporter(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddAzureDatabaseExporterOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { - if o.AzureDatabaseExporter != nil { - if err := o.AzureDatabaseExporter.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addAzureDatabaseExporterOk" + "." + "azure_database_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addAzureDatabaseExporterOk" + "." + "azure_database_exporter") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddAzureDatabaseExporterOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddAzureDatabaseExporterOKBody) UnmarshalBinary(b []byte) error { - var res AddAzureDatabaseExporterOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddAzureDatabaseExporterOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics. -swagger:model AddAzureDatabaseExporterOKBodyAzureDatabaseExporter -*/ -type AddAzureDatabaseExporterOKBodyAzureDatabaseExporter struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Node identifier. - NodeID string `json:"node_id,omitempty"` - - // Azure database subscription ID. - AzureDatabaseSubscriptionID string `json:"azure_database_subscription_id,omitempty"` - - // Azure database resource type (mysql, maria, postgres) - AzureDatabaseResourceType string `json:"azure_database_resource_type,omitempty"` - - // Custom user-assigned labels. - // - // Status fields below. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Listen port for scraping metrics (the same for several configurations). - ListenPort int64 `json:"listen_port,omitempty"` - - // True if the exporter operates in push metrics mode. - PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add azure database exporter OK body azure database exporter -func (o *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addAzureDatabaseExporterOkBodyAzureDatabaseExporterTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addAzureDatabaseExporterOkBodyAzureDatabaseExporterTypeStatusPropEnum = append(addAzureDatabaseExporterOkBodyAzureDatabaseExporterTypeStatusPropEnum, v) - } -} - -const ( - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addAzureDatabaseExporterOkBodyAzureDatabaseExporterTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addAzureDatabaseExporterOk"+"."+"azure_database_exporter"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addAzureDatabaseExporterOkBodyAzureDatabaseExporterTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addAzureDatabaseExporterOkBodyAzureDatabaseExporterTypeLogLevelPropEnum = append(addAzureDatabaseExporterOkBodyAzureDatabaseExporterTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddAzureDatabaseExporterOKBodyAzureDatabaseExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addAzureDatabaseExporterOkBodyAzureDatabaseExporterTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addAzureDatabaseExporterOk"+"."+"azure_database_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add azure database exporter OK body azure database exporter based on context it is used -func (o *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter) UnmarshalBinary(b []byte) error { - var res AddAzureDatabaseExporterOKBodyAzureDatabaseExporter - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_external_exporter_parameters.go b/api/inventory/v1/json/client/agents_service/add_external_exporter_parameters.go deleted file mode 100644 index 873c85094a..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_external_exporter_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddExternalExporterParams creates a new AddExternalExporterParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddExternalExporterParams() *AddExternalExporterParams { - return &AddExternalExporterParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddExternalExporterParamsWithTimeout creates a new AddExternalExporterParams object -// with the ability to set a timeout on a request. -func NewAddExternalExporterParamsWithTimeout(timeout time.Duration) *AddExternalExporterParams { - return &AddExternalExporterParams{ - timeout: timeout, - } -} - -// NewAddExternalExporterParamsWithContext creates a new AddExternalExporterParams object -// with the ability to set a context for a request. -func NewAddExternalExporterParamsWithContext(ctx context.Context) *AddExternalExporterParams { - return &AddExternalExporterParams{ - Context: ctx, - } -} - -// NewAddExternalExporterParamsWithHTTPClient creates a new AddExternalExporterParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddExternalExporterParamsWithHTTPClient(client *http.Client) *AddExternalExporterParams { - return &AddExternalExporterParams{ - HTTPClient: client, - } -} - -/* -AddExternalExporterParams contains all the parameters to send to the API endpoint - - for the add external exporter operation. - - Typically these are written to a http.Request. -*/ -type AddExternalExporterParams struct { - // Body. - Body AddExternalExporterBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add external exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddExternalExporterParams) WithDefaults() *AddExternalExporterParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add external exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddExternalExporterParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add external exporter params -func (o *AddExternalExporterParams) WithTimeout(timeout time.Duration) *AddExternalExporterParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add external exporter params -func (o *AddExternalExporterParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add external exporter params -func (o *AddExternalExporterParams) WithContext(ctx context.Context) *AddExternalExporterParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add external exporter params -func (o *AddExternalExporterParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add external exporter params -func (o *AddExternalExporterParams) WithHTTPClient(client *http.Client) *AddExternalExporterParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add external exporter params -func (o *AddExternalExporterParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add external exporter params -func (o *AddExternalExporterParams) WithBody(body AddExternalExporterBody) *AddExternalExporterParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add external exporter params -func (o *AddExternalExporterParams) SetBody(body AddExternalExporterBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddExternalExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_external_exporter_responses.go b/api/inventory/v1/json/client/agents_service/add_external_exporter_responses.go deleted file mode 100644 index f8ea8bad78..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_external_exporter_responses.go +++ /dev/null @@ -1,477 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// AddExternalExporterReader is a Reader for the AddExternalExporter structure. -type AddExternalExporterReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddExternalExporterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddExternalExporterOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddExternalExporterDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddExternalExporterOK creates a AddExternalExporterOK with default headers values -func NewAddExternalExporterOK() *AddExternalExporterOK { - return &AddExternalExporterOK{} -} - -/* -AddExternalExporterOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddExternalExporterOK struct { - Payload *AddExternalExporterOKBody -} - -func (o *AddExternalExporterOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddExternalExporter][%d] addExternalExporterOk %+v", 200, o.Payload) -} - -func (o *AddExternalExporterOK) GetPayload() *AddExternalExporterOKBody { - return o.Payload -} - -func (o *AddExternalExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddExternalExporterOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddExternalExporterDefault creates a AddExternalExporterDefault with default headers values -func NewAddExternalExporterDefault(code int) *AddExternalExporterDefault { - return &AddExternalExporterDefault{ - _statusCode: code, - } -} - -/* -AddExternalExporterDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddExternalExporterDefault struct { - _statusCode int - - Payload *AddExternalExporterDefaultBody -} - -// Code gets the status code for the add external exporter default response -func (o *AddExternalExporterDefault) Code() int { - return o._statusCode -} - -func (o *AddExternalExporterDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddExternalExporter][%d] AddExternalExporter default %+v", o._statusCode, o.Payload) -} - -func (o *AddExternalExporterDefault) GetPayload() *AddExternalExporterDefaultBody { - return o.Payload -} - -func (o *AddExternalExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddExternalExporterDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddExternalExporterBody add external exporter body -swagger:model AddExternalExporterBody -*/ -type AddExternalExporterBody struct { - // The node identifier where this instance is run. - RunsOnNodeID string `json:"runs_on_node_id,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // HTTP basic auth username for collecting metrics. - Username string `json:"username,omitempty"` - - // HTTP basic auth password for collecting metrics. - Password string `json:"password,omitempty"` - - // Scheme to generate URI to exporter metrics endpoints(default: http). - Scheme string `json:"scheme,omitempty"` - - // Path under which metrics are exposed, used to generate URI(default: /metrics). - MetricsPath string `json:"metrics_path,omitempty"` - - // Listen port for scraping metrics. - ListenPort int64 `json:"listen_port,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Enables push metrics mode for exporter. - PushMetrics bool `json:"push_metrics,omitempty"` -} - -// Validate validates this add external exporter body -func (o *AddExternalExporterBody) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add external exporter body based on context it is used -func (o *AddExternalExporterBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddExternalExporterBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddExternalExporterBody) UnmarshalBinary(b []byte) error { - var res AddExternalExporterBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddExternalExporterDefaultBody add external exporter default body -swagger:model AddExternalExporterDefaultBody -*/ -type AddExternalExporterDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddExternalExporterDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add external exporter default body -func (o *AddExternalExporterDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddExternalExporterDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddExternalExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddExternalExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add external exporter default body based on the context it is used -func (o *AddExternalExporterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddExternalExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddExternalExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddExternalExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddExternalExporterDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddExternalExporterDefaultBody) UnmarshalBinary(b []byte) error { - var res AddExternalExporterDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddExternalExporterDefaultBodyDetailsItems0 add external exporter default body details items0 -swagger:model AddExternalExporterDefaultBodyDetailsItems0 -*/ -type AddExternalExporterDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add external exporter default body details items0 -func (o *AddExternalExporterDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add external exporter default body details items0 based on context it is used -func (o *AddExternalExporterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddExternalExporterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddExternalExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddExternalExporterDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddExternalExporterOKBody add external exporter OK body -swagger:model AddExternalExporterOKBody -*/ -type AddExternalExporterOKBody struct { - // external exporter - ExternalExporter *AddExternalExporterOKBodyExternalExporter `json:"external_exporter,omitempty"` -} - -// Validate validates this add external exporter OK body -func (o *AddExternalExporterOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateExternalExporter(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddExternalExporterOKBody) validateExternalExporter(formats strfmt.Registry) error { - if swag.IsZero(o.ExternalExporter) { // not required - return nil - } - - if o.ExternalExporter != nil { - if err := o.ExternalExporter.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addExternalExporterOk" + "." + "external_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addExternalExporterOk" + "." + "external_exporter") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add external exporter OK body based on the context it is used -func (o *AddExternalExporterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateExternalExporter(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddExternalExporterOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { - if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addExternalExporterOk" + "." + "external_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addExternalExporterOk" + "." + "external_exporter") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddExternalExporterOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddExternalExporterOKBody) UnmarshalBinary(b []byte) error { - var res AddExternalExporterOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddExternalExporterOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. -swagger:model AddExternalExporterOKBodyExternalExporter -*/ -type AddExternalExporterOKBodyExternalExporter struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // Node identifier where this instance runs. - RunsOnNodeID string `json:"runs_on_node_id,omitempty"` - - // If disabled, metrics from this exporter will not be collected. - Disabled bool `json:"disabled,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // HTTP basic auth username for collecting metrics. - Username string `json:"username,omitempty"` - - // Scheme to generate URI to exporter metrics endpoints. - Scheme string `json:"scheme,omitempty"` - - // Path under which metrics are exposed, used to generate URI. - MetricsPath string `json:"metrics_path,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Listen port for scraping metrics. - ListenPort int64 `json:"listen_port,omitempty"` - - // True if exporter uses push metrics mode. - PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` -} - -// Validate validates this add external exporter OK body external exporter -func (o *AddExternalExporterOKBodyExternalExporter) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add external exporter OK body external exporter based on context it is used -func (o *AddExternalExporterOKBodyExternalExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddExternalExporterOKBodyExternalExporter) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddExternalExporterOKBodyExternalExporter) UnmarshalBinary(b []byte) error { - var res AddExternalExporterOKBodyExternalExporter - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_mongo_db_exporter_parameters.go b/api/inventory/v1/json/client/agents_service/add_mongo_db_exporter_parameters.go deleted file mode 100644 index 44e6422d79..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_mongo_db_exporter_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddMongoDBExporterParams creates a new AddMongoDBExporterParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddMongoDBExporterParams() *AddMongoDBExporterParams { - return &AddMongoDBExporterParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddMongoDBExporterParamsWithTimeout creates a new AddMongoDBExporterParams object -// with the ability to set a timeout on a request. -func NewAddMongoDBExporterParamsWithTimeout(timeout time.Duration) *AddMongoDBExporterParams { - return &AddMongoDBExporterParams{ - timeout: timeout, - } -} - -// NewAddMongoDBExporterParamsWithContext creates a new AddMongoDBExporterParams object -// with the ability to set a context for a request. -func NewAddMongoDBExporterParamsWithContext(ctx context.Context) *AddMongoDBExporterParams { - return &AddMongoDBExporterParams{ - Context: ctx, - } -} - -// NewAddMongoDBExporterParamsWithHTTPClient creates a new AddMongoDBExporterParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddMongoDBExporterParamsWithHTTPClient(client *http.Client) *AddMongoDBExporterParams { - return &AddMongoDBExporterParams{ - HTTPClient: client, - } -} - -/* -AddMongoDBExporterParams contains all the parameters to send to the API endpoint - - for the add mongo DB exporter operation. - - Typically these are written to a http.Request. -*/ -type AddMongoDBExporterParams struct { - // Body. - Body AddMongoDBExporterBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add mongo DB exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddMongoDBExporterParams) WithDefaults() *AddMongoDBExporterParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add mongo DB exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddMongoDBExporterParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add mongo DB exporter params -func (o *AddMongoDBExporterParams) WithTimeout(timeout time.Duration) *AddMongoDBExporterParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add mongo DB exporter params -func (o *AddMongoDBExporterParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add mongo DB exporter params -func (o *AddMongoDBExporterParams) WithContext(ctx context.Context) *AddMongoDBExporterParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add mongo DB exporter params -func (o *AddMongoDBExporterParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add mongo DB exporter params -func (o *AddMongoDBExporterParams) WithHTTPClient(client *http.Client) *AddMongoDBExporterParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add mongo DB exporter params -func (o *AddMongoDBExporterParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add mongo DB exporter params -func (o *AddMongoDBExporterParams) WithBody(body AddMongoDBExporterBody) *AddMongoDBExporterParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add mongo DB exporter params -func (o *AddMongoDBExporterParams) SetBody(body AddMongoDBExporterBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddMongoDBExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_mongo_db_exporter_responses.go b/api/inventory/v1/json/client/agents_service/add_mongo_db_exporter_responses.go deleted file mode 100644 index 61c29366fa..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_mongo_db_exporter_responses.go +++ /dev/null @@ -1,740 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddMongoDBExporterReader is a Reader for the AddMongoDBExporter structure. -type AddMongoDBExporterReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddMongoDBExporterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddMongoDBExporterOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddMongoDBExporterDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddMongoDBExporterOK creates a AddMongoDBExporterOK with default headers values -func NewAddMongoDBExporterOK() *AddMongoDBExporterOK { - return &AddMongoDBExporterOK{} -} - -/* -AddMongoDBExporterOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddMongoDBExporterOK struct { - Payload *AddMongoDBExporterOKBody -} - -func (o *AddMongoDBExporterOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddMongoDBExporter][%d] addMongoDbExporterOk %+v", 200, o.Payload) -} - -func (o *AddMongoDBExporterOK) GetPayload() *AddMongoDBExporterOKBody { - return o.Payload -} - -func (o *AddMongoDBExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMongoDBExporterOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddMongoDBExporterDefault creates a AddMongoDBExporterDefault with default headers values -func NewAddMongoDBExporterDefault(code int) *AddMongoDBExporterDefault { - return &AddMongoDBExporterDefault{ - _statusCode: code, - } -} - -/* -AddMongoDBExporterDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddMongoDBExporterDefault struct { - _statusCode int - - Payload *AddMongoDBExporterDefaultBody -} - -// Code gets the status code for the add mongo DB exporter default response -func (o *AddMongoDBExporterDefault) Code() int { - return o._statusCode -} - -func (o *AddMongoDBExporterDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddMongoDBExporter][%d] AddMongoDBExporter default %+v", o._statusCode, o.Payload) -} - -func (o *AddMongoDBExporterDefault) GetPayload() *AddMongoDBExporterDefaultBody { - return o.Payload -} - -func (o *AddMongoDBExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMongoDBExporterDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddMongoDBExporterBody add mongo DB exporter body -swagger:model AddMongoDBExporterBody -*/ -type AddMongoDBExporterBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // MongoDB username for scraping metrics. - Username string `json:"username,omitempty"` - - // MongoDB password for scraping metrics. - Password string `json:"password,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Client certificate and key. - TLSCertificateKey string `json:"tls_certificate_key,omitempty"` - - // Password for decrypting tls_certificate_key. - TLSCertificateKeyFilePassword string `json:"tls_certificate_key_file_password,omitempty"` - - // Certificate Authority certificate chain. - TLSCa string `json:"tls_ca,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Enables push metrics mode for exporter. - PushMetrics bool `json:"push_metrics,omitempty"` - - // List of collector names to disable in this exporter. - DisableCollectors []string `json:"disable_collectors"` - - // Authentication mechanism. - // See https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism - // for details. - AuthenticationMechanism string `json:"authentication_mechanism,omitempty"` - - // Authentication database. - AuthenticationDatabase string `json:"authentication_database,omitempty"` - - // Custom password for exporter endpoint /metrics. - AgentPassword string `json:"agent_password,omitempty"` - - // List of colletions to get stats from. Can use * - StatsCollections []string `json:"stats_collections"` - - // Collections limit. Only get Databases and collection stats if the total number of collections in the server - // is less than this value. 0: no limit - CollectionsLimit int32 `json:"collections_limit,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `json:"expose_exporter,omitempty"` -} - -// Validate validates this add mongo DB exporter body -func (o *AddMongoDBExporterBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addMongoDbExporterBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addMongoDbExporterBodyTypeLogLevelPropEnum = append(addMongoDbExporterBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddMongoDBExporterBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddMongoDBExporterBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddMongoDBExporterBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddMongoDBExporterBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddMongoDBExporterBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddMongoDBExporterBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddMongoDBExporterBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddMongoDBExporterBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddMongoDBExporterBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddMongoDBExporterBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddMongoDBExporterBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddMongoDBExporterBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddMongoDBExporterBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addMongoDbExporterBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddMongoDBExporterBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add mongo DB exporter body based on context it is used -func (o *AddMongoDBExporterBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddMongoDBExporterBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddMongoDBExporterBody) UnmarshalBinary(b []byte) error { - var res AddMongoDBExporterBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddMongoDBExporterDefaultBody add mongo DB exporter default body -swagger:model AddMongoDBExporterDefaultBody -*/ -type AddMongoDBExporterDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddMongoDBExporterDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add mongo DB exporter default body -func (o *AddMongoDBExporterDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddMongoDBExporterDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddMongoDBExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddMongoDBExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add mongo DB exporter default body based on the context it is used -func (o *AddMongoDBExporterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddMongoDBExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddMongoDBExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddMongoDBExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddMongoDBExporterDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddMongoDBExporterDefaultBody) UnmarshalBinary(b []byte) error { - var res AddMongoDBExporterDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddMongoDBExporterDefaultBodyDetailsItems0 add mongo DB exporter default body details items0 -swagger:model AddMongoDBExporterDefaultBodyDetailsItems0 -*/ -type AddMongoDBExporterDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add mongo DB exporter default body details items0 -func (o *AddMongoDBExporterDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add mongo DB exporter default body details items0 based on context it is used -func (o *AddMongoDBExporterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddMongoDBExporterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddMongoDBExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddMongoDBExporterDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddMongoDBExporterOKBody add mongo DB exporter OK body -swagger:model AddMongoDBExporterOKBody -*/ -type AddMongoDBExporterOKBody struct { - // mongodb exporter - MongodbExporter *AddMongoDBExporterOKBodyMongodbExporter `json:"mongodb_exporter,omitempty"` -} - -// Validate validates this add mongo DB exporter OK body -func (o *AddMongoDBExporterOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateMongodbExporter(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddMongoDBExporterOKBody) validateMongodbExporter(formats strfmt.Registry) error { - if swag.IsZero(o.MongodbExporter) { // not required - return nil - } - - if o.MongodbExporter != nil { - if err := o.MongodbExporter.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addMongoDbExporterOk" + "." + "mongodb_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addMongoDbExporterOk" + "." + "mongodb_exporter") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add mongo DB exporter OK body based on the context it is used -func (o *AddMongoDBExporterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateMongodbExporter(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddMongoDBExporterOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExporter != nil { - if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addMongoDbExporterOk" + "." + "mongodb_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addMongoDbExporterOk" + "." + "mongodb_exporter") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddMongoDBExporterOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddMongoDBExporterOKBody) UnmarshalBinary(b []byte) error { - var res AddMongoDBExporterOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddMongoDBExporterOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. -swagger:model AddMongoDBExporterOKBodyMongodbExporter -*/ -type AddMongoDBExporterOKBodyMongodbExporter struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // MongoDB username for scraping metrics. - Username string `json:"username,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // True if exporter uses push metrics mode. - PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` - - // List of disabled collector names. - // - // Status fields below. - DisabledCollectors []string `json:"disabled_collectors"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Listen port for scraping metrics. - ListenPort int64 `json:"listen_port,omitempty"` - - // List of colletions to get stats from. Can use * - StatsCollections []string `json:"stats_collections"` - - // Collections limit. Only get Databases and collection stats if the total number of collections in the server - // is less than this value. 0: no limit - CollectionsLimit int32 `json:"collections_limit,omitempty"` - - // Enable All collectors. - EnableAllCollectors bool `json:"enable_all_collectors,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `json:"expose_exporter,omitempty"` -} - -// Validate validates this add mongo DB exporter OK body mongodb exporter -func (o *AddMongoDBExporterOKBodyMongodbExporter) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addMongoDbExporterOkBodyMongodbExporterTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addMongoDbExporterOkBodyMongodbExporterTypeStatusPropEnum = append(addMongoDbExporterOkBodyMongodbExporterTypeStatusPropEnum, v) - } -} - -const ( - - // AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddMongoDBExporterOKBodyMongodbExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddMongoDBExporterOKBodyMongodbExporter) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addMongoDbExporterOkBodyMongodbExporterTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddMongoDBExporterOKBodyMongodbExporter) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addMongoDbExporterOk"+"."+"mongodb_exporter"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addMongoDbExporterOkBodyMongodbExporterTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addMongoDbExporterOkBodyMongodbExporterTypeLogLevelPropEnum = append(addMongoDbExporterOkBodyMongodbExporterTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddMongoDBExporterOKBodyMongodbExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddMongoDBExporterOKBodyMongodbExporter) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addMongoDbExporterOkBodyMongodbExporterTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddMongoDBExporterOKBodyMongodbExporter) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addMongoDbExporterOk"+"."+"mongodb_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add mongo DB exporter OK body mongodb exporter based on context it is used -func (o *AddMongoDBExporterOKBodyMongodbExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddMongoDBExporterOKBodyMongodbExporter) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddMongoDBExporterOKBodyMongodbExporter) UnmarshalBinary(b []byte) error { - var res AddMongoDBExporterOKBodyMongodbExporter - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_my_s_q_ld_exporter_parameters.go b/api/inventory/v1/json/client/agents_service/add_my_s_q_ld_exporter_parameters.go deleted file mode 100644 index b6ac854df2..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_my_s_q_ld_exporter_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddMySQLdExporterParams creates a new AddMySQLdExporterParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddMySQLdExporterParams() *AddMySQLdExporterParams { - return &AddMySQLdExporterParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddMySQLdExporterParamsWithTimeout creates a new AddMySQLdExporterParams object -// with the ability to set a timeout on a request. -func NewAddMySQLdExporterParamsWithTimeout(timeout time.Duration) *AddMySQLdExporterParams { - return &AddMySQLdExporterParams{ - timeout: timeout, - } -} - -// NewAddMySQLdExporterParamsWithContext creates a new AddMySQLdExporterParams object -// with the ability to set a context for a request. -func NewAddMySQLdExporterParamsWithContext(ctx context.Context) *AddMySQLdExporterParams { - return &AddMySQLdExporterParams{ - Context: ctx, - } -} - -// NewAddMySQLdExporterParamsWithHTTPClient creates a new AddMySQLdExporterParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddMySQLdExporterParamsWithHTTPClient(client *http.Client) *AddMySQLdExporterParams { - return &AddMySQLdExporterParams{ - HTTPClient: client, - } -} - -/* -AddMySQLdExporterParams contains all the parameters to send to the API endpoint - - for the add my s q ld exporter operation. - - Typically these are written to a http.Request. -*/ -type AddMySQLdExporterParams struct { - // Body. - Body AddMySQLdExporterBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add my s q ld exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddMySQLdExporterParams) WithDefaults() *AddMySQLdExporterParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add my s q ld exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddMySQLdExporterParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add my s q ld exporter params -func (o *AddMySQLdExporterParams) WithTimeout(timeout time.Duration) *AddMySQLdExporterParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add my s q ld exporter params -func (o *AddMySQLdExporterParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add my s q ld exporter params -func (o *AddMySQLdExporterParams) WithContext(ctx context.Context) *AddMySQLdExporterParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add my s q ld exporter params -func (o *AddMySQLdExporterParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add my s q ld exporter params -func (o *AddMySQLdExporterParams) WithHTTPClient(client *http.Client) *AddMySQLdExporterParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add my s q ld exporter params -func (o *AddMySQLdExporterParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add my s q ld exporter params -func (o *AddMySQLdExporterParams) WithBody(body AddMySQLdExporterBody) *AddMySQLdExporterParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add my s q ld exporter params -func (o *AddMySQLdExporterParams) SetBody(body AddMySQLdExporterBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddMySQLdExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_my_s_q_ld_exporter_responses.go b/api/inventory/v1/json/client/agents_service/add_my_s_q_ld_exporter_responses.go deleted file mode 100644 index 3d51586acf..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_my_s_q_ld_exporter_responses.go +++ /dev/null @@ -1,740 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddMySQLdExporterReader is a Reader for the AddMySQLdExporter structure. -type AddMySQLdExporterReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddMySQLdExporterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddMySQLdExporterOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddMySQLdExporterDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddMySQLdExporterOK creates a AddMySQLdExporterOK with default headers values -func NewAddMySQLdExporterOK() *AddMySQLdExporterOK { - return &AddMySQLdExporterOK{} -} - -/* -AddMySQLdExporterOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddMySQLdExporterOK struct { - Payload *AddMySQLdExporterOKBody -} - -func (o *AddMySQLdExporterOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddMySQLdExporter][%d] addMySQLdExporterOk %+v", 200, o.Payload) -} - -func (o *AddMySQLdExporterOK) GetPayload() *AddMySQLdExporterOKBody { - return o.Payload -} - -func (o *AddMySQLdExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMySQLdExporterOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddMySQLdExporterDefault creates a AddMySQLdExporterDefault with default headers values -func NewAddMySQLdExporterDefault(code int) *AddMySQLdExporterDefault { - return &AddMySQLdExporterDefault{ - _statusCode: code, - } -} - -/* -AddMySQLdExporterDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddMySQLdExporterDefault struct { - _statusCode int - - Payload *AddMySQLdExporterDefaultBody -} - -// Code gets the status code for the add my s q ld exporter default response -func (o *AddMySQLdExporterDefault) Code() int { - return o._statusCode -} - -func (o *AddMySQLdExporterDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddMySQLdExporter][%d] AddMySQLdExporter default %+v", o._statusCode, o.Payload) -} - -func (o *AddMySQLdExporterDefault) GetPayload() *AddMySQLdExporterDefaultBody { - return o.Payload -} - -func (o *AddMySQLdExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMySQLdExporterDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddMySQLdExporterBody add my s q ld exporter body -swagger:model AddMySQLdExporterBody -*/ -type AddMySQLdExporterBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // MySQL username for scraping metrics. - Username string `json:"username,omitempty"` - - // MySQL password for scraping metrics. - Password string `json:"password,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Certificate Authority certificate chain. - TLSCa string `json:"tls_ca,omitempty"` - - // Client certificate. - TLSCert string `json:"tls_cert,omitempty"` - - // Password for decrypting tls_cert. - TLSKey string `json:"tls_key,omitempty"` - - // Tablestats group collectors will be disabled if there are more than that number of tables. - // 0 means tablestats group collectors are always enabled (no limit). - // Negative value means tablestats group collectors are always disabled. - TablestatsGroupTableLimit int32 `json:"tablestats_group_table_limit,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Enables push metrics mode for exporter. - PushMetrics bool `json:"push_metrics,omitempty"` - - // List of collector names to disable in this exporter. - DisableCollectors []string `json:"disable_collectors"` - - // Custom password for exporter endpoint /metrics. - AgentPassword string `json:"agent_password,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `json:"expose_exporter,omitempty"` -} - -// Validate validates this add my s q ld exporter body -func (o *AddMySQLdExporterBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addMySQLdExporterBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addMySQLdExporterBodyTypeLogLevelPropEnum = append(addMySQLdExporterBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddMySQLdExporterBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddMySQLdExporterBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddMySQLdExporterBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddMySQLdExporterBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddMySQLdExporterBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddMySQLdExporterBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddMySQLdExporterBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddMySQLdExporterBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddMySQLdExporterBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddMySQLdExporterBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddMySQLdExporterBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddMySQLdExporterBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddMySQLdExporterBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addMySQLdExporterBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddMySQLdExporterBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add my s q ld exporter body based on context it is used -func (o *AddMySQLdExporterBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddMySQLdExporterBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddMySQLdExporterBody) UnmarshalBinary(b []byte) error { - var res AddMySQLdExporterBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddMySQLdExporterDefaultBody add my s q ld exporter default body -swagger:model AddMySQLdExporterDefaultBody -*/ -type AddMySQLdExporterDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddMySQLdExporterDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add my s q ld exporter default body -func (o *AddMySQLdExporterDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddMySQLdExporterDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddMySQLdExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddMySQLdExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add my s q ld exporter default body based on the context it is used -func (o *AddMySQLdExporterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddMySQLdExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddMySQLdExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddMySQLdExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddMySQLdExporterDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddMySQLdExporterDefaultBody) UnmarshalBinary(b []byte) error { - var res AddMySQLdExporterDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddMySQLdExporterDefaultBodyDetailsItems0 add my s q ld exporter default body details items0 -swagger:model AddMySQLdExporterDefaultBodyDetailsItems0 -*/ -type AddMySQLdExporterDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add my s q ld exporter default body details items0 -func (o *AddMySQLdExporterDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add my s q ld exporter default body details items0 based on context it is used -func (o *AddMySQLdExporterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddMySQLdExporterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddMySQLdExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddMySQLdExporterDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddMySQLdExporterOKBody add my s q ld exporter OK body -swagger:model AddMySQLdExporterOKBody -*/ -type AddMySQLdExporterOKBody struct { - // Actual table count at the moment of adding. - TableCount int32 `json:"table_count,omitempty"` - - // mysqld exporter - MysqldExporter *AddMySQLdExporterOKBodyMysqldExporter `json:"mysqld_exporter,omitempty"` -} - -// Validate validates this add my s q ld exporter OK body -func (o *AddMySQLdExporterOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateMysqldExporter(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddMySQLdExporterOKBody) validateMysqldExporter(formats strfmt.Registry) error { - if swag.IsZero(o.MysqldExporter) { // not required - return nil - } - - if o.MysqldExporter != nil { - if err := o.MysqldExporter.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addMySQLdExporterOk" + "." + "mysqld_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addMySQLdExporterOk" + "." + "mysqld_exporter") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add my s q ld exporter OK body based on the context it is used -func (o *AddMySQLdExporterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateMysqldExporter(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddMySQLdExporterOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { - if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addMySQLdExporterOk" + "." + "mysqld_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addMySQLdExporterOk" + "." + "mysqld_exporter") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddMySQLdExporterOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddMySQLdExporterOKBody) UnmarshalBinary(b []byte) error { - var res AddMySQLdExporterOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddMySQLdExporterOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. -swagger:model AddMySQLdExporterOKBodyMysqldExporter -*/ -type AddMySQLdExporterOKBodyMysqldExporter struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // MySQL username for scraping metrics. - Username string `json:"username,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Certificate Authority certificate chain. - TLSCa string `json:"tls_ca,omitempty"` - - // Client certificate. - TLSCert string `json:"tls_cert,omitempty"` - - // Password for decrypting tls_cert. - TLSKey string `json:"tls_key,omitempty"` - - // Tablestats group collectors are disabled if there are more than that number of tables. - // 0 means tablestats group collectors are always enabled (no limit). - // Negative value means tablestats group collectors are always disabled. - TablestatsGroupTableLimit int32 `json:"tablestats_group_table_limit,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // True if exporter uses push metrics mode. - PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` - - // List of disabled collector names. - // - // Status fields below. - DisabledCollectors []string `json:"disabled_collectors"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Listen port for scraping metrics. - ListenPort int64 `json:"listen_port,omitempty"` - - // True if tablestats group collectors are currently disabled. - TablestatsGroupDisabled bool `json:"tablestats_group_disabled,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `json:"expose_exporter,omitempty"` -} - -// Validate validates this add my s q ld exporter OK body mysqld exporter -func (o *AddMySQLdExporterOKBodyMysqldExporter) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addMySQLdExporterOkBodyMysqldExporterTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addMySQLdExporterOkBodyMysqldExporterTypeStatusPropEnum = append(addMySQLdExporterOkBodyMysqldExporterTypeStatusPropEnum, v) - } -} - -const ( - - // AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddMySQLdExporterOKBodyMysqldExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddMySQLdExporterOKBodyMysqldExporter) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addMySQLdExporterOkBodyMysqldExporterTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddMySQLdExporterOKBodyMysqldExporter) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addMySQLdExporterOk"+"."+"mysqld_exporter"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addMySQLdExporterOkBodyMysqldExporterTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addMySQLdExporterOkBodyMysqldExporterTypeLogLevelPropEnum = append(addMySQLdExporterOkBodyMysqldExporterTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddMySQLdExporterOKBodyMysqldExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddMySQLdExporterOKBodyMysqldExporter) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addMySQLdExporterOkBodyMysqldExporterTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddMySQLdExporterOKBodyMysqldExporter) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addMySQLdExporterOk"+"."+"mysqld_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add my s q ld exporter OK body mysqld exporter based on context it is used -func (o *AddMySQLdExporterOKBodyMysqldExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddMySQLdExporterOKBodyMysqldExporter) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddMySQLdExporterOKBodyMysqldExporter) UnmarshalBinary(b []byte) error { - var res AddMySQLdExporterOKBodyMysqldExporter - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_node_exporter_parameters.go b/api/inventory/v1/json/client/agents_service/add_node_exporter_parameters.go deleted file mode 100644 index 54a77cc14a..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_node_exporter_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddNodeExporterParams creates a new AddNodeExporterParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddNodeExporterParams() *AddNodeExporterParams { - return &AddNodeExporterParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddNodeExporterParamsWithTimeout creates a new AddNodeExporterParams object -// with the ability to set a timeout on a request. -func NewAddNodeExporterParamsWithTimeout(timeout time.Duration) *AddNodeExporterParams { - return &AddNodeExporterParams{ - timeout: timeout, - } -} - -// NewAddNodeExporterParamsWithContext creates a new AddNodeExporterParams object -// with the ability to set a context for a request. -func NewAddNodeExporterParamsWithContext(ctx context.Context) *AddNodeExporterParams { - return &AddNodeExporterParams{ - Context: ctx, - } -} - -// NewAddNodeExporterParamsWithHTTPClient creates a new AddNodeExporterParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddNodeExporterParamsWithHTTPClient(client *http.Client) *AddNodeExporterParams { - return &AddNodeExporterParams{ - HTTPClient: client, - } -} - -/* -AddNodeExporterParams contains all the parameters to send to the API endpoint - - for the add node exporter operation. - - Typically these are written to a http.Request. -*/ -type AddNodeExporterParams struct { - // Body. - Body AddNodeExporterBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add node exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddNodeExporterParams) WithDefaults() *AddNodeExporterParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add node exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddNodeExporterParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add node exporter params -func (o *AddNodeExporterParams) WithTimeout(timeout time.Duration) *AddNodeExporterParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add node exporter params -func (o *AddNodeExporterParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add node exporter params -func (o *AddNodeExporterParams) WithContext(ctx context.Context) *AddNodeExporterParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add node exporter params -func (o *AddNodeExporterParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add node exporter params -func (o *AddNodeExporterParams) WithHTTPClient(client *http.Client) *AddNodeExporterParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add node exporter params -func (o *AddNodeExporterParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add node exporter params -func (o *AddNodeExporterParams) WithBody(body AddNodeExporterBody) *AddNodeExporterParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add node exporter params -func (o *AddNodeExporterParams) SetBody(body AddNodeExporterBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddNodeExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_node_exporter_responses.go b/api/inventory/v1/json/client/agents_service/add_node_exporter_responses.go deleted file mode 100644 index 5bc595ad0e..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_node_exporter_responses.go +++ /dev/null @@ -1,673 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddNodeExporterReader is a Reader for the AddNodeExporter structure. -type AddNodeExporterReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddNodeExporterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddNodeExporterOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddNodeExporterDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddNodeExporterOK creates a AddNodeExporterOK with default headers values -func NewAddNodeExporterOK() *AddNodeExporterOK { - return &AddNodeExporterOK{} -} - -/* -AddNodeExporterOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddNodeExporterOK struct { - Payload *AddNodeExporterOKBody -} - -func (o *AddNodeExporterOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddNodeExporter][%d] addNodeExporterOk %+v", 200, o.Payload) -} - -func (o *AddNodeExporterOK) GetPayload() *AddNodeExporterOKBody { - return o.Payload -} - -func (o *AddNodeExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddNodeExporterOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddNodeExporterDefault creates a AddNodeExporterDefault with default headers values -func NewAddNodeExporterDefault(code int) *AddNodeExporterDefault { - return &AddNodeExporterDefault{ - _statusCode: code, - } -} - -/* -AddNodeExporterDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddNodeExporterDefault struct { - _statusCode int - - Payload *AddNodeExporterDefaultBody -} - -// Code gets the status code for the add node exporter default response -func (o *AddNodeExporterDefault) Code() int { - return o._statusCode -} - -func (o *AddNodeExporterDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddNodeExporter][%d] AddNodeExporter default %+v", o._statusCode, o.Payload) -} - -func (o *AddNodeExporterDefault) GetPayload() *AddNodeExporterDefaultBody { - return o.Payload -} - -func (o *AddNodeExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddNodeExporterDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddNodeExporterBody add node exporter body -swagger:model AddNodeExporterBody -*/ -type AddNodeExporterBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Enables push metrics mode for exporter. - PushMetrics bool `json:"push_metrics,omitempty"` - - // List of collector names to disable in this exporter. - DisableCollectors []string `json:"disable_collectors"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Expose the node_exporter process on all public interfaces - ExposeExporter bool `json:"expose_exporter,omitempty"` -} - -// Validate validates this add node exporter body -func (o *AddNodeExporterBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addNodeExporterBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addNodeExporterBodyTypeLogLevelPropEnum = append(addNodeExporterBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddNodeExporterBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddNodeExporterBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddNodeExporterBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddNodeExporterBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddNodeExporterBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddNodeExporterBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddNodeExporterBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddNodeExporterBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddNodeExporterBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddNodeExporterBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddNodeExporterBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddNodeExporterBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddNodeExporterBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addNodeExporterBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddNodeExporterBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add node exporter body based on context it is used -func (o *AddNodeExporterBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddNodeExporterBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddNodeExporterBody) UnmarshalBinary(b []byte) error { - var res AddNodeExporterBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddNodeExporterDefaultBody add node exporter default body -swagger:model AddNodeExporterDefaultBody -*/ -type AddNodeExporterDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddNodeExporterDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add node exporter default body -func (o *AddNodeExporterDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddNodeExporterDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddNodeExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddNodeExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add node exporter default body based on the context it is used -func (o *AddNodeExporterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddNodeExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddNodeExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddNodeExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddNodeExporterDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddNodeExporterDefaultBody) UnmarshalBinary(b []byte) error { - var res AddNodeExporterDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddNodeExporterDefaultBodyDetailsItems0 add node exporter default body details items0 -swagger:model AddNodeExporterDefaultBodyDetailsItems0 -*/ -type AddNodeExporterDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add node exporter default body details items0 -func (o *AddNodeExporterDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add node exporter default body details items0 based on context it is used -func (o *AddNodeExporterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddNodeExporterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddNodeExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddNodeExporterDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddNodeExporterOKBody add node exporter OK body -swagger:model AddNodeExporterOKBody -*/ -type AddNodeExporterOKBody struct { - // node exporter - NodeExporter *AddNodeExporterOKBodyNodeExporter `json:"node_exporter,omitempty"` -} - -// Validate validates this add node exporter OK body -func (o *AddNodeExporterOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateNodeExporter(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddNodeExporterOKBody) validateNodeExporter(formats strfmt.Registry) error { - if swag.IsZero(o.NodeExporter) { // not required - return nil - } - - if o.NodeExporter != nil { - if err := o.NodeExporter.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addNodeExporterOk" + "." + "node_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addNodeExporterOk" + "." + "node_exporter") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add node exporter OK body based on the context it is used -func (o *AddNodeExporterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateNodeExporter(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddNodeExporterOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { - if o.NodeExporter != nil { - if err := o.NodeExporter.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addNodeExporterOk" + "." + "node_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addNodeExporterOk" + "." + "node_exporter") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddNodeExporterOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddNodeExporterOKBody) UnmarshalBinary(b []byte) error { - var res AddNodeExporterOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddNodeExporterOKBodyNodeExporter NodeExporter runs on Generic or Container Node and exposes its metrics. -swagger:model AddNodeExporterOKBodyNodeExporter -*/ -type AddNodeExporterOKBodyNodeExporter struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // True if exporter uses push metrics mode. - PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` - - // List of disabled collector names. - // - // Status fields below. - DisabledCollectors []string `json:"disabled_collectors"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Listen port for scraping metrics. - ListenPort int64 `json:"listen_port,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `json:"expose_exporter,omitempty"` -} - -// Validate validates this add node exporter OK body node exporter -func (o *AddNodeExporterOKBodyNodeExporter) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addNodeExporterOkBodyNodeExporterTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addNodeExporterOkBodyNodeExporterTypeStatusPropEnum = append(addNodeExporterOkBodyNodeExporterTypeStatusPropEnum, v) - } -} - -const ( - - // AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddNodeExporterOKBodyNodeExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddNodeExporterOKBodyNodeExporter) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addNodeExporterOkBodyNodeExporterTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddNodeExporterOKBodyNodeExporter) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addNodeExporterOk"+"."+"node_exporter"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addNodeExporterOkBodyNodeExporterTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addNodeExporterOkBodyNodeExporterTypeLogLevelPropEnum = append(addNodeExporterOkBodyNodeExporterTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddNodeExporterOKBodyNodeExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddNodeExporterOKBodyNodeExporter) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addNodeExporterOkBodyNodeExporterTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddNodeExporterOKBodyNodeExporter) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addNodeExporterOk"+"."+"node_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add node exporter OK body node exporter based on context it is used -func (o *AddNodeExporterOKBodyNodeExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddNodeExporterOKBodyNodeExporter) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddNodeExporterOKBodyNodeExporter) UnmarshalBinary(b []byte) error { - var res AddNodeExporterOKBodyNodeExporter - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_pmm_agent_parameters.go b/api/inventory/v1/json/client/agents_service/add_pmm_agent_parameters.go deleted file mode 100644 index 35bd619db7..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_pmm_agent_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddPMMAgentParams creates a new AddPMMAgentParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddPMMAgentParams() *AddPMMAgentParams { - return &AddPMMAgentParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddPMMAgentParamsWithTimeout creates a new AddPMMAgentParams object -// with the ability to set a timeout on a request. -func NewAddPMMAgentParamsWithTimeout(timeout time.Duration) *AddPMMAgentParams { - return &AddPMMAgentParams{ - timeout: timeout, - } -} - -// NewAddPMMAgentParamsWithContext creates a new AddPMMAgentParams object -// with the ability to set a context for a request. -func NewAddPMMAgentParamsWithContext(ctx context.Context) *AddPMMAgentParams { - return &AddPMMAgentParams{ - Context: ctx, - } -} - -// NewAddPMMAgentParamsWithHTTPClient creates a new AddPMMAgentParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddPMMAgentParamsWithHTTPClient(client *http.Client) *AddPMMAgentParams { - return &AddPMMAgentParams{ - HTTPClient: client, - } -} - -/* -AddPMMAgentParams contains all the parameters to send to the API endpoint - - for the add PMM agent operation. - - Typically these are written to a http.Request. -*/ -type AddPMMAgentParams struct { - // Body. - Body AddPMMAgentBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add PMM agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddPMMAgentParams) WithDefaults() *AddPMMAgentParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add PMM agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddPMMAgentParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add PMM agent params -func (o *AddPMMAgentParams) WithTimeout(timeout time.Duration) *AddPMMAgentParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add PMM agent params -func (o *AddPMMAgentParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add PMM agent params -func (o *AddPMMAgentParams) WithContext(ctx context.Context) *AddPMMAgentParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add PMM agent params -func (o *AddPMMAgentParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add PMM agent params -func (o *AddPMMAgentParams) WithHTTPClient(client *http.Client) *AddPMMAgentParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add PMM agent params -func (o *AddPMMAgentParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add PMM agent params -func (o *AddPMMAgentParams) WithBody(body AddPMMAgentBody) *AddPMMAgentParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add PMM agent params -func (o *AddPMMAgentParams) SetBody(body AddPMMAgentBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddPMMAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_pmm_agent_responses.go b/api/inventory/v1/json/client/agents_service/add_pmm_agent_responses.go deleted file mode 100644 index cc9081ec65..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_pmm_agent_responses.go +++ /dev/null @@ -1,440 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// AddPMMAgentReader is a Reader for the AddPMMAgent structure. -type AddPMMAgentReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddPMMAgentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddPMMAgentOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddPMMAgentDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddPMMAgentOK creates a AddPMMAgentOK with default headers values -func NewAddPMMAgentOK() *AddPMMAgentOK { - return &AddPMMAgentOK{} -} - -/* -AddPMMAgentOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddPMMAgentOK struct { - Payload *AddPMMAgentOKBody -} - -func (o *AddPMMAgentOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddPMMAgent][%d] addPmmAgentOk %+v", 200, o.Payload) -} - -func (o *AddPMMAgentOK) GetPayload() *AddPMMAgentOKBody { - return o.Payload -} - -func (o *AddPMMAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPMMAgentOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddPMMAgentDefault creates a AddPMMAgentDefault with default headers values -func NewAddPMMAgentDefault(code int) *AddPMMAgentDefault { - return &AddPMMAgentDefault{ - _statusCode: code, - } -} - -/* -AddPMMAgentDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddPMMAgentDefault struct { - _statusCode int - - Payload *AddPMMAgentDefaultBody -} - -// Code gets the status code for the add PMM agent default response -func (o *AddPMMAgentDefault) Code() int { - return o._statusCode -} - -func (o *AddPMMAgentDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddPMMAgent][%d] AddPMMAgent default %+v", o._statusCode, o.Payload) -} - -func (o *AddPMMAgentDefault) GetPayload() *AddPMMAgentDefaultBody { - return o.Payload -} - -func (o *AddPMMAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPMMAgentDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddPMMAgentBody add PMM agent body -swagger:model AddPMMAgentBody -*/ -type AddPMMAgentBody struct { - // Node identifier where this instance runs. - RunsOnNodeID string `json:"runs_on_node_id,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` -} - -// Validate validates this add PMM agent body -func (o *AddPMMAgentBody) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add PMM agent body based on context it is used -func (o *AddPMMAgentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddPMMAgentBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddPMMAgentBody) UnmarshalBinary(b []byte) error { - var res AddPMMAgentBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddPMMAgentDefaultBody add PMM agent default body -swagger:model AddPMMAgentDefaultBody -*/ -type AddPMMAgentDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddPMMAgentDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add PMM agent default body -func (o *AddPMMAgentDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddPMMAgentDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddPMMAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddPMMAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add PMM agent default body based on the context it is used -func (o *AddPMMAgentDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddPMMAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddPMMAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddPMMAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddPMMAgentDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddPMMAgentDefaultBody) UnmarshalBinary(b []byte) error { - var res AddPMMAgentDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddPMMAgentDefaultBodyDetailsItems0 add PMM agent default body details items0 -swagger:model AddPMMAgentDefaultBodyDetailsItems0 -*/ -type AddPMMAgentDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add PMM agent default body details items0 -func (o *AddPMMAgentDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add PMM agent default body details items0 based on context it is used -func (o *AddPMMAgentDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddPMMAgentDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddPMMAgentDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddPMMAgentDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddPMMAgentOKBody add PMM agent OK body -swagger:model AddPMMAgentOKBody -*/ -type AddPMMAgentOKBody struct { - // pmm agent - PMMAgent *AddPMMAgentOKBodyPMMAgent `json:"pmm_agent,omitempty"` -} - -// Validate validates this add PMM agent OK body -func (o *AddPMMAgentOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validatePMMAgent(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddPMMAgentOKBody) validatePMMAgent(formats strfmt.Registry) error { - if swag.IsZero(o.PMMAgent) { // not required - return nil - } - - if o.PMMAgent != nil { - if err := o.PMMAgent.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addPmmAgentOk" + "." + "pmm_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addPmmAgentOk" + "." + "pmm_agent") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add PMM agent OK body based on the context it is used -func (o *AddPMMAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidatePMMAgent(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddPMMAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { - if o.PMMAgent != nil { - if err := o.PMMAgent.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addPmmAgentOk" + "." + "pmm_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addPmmAgentOk" + "." + "pmm_agent") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddPMMAgentOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddPMMAgentOKBody) UnmarshalBinary(b []byte) error { - var res AddPMMAgentOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddPMMAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. -swagger:model AddPMMAgentOKBodyPMMAgent -*/ -type AddPMMAgentOKBodyPMMAgent struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // Node identifier where this instance runs. - RunsOnNodeID string `json:"runs_on_node_id,omitempty"` - - // Custom user-assigned labels. - // - // Status fields below. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // True if Agent is running and connected to pmm-managed. - Connected bool `json:"connected,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` -} - -// Validate validates this add PMM agent OK body PMM agent -func (o *AddPMMAgentOKBodyPMMAgent) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add PMM agent OK body PMM agent based on context it is used -func (o *AddPMMAgentOKBodyPMMAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddPMMAgentOKBodyPMMAgent) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddPMMAgentOKBodyPMMAgent) UnmarshalBinary(b []byte) error { - var res AddPMMAgentOKBodyPMMAgent - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_postgres_exporter_parameters.go b/api/inventory/v1/json/client/agents_service/add_postgres_exporter_parameters.go deleted file mode 100644 index 175d928c26..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_postgres_exporter_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddPostgresExporterParams creates a new AddPostgresExporterParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddPostgresExporterParams() *AddPostgresExporterParams { - return &AddPostgresExporterParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddPostgresExporterParamsWithTimeout creates a new AddPostgresExporterParams object -// with the ability to set a timeout on a request. -func NewAddPostgresExporterParamsWithTimeout(timeout time.Duration) *AddPostgresExporterParams { - return &AddPostgresExporterParams{ - timeout: timeout, - } -} - -// NewAddPostgresExporterParamsWithContext creates a new AddPostgresExporterParams object -// with the ability to set a context for a request. -func NewAddPostgresExporterParamsWithContext(ctx context.Context) *AddPostgresExporterParams { - return &AddPostgresExporterParams{ - Context: ctx, - } -} - -// NewAddPostgresExporterParamsWithHTTPClient creates a new AddPostgresExporterParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddPostgresExporterParamsWithHTTPClient(client *http.Client) *AddPostgresExporterParams { - return &AddPostgresExporterParams{ - HTTPClient: client, - } -} - -/* -AddPostgresExporterParams contains all the parameters to send to the API endpoint - - for the add postgres exporter operation. - - Typically these are written to a http.Request. -*/ -type AddPostgresExporterParams struct { - // Body. - Body AddPostgresExporterBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add postgres exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddPostgresExporterParams) WithDefaults() *AddPostgresExporterParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add postgres exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddPostgresExporterParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add postgres exporter params -func (o *AddPostgresExporterParams) WithTimeout(timeout time.Duration) *AddPostgresExporterParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add postgres exporter params -func (o *AddPostgresExporterParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add postgres exporter params -func (o *AddPostgresExporterParams) WithContext(ctx context.Context) *AddPostgresExporterParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add postgres exporter params -func (o *AddPostgresExporterParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add postgres exporter params -func (o *AddPostgresExporterParams) WithHTTPClient(client *http.Client) *AddPostgresExporterParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add postgres exporter params -func (o *AddPostgresExporterParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add postgres exporter params -func (o *AddPostgresExporterParams) WithBody(body AddPostgresExporterBody) *AddPostgresExporterParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add postgres exporter params -func (o *AddPostgresExporterParams) SetBody(body AddPostgresExporterBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddPostgresExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_postgres_exporter_responses.go b/api/inventory/v1/json/client/agents_service/add_postgres_exporter_responses.go deleted file mode 100644 index da1ba0f092..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_postgres_exporter_responses.go +++ /dev/null @@ -1,719 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddPostgresExporterReader is a Reader for the AddPostgresExporter structure. -type AddPostgresExporterReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddPostgresExporterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddPostgresExporterOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddPostgresExporterDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddPostgresExporterOK creates a AddPostgresExporterOK with default headers values -func NewAddPostgresExporterOK() *AddPostgresExporterOK { - return &AddPostgresExporterOK{} -} - -/* -AddPostgresExporterOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddPostgresExporterOK struct { - Payload *AddPostgresExporterOKBody -} - -func (o *AddPostgresExporterOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddPostgresExporter][%d] addPostgresExporterOk %+v", 200, o.Payload) -} - -func (o *AddPostgresExporterOK) GetPayload() *AddPostgresExporterOKBody { - return o.Payload -} - -func (o *AddPostgresExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPostgresExporterOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddPostgresExporterDefault creates a AddPostgresExporterDefault with default headers values -func NewAddPostgresExporterDefault(code int) *AddPostgresExporterDefault { - return &AddPostgresExporterDefault{ - _statusCode: code, - } -} - -/* -AddPostgresExporterDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddPostgresExporterDefault struct { - _statusCode int - - Payload *AddPostgresExporterDefaultBody -} - -// Code gets the status code for the add postgres exporter default response -func (o *AddPostgresExporterDefault) Code() int { - return o._statusCode -} - -func (o *AddPostgresExporterDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddPostgresExporter][%d] AddPostgresExporter default %+v", o._statusCode, o.Payload) -} - -func (o *AddPostgresExporterDefault) GetPayload() *AddPostgresExporterDefaultBody { - return o.Payload -} - -func (o *AddPostgresExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPostgresExporterDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddPostgresExporterBody add postgres exporter body -swagger:model AddPostgresExporterBody -*/ -type AddPostgresExporterBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // PostgreSQL username for scraping metrics. - Username string `json:"username,omitempty"` - - // PostgreSQL password for scraping metrics. - Password string `json:"password,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Enables push metrics mode for exporter. - PushMetrics bool `json:"push_metrics,omitempty"` - - // List of collector names to disable in this exporter. - DisableCollectors []string `json:"disable_collectors"` - - // TLS CA certificate. - TLSCa string `json:"tls_ca,omitempty"` - - // TLS Certifcate. - TLSCert string `json:"tls_cert,omitempty"` - - // TLS Certificate Key. - TLSKey string `json:"tls_key,omitempty"` - - // Custom password for exporter endpoint /metrics. - AgentPassword string `json:"agent_password,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Limit of databases for auto-discovery. - AutoDiscoveryLimit int32 `json:"auto_discovery_limit,omitempty"` - - // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `json:"expose_exporter,omitempty"` -} - -// Validate validates this add postgres exporter body -func (o *AddPostgresExporterBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addPostgresExporterBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addPostgresExporterBodyTypeLogLevelPropEnum = append(addPostgresExporterBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddPostgresExporterBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddPostgresExporterBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddPostgresExporterBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddPostgresExporterBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddPostgresExporterBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddPostgresExporterBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddPostgresExporterBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddPostgresExporterBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddPostgresExporterBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddPostgresExporterBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddPostgresExporterBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddPostgresExporterBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddPostgresExporterBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addPostgresExporterBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddPostgresExporterBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add postgres exporter body based on context it is used -func (o *AddPostgresExporterBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddPostgresExporterBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddPostgresExporterBody) UnmarshalBinary(b []byte) error { - var res AddPostgresExporterBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddPostgresExporterDefaultBody add postgres exporter default body -swagger:model AddPostgresExporterDefaultBody -*/ -type AddPostgresExporterDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddPostgresExporterDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add postgres exporter default body -func (o *AddPostgresExporterDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddPostgresExporterDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddPostgresExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddPostgresExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add postgres exporter default body based on the context it is used -func (o *AddPostgresExporterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddPostgresExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddPostgresExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddPostgresExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddPostgresExporterDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddPostgresExporterDefaultBody) UnmarshalBinary(b []byte) error { - var res AddPostgresExporterDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddPostgresExporterDefaultBodyDetailsItems0 add postgres exporter default body details items0 -swagger:model AddPostgresExporterDefaultBodyDetailsItems0 -*/ -type AddPostgresExporterDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add postgres exporter default body details items0 -func (o *AddPostgresExporterDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add postgres exporter default body details items0 based on context it is used -func (o *AddPostgresExporterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddPostgresExporterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddPostgresExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddPostgresExporterDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddPostgresExporterOKBody add postgres exporter OK body -swagger:model AddPostgresExporterOKBody -*/ -type AddPostgresExporterOKBody struct { - // postgres exporter - PostgresExporter *AddPostgresExporterOKBodyPostgresExporter `json:"postgres_exporter,omitempty"` -} - -// Validate validates this add postgres exporter OK body -func (o *AddPostgresExporterOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validatePostgresExporter(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddPostgresExporterOKBody) validatePostgresExporter(formats strfmt.Registry) error { - if swag.IsZero(o.PostgresExporter) { // not required - return nil - } - - if o.PostgresExporter != nil { - if err := o.PostgresExporter.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addPostgresExporterOk" + "." + "postgres_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addPostgresExporterOk" + "." + "postgres_exporter") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add postgres exporter OK body based on the context it is used -func (o *AddPostgresExporterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidatePostgresExporter(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddPostgresExporterOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresExporter != nil { - if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addPostgresExporterOk" + "." + "postgres_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addPostgresExporterOk" + "." + "postgres_exporter") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddPostgresExporterOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddPostgresExporterOKBody) UnmarshalBinary(b []byte) error { - var res AddPostgresExporterOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddPostgresExporterOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. -swagger:model AddPostgresExporterOKBodyPostgresExporter -*/ -type AddPostgresExporterOKBodyPostgresExporter struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // PostgreSQL username for scraping metrics. - Username string `json:"username,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // True if exporter uses push metrics mode. - PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` - - // List of disabled collector names. - DisabledCollectors []string `json:"disabled_collectors"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Listen port for scraping metrics. - ListenPort int64 `json:"listen_port,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Limit of databases for auto-discovery. - AutoDiscoveryLimit int32 `json:"auto_discovery_limit,omitempty"` - - // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `json:"expose_exporter,omitempty"` -} - -// Validate validates this add postgres exporter OK body postgres exporter -func (o *AddPostgresExporterOKBodyPostgresExporter) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addPostgresExporterOkBodyPostgresExporterTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addPostgresExporterOkBodyPostgresExporterTypeStatusPropEnum = append(addPostgresExporterOkBodyPostgresExporterTypeStatusPropEnum, v) - } -} - -const ( - - // AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddPostgresExporterOKBodyPostgresExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddPostgresExporterOKBodyPostgresExporter) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addPostgresExporterOkBodyPostgresExporterTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddPostgresExporterOKBodyPostgresExporter) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addPostgresExporterOk"+"."+"postgres_exporter"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addPostgresExporterOkBodyPostgresExporterTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addPostgresExporterOkBodyPostgresExporterTypeLogLevelPropEnum = append(addPostgresExporterOkBodyPostgresExporterTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddPostgresExporterOKBodyPostgresExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddPostgresExporterOKBodyPostgresExporter) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addPostgresExporterOkBodyPostgresExporterTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddPostgresExporterOKBodyPostgresExporter) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addPostgresExporterOk"+"."+"postgres_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add postgres exporter OK body postgres exporter based on context it is used -func (o *AddPostgresExporterOKBodyPostgresExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddPostgresExporterOKBodyPostgresExporter) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddPostgresExporterOKBodyPostgresExporter) UnmarshalBinary(b []byte) error { - var res AddPostgresExporterOKBodyPostgresExporter - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_proxy_sql_exporter_parameters.go b/api/inventory/v1/json/client/agents_service/add_proxy_sql_exporter_parameters.go deleted file mode 100644 index c7f680835a..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_proxy_sql_exporter_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddProxySQLExporterParams creates a new AddProxySQLExporterParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddProxySQLExporterParams() *AddProxySQLExporterParams { - return &AddProxySQLExporterParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddProxySQLExporterParamsWithTimeout creates a new AddProxySQLExporterParams object -// with the ability to set a timeout on a request. -func NewAddProxySQLExporterParamsWithTimeout(timeout time.Duration) *AddProxySQLExporterParams { - return &AddProxySQLExporterParams{ - timeout: timeout, - } -} - -// NewAddProxySQLExporterParamsWithContext creates a new AddProxySQLExporterParams object -// with the ability to set a context for a request. -func NewAddProxySQLExporterParamsWithContext(ctx context.Context) *AddProxySQLExporterParams { - return &AddProxySQLExporterParams{ - Context: ctx, - } -} - -// NewAddProxySQLExporterParamsWithHTTPClient creates a new AddProxySQLExporterParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddProxySQLExporterParamsWithHTTPClient(client *http.Client) *AddProxySQLExporterParams { - return &AddProxySQLExporterParams{ - HTTPClient: client, - } -} - -/* -AddProxySQLExporterParams contains all the parameters to send to the API endpoint - - for the add proxy SQL exporter operation. - - Typically these are written to a http.Request. -*/ -type AddProxySQLExporterParams struct { - // Body. - Body AddProxySQLExporterBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add proxy SQL exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddProxySQLExporterParams) WithDefaults() *AddProxySQLExporterParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add proxy SQL exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddProxySQLExporterParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add proxy SQL exporter params -func (o *AddProxySQLExporterParams) WithTimeout(timeout time.Duration) *AddProxySQLExporterParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add proxy SQL exporter params -func (o *AddProxySQLExporterParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add proxy SQL exporter params -func (o *AddProxySQLExporterParams) WithContext(ctx context.Context) *AddProxySQLExporterParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add proxy SQL exporter params -func (o *AddProxySQLExporterParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add proxy SQL exporter params -func (o *AddProxySQLExporterParams) WithHTTPClient(client *http.Client) *AddProxySQLExporterParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add proxy SQL exporter params -func (o *AddProxySQLExporterParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add proxy SQL exporter params -func (o *AddProxySQLExporterParams) WithBody(body AddProxySQLExporterBody) *AddProxySQLExporterParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add proxy SQL exporter params -func (o *AddProxySQLExporterParams) SetBody(body AddProxySQLExporterBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddProxySQLExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_proxy_sql_exporter_responses.go b/api/inventory/v1/json/client/agents_service/add_proxy_sql_exporter_responses.go deleted file mode 100644 index 890665575c..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_proxy_sql_exporter_responses.go +++ /dev/null @@ -1,706 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddProxySQLExporterReader is a Reader for the AddProxySQLExporter structure. -type AddProxySQLExporterReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddProxySQLExporterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddProxySQLExporterOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddProxySQLExporterDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddProxySQLExporterOK creates a AddProxySQLExporterOK with default headers values -func NewAddProxySQLExporterOK() *AddProxySQLExporterOK { - return &AddProxySQLExporterOK{} -} - -/* -AddProxySQLExporterOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddProxySQLExporterOK struct { - Payload *AddProxySQLExporterOKBody -} - -func (o *AddProxySQLExporterOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddProxySQLExporter][%d] addProxySqlExporterOk %+v", 200, o.Payload) -} - -func (o *AddProxySQLExporterOK) GetPayload() *AddProxySQLExporterOKBody { - return o.Payload -} - -func (o *AddProxySQLExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddProxySQLExporterOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddProxySQLExporterDefault creates a AddProxySQLExporterDefault with default headers values -func NewAddProxySQLExporterDefault(code int) *AddProxySQLExporterDefault { - return &AddProxySQLExporterDefault{ - _statusCode: code, - } -} - -/* -AddProxySQLExporterDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddProxySQLExporterDefault struct { - _statusCode int - - Payload *AddProxySQLExporterDefaultBody -} - -// Code gets the status code for the add proxy SQL exporter default response -func (o *AddProxySQLExporterDefault) Code() int { - return o._statusCode -} - -func (o *AddProxySQLExporterDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddProxySQLExporter][%d] AddProxySQLExporter default %+v", o._statusCode, o.Payload) -} - -func (o *AddProxySQLExporterDefault) GetPayload() *AddProxySQLExporterDefaultBody { - return o.Payload -} - -func (o *AddProxySQLExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddProxySQLExporterDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddProxySQLExporterBody add proxy SQL exporter body -swagger:model AddProxySQLExporterBody -*/ -type AddProxySQLExporterBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // ProxySQL username for scraping metrics. - Username string `json:"username,omitempty"` - - // ProxySQL password for scraping metrics. - Password string `json:"password,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Enables push metrics mode for exporter. - PushMetrics bool `json:"push_metrics,omitempty"` - - // List of collector names to disable in this exporter. - DisableCollectors []string `json:"disable_collectors"` - - // Custom password for exporter endpoint /metrics. - AgentPassword string `json:"agent_password,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `json:"expose_exporter,omitempty"` -} - -// Validate validates this add proxy SQL exporter body -func (o *AddProxySQLExporterBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addProxySqlExporterBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addProxySqlExporterBodyTypeLogLevelPropEnum = append(addProxySqlExporterBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddProxySQLExporterBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddProxySQLExporterBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddProxySQLExporterBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddProxySQLExporterBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddProxySQLExporterBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddProxySQLExporterBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddProxySQLExporterBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddProxySQLExporterBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddProxySQLExporterBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddProxySQLExporterBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddProxySQLExporterBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddProxySQLExporterBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddProxySQLExporterBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addProxySqlExporterBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddProxySQLExporterBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add proxy SQL exporter body based on context it is used -func (o *AddProxySQLExporterBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddProxySQLExporterBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddProxySQLExporterBody) UnmarshalBinary(b []byte) error { - var res AddProxySQLExporterBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddProxySQLExporterDefaultBody add proxy SQL exporter default body -swagger:model AddProxySQLExporterDefaultBody -*/ -type AddProxySQLExporterDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddProxySQLExporterDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add proxy SQL exporter default body -func (o *AddProxySQLExporterDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddProxySQLExporterDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddProxySQLExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddProxySQLExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add proxy SQL exporter default body based on the context it is used -func (o *AddProxySQLExporterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddProxySQLExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddProxySQLExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddProxySQLExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddProxySQLExporterDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddProxySQLExporterDefaultBody) UnmarshalBinary(b []byte) error { - var res AddProxySQLExporterDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddProxySQLExporterDefaultBodyDetailsItems0 add proxy SQL exporter default body details items0 -swagger:model AddProxySQLExporterDefaultBodyDetailsItems0 -*/ -type AddProxySQLExporterDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add proxy SQL exporter default body details items0 -func (o *AddProxySQLExporterDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add proxy SQL exporter default body details items0 based on context it is used -func (o *AddProxySQLExporterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddProxySQLExporterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddProxySQLExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddProxySQLExporterDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddProxySQLExporterOKBody add proxy SQL exporter OK body -swagger:model AddProxySQLExporterOKBody -*/ -type AddProxySQLExporterOKBody struct { - // proxysql exporter - ProxysqlExporter *AddProxySQLExporterOKBodyProxysqlExporter `json:"proxysql_exporter,omitempty"` -} - -// Validate validates this add proxy SQL exporter OK body -func (o *AddProxySQLExporterOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateProxysqlExporter(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddProxySQLExporterOKBody) validateProxysqlExporter(formats strfmt.Registry) error { - if swag.IsZero(o.ProxysqlExporter) { // not required - return nil - } - - if o.ProxysqlExporter != nil { - if err := o.ProxysqlExporter.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addProxySqlExporterOk" + "." + "proxysql_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addProxySqlExporterOk" + "." + "proxysql_exporter") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add proxy SQL exporter OK body based on the context it is used -func (o *AddProxySQLExporterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateProxysqlExporter(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddProxySQLExporterOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ProxysqlExporter != nil { - if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addProxySqlExporterOk" + "." + "proxysql_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addProxySqlExporterOk" + "." + "proxysql_exporter") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddProxySQLExporterOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddProxySQLExporterOKBody) UnmarshalBinary(b []byte) error { - var res AddProxySQLExporterOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddProxySQLExporterOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. -swagger:model AddProxySQLExporterOKBodyProxysqlExporter -*/ -type AddProxySQLExporterOKBodyProxysqlExporter struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // ProxySQL username for scraping metrics. - Username string `json:"username,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // True if exporter uses push metrics mode. - PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` - - // List of disabled collector names. - // - // Status fields below. - DisabledCollectors []string `json:"disabled_collectors"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Listen port for scraping metrics. - ListenPort int64 `json:"listen_port,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Optionally expose the exporter process on all public interfaces - ExposeExporter bool `json:"expose_exporter,omitempty"` -} - -// Validate validates this add proxy SQL exporter OK body proxysql exporter -func (o *AddProxySQLExporterOKBodyProxysqlExporter) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addProxySqlExporterOkBodyProxysqlExporterTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addProxySqlExporterOkBodyProxysqlExporterTypeStatusPropEnum = append(addProxySqlExporterOkBodyProxysqlExporterTypeStatusPropEnum, v) - } -} - -const ( - - // AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddProxySQLExporterOKBodyProxysqlExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddProxySQLExporterOKBodyProxysqlExporter) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addProxySqlExporterOkBodyProxysqlExporterTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddProxySQLExporterOKBodyProxysqlExporter) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addProxySqlExporterOk"+"."+"proxysql_exporter"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addProxySqlExporterOkBodyProxysqlExporterTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addProxySqlExporterOkBodyProxysqlExporterTypeLogLevelPropEnum = append(addProxySqlExporterOkBodyProxysqlExporterTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddProxySQLExporterOKBodyProxysqlExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddProxySQLExporterOKBodyProxysqlExporter) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addProxySqlExporterOkBodyProxysqlExporterTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddProxySQLExporterOKBodyProxysqlExporter) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addProxySqlExporterOk"+"."+"proxysql_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add proxy SQL exporter OK body proxysql exporter based on context it is used -func (o *AddProxySQLExporterOKBodyProxysqlExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddProxySQLExporterOKBodyProxysqlExporter) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddProxySQLExporterOKBodyProxysqlExporter) UnmarshalBinary(b []byte) error { - var res AddProxySQLExporterOKBodyProxysqlExporter - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_qan_mongo_db_profiler_agent_parameters.go b/api/inventory/v1/json/client/agents_service/add_qan_mongo_db_profiler_agent_parameters.go deleted file mode 100644 index c82f14020a..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_qan_mongo_db_profiler_agent_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddQANMongoDBProfilerAgentParams creates a new AddQANMongoDBProfilerAgentParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddQANMongoDBProfilerAgentParams() *AddQANMongoDBProfilerAgentParams { - return &AddQANMongoDBProfilerAgentParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddQANMongoDBProfilerAgentParamsWithTimeout creates a new AddQANMongoDBProfilerAgentParams object -// with the ability to set a timeout on a request. -func NewAddQANMongoDBProfilerAgentParamsWithTimeout(timeout time.Duration) *AddQANMongoDBProfilerAgentParams { - return &AddQANMongoDBProfilerAgentParams{ - timeout: timeout, - } -} - -// NewAddQANMongoDBProfilerAgentParamsWithContext creates a new AddQANMongoDBProfilerAgentParams object -// with the ability to set a context for a request. -func NewAddQANMongoDBProfilerAgentParamsWithContext(ctx context.Context) *AddQANMongoDBProfilerAgentParams { - return &AddQANMongoDBProfilerAgentParams{ - Context: ctx, - } -} - -// NewAddQANMongoDBProfilerAgentParamsWithHTTPClient creates a new AddQANMongoDBProfilerAgentParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddQANMongoDBProfilerAgentParamsWithHTTPClient(client *http.Client) *AddQANMongoDBProfilerAgentParams { - return &AddQANMongoDBProfilerAgentParams{ - HTTPClient: client, - } -} - -/* -AddQANMongoDBProfilerAgentParams contains all the parameters to send to the API endpoint - - for the add QAN mongo DB profiler agent operation. - - Typically these are written to a http.Request. -*/ -type AddQANMongoDBProfilerAgentParams struct { - // Body. - Body AddQANMongoDBProfilerAgentBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add QAN mongo DB profiler agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddQANMongoDBProfilerAgentParams) WithDefaults() *AddQANMongoDBProfilerAgentParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add QAN mongo DB profiler agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddQANMongoDBProfilerAgentParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add QAN mongo DB profiler agent params -func (o *AddQANMongoDBProfilerAgentParams) WithTimeout(timeout time.Duration) *AddQANMongoDBProfilerAgentParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add QAN mongo DB profiler agent params -func (o *AddQANMongoDBProfilerAgentParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add QAN mongo DB profiler agent params -func (o *AddQANMongoDBProfilerAgentParams) WithContext(ctx context.Context) *AddQANMongoDBProfilerAgentParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add QAN mongo DB profiler agent params -func (o *AddQANMongoDBProfilerAgentParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add QAN mongo DB profiler agent params -func (o *AddQANMongoDBProfilerAgentParams) WithHTTPClient(client *http.Client) *AddQANMongoDBProfilerAgentParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add QAN mongo DB profiler agent params -func (o *AddQANMongoDBProfilerAgentParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add QAN mongo DB profiler agent params -func (o *AddQANMongoDBProfilerAgentParams) WithBody(body AddQANMongoDBProfilerAgentBody) *AddQANMongoDBProfilerAgentParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add QAN mongo DB profiler agent params -func (o *AddQANMongoDBProfilerAgentParams) SetBody(body AddQANMongoDBProfilerAgentBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddQANMongoDBProfilerAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_qan_mongo_db_profiler_agent_responses.go b/api/inventory/v1/json/client/agents_service/add_qan_mongo_db_profiler_agent_responses.go deleted file mode 100644 index dd8ca67fe7..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_qan_mongo_db_profiler_agent_responses.go +++ /dev/null @@ -1,708 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddQANMongoDBProfilerAgentReader is a Reader for the AddQANMongoDBProfilerAgent structure. -type AddQANMongoDBProfilerAgentReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddQANMongoDBProfilerAgentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddQANMongoDBProfilerAgentOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddQANMongoDBProfilerAgentDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddQANMongoDBProfilerAgentOK creates a AddQANMongoDBProfilerAgentOK with default headers values -func NewAddQANMongoDBProfilerAgentOK() *AddQANMongoDBProfilerAgentOK { - return &AddQANMongoDBProfilerAgentOK{} -} - -/* -AddQANMongoDBProfilerAgentOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddQANMongoDBProfilerAgentOK struct { - Payload *AddQANMongoDBProfilerAgentOKBody -} - -func (o *AddQANMongoDBProfilerAgentOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMongoDBProfilerAgent][%d] addQanMongoDbProfilerAgentOk %+v", 200, o.Payload) -} - -func (o *AddQANMongoDBProfilerAgentOK) GetPayload() *AddQANMongoDBProfilerAgentOKBody { - return o.Payload -} - -func (o *AddQANMongoDBProfilerAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMongoDBProfilerAgentOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddQANMongoDBProfilerAgentDefault creates a AddQANMongoDBProfilerAgentDefault with default headers values -func NewAddQANMongoDBProfilerAgentDefault(code int) *AddQANMongoDBProfilerAgentDefault { - return &AddQANMongoDBProfilerAgentDefault{ - _statusCode: code, - } -} - -/* -AddQANMongoDBProfilerAgentDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddQANMongoDBProfilerAgentDefault struct { - _statusCode int - - Payload *AddQANMongoDBProfilerAgentDefaultBody -} - -// Code gets the status code for the add QAN mongo DB profiler agent default response -func (o *AddQANMongoDBProfilerAgentDefault) Code() int { - return o._statusCode -} - -func (o *AddQANMongoDBProfilerAgentDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMongoDBProfilerAgent][%d] AddQANMongoDBProfilerAgent default %+v", o._statusCode, o.Payload) -} - -func (o *AddQANMongoDBProfilerAgentDefault) GetPayload() *AddQANMongoDBProfilerAgentDefaultBody { - return o.Payload -} - -func (o *AddQANMongoDBProfilerAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMongoDBProfilerAgentDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddQANMongoDBProfilerAgentBody add QAN mongo DB profiler agent body -swagger:model AddQANMongoDBProfilerAgentBody -*/ -type AddQANMongoDBProfilerAgentBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // MongoDB username for getting profile data. - Username string `json:"username,omitempty"` - - // MongoDB password for getting profile data. - Password string `json:"password,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Client certificate and key. - TLSCertificateKey string `json:"tls_certificate_key,omitempty"` - - // Password for decrypting tls_certificate_key. - TLSCertificateKeyFilePassword string `json:"tls_certificate_key_file_password,omitempty"` - - // Certificate Authority certificate chain. - TLSCa string `json:"tls_ca,omitempty"` - - // Limit query length in QAN (default: server-defined; -1: no limit). - MaxQueryLength int32 `json:"max_query_length,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Authentication mechanism. - // See https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism - // for details. - AuthenticationMechanism string `json:"authentication_mechanism,omitempty"` - - // Authentication database. - AuthenticationDatabase string `json:"authentication_database,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add QAN mongo DB profiler agent body -func (o *AddQANMongoDBProfilerAgentBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addQanMongoDbProfilerAgentBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanMongoDbProfilerAgentBodyTypeLogLevelPropEnum = append(addQanMongoDbProfilerAgentBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddQANMongoDBProfilerAgentBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddQANMongoDBProfilerAgentBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanMongoDbProfilerAgentBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANMongoDBProfilerAgentBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add QAN mongo DB profiler agent body based on context it is used -func (o *AddQANMongoDBProfilerAgentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMongoDBProfilerAgentBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMongoDBProfilerAgentBody) UnmarshalBinary(b []byte) error { - var res AddQANMongoDBProfilerAgentBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMongoDBProfilerAgentDefaultBody add QAN mongo DB profiler agent default body -swagger:model AddQANMongoDBProfilerAgentDefaultBody -*/ -type AddQANMongoDBProfilerAgentDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add QAN mongo DB profiler agent default body -func (o *AddQANMongoDBProfilerAgentDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMongoDBProfilerAgentDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddQANMongoDBProfilerAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddQANMongoDBProfilerAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add QAN mongo DB profiler agent default body based on the context it is used -func (o *AddQANMongoDBProfilerAgentDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMongoDBProfilerAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddQANMongoDBProfilerAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddQANMongoDBProfilerAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMongoDBProfilerAgentDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMongoDBProfilerAgentDefaultBody) UnmarshalBinary(b []byte) error { - var res AddQANMongoDBProfilerAgentDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 add QAN mongo DB profiler agent default body details items0 -swagger:model AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 -*/ -type AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add QAN mongo DB profiler agent default body details items0 -func (o *AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add QAN mongo DB profiler agent default body details items0 based on context it is used -func (o *AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMongoDBProfilerAgentOKBody add QAN mongo DB profiler agent OK body -swagger:model AddQANMongoDBProfilerAgentOKBody -*/ -type AddQANMongoDBProfilerAgentOKBody struct { - // qan mongodb profiler agent - QANMongodbProfilerAgent *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent `json:"qan_mongodb_profiler_agent,omitempty"` -} - -// Validate validates this add QAN mongo DB profiler agent OK body -func (o *AddQANMongoDBProfilerAgentOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateQANMongodbProfilerAgent(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMongoDBProfilerAgentOKBody) validateQANMongodbProfilerAgent(formats strfmt.Registry) error { - if swag.IsZero(o.QANMongodbProfilerAgent) { // not required - return nil - } - - if o.QANMongodbProfilerAgent != nil { - if err := o.QANMongodbProfilerAgent.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addQanMongoDbProfilerAgentOk" + "." + "qan_mongodb_profiler_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addQanMongoDbProfilerAgentOk" + "." + "qan_mongodb_profiler_agent") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add QAN mongo DB profiler agent OK body based on the context it is used -func (o *AddQANMongoDBProfilerAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateQANMongodbProfilerAgent(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMongoDBProfilerAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfilerAgent != nil { - if err := o.QANMongodbProfilerAgent.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addQanMongoDbProfilerAgentOk" + "." + "qan_mongodb_profiler_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addQanMongoDbProfilerAgentOk" + "." + "qan_mongodb_profiler_agent") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMongoDBProfilerAgentOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMongoDBProfilerAgentOKBody) UnmarshalBinary(b []byte) error { - var res AddQANMongoDBProfilerAgentOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. -swagger:model AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent -*/ -type AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // MongoDB username for getting profiler data. - Username string `json:"username,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Limit query length in QAN (default: server-defined; -1: no limit). - // - // True if query examples are disabled. - // bool query_examples_disabled = 8; TODO https://jira.percona.com/browse/PMM-4650 - MaxQueryLength int32 `json:"max_query_length,omitempty"` - - // Custom user-assigned labels. - // - // Status fields below. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add QAN mongo DB profiler agent OK body QAN mongodb profiler agent -func (o *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addQanMongoDbProfilerAgentOkBodyQanMongodbProfilerAgentTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanMongoDbProfilerAgentOkBodyQanMongodbProfilerAgentTypeStatusPropEnum = append(addQanMongoDbProfilerAgentOkBodyQanMongodbProfilerAgentTypeStatusPropEnum, v) - } -} - -const ( - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanMongoDbProfilerAgentOkBodyQanMongodbProfilerAgentTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addQanMongoDbProfilerAgentOk"+"."+"qan_mongodb_profiler_agent"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addQanMongoDbProfilerAgentOkBodyQanMongodbProfilerAgentTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanMongoDbProfilerAgentOkBodyQanMongodbProfilerAgentTypeLogLevelPropEnum = append(addQanMongoDbProfilerAgentOkBodyQanMongodbProfilerAgentTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanMongoDbProfilerAgentOkBodyQanMongodbProfilerAgentTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addQanMongoDbProfilerAgentOk"+"."+"qan_mongodb_profiler_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add QAN mongo DB profiler agent OK body QAN mongodb profiler agent based on context it is used -func (o *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent) UnmarshalBinary(b []byte) error { - var res AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_qan_my_sql_perf_schema_agent_parameters.go b/api/inventory/v1/json/client/agents_service/add_qan_my_sql_perf_schema_agent_parameters.go deleted file mode 100644 index 0f569db809..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_qan_my_sql_perf_schema_agent_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddQANMySQLPerfSchemaAgentParams creates a new AddQANMySQLPerfSchemaAgentParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddQANMySQLPerfSchemaAgentParams() *AddQANMySQLPerfSchemaAgentParams { - return &AddQANMySQLPerfSchemaAgentParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddQANMySQLPerfSchemaAgentParamsWithTimeout creates a new AddQANMySQLPerfSchemaAgentParams object -// with the ability to set a timeout on a request. -func NewAddQANMySQLPerfSchemaAgentParamsWithTimeout(timeout time.Duration) *AddQANMySQLPerfSchemaAgentParams { - return &AddQANMySQLPerfSchemaAgentParams{ - timeout: timeout, - } -} - -// NewAddQANMySQLPerfSchemaAgentParamsWithContext creates a new AddQANMySQLPerfSchemaAgentParams object -// with the ability to set a context for a request. -func NewAddQANMySQLPerfSchemaAgentParamsWithContext(ctx context.Context) *AddQANMySQLPerfSchemaAgentParams { - return &AddQANMySQLPerfSchemaAgentParams{ - Context: ctx, - } -} - -// NewAddQANMySQLPerfSchemaAgentParamsWithHTTPClient creates a new AddQANMySQLPerfSchemaAgentParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddQANMySQLPerfSchemaAgentParamsWithHTTPClient(client *http.Client) *AddQANMySQLPerfSchemaAgentParams { - return &AddQANMySQLPerfSchemaAgentParams{ - HTTPClient: client, - } -} - -/* -AddQANMySQLPerfSchemaAgentParams contains all the parameters to send to the API endpoint - - for the add QAN my SQL perf schema agent operation. - - Typically these are written to a http.Request. -*/ -type AddQANMySQLPerfSchemaAgentParams struct { - // Body. - Body AddQANMySQLPerfSchemaAgentBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add QAN my SQL perf schema agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddQANMySQLPerfSchemaAgentParams) WithDefaults() *AddQANMySQLPerfSchemaAgentParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add QAN my SQL perf schema agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddQANMySQLPerfSchemaAgentParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add QAN my SQL perf schema agent params -func (o *AddQANMySQLPerfSchemaAgentParams) WithTimeout(timeout time.Duration) *AddQANMySQLPerfSchemaAgentParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add QAN my SQL perf schema agent params -func (o *AddQANMySQLPerfSchemaAgentParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add QAN my SQL perf schema agent params -func (o *AddQANMySQLPerfSchemaAgentParams) WithContext(ctx context.Context) *AddQANMySQLPerfSchemaAgentParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add QAN my SQL perf schema agent params -func (o *AddQANMySQLPerfSchemaAgentParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add QAN my SQL perf schema agent params -func (o *AddQANMySQLPerfSchemaAgentParams) WithHTTPClient(client *http.Client) *AddQANMySQLPerfSchemaAgentParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add QAN my SQL perf schema agent params -func (o *AddQANMySQLPerfSchemaAgentParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add QAN my SQL perf schema agent params -func (o *AddQANMySQLPerfSchemaAgentParams) WithBody(body AddQANMySQLPerfSchemaAgentBody) *AddQANMySQLPerfSchemaAgentParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add QAN my SQL perf schema agent params -func (o *AddQANMySQLPerfSchemaAgentParams) SetBody(body AddQANMySQLPerfSchemaAgentBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddQANMySQLPerfSchemaAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_qan_my_sql_perf_schema_agent_responses.go b/api/inventory/v1/json/client/agents_service/add_qan_my_sql_perf_schema_agent_responses.go deleted file mode 100644 index 3e0f970b0a..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_qan_my_sql_perf_schema_agent_responses.go +++ /dev/null @@ -1,718 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddQANMySQLPerfSchemaAgentReader is a Reader for the AddQANMySQLPerfSchemaAgent structure. -type AddQANMySQLPerfSchemaAgentReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddQANMySQLPerfSchemaAgentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddQANMySQLPerfSchemaAgentOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddQANMySQLPerfSchemaAgentDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddQANMySQLPerfSchemaAgentOK creates a AddQANMySQLPerfSchemaAgentOK with default headers values -func NewAddQANMySQLPerfSchemaAgentOK() *AddQANMySQLPerfSchemaAgentOK { - return &AddQANMySQLPerfSchemaAgentOK{} -} - -/* -AddQANMySQLPerfSchemaAgentOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddQANMySQLPerfSchemaAgentOK struct { - Payload *AddQANMySQLPerfSchemaAgentOKBody -} - -func (o *AddQANMySQLPerfSchemaAgentOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLPerfSchemaAgent][%d] addQanMySqlPerfSchemaAgentOk %+v", 200, o.Payload) -} - -func (o *AddQANMySQLPerfSchemaAgentOK) GetPayload() *AddQANMySQLPerfSchemaAgentOKBody { - return o.Payload -} - -func (o *AddQANMySQLPerfSchemaAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMySQLPerfSchemaAgentOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddQANMySQLPerfSchemaAgentDefault creates a AddQANMySQLPerfSchemaAgentDefault with default headers values -func NewAddQANMySQLPerfSchemaAgentDefault(code int) *AddQANMySQLPerfSchemaAgentDefault { - return &AddQANMySQLPerfSchemaAgentDefault{ - _statusCode: code, - } -} - -/* -AddQANMySQLPerfSchemaAgentDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddQANMySQLPerfSchemaAgentDefault struct { - _statusCode int - - Payload *AddQANMySQLPerfSchemaAgentDefaultBody -} - -// Code gets the status code for the add QAN my SQL perf schema agent default response -func (o *AddQANMySQLPerfSchemaAgentDefault) Code() int { - return o._statusCode -} - -func (o *AddQANMySQLPerfSchemaAgentDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLPerfSchemaAgent][%d] AddQANMySQLPerfSchemaAgent default %+v", o._statusCode, o.Payload) -} - -func (o *AddQANMySQLPerfSchemaAgentDefault) GetPayload() *AddQANMySQLPerfSchemaAgentDefaultBody { - return o.Payload -} - -func (o *AddQANMySQLPerfSchemaAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMySQLPerfSchemaAgentDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddQANMySQLPerfSchemaAgentBody add QAN my SQL perf schema agent body -swagger:model AddQANMySQLPerfSchemaAgentBody -*/ -type AddQANMySQLPerfSchemaAgentBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // MySQL username for getting performance data. - Username string `json:"username,omitempty"` - - // MySQL password for getting performance data. - Password string `json:"password,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Certificate Authority certificate chain. - TLSCa string `json:"tls_ca,omitempty"` - - // Client certificate. - TLSCert string `json:"tls_cert,omitempty"` - - // Password for decrypting tls_cert. - TLSKey string `json:"tls_key,omitempty"` - - // Limit query length in QAN (default: server-defined; -1: no limit) - MaxQueryLength int32 `json:"max_query_length,omitempty"` - - // Disable query examples. - DisableQueryExamples bool `json:"disable_query_examples,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Disable parsing comments from queries and showing them in QAN. - DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add QAN my SQL perf schema agent body -func (o *AddQANMySQLPerfSchemaAgentBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addQanMySqlPerfSchemaAgentBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanMySqlPerfSchemaAgentBodyTypeLogLevelPropEnum = append(addQanMySqlPerfSchemaAgentBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddQANMySQLPerfSchemaAgentBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddQANMySQLPerfSchemaAgentBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanMySqlPerfSchemaAgentBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANMySQLPerfSchemaAgentBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add QAN my SQL perf schema agent body based on context it is used -func (o *AddQANMySQLPerfSchemaAgentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMySQLPerfSchemaAgentBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMySQLPerfSchemaAgentBody) UnmarshalBinary(b []byte) error { - var res AddQANMySQLPerfSchemaAgentBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMySQLPerfSchemaAgentDefaultBody add QAN my SQL perf schema agent default body -swagger:model AddQANMySQLPerfSchemaAgentDefaultBody -*/ -type AddQANMySQLPerfSchemaAgentDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add QAN my SQL perf schema agent default body -func (o *AddQANMySQLPerfSchemaAgentDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMySQLPerfSchemaAgentDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddQANMySQLPerfSchemaAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddQANMySQLPerfSchemaAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add QAN my SQL perf schema agent default body based on the context it is used -func (o *AddQANMySQLPerfSchemaAgentDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMySQLPerfSchemaAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddQANMySQLPerfSchemaAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddQANMySQLPerfSchemaAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMySQLPerfSchemaAgentDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMySQLPerfSchemaAgentDefaultBody) UnmarshalBinary(b []byte) error { - var res AddQANMySQLPerfSchemaAgentDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 add QAN my SQL perf schema agent default body details items0 -swagger:model AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 -*/ -type AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add QAN my SQL perf schema agent default body details items0 -func (o *AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add QAN my SQL perf schema agent default body details items0 based on context it is used -func (o *AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMySQLPerfSchemaAgentOKBody add QAN my SQL perf schema agent OK body -swagger:model AddQANMySQLPerfSchemaAgentOKBody -*/ -type AddQANMySQLPerfSchemaAgentOKBody struct { - // qan mysql perfschema agent - QANMysqlPerfschemaAgent *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent `json:"qan_mysql_perfschema_agent,omitempty"` -} - -// Validate validates this add QAN my SQL perf schema agent OK body -func (o *AddQANMySQLPerfSchemaAgentOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateQANMysqlPerfschemaAgent(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMySQLPerfSchemaAgentOKBody) validateQANMysqlPerfschemaAgent(formats strfmt.Registry) error { - if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required - return nil - } - - if o.QANMysqlPerfschemaAgent != nil { - if err := o.QANMysqlPerfschemaAgent.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addQanMySqlPerfSchemaAgentOk" + "." + "qan_mysql_perfschema_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addQanMySqlPerfSchemaAgentOk" + "." + "qan_mysql_perfschema_agent") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add QAN my SQL perf schema agent OK body based on the context it is used -func (o *AddQANMySQLPerfSchemaAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateQANMysqlPerfschemaAgent(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMySQLPerfSchemaAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschemaAgent != nil { - if err := o.QANMysqlPerfschemaAgent.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addQanMySqlPerfSchemaAgentOk" + "." + "qan_mysql_perfschema_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addQanMySqlPerfSchemaAgentOk" + "." + "qan_mysql_perfschema_agent") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMySQLPerfSchemaAgentOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMySQLPerfSchemaAgentOKBody) UnmarshalBinary(b []byte) error { - var res AddQANMySQLPerfSchemaAgentOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. -swagger:model AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent -*/ -type AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // MySQL username for getting performance data. - Username string `json:"username,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Certificate Authority certificate chain. - TLSCa string `json:"tls_ca,omitempty"` - - // Client certificate. - TLSCert string `json:"tls_cert,omitempty"` - - // Password for decrypting tls_cert. - TLSKey string `json:"tls_key,omitempty"` - - // Disable parsing comments from queries and showing them in QAN. - DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` - - // Limit query length in QAN (default: server-defined; -1: no limit). - MaxQueryLength int32 `json:"max_query_length,omitempty"` - - // True if query examples are disabled. - QueryExamplesDisabled bool `json:"query_examples_disabled,omitempty"` - - // Custom user-assigned labels. - // - // Status fields below. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add QAN my SQL perf schema agent OK body QAN mysql perfschema agent -func (o *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addQanMySqlPerfSchemaAgentOkBodyQanMysqlPerfschemaAgentTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanMySqlPerfSchemaAgentOkBodyQanMysqlPerfschemaAgentTypeStatusPropEnum = append(addQanMySqlPerfSchemaAgentOkBodyQanMysqlPerfschemaAgentTypeStatusPropEnum, v) - } -} - -const ( - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanMySqlPerfSchemaAgentOkBodyQanMysqlPerfschemaAgentTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addQanMySqlPerfSchemaAgentOk"+"."+"qan_mysql_perfschema_agent"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addQanMySqlPerfSchemaAgentOkBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanMySqlPerfSchemaAgentOkBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum = append(addQanMySqlPerfSchemaAgentOkBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanMySqlPerfSchemaAgentOkBodyQanMysqlPerfschemaAgentTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addQanMySqlPerfSchemaAgentOk"+"."+"qan_mysql_perfschema_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add QAN my SQL perf schema agent OK body QAN mysql perfschema agent based on context it is used -func (o *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent) UnmarshalBinary(b []byte) error { - var res AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_qan_my_sql_slowlog_agent_parameters.go b/api/inventory/v1/json/client/agents_service/add_qan_my_sql_slowlog_agent_parameters.go deleted file mode 100644 index 7e3dca97b4..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_qan_my_sql_slowlog_agent_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddQANMySQLSlowlogAgentParams creates a new AddQANMySQLSlowlogAgentParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddQANMySQLSlowlogAgentParams() *AddQANMySQLSlowlogAgentParams { - return &AddQANMySQLSlowlogAgentParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddQANMySQLSlowlogAgentParamsWithTimeout creates a new AddQANMySQLSlowlogAgentParams object -// with the ability to set a timeout on a request. -func NewAddQANMySQLSlowlogAgentParamsWithTimeout(timeout time.Duration) *AddQANMySQLSlowlogAgentParams { - return &AddQANMySQLSlowlogAgentParams{ - timeout: timeout, - } -} - -// NewAddQANMySQLSlowlogAgentParamsWithContext creates a new AddQANMySQLSlowlogAgentParams object -// with the ability to set a context for a request. -func NewAddQANMySQLSlowlogAgentParamsWithContext(ctx context.Context) *AddQANMySQLSlowlogAgentParams { - return &AddQANMySQLSlowlogAgentParams{ - Context: ctx, - } -} - -// NewAddQANMySQLSlowlogAgentParamsWithHTTPClient creates a new AddQANMySQLSlowlogAgentParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddQANMySQLSlowlogAgentParamsWithHTTPClient(client *http.Client) *AddQANMySQLSlowlogAgentParams { - return &AddQANMySQLSlowlogAgentParams{ - HTTPClient: client, - } -} - -/* -AddQANMySQLSlowlogAgentParams contains all the parameters to send to the API endpoint - - for the add QAN my SQL slowlog agent operation. - - Typically these are written to a http.Request. -*/ -type AddQANMySQLSlowlogAgentParams struct { - // Body. - Body AddQANMySQLSlowlogAgentBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add QAN my SQL slowlog agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddQANMySQLSlowlogAgentParams) WithDefaults() *AddQANMySQLSlowlogAgentParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add QAN my SQL slowlog agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddQANMySQLSlowlogAgentParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add QAN my SQL slowlog agent params -func (o *AddQANMySQLSlowlogAgentParams) WithTimeout(timeout time.Duration) *AddQANMySQLSlowlogAgentParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add QAN my SQL slowlog agent params -func (o *AddQANMySQLSlowlogAgentParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add QAN my SQL slowlog agent params -func (o *AddQANMySQLSlowlogAgentParams) WithContext(ctx context.Context) *AddQANMySQLSlowlogAgentParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add QAN my SQL slowlog agent params -func (o *AddQANMySQLSlowlogAgentParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add QAN my SQL slowlog agent params -func (o *AddQANMySQLSlowlogAgentParams) WithHTTPClient(client *http.Client) *AddQANMySQLSlowlogAgentParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add QAN my SQL slowlog agent params -func (o *AddQANMySQLSlowlogAgentParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add QAN my SQL slowlog agent params -func (o *AddQANMySQLSlowlogAgentParams) WithBody(body AddQANMySQLSlowlogAgentBody) *AddQANMySQLSlowlogAgentParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add QAN my SQL slowlog agent params -func (o *AddQANMySQLSlowlogAgentParams) SetBody(body AddQANMySQLSlowlogAgentBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddQANMySQLSlowlogAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_qan_my_sql_slowlog_agent_responses.go b/api/inventory/v1/json/client/agents_service/add_qan_my_sql_slowlog_agent_responses.go deleted file mode 100644 index d067b74c80..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_qan_my_sql_slowlog_agent_responses.go +++ /dev/null @@ -1,725 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddQANMySQLSlowlogAgentReader is a Reader for the AddQANMySQLSlowlogAgent structure. -type AddQANMySQLSlowlogAgentReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddQANMySQLSlowlogAgentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddQANMySQLSlowlogAgentOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddQANMySQLSlowlogAgentDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddQANMySQLSlowlogAgentOK creates a AddQANMySQLSlowlogAgentOK with default headers values -func NewAddQANMySQLSlowlogAgentOK() *AddQANMySQLSlowlogAgentOK { - return &AddQANMySQLSlowlogAgentOK{} -} - -/* -AddQANMySQLSlowlogAgentOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddQANMySQLSlowlogAgentOK struct { - Payload *AddQANMySQLSlowlogAgentOKBody -} - -func (o *AddQANMySQLSlowlogAgentOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLSlowlogAgent][%d] addQanMySqlSlowlogAgentOk %+v", 200, o.Payload) -} - -func (o *AddQANMySQLSlowlogAgentOK) GetPayload() *AddQANMySQLSlowlogAgentOKBody { - return o.Payload -} - -func (o *AddQANMySQLSlowlogAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMySQLSlowlogAgentOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddQANMySQLSlowlogAgentDefault creates a AddQANMySQLSlowlogAgentDefault with default headers values -func NewAddQANMySQLSlowlogAgentDefault(code int) *AddQANMySQLSlowlogAgentDefault { - return &AddQANMySQLSlowlogAgentDefault{ - _statusCode: code, - } -} - -/* -AddQANMySQLSlowlogAgentDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddQANMySQLSlowlogAgentDefault struct { - _statusCode int - - Payload *AddQANMySQLSlowlogAgentDefaultBody -} - -// Code gets the status code for the add QAN my SQL slowlog agent default response -func (o *AddQANMySQLSlowlogAgentDefault) Code() int { - return o._statusCode -} - -func (o *AddQANMySQLSlowlogAgentDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLSlowlogAgent][%d] AddQANMySQLSlowlogAgent default %+v", o._statusCode, o.Payload) -} - -func (o *AddQANMySQLSlowlogAgentDefault) GetPayload() *AddQANMySQLSlowlogAgentDefaultBody { - return o.Payload -} - -func (o *AddQANMySQLSlowlogAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMySQLSlowlogAgentDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddQANMySQLSlowlogAgentBody add QAN my SQL slowlog agent body -swagger:model AddQANMySQLSlowlogAgentBody -*/ -type AddQANMySQLSlowlogAgentBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // MySQL username for getting slowlog data. - Username string `json:"username,omitempty"` - - // MySQL password for getting slowlog data. - Password string `json:"password,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Certificate Authority certificate chain. - TLSCa string `json:"tls_ca,omitempty"` - - // Client certificate. - TLSCert string `json:"tls_cert,omitempty"` - - // Password for decrypting tls_cert. - TLSKey string `json:"tls_key,omitempty"` - - // Limit query length in QAN (default: server-defined; -1: no limit). - MaxQueryLength int32 `json:"max_query_length,omitempty"` - - // Disable query examples. - DisableQueryExamples bool `json:"disable_query_examples,omitempty"` - - // Rotate slowlog file at this size if > 0. - // Use zero or negative value to disable rotation. - MaxSlowlogFileSize string `json:"max_slowlog_file_size,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Disable parsing comments from queries and showing them in QAN. - DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add QAN my SQL slowlog agent body -func (o *AddQANMySQLSlowlogAgentBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addQanMySqlSlowlogAgentBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanMySqlSlowlogAgentBodyTypeLogLevelPropEnum = append(addQanMySqlSlowlogAgentBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddQANMySQLSlowlogAgentBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddQANMySQLSlowlogAgentBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanMySqlSlowlogAgentBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANMySQLSlowlogAgentBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add QAN my SQL slowlog agent body based on context it is used -func (o *AddQANMySQLSlowlogAgentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMySQLSlowlogAgentBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMySQLSlowlogAgentBody) UnmarshalBinary(b []byte) error { - var res AddQANMySQLSlowlogAgentBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMySQLSlowlogAgentDefaultBody add QAN my SQL slowlog agent default body -swagger:model AddQANMySQLSlowlogAgentDefaultBody -*/ -type AddQANMySQLSlowlogAgentDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add QAN my SQL slowlog agent default body -func (o *AddQANMySQLSlowlogAgentDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMySQLSlowlogAgentDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddQANMySQLSlowlogAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddQANMySQLSlowlogAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add QAN my SQL slowlog agent default body based on the context it is used -func (o *AddQANMySQLSlowlogAgentDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMySQLSlowlogAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddQANMySQLSlowlogAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddQANMySQLSlowlogAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMySQLSlowlogAgentDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMySQLSlowlogAgentDefaultBody) UnmarshalBinary(b []byte) error { - var res AddQANMySQLSlowlogAgentDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 add QAN my SQL slowlog agent default body details items0 -swagger:model AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 -*/ -type AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add QAN my SQL slowlog agent default body details items0 -func (o *AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add QAN my SQL slowlog agent default body details items0 based on context it is used -func (o *AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMySQLSlowlogAgentOKBody add QAN my SQL slowlog agent OK body -swagger:model AddQANMySQLSlowlogAgentOKBody -*/ -type AddQANMySQLSlowlogAgentOKBody struct { - // qan mysql slowlog agent - QANMysqlSlowlogAgent *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent `json:"qan_mysql_slowlog_agent,omitempty"` -} - -// Validate validates this add QAN my SQL slowlog agent OK body -func (o *AddQANMySQLSlowlogAgentOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateQANMysqlSlowlogAgent(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMySQLSlowlogAgentOKBody) validateQANMysqlSlowlogAgent(formats strfmt.Registry) error { - if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required - return nil - } - - if o.QANMysqlSlowlogAgent != nil { - if err := o.QANMysqlSlowlogAgent.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addQanMySqlSlowlogAgentOk" + "." + "qan_mysql_slowlog_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addQanMySqlSlowlogAgentOk" + "." + "qan_mysql_slowlog_agent") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add QAN my SQL slowlog agent OK body based on the context it is used -func (o *AddQANMySQLSlowlogAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateQANMysqlSlowlogAgent(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANMySQLSlowlogAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlogAgent != nil { - if err := o.QANMysqlSlowlogAgent.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addQanMySqlSlowlogAgentOk" + "." + "qan_mysql_slowlog_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addQanMySqlSlowlogAgentOk" + "." + "qan_mysql_slowlog_agent") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMySQLSlowlogAgentOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMySQLSlowlogAgentOKBody) UnmarshalBinary(b []byte) error { - var res AddQANMySQLSlowlogAgentOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. -swagger:model AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent -*/ -type AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // MySQL username for getting performance data. - Username string `json:"username,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Certificate Authority certificate chain. - TLSCa string `json:"tls_ca,omitempty"` - - // Client certificate. - TLSCert string `json:"tls_cert,omitempty"` - - // Password for decrypting tls_cert. - TLSKey string `json:"tls_key,omitempty"` - - // Disable parsing comments from queries and showing them in QAN. - DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` - - // Limit query length in QAN (default: server-defined; -1: no limit) - MaxQueryLength int32 `json:"max_query_length,omitempty"` - - // True if query examples are disabled. - QueryExamplesDisabled bool `json:"query_examples_disabled,omitempty"` - - // Slowlog file is rotated at this size if > 0. - MaxSlowlogFileSize string `json:"max_slowlog_file_size,omitempty"` - - // Custom user-assigned labels. - // - // Status fields below. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // mod tidy - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add QAN my SQL slowlog agent OK body QAN mysql slowlog agent -func (o *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addQanMySqlSlowlogAgentOkBodyQanMysqlSlowlogAgentTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanMySqlSlowlogAgentOkBodyQanMysqlSlowlogAgentTypeStatusPropEnum = append(addQanMySqlSlowlogAgentOkBodyQanMysqlSlowlogAgentTypeStatusPropEnum, v) - } -} - -const ( - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanMySqlSlowlogAgentOkBodyQanMysqlSlowlogAgentTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addQanMySqlSlowlogAgentOk"+"."+"qan_mysql_slowlog_agent"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addQanMySqlSlowlogAgentOkBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanMySqlSlowlogAgentOkBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum = append(addQanMySqlSlowlogAgentOkBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanMySqlSlowlogAgentOkBodyQanMysqlSlowlogAgentTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addQanMySqlSlowlogAgentOk"+"."+"qan_mysql_slowlog_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add QAN my SQL slowlog agent OK body QAN mysql slowlog agent based on context it is used -func (o *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent) UnmarshalBinary(b []byte) error { - var res AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go b/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go deleted file mode 100644 index 214c3847c1..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddQANPostgreSQLPgStatMonitorAgentParams creates a new AddQANPostgreSQLPgStatMonitorAgentParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddQANPostgreSQLPgStatMonitorAgentParams() *AddQANPostgreSQLPgStatMonitorAgentParams { - return &AddQANPostgreSQLPgStatMonitorAgentParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddQANPostgreSQLPgStatMonitorAgentParamsWithTimeout creates a new AddQANPostgreSQLPgStatMonitorAgentParams object -// with the ability to set a timeout on a request. -func NewAddQANPostgreSQLPgStatMonitorAgentParamsWithTimeout(timeout time.Duration) *AddQANPostgreSQLPgStatMonitorAgentParams { - return &AddQANPostgreSQLPgStatMonitorAgentParams{ - timeout: timeout, - } -} - -// NewAddQANPostgreSQLPgStatMonitorAgentParamsWithContext creates a new AddQANPostgreSQLPgStatMonitorAgentParams object -// with the ability to set a context for a request. -func NewAddQANPostgreSQLPgStatMonitorAgentParamsWithContext(ctx context.Context) *AddQANPostgreSQLPgStatMonitorAgentParams { - return &AddQANPostgreSQLPgStatMonitorAgentParams{ - Context: ctx, - } -} - -// NewAddQANPostgreSQLPgStatMonitorAgentParamsWithHTTPClient creates a new AddQANPostgreSQLPgStatMonitorAgentParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddQANPostgreSQLPgStatMonitorAgentParamsWithHTTPClient(client *http.Client) *AddQANPostgreSQLPgStatMonitorAgentParams { - return &AddQANPostgreSQLPgStatMonitorAgentParams{ - HTTPClient: client, - } -} - -/* -AddQANPostgreSQLPgStatMonitorAgentParams contains all the parameters to send to the API endpoint - - for the add QAN postgre SQL pg stat monitor agent operation. - - Typically these are written to a http.Request. -*/ -type AddQANPostgreSQLPgStatMonitorAgentParams struct { - // Body. - Body AddQANPostgreSQLPgStatMonitorAgentBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add QAN postgre SQL pg stat monitor agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) WithDefaults() *AddQANPostgreSQLPgStatMonitorAgentParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add QAN postgre SQL pg stat monitor agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add QAN postgre SQL pg stat monitor agent params -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) WithTimeout(timeout time.Duration) *AddQANPostgreSQLPgStatMonitorAgentParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add QAN postgre SQL pg stat monitor agent params -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add QAN postgre SQL pg stat monitor agent params -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) WithContext(ctx context.Context) *AddQANPostgreSQLPgStatMonitorAgentParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add QAN postgre SQL pg stat monitor agent params -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add QAN postgre SQL pg stat monitor agent params -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) WithHTTPClient(client *http.Client) *AddQANPostgreSQLPgStatMonitorAgentParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add QAN postgre SQL pg stat monitor agent params -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add QAN postgre SQL pg stat monitor agent params -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) WithBody(body AddQANPostgreSQLPgStatMonitorAgentBody) *AddQANPostgreSQLPgStatMonitorAgentParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add QAN postgre SQL pg stat monitor agent params -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) SetBody(body AddQANPostgreSQLPgStatMonitorAgentBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddQANPostgreSQLPgStatMonitorAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go b/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go deleted file mode 100644 index dae334c162..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go +++ /dev/null @@ -1,709 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddQANPostgreSQLPgStatMonitorAgentReader is a Reader for the AddQANPostgreSQLPgStatMonitorAgent structure. -type AddQANPostgreSQLPgStatMonitorAgentReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddQANPostgreSQLPgStatMonitorAgentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddQANPostgreSQLPgStatMonitorAgentOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddQANPostgreSQLPgStatMonitorAgentDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddQANPostgreSQLPgStatMonitorAgentOK creates a AddQANPostgreSQLPgStatMonitorAgentOK with default headers values -func NewAddQANPostgreSQLPgStatMonitorAgentOK() *AddQANPostgreSQLPgStatMonitorAgentOK { - return &AddQANPostgreSQLPgStatMonitorAgentOK{} -} - -/* -AddQANPostgreSQLPgStatMonitorAgentOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddQANPostgreSQLPgStatMonitorAgentOK struct { - Payload *AddQANPostgreSQLPgStatMonitorAgentOKBody -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent][%d] addQanPostgreSqlPgStatMonitorAgentOk %+v", 200, o.Payload) -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentOK) GetPayload() *AddQANPostgreSQLPgStatMonitorAgentOKBody { - return o.Payload -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANPostgreSQLPgStatMonitorAgentOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddQANPostgreSQLPgStatMonitorAgentDefault creates a AddQANPostgreSQLPgStatMonitorAgentDefault with default headers values -func NewAddQANPostgreSQLPgStatMonitorAgentDefault(code int) *AddQANPostgreSQLPgStatMonitorAgentDefault { - return &AddQANPostgreSQLPgStatMonitorAgentDefault{ - _statusCode: code, - } -} - -/* -AddQANPostgreSQLPgStatMonitorAgentDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddQANPostgreSQLPgStatMonitorAgentDefault struct { - _statusCode int - - Payload *AddQANPostgreSQLPgStatMonitorAgentDefaultBody -} - -// Code gets the status code for the add QAN postgre SQL pg stat monitor agent default response -func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) Code() int { - return o._statusCode -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent][%d] AddQANPostgreSQLPgStatMonitorAgent default %+v", o._statusCode, o.Payload) -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) GetPayload() *AddQANPostgreSQLPgStatMonitorAgentDefaultBody { - return o.Payload -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANPostgreSQLPgStatMonitorAgentDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddQANPostgreSQLPgStatMonitorAgentBody add QAN postgre SQL pg stat monitor agent body -swagger:model AddQANPostgreSQLPgStatMonitorAgentBody -*/ -type AddQANPostgreSQLPgStatMonitorAgentBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // PostgreSQL username for getting pg stat monitor data. - Username string `json:"username,omitempty"` - - // PostgreSQL password for getting pg stat monitor data. - Password string `json:"password,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Limit query length in QAN (default: server-defined; -1: no limit). - MaxQueryLength int32 `json:"max_query_length,omitempty"` - - // Disable query examples. - DisableQueryExamples bool `json:"disable_query_examples,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Disable parsing comments from queries and showing them in QAN. - DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` - - // TLS CA certificate. - TLSCa string `json:"tls_ca,omitempty"` - - // TLS Certifcate. - TLSCert string `json:"tls_cert,omitempty"` - - // TLS Certificate Key. - TLSKey string `json:"tls_key,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add QAN postgre SQL pg stat monitor agent body -func (o *AddQANPostgreSQLPgStatMonitorAgentBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addQanPostgreSqlPgStatMonitorAgentBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanPostgreSqlPgStatMonitorAgentBodyTypeLogLevelPropEnum = append(addQanPostgreSqlPgStatMonitorAgentBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddQANPostgreSQLPgStatMonitorAgentBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddQANPostgreSQLPgStatMonitorAgentBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanPostgreSqlPgStatMonitorAgentBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add QAN postgre SQL pg stat monitor agent body based on context it is used -func (o *AddQANPostgreSQLPgStatMonitorAgentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatMonitorAgentBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatMonitorAgentBody) UnmarshalBinary(b []byte) error { - var res AddQANPostgreSQLPgStatMonitorAgentBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANPostgreSQLPgStatMonitorAgentDefaultBody add QAN postgre SQL pg stat monitor agent default body -swagger:model AddQANPostgreSQLPgStatMonitorAgentDefaultBody -*/ -type AddQANPostgreSQLPgStatMonitorAgentDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add QAN postgre SQL pg stat monitor agent default body -func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddQANPostgreSQLPgStatMonitorAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddQANPostgreSQLPgStatMonitorAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add QAN postgre SQL pg stat monitor agent default body based on the context it is used -func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddQANPostgreSQLPgStatMonitorAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddQANPostgreSQLPgStatMonitorAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) UnmarshalBinary(b []byte) error { - var res AddQANPostgreSQLPgStatMonitorAgentDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 add QAN postgre SQL pg stat monitor agent default body details items0 -swagger:model AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 -*/ -type AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add QAN postgre SQL pg stat monitor agent default body details items0 -func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add QAN postgre SQL pg stat monitor agent default body details items0 based on context it is used -func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANPostgreSQLPgStatMonitorAgentOKBody add QAN postgre SQL pg stat monitor agent OK body -swagger:model AddQANPostgreSQLPgStatMonitorAgentOKBody -*/ -type AddQANPostgreSQLPgStatMonitorAgentOKBody struct { - // qan postgresql pgstatmonitor agent - QANPostgresqlPgstatmonitorAgent *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent `json:"qan_postgresql_pgstatmonitor_agent,omitempty"` -} - -// Validate validates this add QAN postgre SQL pg stat monitor agent OK body -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateQANPostgresqlPgstatmonitorAgent(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) validateQANPostgresqlPgstatmonitorAgent(formats strfmt.Registry) error { - if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required - return nil - } - - if o.QANPostgresqlPgstatmonitorAgent != nil { - if err := o.QANPostgresqlPgstatmonitorAgent.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addQanPostgreSqlPgStatMonitorAgentOk" + "." + "qan_postgresql_pgstatmonitor_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addQanPostgreSqlPgStatMonitorAgentOk" + "." + "qan_postgresql_pgstatmonitor_agent") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add QAN postgre SQL pg stat monitor agent OK body based on the context it is used -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateQANPostgresqlPgstatmonitorAgent(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { - if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addQanPostgreSqlPgStatMonitorAgentOk" + "." + "qan_postgresql_pgstatmonitor_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addQanPostgreSqlPgStatMonitorAgentOk" + "." + "qan_postgresql_pgstatmonitor_agent") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) UnmarshalBinary(b []byte) error { - var res AddQANPostgreSQLPgStatMonitorAgentOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. -swagger:model AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent -*/ -type AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // PostgreSQL username for getting pg stat monitor data. - Username string `json:"username,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Disable parsing comments from queries and showing them in QAN. - DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` - - // Limit query length in QAN (default: server-defined; -1: no limit). - MaxQueryLength int32 `json:"max_query_length,omitempty"` - - // True if query examples are disabled. - QueryExamplesDisabled bool `json:"query_examples_disabled,omitempty"` - - // Custom user-assigned labels. - // - // Status fields below. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add QAN postgre SQL pg stat monitor agent OK body QAN postgresql pgstatmonitor agent -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addQanPostgreSqlPgStatMonitorAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanPostgreSqlPgStatMonitorAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeStatusPropEnum = append(addQanPostgreSqlPgStatMonitorAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeStatusPropEnum, v) - } -} - -const ( - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanPostgreSqlPgStatMonitorAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addQanPostgreSqlPgStatMonitorAgentOk"+"."+"qan_postgresql_pgstatmonitor_agent"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addQanPostgreSqlPgStatMonitorAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanPostgreSqlPgStatMonitorAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum = append(addQanPostgreSqlPgStatMonitorAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanPostgreSqlPgStatMonitorAgentOkBodyQanPostgresqlPgstatmonitorAgentTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addQanPostgreSqlPgStatMonitorAgentOk"+"."+"qan_postgresql_pgstatmonitor_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add QAN postgre SQL pg stat monitor agent OK body QAN postgresql pgstatmonitor agent based on context it is used -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent) UnmarshalBinary(b []byte) error { - var res AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_statements_agent_parameters.go b/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_statements_agent_parameters.go deleted file mode 100644 index ef98a7f1b6..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_statements_agent_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddQANPostgreSQLPgStatementsAgentParams creates a new AddQANPostgreSQLPgStatementsAgentParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddQANPostgreSQLPgStatementsAgentParams() *AddQANPostgreSQLPgStatementsAgentParams { - return &AddQANPostgreSQLPgStatementsAgentParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddQANPostgreSQLPgStatementsAgentParamsWithTimeout creates a new AddQANPostgreSQLPgStatementsAgentParams object -// with the ability to set a timeout on a request. -func NewAddQANPostgreSQLPgStatementsAgentParamsWithTimeout(timeout time.Duration) *AddQANPostgreSQLPgStatementsAgentParams { - return &AddQANPostgreSQLPgStatementsAgentParams{ - timeout: timeout, - } -} - -// NewAddQANPostgreSQLPgStatementsAgentParamsWithContext creates a new AddQANPostgreSQLPgStatementsAgentParams object -// with the ability to set a context for a request. -func NewAddQANPostgreSQLPgStatementsAgentParamsWithContext(ctx context.Context) *AddQANPostgreSQLPgStatementsAgentParams { - return &AddQANPostgreSQLPgStatementsAgentParams{ - Context: ctx, - } -} - -// NewAddQANPostgreSQLPgStatementsAgentParamsWithHTTPClient creates a new AddQANPostgreSQLPgStatementsAgentParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddQANPostgreSQLPgStatementsAgentParamsWithHTTPClient(client *http.Client) *AddQANPostgreSQLPgStatementsAgentParams { - return &AddQANPostgreSQLPgStatementsAgentParams{ - HTTPClient: client, - } -} - -/* -AddQANPostgreSQLPgStatementsAgentParams contains all the parameters to send to the API endpoint - - for the add QAN postgre SQL pg statements agent operation. - - Typically these are written to a http.Request. -*/ -type AddQANPostgreSQLPgStatementsAgentParams struct { - // Body. - Body AddQANPostgreSQLPgStatementsAgentBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add QAN postgre SQL pg statements agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddQANPostgreSQLPgStatementsAgentParams) WithDefaults() *AddQANPostgreSQLPgStatementsAgentParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add QAN postgre SQL pg statements agent params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddQANPostgreSQLPgStatementsAgentParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add QAN postgre SQL pg statements agent params -func (o *AddQANPostgreSQLPgStatementsAgentParams) WithTimeout(timeout time.Duration) *AddQANPostgreSQLPgStatementsAgentParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add QAN postgre SQL pg statements agent params -func (o *AddQANPostgreSQLPgStatementsAgentParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add QAN postgre SQL pg statements agent params -func (o *AddQANPostgreSQLPgStatementsAgentParams) WithContext(ctx context.Context) *AddQANPostgreSQLPgStatementsAgentParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add QAN postgre SQL pg statements agent params -func (o *AddQANPostgreSQLPgStatementsAgentParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add QAN postgre SQL pg statements agent params -func (o *AddQANPostgreSQLPgStatementsAgentParams) WithHTTPClient(client *http.Client) *AddQANPostgreSQLPgStatementsAgentParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add QAN postgre SQL pg statements agent params -func (o *AddQANPostgreSQLPgStatementsAgentParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add QAN postgre SQL pg statements agent params -func (o *AddQANPostgreSQLPgStatementsAgentParams) WithBody(body AddQANPostgreSQLPgStatementsAgentBody) *AddQANPostgreSQLPgStatementsAgentParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add QAN postgre SQL pg statements agent params -func (o *AddQANPostgreSQLPgStatementsAgentParams) SetBody(body AddQANPostgreSQLPgStatementsAgentBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddQANPostgreSQLPgStatementsAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_statements_agent_responses.go b/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_statements_agent_responses.go deleted file mode 100644 index 4f6639f61c..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_qan_postgre_sql_pg_statements_agent_responses.go +++ /dev/null @@ -1,703 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddQANPostgreSQLPgStatementsAgentReader is a Reader for the AddQANPostgreSQLPgStatementsAgent structure. -type AddQANPostgreSQLPgStatementsAgentReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddQANPostgreSQLPgStatementsAgentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddQANPostgreSQLPgStatementsAgentOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddQANPostgreSQLPgStatementsAgentDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddQANPostgreSQLPgStatementsAgentOK creates a AddQANPostgreSQLPgStatementsAgentOK with default headers values -func NewAddQANPostgreSQLPgStatementsAgentOK() *AddQANPostgreSQLPgStatementsAgentOK { - return &AddQANPostgreSQLPgStatementsAgentOK{} -} - -/* -AddQANPostgreSQLPgStatementsAgentOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddQANPostgreSQLPgStatementsAgentOK struct { - Payload *AddQANPostgreSQLPgStatementsAgentOKBody -} - -func (o *AddQANPostgreSQLPgStatementsAgentOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent][%d] addQanPostgreSqlPgStatementsAgentOk %+v", 200, o.Payload) -} - -func (o *AddQANPostgreSQLPgStatementsAgentOK) GetPayload() *AddQANPostgreSQLPgStatementsAgentOKBody { - return o.Payload -} - -func (o *AddQANPostgreSQLPgStatementsAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANPostgreSQLPgStatementsAgentOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddQANPostgreSQLPgStatementsAgentDefault creates a AddQANPostgreSQLPgStatementsAgentDefault with default headers values -func NewAddQANPostgreSQLPgStatementsAgentDefault(code int) *AddQANPostgreSQLPgStatementsAgentDefault { - return &AddQANPostgreSQLPgStatementsAgentDefault{ - _statusCode: code, - } -} - -/* -AddQANPostgreSQLPgStatementsAgentDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddQANPostgreSQLPgStatementsAgentDefault struct { - _statusCode int - - Payload *AddQANPostgreSQLPgStatementsAgentDefaultBody -} - -// Code gets the status code for the add QAN postgre SQL pg statements agent default response -func (o *AddQANPostgreSQLPgStatementsAgentDefault) Code() int { - return o._statusCode -} - -func (o *AddQANPostgreSQLPgStatementsAgentDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent][%d] AddQANPostgreSQLPgStatementsAgent default %+v", o._statusCode, o.Payload) -} - -func (o *AddQANPostgreSQLPgStatementsAgentDefault) GetPayload() *AddQANPostgreSQLPgStatementsAgentDefaultBody { - return o.Payload -} - -func (o *AddQANPostgreSQLPgStatementsAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANPostgreSQLPgStatementsAgentDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddQANPostgreSQLPgStatementsAgentBody add QAN postgre SQL pg statements agent body -swagger:model AddQANPostgreSQLPgStatementsAgentBody -*/ -type AddQANPostgreSQLPgStatementsAgentBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // PostgreSQL username for getting pg stat statements data. - Username string `json:"username,omitempty"` - - // PostgreSQL password for getting pg stat statements data. - Password string `json:"password,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Disable parsing comments from queries and showing them in QAN. - DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` - - // Limit query length in QAN (default: server-defined; -1: no limit). - MaxQueryLength int32 `json:"max_query_length,omitempty"` - - // TLS CA certificate. - TLSCa string `json:"tls_ca,omitempty"` - - // TLS Certifcate. - TLSCert string `json:"tls_cert,omitempty"` - - // TLS Certificate Key. - TLSKey string `json:"tls_key,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add QAN postgre SQL pg statements agent body -func (o *AddQANPostgreSQLPgStatementsAgentBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addQanPostgreSqlPgStatementsAgentBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanPostgreSqlPgStatementsAgentBodyTypeLogLevelPropEnum = append(addQanPostgreSqlPgStatementsAgentBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddQANPostgreSQLPgStatementsAgentBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddQANPostgreSQLPgStatementsAgentBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanPostgreSqlPgStatementsAgentBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANPostgreSQLPgStatementsAgentBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add QAN postgre SQL pg statements agent body based on context it is used -func (o *AddQANPostgreSQLPgStatementsAgentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatementsAgentBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatementsAgentBody) UnmarshalBinary(b []byte) error { - var res AddQANPostgreSQLPgStatementsAgentBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANPostgreSQLPgStatementsAgentDefaultBody add QAN postgre SQL pg statements agent default body -swagger:model AddQANPostgreSQLPgStatementsAgentDefaultBody -*/ -type AddQANPostgreSQLPgStatementsAgentDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add QAN postgre SQL pg statements agent default body -func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddQANPostgreSQLPgStatementsAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddQANPostgreSQLPgStatementsAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add QAN postgre SQL pg statements agent default body based on the context it is used -func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddQANPostgreSQLPgStatementsAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddQANPostgreSQLPgStatementsAgent default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) UnmarshalBinary(b []byte) error { - var res AddQANPostgreSQLPgStatementsAgentDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 add QAN postgre SQL pg statements agent default body details items0 -swagger:model AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 -*/ -type AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add QAN postgre SQL pg statements agent default body details items0 -func (o *AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add QAN postgre SQL pg statements agent default body details items0 based on context it is used -func (o *AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANPostgreSQLPgStatementsAgentOKBody add QAN postgre SQL pg statements agent OK body -swagger:model AddQANPostgreSQLPgStatementsAgentOKBody -*/ -type AddQANPostgreSQLPgStatementsAgentOKBody struct { - // qan postgresql pgstatements agent - QANPostgresqlPgstatementsAgent *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent `json:"qan_postgresql_pgstatements_agent,omitempty"` -} - -// Validate validates this add QAN postgre SQL pg statements agent OK body -func (o *AddQANPostgreSQLPgStatementsAgentOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateQANPostgresqlPgstatementsAgent(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANPostgreSQLPgStatementsAgentOKBody) validateQANPostgresqlPgstatementsAgent(formats strfmt.Registry) error { - if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required - return nil - } - - if o.QANPostgresqlPgstatementsAgent != nil { - if err := o.QANPostgresqlPgstatementsAgent.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addQanPostgreSqlPgStatementsAgentOk" + "." + "qan_postgresql_pgstatements_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addQanPostgreSqlPgStatementsAgentOk" + "." + "qan_postgresql_pgstatements_agent") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add QAN postgre SQL pg statements agent OK body based on the context it is used -func (o *AddQANPostgreSQLPgStatementsAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateQANPostgresqlPgstatementsAgent(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddQANPostgreSQLPgStatementsAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { - if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addQanPostgreSqlPgStatementsAgentOk" + "." + "qan_postgresql_pgstatements_agent") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addQanPostgreSqlPgStatementsAgentOk" + "." + "qan_postgresql_pgstatements_agent") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatementsAgentOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatementsAgentOKBody) UnmarshalBinary(b []byte) error { - var res AddQANPostgreSQLPgStatementsAgentOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. -swagger:model AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent -*/ -type AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Service identifier. - ServiceID string `json:"service_id,omitempty"` - - // PostgreSQL username for getting pg stat statements data. - Username string `json:"username,omitempty"` - - // Disable parsing comments from queries and showing them in QAN. - DisableCommentsParsing bool `json:"disable_comments_parsing,omitempty"` - - // Limit query length in QAN (default: server-defined; -1: no limit). - MaxQueryLength int32 `json:"max_query_length,omitempty"` - - // Use TLS for database connections. - TLS bool `json:"tls,omitempty"` - - // Skip TLS certificate and hostname validation. - TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` - - // Custom user-assigned labels. - // - // Status fields below. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add QAN postgre SQL pg statements agent OK body QAN postgresql pgstatements agent -func (o *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addQanPostgreSqlPgStatementsAgentOkBodyQanPostgresqlPgstatementsAgentTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanPostgreSqlPgStatementsAgentOkBodyQanPostgresqlPgstatementsAgentTypeStatusPropEnum = append(addQanPostgreSqlPgStatementsAgentOkBodyQanPostgresqlPgstatementsAgentTypeStatusPropEnum, v) - } -} - -const ( - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanPostgreSqlPgStatementsAgentOkBodyQanPostgresqlPgstatementsAgentTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addQanPostgreSqlPgStatementsAgentOk"+"."+"qan_postgresql_pgstatements_agent"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addQanPostgreSqlPgStatementsAgentOkBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addQanPostgreSqlPgStatementsAgentOkBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum = append(addQanPostgreSqlPgStatementsAgentOkBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgentLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addQanPostgreSqlPgStatementsAgentOkBodyQanPostgresqlPgstatementsAgentTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addQanPostgreSqlPgStatementsAgentOk"+"."+"qan_postgresql_pgstatements_agent"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add QAN postgre SQL pg statements agent OK body QAN postgresql pgstatements agent based on context it is used -func (o *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent) UnmarshalBinary(b []byte) error { - var res AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_rds_exporter_parameters.go b/api/inventory/v1/json/client/agents_service/add_rds_exporter_parameters.go deleted file mode 100644 index d7c44f1816..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_rds_exporter_parameters.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewAddRDSExporterParams creates a new AddRDSExporterParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewAddRDSExporterParams() *AddRDSExporterParams { - return &AddRDSExporterParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewAddRDSExporterParamsWithTimeout creates a new AddRDSExporterParams object -// with the ability to set a timeout on a request. -func NewAddRDSExporterParamsWithTimeout(timeout time.Duration) *AddRDSExporterParams { - return &AddRDSExporterParams{ - timeout: timeout, - } -} - -// NewAddRDSExporterParamsWithContext creates a new AddRDSExporterParams object -// with the ability to set a context for a request. -func NewAddRDSExporterParamsWithContext(ctx context.Context) *AddRDSExporterParams { - return &AddRDSExporterParams{ - Context: ctx, - } -} - -// NewAddRDSExporterParamsWithHTTPClient creates a new AddRDSExporterParams object -// with the ability to set a custom HTTPClient for a request. -func NewAddRDSExporterParamsWithHTTPClient(client *http.Client) *AddRDSExporterParams { - return &AddRDSExporterParams{ - HTTPClient: client, - } -} - -/* -AddRDSExporterParams contains all the parameters to send to the API endpoint - - for the add RDS exporter operation. - - Typically these are written to a http.Request. -*/ -type AddRDSExporterParams struct { - // Body. - Body AddRDSExporterBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the add RDS exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddRDSExporterParams) WithDefaults() *AddRDSExporterParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the add RDS exporter params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *AddRDSExporterParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the add RDS exporter params -func (o *AddRDSExporterParams) WithTimeout(timeout time.Duration) *AddRDSExporterParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the add RDS exporter params -func (o *AddRDSExporterParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the add RDS exporter params -func (o *AddRDSExporterParams) WithContext(ctx context.Context) *AddRDSExporterParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the add RDS exporter params -func (o *AddRDSExporterParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the add RDS exporter params -func (o *AddRDSExporterParams) WithHTTPClient(client *http.Client) *AddRDSExporterParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the add RDS exporter params -func (o *AddRDSExporterParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the add RDS exporter params -func (o *AddRDSExporterParams) WithBody(body AddRDSExporterBody) *AddRDSExporterParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the add RDS exporter params -func (o *AddRDSExporterParams) SetBody(body AddRDSExporterBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *AddRDSExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/add_rds_exporter_responses.go b/api/inventory/v1/json/client/agents_service/add_rds_exporter_responses.go deleted file mode 100644 index 446ee485a5..0000000000 --- a/api/inventory/v1/json/client/agents_service/add_rds_exporter_responses.go +++ /dev/null @@ -1,696 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package agents_service - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "encoding/json" - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AddRDSExporterReader is a Reader for the AddRDSExporter structure. -type AddRDSExporterReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *AddRDSExporterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewAddRDSExporterOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewAddRDSExporterDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewAddRDSExporterOK creates a AddRDSExporterOK with default headers values -func NewAddRDSExporterOK() *AddRDSExporterOK { - return &AddRDSExporterOK{} -} - -/* -AddRDSExporterOK describes a response with status code 200, with default header values. - -A successful response. -*/ -type AddRDSExporterOK struct { - Payload *AddRDSExporterOKBody -} - -func (o *AddRDSExporterOK) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddRDSExporter][%d] addRdsExporterOk %+v", 200, o.Payload) -} - -func (o *AddRDSExporterOK) GetPayload() *AddRDSExporterOKBody { - return o.Payload -} - -func (o *AddRDSExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRDSExporterOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewAddRDSExporterDefault creates a AddRDSExporterDefault with default headers values -func NewAddRDSExporterDefault(code int) *AddRDSExporterDefault { - return &AddRDSExporterDefault{ - _statusCode: code, - } -} - -/* -AddRDSExporterDefault describes a response with status code -1, with default header values. - -An unexpected error response. -*/ -type AddRDSExporterDefault struct { - _statusCode int - - Payload *AddRDSExporterDefaultBody -} - -// Code gets the status code for the add RDS exporter default response -func (o *AddRDSExporterDefault) Code() int { - return o._statusCode -} - -func (o *AddRDSExporterDefault) Error() string { - return fmt.Sprintf("[POST /v1/inventory/Agents/AddRDSExporter][%d] AddRDSExporter default %+v", o._statusCode, o.Payload) -} - -func (o *AddRDSExporterDefault) GetPayload() *AddRDSExporterDefaultBody { - return o.Payload -} - -func (o *AddRDSExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRDSExporterDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/* -AddRDSExporterBody add RDS exporter body -swagger:model AddRDSExporterBody -*/ -type AddRDSExporterBody struct { - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Node identifier. - NodeID string `json:"node_id,omitempty"` - - // AWS Access Key. - AWSAccessKey string `json:"aws_access_key,omitempty"` - - // AWS Secret Key. - AWSSecretKey string `json:"aws_secret_key,omitempty"` - - // Custom user-assigned labels. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // Skip connection check. - SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - - // Disable basic metrics. - DisableBasicMetrics bool `json:"disable_basic_metrics,omitempty"` - - // Disable enhanced metrics. - DisableEnhancedMetrics bool `json:"disable_enhanced_metrics,omitempty"` - - // Enables push metrics mode for exporter. - PushMetrics bool `json:"push_metrics,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` -} - -// Validate validates this add RDS exporter body -func (o *AddRDSExporterBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addRdsExporterBodyTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addRdsExporterBodyTypeLogLevelPropEnum = append(addRdsExporterBodyTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddRDSExporterBodyLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddRDSExporterBodyLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddRDSExporterBodyLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddRDSExporterBodyLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddRDSExporterBodyLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddRDSExporterBodyLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddRDSExporterBodyLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddRDSExporterBodyLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddRDSExporterBodyLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddRDSExporterBodyLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddRDSExporterBodyLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddRDSExporterBodyLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddRDSExporterBody) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addRdsExporterBodyTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddRDSExporterBody) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("body"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add RDS exporter body based on context it is used -func (o *AddRDSExporterBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddRDSExporterBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddRDSExporterBody) UnmarshalBinary(b []byte) error { - var res AddRDSExporterBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddRDSExporterDefaultBody add RDS exporter default body -swagger:model AddRDSExporterDefaultBody -*/ -type AddRDSExporterDefaultBody struct { - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*AddRDSExporterDefaultBodyDetailsItems0 `json:"details"` -} - -// Validate validates this add RDS exporter default body -func (o *AddRDSExporterDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddRDSExporterDefaultBody) validateDetails(formats strfmt.Registry) error { - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddRDSExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddRDSExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this add RDS exporter default body based on the context it is used -func (o *AddRDSExporterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateDetails(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddRDSExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { - if err := o.Details[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("AddRDSExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("AddRDSExporter default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddRDSExporterDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddRDSExporterDefaultBody) UnmarshalBinary(b []byte) error { - var res AddRDSExporterDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddRDSExporterDefaultBodyDetailsItems0 add RDS exporter default body details items0 -swagger:model AddRDSExporterDefaultBodyDetailsItems0 -*/ -type AddRDSExporterDefaultBodyDetailsItems0 struct { - // at type - AtType string `json:"@type,omitempty"` -} - -// Validate validates this add RDS exporter default body details items0 -func (o *AddRDSExporterDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this add RDS exporter default body details items0 based on context it is used -func (o *AddRDSExporterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddRDSExporterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddRDSExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { - var res AddRDSExporterDefaultBodyDetailsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddRDSExporterOKBody add RDS exporter OK body -swagger:model AddRDSExporterOKBody -*/ -type AddRDSExporterOKBody struct { - // rds exporter - RDSExporter *AddRDSExporterOKBodyRDSExporter `json:"rds_exporter,omitempty"` -} - -// Validate validates this add RDS exporter OK body -func (o *AddRDSExporterOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateRDSExporter(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddRDSExporterOKBody) validateRDSExporter(formats strfmt.Registry) error { - if swag.IsZero(o.RDSExporter) { // not required - return nil - } - - if o.RDSExporter != nil { - if err := o.RDSExporter.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addRdsExporterOk" + "." + "rds_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addRdsExporterOk" + "." + "rds_exporter") - } - return err - } - } - - return nil -} - -// ContextValidate validate this add RDS exporter OK body based on the context it is used -func (o *AddRDSExporterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := o.contextValidateRDSExporter(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *AddRDSExporterOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { - if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("addRdsExporterOk" + "." + "rds_exporter") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("addRdsExporterOk" + "." + "rds_exporter") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (o *AddRDSExporterOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddRDSExporterOKBody) UnmarshalBinary(b []byte) error { - var res AddRDSExporterOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/* -AddRDSExporterOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. -swagger:model AddRDSExporterOKBodyRDSExporter -*/ -type AddRDSExporterOKBodyRDSExporter struct { - // Unique randomly generated instance identifier. - AgentID string `json:"agent_id,omitempty"` - - // The pmm-agent identifier which runs this instance. - PMMAgentID string `json:"pmm_agent_id,omitempty"` - - // Desired Agent status: enabled (false) or disabled (true). - Disabled bool `json:"disabled,omitempty"` - - // Node identifier. - NodeID string `json:"node_id,omitempty"` - - // AWS Access Key. - AWSAccessKey string `json:"aws_access_key,omitempty"` - - // Custom user-assigned labels. - // - // Status fields below. - CustomLabels map[string]string `json:"custom_labels,omitempty"` - - // AgentStatus represents actual Agent status. - // - // - AGENT_STATUS_STARTING: Agent is starting. - // - AGENT_STATUS_RUNNING: Agent is running. - // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. - // - AGENT_STATUS_STOPPING: Agent is stopping. - // - AGENT_STATUS_DONE: Agent finished. - // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. - // Enum: [AGENT_STATUS_UNSPECIFIED AGENT_STATUS_STARTING AGENT_STATUS_RUNNING AGENT_STATUS_WAITING AGENT_STATUS_STOPPING AGENT_STATUS_DONE AGENT_STATUS_UNKNOWN] - Status *string `json:"status,omitempty"` - - // Listen port for scraping metrics (the same for several configurations). - // - // Metric collections flags below. - ListenPort int64 `json:"listen_port,omitempty"` - - // Basic metrics are disabled. - BasicMetricsDisabled bool `json:"basic_metrics_disabled,omitempty"` - - // Enhanced metrics are disabled. - EnhancedMetricsDisabled bool `json:"enhanced_metrics_disabled,omitempty"` - - // True if exporter uses push metrics mode. - PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` - - // Path to exec process. - ProcessExecPath string `json:"process_exec_path,omitempty"` - - // Log level for exporters - // - // - LOG_LEVEL_UNSPECIFIED: Auto - // Enum: [LOG_LEVEL_UNSPECIFIED LOG_LEVEL_FATAL LOG_LEVEL_ERROR LOG_LEVEL_WARN LOG_LEVEL_INFO LOG_LEVEL_DEBUG] - LogLevel *string `json:"log_level,omitempty"` - - // Limit of databases for auto-discovery. - AutoDiscoveryLimit int32 `json:"auto_discovery_limit,omitempty"` -} - -// Validate validates this add RDS exporter OK body RDS exporter -func (o *AddRDSExporterOKBodyRDSExporter) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateStatus(formats); err != nil { - res = append(res, err) - } - - if err := o.validateLogLevel(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var addRdsExporterOkBodyRdsExporterTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addRdsExporterOkBodyRdsExporterTypeStatusPropEnum = append(addRdsExporterOkBodyRdsExporterTypeStatusPropEnum, v) - } -} - -const ( - - // AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" - AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" - - // AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" - AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" - - // AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" - AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" - - // AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" - AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" - - // AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" - AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" - - // AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" - AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" - - // AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" - AddRDSExporterOKBodyRDSExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" -) - -// prop value enum -func (o *AddRDSExporterOKBodyRDSExporter) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addRdsExporterOkBodyRdsExporterTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddRDSExporterOKBodyRDSExporter) validateStatus(formats strfmt.Registry) error { - if swag.IsZero(o.Status) { // not required - return nil - } - - // value enum - if err := o.validateStatusEnum("addRdsExporterOk"+"."+"rds_exporter"+"."+"status", "body", *o.Status); err != nil { - return err - } - - return nil -} - -var addRdsExporterOkBodyRdsExporterTypeLogLevelPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["LOG_LEVEL_UNSPECIFIED","LOG_LEVEL_FATAL","LOG_LEVEL_ERROR","LOG_LEVEL_WARN","LOG_LEVEL_INFO","LOG_LEVEL_DEBUG"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - addRdsExporterOkBodyRdsExporterTypeLogLevelPropEnum = append(addRdsExporterOkBodyRdsExporterTypeLogLevelPropEnum, v) - } -} - -const ( - - // AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELUNSPECIFIED captures enum value "LOG_LEVEL_UNSPECIFIED" - AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELUNSPECIFIED string = "LOG_LEVEL_UNSPECIFIED" - - // AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELFATAL captures enum value "LOG_LEVEL_FATAL" - AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELFATAL string = "LOG_LEVEL_FATAL" - - // AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELERROR captures enum value "LOG_LEVEL_ERROR" - AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELERROR string = "LOG_LEVEL_ERROR" - - // AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELWARN captures enum value "LOG_LEVEL_WARN" - AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELWARN string = "LOG_LEVEL_WARN" - - // AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELINFO captures enum value "LOG_LEVEL_INFO" - AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELINFO string = "LOG_LEVEL_INFO" - - // AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELDEBUG captures enum value "LOG_LEVEL_DEBUG" - AddRDSExporterOKBodyRDSExporterLogLevelLOGLEVELDEBUG string = "LOG_LEVEL_DEBUG" -) - -// prop value enum -func (o *AddRDSExporterOKBodyRDSExporter) validateLogLevelEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, addRdsExporterOkBodyRdsExporterTypeLogLevelPropEnum, true); err != nil { - return err - } - return nil -} - -func (o *AddRDSExporterOKBodyRDSExporter) validateLogLevel(formats strfmt.Registry) error { - if swag.IsZero(o.LogLevel) { // not required - return nil - } - - // value enum - if err := o.validateLogLevelEnum("addRdsExporterOk"+"."+"rds_exporter"+"."+"log_level", "body", *o.LogLevel); err != nil { - return err - } - - return nil -} - -// ContextValidate validates this add RDS exporter OK body RDS exporter based on context it is used -func (o *AddRDSExporterOKBodyRDSExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *AddRDSExporterOKBodyRDSExporter) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *AddRDSExporterOKBodyRDSExporter) UnmarshalBinary(b []byte) error { - var res AddRDSExporterOKBodyRDSExporter - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/inventory/v1/json/client/agents_service/agents_service_client.go b/api/inventory/v1/json/client/agents_service/agents_service_client.go index 5b10d0cb95..b32113b794 100644 --- a/api/inventory/v1/json/client/agents_service/agents_service_client.go +++ b/api/inventory/v1/json/client/agents_service/agents_service_client.go @@ -28,33 +28,7 @@ type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { - AddAzureDatabaseExporter(params *AddAzureDatabaseExporterParams, opts ...ClientOption) (*AddAzureDatabaseExporterOK, error) - - AddExternalExporter(params *AddExternalExporterParams, opts ...ClientOption) (*AddExternalExporterOK, error) - - AddMongoDBExporter(params *AddMongoDBExporterParams, opts ...ClientOption) (*AddMongoDBExporterOK, error) - - AddMySQLdExporter(params *AddMySQLdExporterParams, opts ...ClientOption) (*AddMySQLdExporterOK, error) - - AddNodeExporter(params *AddNodeExporterParams, opts ...ClientOption) (*AddNodeExporterOK, error) - - AddPMMAgent(params *AddPMMAgentParams, opts ...ClientOption) (*AddPMMAgentOK, error) - - AddPostgresExporter(params *AddPostgresExporterParams, opts ...ClientOption) (*AddPostgresExporterOK, error) - - AddProxySQLExporter(params *AddProxySQLExporterParams, opts ...ClientOption) (*AddProxySQLExporterOK, error) - - AddQANMongoDBProfilerAgent(params *AddQANMongoDBProfilerAgentParams, opts ...ClientOption) (*AddQANMongoDBProfilerAgentOK, error) - - AddQANMySQLPerfSchemaAgent(params *AddQANMySQLPerfSchemaAgentParams, opts ...ClientOption) (*AddQANMySQLPerfSchemaAgentOK, error) - - AddQANMySQLSlowlogAgent(params *AddQANMySQLSlowlogAgentParams, opts ...ClientOption) (*AddQANMySQLSlowlogAgentOK, error) - - AddQANPostgreSQLPgStatMonitorAgent(params *AddQANPostgreSQLPgStatMonitorAgentParams, opts ...ClientOption) (*AddQANPostgreSQLPgStatMonitorAgentOK, error) - - AddQANPostgreSQLPgStatementsAgent(params *AddQANPostgreSQLPgStatementsAgentParams, opts ...ClientOption) (*AddQANPostgreSQLPgStatementsAgentOK, error) - - AddRDSExporter(params *AddRDSExporterParams, opts ...ClientOption) (*AddRDSExporterOK, error) + AddAgent(params *AddAgentParams, opts ...ClientOption) (*AddAgentOK, error) ChangeAzureDatabaseExporter(params *ChangeAzureDatabaseExporterParams, opts ...ClientOption) (*ChangeAzureDatabaseExporterOK, error) @@ -94,531 +68,24 @@ type ClientService interface { } /* -AddAzureDatabaseExporter adds azure database exporter - -Adds azure_database_exporter Agent. -*/ -func (a *Client) AddAzureDatabaseExporter(params *AddAzureDatabaseExporterParams, opts ...ClientOption) (*AddAzureDatabaseExporterOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddAzureDatabaseExporterParams() - } - op := &runtime.ClientOperation{ - ID: "AddAzureDatabaseExporter", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddAzureDatabaseExporter", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddAzureDatabaseExporterReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddAzureDatabaseExporterOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddAzureDatabaseExporterDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddExternalExporter adds external exporter - -Adds external_exporter Agent. -*/ -func (a *Client) AddExternalExporter(params *AddExternalExporterParams, opts ...ClientOption) (*AddExternalExporterOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddExternalExporterParams() - } - op := &runtime.ClientOperation{ - ID: "AddExternalExporter", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddExternalExporter", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddExternalExporterReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddExternalExporterOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddExternalExporterDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddMongoDBExporter adds mongo DB exporter - -Adds mongodb_exporter Agent. -*/ -func (a *Client) AddMongoDBExporter(params *AddMongoDBExporterParams, opts ...ClientOption) (*AddMongoDBExporterOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddMongoDBExporterParams() - } - op := &runtime.ClientOperation{ - ID: "AddMongoDBExporter", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddMongoDBExporter", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddMongoDBExporterReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddMongoDBExporterOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddMongoDBExporterDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddMySQLdExporter adds mysqld exporter - -Adds mysqld_exporter Agent. -*/ -func (a *Client) AddMySQLdExporter(params *AddMySQLdExporterParams, opts ...ClientOption) (*AddMySQLdExporterOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddMySQLdExporterParams() - } - op := &runtime.ClientOperation{ - ID: "AddMySQLdExporter", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddMySQLdExporter", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddMySQLdExporterReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddMySQLdExporterOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddMySQLdExporterDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddNodeExporter adds node exporter - -Adds node_exporter Agent. -*/ -func (a *Client) AddNodeExporter(params *AddNodeExporterParams, opts ...ClientOption) (*AddNodeExporterOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddNodeExporterParams() - } - op := &runtime.ClientOperation{ - ID: "AddNodeExporter", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddNodeExporter", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddNodeExporterReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddNodeExporterOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddNodeExporterDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddPMMAgent adds PMM agent - -Adds PMM Agent. -*/ -func (a *Client) AddPMMAgent(params *AddPMMAgentParams, opts ...ClientOption) (*AddPMMAgentOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddPMMAgentParams() - } - op := &runtime.ClientOperation{ - ID: "AddPMMAgent", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddPMMAgent", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddPMMAgentReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddPMMAgentOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddPMMAgentDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddPostgresExporter adds postgres exporter - -Adds postgres_exporter Agent. -*/ -func (a *Client) AddPostgresExporter(params *AddPostgresExporterParams, opts ...ClientOption) (*AddPostgresExporterOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddPostgresExporterParams() - } - op := &runtime.ClientOperation{ - ID: "AddPostgresExporter", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddPostgresExporter", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddPostgresExporterReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddPostgresExporterOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddPostgresExporterDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddProxySQLExporter adds proxy SQL exporter - -Adds proxysql_exporter Agent. -*/ -func (a *Client) AddProxySQLExporter(params *AddProxySQLExporterParams, opts ...ClientOption) (*AddProxySQLExporterOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddProxySQLExporterParams() - } - op := &runtime.ClientOperation{ - ID: "AddProxySQLExporter", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddProxySQLExporter", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddProxySQLExporterReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddProxySQLExporterOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddProxySQLExporterDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddQANMongoDBProfilerAgent adds QAN mongo DB profiler agent - -Adds 'Query Analytics MongoDB Profiler' Agent. -*/ -func (a *Client) AddQANMongoDBProfilerAgent(params *AddQANMongoDBProfilerAgentParams, opts ...ClientOption) (*AddQANMongoDBProfilerAgentOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddQANMongoDBProfilerAgentParams() - } - op := &runtime.ClientOperation{ - ID: "AddQANMongoDBProfilerAgent", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddQANMongoDBProfilerAgent", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddQANMongoDBProfilerAgentReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddQANMongoDBProfilerAgentOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddQANMongoDBProfilerAgentDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddQANMySQLPerfSchemaAgent adds QAN my SQL perf schema agent - -Adds 'Query Analytics MySQL PerfSchema' Agent. -*/ -func (a *Client) AddQANMySQLPerfSchemaAgent(params *AddQANMySQLPerfSchemaAgentParams, opts ...ClientOption) (*AddQANMySQLPerfSchemaAgentOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddQANMySQLPerfSchemaAgentParams() - } - op := &runtime.ClientOperation{ - ID: "AddQANMySQLPerfSchemaAgent", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddQANMySQLPerfSchemaAgent", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddQANMySQLPerfSchemaAgentReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddQANMySQLPerfSchemaAgentOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddQANMySQLPerfSchemaAgentDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddQANMySQLSlowlogAgent adds QAN my SQL slowlog agent - -Adds 'Query Analytics MySQL Slowlog' Agent. -*/ -func (a *Client) AddQANMySQLSlowlogAgent(params *AddQANMySQLSlowlogAgentParams, opts ...ClientOption) (*AddQANMySQLSlowlogAgentOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddQANMySQLSlowlogAgentParams() - } - op := &runtime.ClientOperation{ - ID: "AddQANMySQLSlowlogAgent", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddQANMySQLSlowlogAgent", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddQANMySQLSlowlogAgentReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddQANMySQLSlowlogAgentOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddQANMySQLSlowlogAgentDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddQANPostgreSQLPgStatMonitorAgent adds QAN postgre SQL pg stat monitor agent - -Adds 'Query Analytics PostgreSQL pg_stat_monitor' Agent. -*/ -func (a *Client) AddQANPostgreSQLPgStatMonitorAgent(params *AddQANPostgreSQLPgStatMonitorAgentParams, opts ...ClientOption) (*AddQANPostgreSQLPgStatMonitorAgentOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddQANPostgreSQLPgStatMonitorAgentParams() - } - op := &runtime.ClientOperation{ - ID: "AddQANPostgreSQLPgStatMonitorAgent", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddQANPostgreSQLPgStatMonitorAgentReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddQANPostgreSQLPgStatMonitorAgentOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddQANPostgreSQLPgStatMonitorAgentDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddQANPostgreSQLPgStatementsAgent adds QAN postgre SQL pg stat statements agent - -Adds 'Query Analytics PostgreSQL pg_stat_statements' Agent. -*/ -func (a *Client) AddQANPostgreSQLPgStatementsAgent(params *AddQANPostgreSQLPgStatementsAgentParams, opts ...ClientOption) (*AddQANPostgreSQLPgStatementsAgentOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewAddQANPostgreSQLPgStatementsAgentParams() - } - op := &runtime.ClientOperation{ - ID: "AddQANPostgreSQLPgStatementsAgent", - Method: "POST", - PathPattern: "/v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &AddQANPostgreSQLPgStatementsAgentReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*AddQANPostgreSQLPgStatementsAgentOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*AddQANPostgreSQLPgStatementsAgentDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -AddRDSExporter adds RDS exporter +AddAgent adds an agent to inventory -Adds rds_exporter Agent. +Adds an Agent from Inventory. */ -func (a *Client) AddRDSExporter(params *AddRDSExporterParams, opts ...ClientOption) (*AddRDSExporterOK, error) { +func (a *Client) AddAgent(params *AddAgentParams, opts ...ClientOption) (*AddAgentOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewAddRDSExporterParams() + params = NewAddAgentParams() } op := &runtime.ClientOperation{ - ID: "AddRDSExporter", + ID: "AddAgent", Method: "POST", - PathPattern: "/v1/inventory/Agents/AddRDSExporter", + PathPattern: "/v1/inventory/Agents/Add", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http", "https"}, Params: params, - Reader: &AddRDSExporterReader{formats: a.formats}, + Reader: &AddAgentReader{formats: a.formats}, Context: params.Context, Client: params.HTTPClient, } @@ -630,12 +97,12 @@ func (a *Client) AddRDSExporter(params *AddRDSExporterParams, opts ...ClientOpti if err != nil { return nil, err } - success, ok := result.(*AddRDSExporterOK) + success, ok := result.(*AddAgentOK) if ok { return success, nil } // unexpected success response - unexpectedSuccess := result.(*AddRDSExporterDefault) + unexpectedSuccess := result.(*AddAgentDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } @@ -1264,9 +731,9 @@ func (a *Client) ListAgents(params *ListAgentsParams, opts ...ClientOption) (*Li } /* -RemoveAgent removes agent +RemoveAgent removes an agent from inventory -Removes Agent. +Removes an Agent from Inventory. */ func (a *Client) RemoveAgent(params *RemoveAgentParams, opts ...ClientOption) (*RemoveAgentOK, error) { // TODO: Validate the params before sending diff --git a/api/inventory/v1/json/v1.json b/api/inventory/v1/json/v1.json index 5ff8ae94cf..d23cea7658 100644 --- a/api/inventory/v1/json/v1.json +++ b/api/inventory/v1/json/v1.json @@ -15,14 +15,14 @@ "version": "v1" }, "paths": { - "/v1/inventory/Agents/AddAzureDatabaseExporter": { + "/v1/inventory/Agents/Add": { "post": { - "description": "Adds azure_database_exporter Agent.", + "description": "Adds an Agent from Inventory.", "tags": [ "AgentsService" ], - "summary": "Add Azure Database Exporter", - "operationId": "AddAzureDatabaseExporter", + "summary": "Add an Agent to Inventory", + "operationId": "AddAgent", "parameters": [ { "name": "body", @@ -31,78 +31,1184 @@ "schema": { "type": "object", "properties": { - "azure_client_id": { - "type": "string", - "title": "Azure client ID", - "x-order": 2 - }, - "azure_client_secret": { - "type": "string", - "title": "Azure client secret", - "x-order": 3 - }, - "azure_database_resource_type": { - "type": "string", - "title": "Azure resource type (mysql, maria, postgres)", - "x-order": 7 + "azure_database_exporter": { + "type": "object", + "properties": { + "azure_client_id": { + "type": "string", + "title": "Azure client ID", + "x-order": 2 + }, + "azure_client_secret": { + "type": "string", + "title": "Azure client secret", + "x-order": 3 + }, + "azure_database_resource_type": { + "type": "string", + "title": "Azure resource type (mysql, maria, postgres)", + "x-order": 7 + }, + "azure_resource_group": { + "description": "Azure resource group.", + "type": "string", + "x-order": 6 + }, + "azure_subscription_id": { + "type": "string", + "title": "Azure subscription ID", + "x-order": 5 + }, + "azure_tenant_id": { + "type": "string", + "title": "Azure tanant ID", + "x-order": 4 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 8 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 11 + }, + "node_id": { + "description": "Node identifier.", + "type": "string", + "x-order": 1 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 10 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 9 + } + }, + "x-order": 8 }, - "azure_resource_group": { - "description": "Azure resource group.", - "type": "string", + "external_exporter": { + "type": "object", + "properties": { + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 7 + }, + "listen_port": { + "description": "Listen port for scraping metrics.", + "type": "integer", + "format": "int64", + "x-order": 6 + }, + "metrics_path": { + "description": "Path under which metrics are exposed, used to generate URI(default: /metrics).", + "type": "string", + "x-order": 5 + }, + "password": { + "description": "HTTP basic auth password for collecting metrics.", + "type": "string", + "x-order": 3 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 8 + }, + "runs_on_node_id": { + "description": "The node identifier where this instance is run.", + "type": "string", + "x-order": 0 + }, + "scheme": { + "description": "Scheme to generate URI to exporter metrics endpoints(default: http).", + "type": "string", + "x-order": 4 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "username": { + "description": "HTTP basic auth username for collecting metrics.", + "type": "string", + "x-order": 2 + } + }, "x-order": 6 }, - "azure_subscription_id": { - "type": "string", - "title": "Azure subscription ID", - "x-order": 5 + "mongodb_exporter": { + "type": "object", + "properties": { + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 15 + }, + "authentication_database": { + "description": "Authentication database.", + "type": "string", + "x-order": 14 + }, + "authentication_mechanism": { + "description": "Authentication mechanism.\nSee https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism\nfor details.", + "type": "string", + "x-order": 13 + }, + "collections_limit": { + "type": "integer", + "format": "int32", + "title": "Collections limit. Only get Databases and collection stats if the total number of collections in the server\nis less than this value. 0: no limit", + "x-order": 17 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 9 + }, + "disable_collectors": { + "description": "List of collector names to disable in this exporter.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 12 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 19 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 18 + }, + "password": { + "description": "MongoDB password for scraping metrics.", + "type": "string", + "x-order": 3 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 11 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 10 + }, + "stats_collections": { + "type": "array", + "title": "List of colletions to get stats from. Can use *", + "items": { + "type": "string" + }, + "x-order": 16 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_ca": { + "description": "Certificate Authority certificate chain.", + "type": "string", + "x-order": 8 + }, + "tls_certificate_key": { + "description": "Client certificate and key.", + "type": "string", + "x-order": 6 + }, + "tls_certificate_key_file_password": { + "description": "Password for decrypting tls_certificate_key.", + "type": "string", + "x-order": 7 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "username": { + "description": "MongoDB username for scraping metrics.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 3 }, - "azure_tenant_id": { - "type": "string", - "title": "Azure tanant ID", - "x-order": 4 + "mysqld_exporter": { + "type": "object", + "properties": { + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 14 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 10 + }, + "disable_collectors": { + "description": "List of collector names to disable in this exporter.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 13 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 16 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 15 + }, + "password": { + "description": "MySQL password for scraping metrics.", + "type": "string", + "x-order": 3 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 12 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 11 + }, + "tablestats_group_table_limit": { + "description": "Tablestats group collectors will be disabled if there are more than that number of tables.\n0 means tablestats group collectors are always enabled (no limit).\nNegative value means tablestats group collectors are always disabled.", + "type": "integer", + "format": "int32", + "x-order": 9 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_ca": { + "description": "Certificate Authority certificate chain.", + "type": "string", + "x-order": 6 + }, + "tls_cert": { + "description": "Client certificate.", + "type": "string", + "x-order": 7 + }, + "tls_key": { + "description": "Password for decrypting tls_cert.", + "type": "string", + "x-order": 8 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "username": { + "description": "MySQL username for scraping metrics.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 2 + }, + "node_exporter": { + "type": "object", + "properties": { + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 1 + }, + "disable_collectors": { + "description": "List of collector names to disable in this exporter.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 3 + }, + "expose_exporter": { + "type": "boolean", + "title": "Expose the node_exporter process on all public interfaces", + "x-order": 5 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 4 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 2 + } + }, + "x-order": 1 + }, + "pmm_agent": { + "type": "object", + "properties": { + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 1 + }, + "runs_on_node_id": { + "description": "Node identifier where this instance runs.", + "type": "string", + "x-order": 0 + } + }, + "x-order": 0 + }, + "postgres_exporter": { + "type": "object", + "properties": { + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 13 + }, + "auto_discovery_limit": { + "description": "Limit of databases for auto-discovery.", + "type": "integer", + "format": "int32", + "x-order": 15 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "disable_collectors": { + "description": "List of collector names to disable in this exporter.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 9 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 16 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 14 + }, + "password": { + "description": "PostgreSQL password for scraping metrics.", + "type": "string", + "x-order": 3 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 8 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 7 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_ca": { + "description": "TLS CA certificate.", + "type": "string", + "x-order": 10 + }, + "tls_cert": { + "description": "TLS Certifcate.", + "type": "string", + "x-order": 11 + }, + "tls_key": { + "description": "TLS Certificate Key.", + "type": "string", + "x-order": 12 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full.", + "type": "boolean", + "x-order": 5 + }, + "username": { + "description": "PostgreSQL username for scraping metrics.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 4 + }, + "proxysql_exporter": { + "type": "object", + "properties": { + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 10 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "disable_collectors": { + "description": "List of collector names to disable in this exporter.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 9 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 12 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 11 + }, + "password": { + "description": "ProxySQL password for scraping metrics.", + "type": "string", + "x-order": 3 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 8 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 7 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "username": { + "description": "ProxySQL username for scraping metrics.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 5 + }, + "qan_mongodb_profiler_agent": { + "type": "object", + "properties": { + "authentication_database": { + "description": "Authentication database.", + "type": "string", + "x-order": 13 + }, + "authentication_mechanism": { + "description": "Authentication mechanism.\nSee https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism\nfor details.", + "type": "string", + "x-order": 12 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 10 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 14 + }, + "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).", + "type": "integer", + "format": "int32", + "x-order": 9 + }, + "password": { + "description": "MongoDB password for getting profile data.", + "type": "string", + "x-order": 3 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 11 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_ca": { + "description": "Certificate Authority certificate chain.", + "type": "string", + "x-order": 8 + }, + "tls_certificate_key": { + "description": "Client certificate and key.", + "type": "string", + "x-order": 6 + }, + "tls_certificate_key_file_password": { + "description": "Password for decrypting tls_certificate_key.", + "type": "string", + "x-order": 7 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "username": { + "description": "MongoDB username for getting profile data.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 11 + }, + "qan_mysql_perfschema_agent": { + "type": "object", + "properties": { + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 11 + }, + "disable_comments_parsing": { + "description": "Disable parsing comments from queries and showing them in QAN.", + "type": "boolean", + "x-order": 13 + }, + "disable_query_examples": { + "description": "Disable query examples.", + "type": "boolean", + "x-order": 10 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 14 + }, + "max_query_length": { + "type": "integer", + "format": "int32", + "title": "Limit query length in QAN (default: server-defined; -1: no limit)", + "x-order": 9 + }, + "password": { + "description": "MySQL password for getting performance data.", + "type": "string", + "x-order": 3 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 12 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_ca": { + "description": "Certificate Authority certificate chain.", + "type": "string", + "x-order": 6 + }, + "tls_cert": { + "description": "Client certificate.", + "type": "string", + "x-order": 7 + }, + "tls_key": { + "description": "Password for decrypting tls_cert.", + "type": "string", + "x-order": 8 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "username": { + "description": "MySQL username for getting performance data.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 9 + }, + "qan_mysql_slowlog_agent": { + "type": "object", + "properties": { + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 12 + }, + "disable_comments_parsing": { + "description": "Disable parsing comments from queries and showing them in QAN.", + "type": "boolean", + "x-order": 14 + }, + "disable_query_examples": { + "description": "Disable query examples.", + "type": "boolean", + "x-order": 10 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 15 + }, + "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).", + "type": "integer", + "format": "int32", + "x-order": 9 + }, + "max_slowlog_file_size": { + "description": "Rotate slowlog file at this size if \u003e 0.\nUse zero or negative value to disable rotation.", + "type": "string", + "format": "int64", + "x-order": 11 + }, + "password": { + "description": "MySQL password for getting slowlog data.", + "type": "string", + "x-order": 3 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 13 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_ca": { + "description": "Certificate Authority certificate chain.", + "type": "string", + "x-order": 6 + }, + "tls_cert": { + "description": "Client certificate.", + "type": "string", + "x-order": 7 + }, + "tls_key": { + "description": "Password for decrypting tls_cert.", + "type": "string", + "x-order": 8 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "username": { + "description": "MySQL username for getting slowlog data.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 10 + }, + "qan_postgresql_pgstatements_agent": { + "type": "object", + "properties": { + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "disable_comments_parsing": { + "description": "Disable parsing comments from queries and showing them in QAN.", + "type": "boolean", + "x-order": 8 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 13 + }, + "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).", + "type": "integer", + "format": "int32", + "x-order": 9 + }, + "password": { + "description": "PostgreSQL password for getting pg stat statements data.", + "type": "string", + "x-order": 3 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 7 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_ca": { + "description": "TLS CA certificate.", + "type": "string", + "x-order": 10 + }, + "tls_cert": { + "description": "TLS Certifcate.", + "type": "string", + "x-order": 11 + }, + "tls_key": { + "description": "TLS Certificate Key.", + "type": "string", + "x-order": 12 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "username": { + "description": "PostgreSQL username for getting pg stat statements data.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 12 }, - "custom_labels": { - "description": "Custom user-assigned labels.", + "qan_postgresql_pgstatmonitor_agent": { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 8 + }, + "disable_comments_parsing": { + "description": "Disable parsing comments from queries and showing them in QAN.", + "type": "boolean", + "x-order": 10 + }, + "disable_query_examples": { + "description": "Disable query examples.", + "type": "boolean", + "x-order": 7 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 14 + }, + "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).", + "type": "integer", + "format": "int32", + "x-order": 6 + }, + "password": { + "description": "PostgreSQL password for getting pg stat monitor data.", + "type": "string", + "x-order": 3 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 9 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_ca": { + "description": "TLS CA certificate.", + "type": "string", + "x-order": 11 + }, + "tls_cert": { + "description": "TLS Certifcate.", + "type": "string", + "x-order": 12 + }, + "tls_key": { + "description": "TLS Certificate Key.", + "type": "string", + "x-order": 13 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "username": { + "description": "PostgreSQL username for getting pg stat monitor data.", + "type": "string", + "x-order": 2 + } }, - "x-order": 8 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 11 - }, - "node_id": { - "description": "Node identifier.", - "type": "string", - "x-order": 1 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 10 + "x-order": 13 }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 9 + "rds_exporter": { + "type": "object", + "properties": { + "aws_access_key": { + "description": "AWS Access Key.", + "type": "string", + "x-order": 2 + }, + "aws_secret_key": { + "description": "AWS Secret Key.", + "type": "string", + "x-order": 3 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 4 + }, + "disable_basic_metrics": { + "description": "Disable basic metrics.", + "type": "boolean", + "x-order": 6 + }, + "disable_enhanced_metrics": { + "description": "Disable enhanced metrics.", + "type": "boolean", + "x-order": 7 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 9 + }, + "node_id": { + "description": "Node identifier.", + "type": "string", + "x-order": 1 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 8 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 5 + } + }, + "x-order": 7 } } } @@ -196,127 +1302,15 @@ "AGENT_STATUS_STARTING", "AGENT_STATUS_RUNNING", "AGENT_STATUS_WAITING", - "AGENT_STATUS_STOPPING", - "AGENT_STATUS_DONE", - "AGENT_STATUS_UNKNOWN" - ], - "x-order": 7 - } - }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddExternalExporter": { - "post": { - "description": "Adds external_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add External Exporter", - "operationId": "AddExternalExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 7 - }, - "listen_port": { - "description": "Listen port for scraping metrics.", - "type": "integer", - "format": "int64", - "x-order": 6 - }, - "metrics_path": { - "description": "Path under which metrics are exposed, used to generate URI(default: /metrics).", - "type": "string", - "x-order": 5 - }, - "password": { - "description": "HTTP basic auth password for collecting metrics.", - "type": "string", - "x-order": 3 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", + "AGENT_STATUS_STOPPING", + "AGENT_STATUS_DONE", + "AGENT_STATUS_UNKNOWN" + ], + "x-order": 7 + } + }, "x-order": 8 }, - "runs_on_node_id": { - "description": "The node identifier where this instance is run.", - "type": "string", - "x-order": 0 - }, - "scheme": { - "description": "Scheme to generate URI to exporter metrics endpoints(default: http).", - "type": "string", - "x-order": 4 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "username": { - "description": "HTTP basic auth username for collecting metrics.", - "type": "string", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "external_exporter": { "description": "ExternalExporter runs on any Node type, including Remote Node.", "type": "object", @@ -381,191 +1375,8 @@ "x-order": 4 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddMongoDBExporter": { - "post": { - "description": "Adds mongodb_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add MongoDB Exporter", - "operationId": "AddMongoDBExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "agent_password": { - "description": "Custom password for exporter endpoint /metrics.", - "type": "string", - "x-order": 15 - }, - "authentication_database": { - "description": "Authentication database.", - "type": "string", - "x-order": 14 - }, - "authentication_mechanism": { - "description": "Authentication mechanism.\nSee https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism\nfor details.", - "type": "string", - "x-order": 13 - }, - "collections_limit": { - "type": "integer", - "format": "int32", - "title": "Collections limit. Only get Databases and collection stats if the total number of collections in the server\nis less than this value. 0: no limit", - "x-order": 17 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 9 - }, - "disable_collectors": { - "description": "List of collector names to disable in this exporter.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 12 - }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 19 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 18 - }, - "password": { - "description": "MongoDB password for scraping metrics.", - "type": "string", - "x-order": 3 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 11 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 10 - }, - "stats_collections": { - "type": "array", - "title": "List of colletions to get stats from. Can use *", - "items": { - "type": "string" - }, - "x-order": 16 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 8 - }, - "tls_certificate_key": { - "description": "Client certificate and key.", - "type": "string", "x-order": 6 }, - "tls_certificate_key_file_password": { - "description": "Password for decrypting tls_certificate_key.", - "type": "string", - "x-order": 7 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "username": { - "description": "MongoDB username for scraping metrics.", - "type": "string", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "mongodb_exporter": { "description": "MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics.", "type": "object", @@ -659,206 +1470,41 @@ "items": { "type": "string" }, - "x-order": 12 - }, - "status": { - "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", - "type": "string", - "default": "AGENT_STATUS_UNSPECIFIED", - "enum": [ - "AGENT_STATUS_UNSPECIFIED", - "AGENT_STATUS_STARTING", - "AGENT_STATUS_RUNNING", - "AGENT_STATUS_WAITING", - "AGENT_STATUS_STOPPING", - "AGENT_STATUS_DONE", - "AGENT_STATUS_UNKNOWN" - ], - "x-order": 10 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 5 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 6 - }, - "username": { - "description": "MongoDB username for scraping metrics.", - "type": "string", - "x-order": 4 - } - }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddMySQLdExporter": { - "post": { - "description": "Adds mysqld_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add mysqld Exporter", - "operationId": "AddMySQLdExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "agent_password": { - "description": "Custom password for exporter endpoint /metrics.", - "type": "string", - "x-order": 14 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 10 - }, - "disable_collectors": { - "description": "List of collector names to disable in this exporter.", - "type": "array", - "items": { - "type": "string" + "x-order": 12 + }, + "status": { + "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "type": "string", + "default": "AGENT_STATUS_UNSPECIFIED", + "enum": [ + "AGENT_STATUS_UNSPECIFIED", + "AGENT_STATUS_STARTING", + "AGENT_STATUS_RUNNING", + "AGENT_STATUS_WAITING", + "AGENT_STATUS_STOPPING", + "AGENT_STATUS_DONE", + "AGENT_STATUS_UNKNOWN" + ], + "x-order": 10 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 5 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 6 + }, + "username": { + "description": "MongoDB username for scraping metrics.", + "type": "string", + "x-order": 4 + } }, - "x-order": 13 - }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 16 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 15 - }, - "password": { - "description": "MySQL password for scraping metrics.", - "type": "string", "x-order": 3 }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 12 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 11 - }, - "tablestats_group_table_limit": { - "description": "Tablestats group collectors will be disabled if there are more than that number of tables.\n0 means tablestats group collectors are always enabled (no limit).\nNegative value means tablestats group collectors are always disabled.", - "type": "integer", - "format": "int32", - "x-order": 9 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 6 - }, - "tls_cert": { - "description": "Client certificate.", - "type": "string", - "x-order": 7 - }, - "tls_key": { - "description": "Password for decrypting tls_cert.", - "type": "string", - "x-order": 8 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "username": { - "description": "MySQL username for scraping metrics.", - "type": "string", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "mysqld_exporter": { "description": "MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics.", "type": "object", @@ -992,123 +1638,8 @@ "x-order": 4 } }, - "x-order": 0 - }, - "table_count": { - "description": "Actual table count at the moment of adding.", - "type": "integer", - "format": "int32", - "x-order": 1 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, "x-order": 2 }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddNodeExporter": { - "post": { - "description": "Adds node_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add Node Exporter", - "operationId": "AddNodeExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 1 - }, - "disable_collectors": { - "description": "List of collector names to disable in this exporter.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 3 - }, - "expose_exporter": { - "type": "boolean", - "title": "Expose the node_exporter process on all public interfaces", - "x-order": 5 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 4 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "node_exporter": { "description": "NodeExporter runs on Generic or Container Node and exposes its metrics.", "type": "object", @@ -1174,106 +1705,30 @@ "description": "Path to exec process.", "type": "string", "x-order": 8 - }, - "push_metrics_enabled": { - "description": "True if exporter uses push metrics mode.", - "type": "boolean", - "x-order": 4 - }, - "status": { - "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", - "type": "string", - "default": "AGENT_STATUS_UNSPECIFIED", - "enum": [ - "AGENT_STATUS_UNSPECIFIED", - "AGENT_STATUS_STARTING", - "AGENT_STATUS_RUNNING", - "AGENT_STATUS_WAITING", - "AGENT_STATUS_STOPPING", - "AGENT_STATUS_DONE", - "AGENT_STATUS_UNKNOWN" - ], - "x-order": 6 - } - }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddPMMAgent": { - "post": { - "description": "Adds PMM Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add PMM Agent", - "operationId": "AddPMMAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" + }, + "push_metrics_enabled": { + "description": "True if exporter uses push metrics mode.", + "type": "boolean", + "x-order": 4 + }, + "status": { + "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "type": "string", + "default": "AGENT_STATUS_UNSPECIFIED", + "enum": [ + "AGENT_STATUS_UNSPECIFIED", + "AGENT_STATUS_STARTING", + "AGENT_STATUS_RUNNING", + "AGENT_STATUS_WAITING", + "AGENT_STATUS_STOPPING", + "AGENT_STATUS_DONE", + "AGENT_STATUS_UNKNOWN" + ], + "x-order": 6 + } }, "x-order": 1 }, - "runs_on_node_id": { - "description": "Node identifier where this instance runs.", - "type": "string", - "x-order": 0 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "pmm_agent": { "description": "PMMAgent runs on Generic or Container Node.", "type": "object", @@ -1308,172 +1763,7 @@ } }, "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddPostgresExporter": { - "post": { - "description": "Adds postgres_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add Postgres Exporter", - "operationId": "AddPostgresExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "agent_password": { - "description": "Custom password for exporter endpoint /metrics.", - "type": "string", - "x-order": 13 - }, - "auto_discovery_limit": { - "description": "Limit of databases for auto-discovery.", - "type": "integer", - "format": "int32", - "x-order": 15 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 6 - }, - "disable_collectors": { - "description": "List of collector names to disable in this exporter.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 9 - }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 16 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 14 - }, - "password": { - "description": "PostgreSQL password for scraping metrics.", - "type": "string", - "x-order": 3 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 8 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 7 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_ca": { - "description": "TLS CA certificate.", - "type": "string", - "x-order": 10 - }, - "tls_cert": { - "description": "TLS Certifcate.", - "type": "string", - "x-order": 11 - }, - "tls_key": { - "description": "TLS Certificate Key.", - "type": "string", - "x-order": 12 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full.", - "type": "boolean", - "x-order": 5 }, - "username": { - "description": "PostgreSQL username for scraping metrics.", - "type": "string", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "postgres_exporter": { "description": "PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics.", "type": "object", @@ -1578,161 +1868,17 @@ }, "tls_skip_verify": { "description": "Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full.", - "type": "boolean", - "x-order": 6 - }, - "username": { - "description": "PostgreSQL username for scraping metrics.", - "type": "string", - "x-order": 4 - } - }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddProxySQLExporter": { - "post": { - "description": "Adds proxysql_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add ProxySQL Exporter", - "operationId": "AddProxySQLExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "agent_password": { - "description": "Custom password for exporter endpoint /metrics.", - "type": "string", - "x-order": 10 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 6 - }, - "disable_collectors": { - "description": "List of collector names to disable in this exporter.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 9 - }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 12 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 11 - }, - "password": { - "description": "ProxySQL password for scraping metrics.", - "type": "string", - "x-order": 3 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 8 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 7 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", + "type": "boolean", + "x-order": 6 + }, + "username": { + "description": "PostgreSQL username for scraping metrics.", + "type": "string", + "x-order": 4 + } + }, "x-order": 4 }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "username": { - "description": "ProxySQL username for scraping metrics.", - "type": "string", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "proxysql_exporter": { "description": "ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics.", "type": "object", @@ -1840,160 +1986,8 @@ "x-order": 4 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddQANMongoDBProfilerAgent": { - "post": { - "description": "Adds 'Query Analytics MongoDB Profiler' Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add 'QAN MongoDB Profiler' Agent", - "operationId": "AddQANMongoDBProfilerAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "authentication_database": { - "description": "Authentication database.", - "type": "string", - "x-order": 13 - }, - "authentication_mechanism": { - "description": "Authentication mechanism.\nSee https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism\nfor details.", - "type": "string", - "x-order": 12 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 10 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 14 - }, - "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).", - "type": "integer", - "format": "int32", - "x-order": 9 - }, - "password": { - "description": "MongoDB password for getting profile data.", - "type": "string", - "x-order": 3 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 11 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 8 - }, - "tls_certificate_key": { - "description": "Client certificate and key.", - "type": "string", - "x-order": 6 - }, - "tls_certificate_key_file_password": { - "description": "Password for decrypting tls_certificate_key.", - "type": "string", - "x-order": 7 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", "x-order": 5 }, - "username": { - "description": "MongoDB username for getting profile data.", - "type": "string", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "qan_mongodb_profiler_agent": { "description": "QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server.", "type": "object", @@ -2080,163 +2074,11 @@ "username": { "description": "MongoDB username for getting profiler data.", "type": "string", - "x-order": 4 - } - }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddQANMySQLPerfSchemaAgent": { - "post": { - "description": "Adds 'Query Analytics MySQL PerfSchema' Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add 'QAN MySQL PerfSchema' Agent", - "operationId": "AddQANMySQLPerfSchemaAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 11 - }, - "disable_comments_parsing": { - "description": "Disable parsing comments from queries and showing them in QAN.", - "type": "boolean", - "x-order": 13 - }, - "disable_query_examples": { - "description": "Disable query examples.", - "type": "boolean", - "x-order": 10 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 14 - }, - "max_query_length": { - "type": "integer", - "format": "int32", - "title": "Limit query length in QAN (default: server-defined; -1: no limit)", - "x-order": 9 - }, - "password": { - "description": "MySQL password for getting performance data.", - "type": "string", - "x-order": 3 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 12 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 6 - }, - "tls_cert": { - "description": "Client certificate.", - "type": "string", - "x-order": 7 - }, - "tls_key": { - "description": "Password for decrypting tls_cert.", - "type": "string", - "x-order": 8 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "username": { - "description": "MySQL username for getting performance data.", - "type": "string", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { + "x-order": 4 + } + }, + "x-order": 11 + }, "qan_mysql_perfschema_agent": { "description": "QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server.", "type": "object", @@ -2351,166 +2193,8 @@ "x-order": 4 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddQANMySQLSlowlogAgent": { - "post": { - "description": "Adds 'Query Analytics MySQL Slowlog' Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add 'QAN MySQL Slowlog' Agent", - "operationId": "AddQANMySQLSlowlogAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 12 - }, - "disable_comments_parsing": { - "description": "Disable parsing comments from queries and showing them in QAN.", - "type": "boolean", - "x-order": 14 - }, - "disable_query_examples": { - "description": "Disable query examples.", - "type": "boolean", - "x-order": 10 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 15 - }, - "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).", - "type": "integer", - "format": "int32", "x-order": 9 }, - "max_slowlog_file_size": { - "description": "Rotate slowlog file at this size if \u003e 0.\nUse zero or negative value to disable rotation.", - "type": "string", - "format": "int64", - "x-order": 11 - }, - "password": { - "description": "MySQL password for getting slowlog data.", - "type": "string", - "x-order": 3 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 13 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 6 - }, - "tls_cert": { - "description": "Client certificate.", - "type": "string", - "x-order": 7 - }, - "tls_key": { - "description": "Password for decrypting tls_cert.", - "type": "string", - "x-order": 8 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "username": { - "description": "MySQL username for getting slowlog data.", - "type": "string", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "qan_mysql_slowlog_agent": { "description": "QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server.", "type": "object", @@ -2631,162 +2315,10 @@ "x-order": 4 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent": { - "post": { - "description": "Adds 'Query Analytics PostgreSQL pg_stat_monitor' Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add 'QAN PostgreSQL pg_stat_monitor' Agent", - "operationId": "AddQANPostgreSQLPgStatMonitorAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 8 - }, - "disable_comments_parsing": { - "description": "Disable parsing comments from queries and showing them in QAN.", - "type": "boolean", "x-order": 10 }, - "disable_query_examples": { - "description": "Disable query examples.", - "type": "boolean", - "x-order": 7 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 14 - }, - "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).", - "type": "integer", - "format": "int32", - "x-order": 6 - }, - "password": { - "description": "PostgreSQL password for getting pg stat monitor data.", - "type": "string", - "x-order": 3 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 9 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_ca": { - "description": "TLS CA certificate.", - "type": "string", - "x-order": 11 - }, - "tls_cert": { - "description": "TLS Certifcate.", - "type": "string", - "x-order": 12 - }, - "tls_key": { - "description": "TLS Certificate Key.", - "type": "string", - "x-order": 13 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "username": { - "description": "PostgreSQL username for getting pg stat monitor data.", - "type": "string", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "qan_postgresql_pgstatmonitor_agent": { - "description": "QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server.", + "qan_postgresql_pgstatements_agent": { + "description": "QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server.", "type": "object", "properties": { "agent_id": { @@ -2800,12 +2332,12 @@ "additionalProperties": { "type": "string" }, - "x-order": 10 + "x-order": 9 }, "disable_comments_parsing": { "description": "Disable parsing comments from queries and showing them in QAN.", "type": "boolean", - "x-order": 7 + "x-order": 5 }, "disabled": { "description": "Desired Agent status: enabled (false) or disabled (true).", @@ -2825,29 +2357,24 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 13 + "x-order": 12 }, "max_query_length": { "description": "Limit query length in QAN (default: server-defined; -1: no limit).", "type": "integer", "format": "int32", - "x-order": 8 + "x-order": 6 }, "pmm_agent_id": { "description": "The pmm-agent identifier which runs this instance.", "type": "string", "x-order": 1 }, - "process_exec_path": { - "description": "Path to exec process.", - "type": "string", - "x-order": 12 - }, - "query_examples_disabled": { - "description": "True if query examples are disabled.", - "type": "boolean", - "x-order": 9 - }, + "process_exec_path": { + "description": "Path to exec process.", + "type": "string", + "x-order": 11 + }, "service_id": { "description": "Service identifier.", "type": "string", @@ -2866,175 +2393,28 @@ "AGENT_STATUS_DONE", "AGENT_STATUS_UNKNOWN" ], - "x-order": 11 + "x-order": 10 }, "tls": { "description": "Use TLS for database connections.", "type": "boolean", - "x-order": 5 + "x-order": 7 }, "tls_skip_verify": { "description": "Skip TLS certificate and hostname validation.", "type": "boolean", - "x-order": 6 + "x-order": 8 }, "username": { - "description": "PostgreSQL username for getting pg stat monitor data.", + "description": "PostgreSQL username for getting pg stat statements data.", "type": "string", "x-order": 4 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent": { - "post": { - "description": "Adds 'Query Analytics PostgreSQL pg_stat_statements' Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add 'QAN PostgreSQL pg_stat_statements' Agent", - "operationId": "AddQANPostgreSQLPgStatementsAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 6 - }, - "disable_comments_parsing": { - "description": "Disable parsing comments from queries and showing them in QAN.", - "type": "boolean", - "x-order": 8 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 13 - }, - "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).", - "type": "integer", - "format": "int32", - "x-order": 9 - }, - "password": { - "description": "PostgreSQL password for getting pg stat statements data.", - "type": "string", - "x-order": 3 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 7 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_ca": { - "description": "TLS CA certificate.", - "type": "string", - "x-order": 10 - }, - "tls_cert": { - "description": "TLS Certifcate.", - "type": "string", - "x-order": 11 - }, - "tls_key": { - "description": "TLS Certificate Key.", - "type": "string", "x-order": 12 }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "username": { - "description": "PostgreSQL username for getting pg stat statements data.", - "type": "string", - "x-order": 2 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "qan_postgresql_pgstatements_agent": { - "description": "QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server.", + "qan_postgresql_pgstatmonitor_agent": { + "description": "QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server.", "type": "object", "properties": { "agent_id": { @@ -3048,12 +2428,12 @@ "additionalProperties": { "type": "string" }, - "x-order": 9 + "x-order": 10 }, "disable_comments_parsing": { "description": "Disable parsing comments from queries and showing them in QAN.", "type": "boolean", - "x-order": 5 + "x-order": 7 }, "disabled": { "description": "Desired Agent status: enabled (false) or disabled (true).", @@ -3073,13 +2453,13 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 12 + "x-order": 13 }, "max_query_length": { "description": "Limit query length in QAN (default: server-defined; -1: no limit).", "type": "integer", "format": "int32", - "x-order": 6 + "x-order": 8 }, "pmm_agent_id": { "description": "The pmm-agent identifier which runs this instance.", @@ -3089,7 +2469,12 @@ "process_exec_path": { "description": "Path to exec process.", "type": "string", - "x-order": 11 + "x-order": 12 + }, + "query_examples_disabled": { + "description": "True if query examples are disabled.", + "type": "boolean", + "x-order": 9 }, "service_id": { "description": "Service identifier.", @@ -3109,152 +2494,26 @@ "AGENT_STATUS_DONE", "AGENT_STATUS_UNKNOWN" ], - "x-order": 10 + "x-order": 11 }, "tls": { "description": "Use TLS for database connections.", "type": "boolean", - "x-order": 7 + "x-order": 5 }, "tls_skip_verify": { "description": "Skip TLS certificate and hostname validation.", "type": "boolean", - "x-order": 8 + "x-order": 6 }, "username": { - "description": "PostgreSQL username for getting pg stat statements data.", + "description": "PostgreSQL username for getting pg stat monitor data.", "type": "string", "x-order": 4 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - }, - "message": { - "type": "string", - "x-order": 1 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddRDSExporter": { - "post": { - "description": "Adds rds_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add RDS Exporter", - "operationId": "AddRDSExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "aws_access_key": { - "description": "AWS Access Key.", - "type": "string", - "x-order": 2 - }, - "aws_secret_key": { - "description": "AWS Secret Key.", - "type": "string", - "x-order": 3 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 4 - }, - "disable_basic_metrics": { - "description": "Disable basic metrics.", - "type": "boolean", - "x-order": 6 - }, - "disable_enhanced_metrics": { - "description": "Disable enhanced metrics.", - "type": "boolean", - "x-order": 7 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 9 - }, - "node_id": { - "description": "Node identifier.", - "type": "string", - "x-order": 1 - }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 8 + "x-order": 13 }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 5 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "rds_exporter": { "description": "RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics.", "type": "object", @@ -3355,7 +2614,13 @@ "x-order": 6 } }, - "x-order": 0 + "x-order": 7 + }, + "table_count": { + "description": "Actual table count for SQL databases at the moment of adding.", + "type": "integer", + "format": "int32", + "x-order": 14 } } } @@ -9327,11 +8592,11 @@ }, "/v1/inventory/Agents/Remove": { "post": { - "description": "Removes Agent.", + "description": "Removes an Agent from Inventory.", "tags": [ "AgentsService" ], - "summary": "Remove Agent", + "summary": "Remove an Agent from Inventory", "operationId": "RemoveAgent", "parameters": [ { diff --git a/api/swagger/swagger-dev.json b/api/swagger/swagger-dev.json index bc8bad3bd3..70a7dae64e 100644 --- a/api/swagger/swagger-dev.json +++ b/api/swagger/swagger-dev.json @@ -3811,14 +3811,14 @@ } } }, - "/v1/inventory/Agents/AddAzureDatabaseExporter": { + "/v1/inventory/Agents/Add": { "post": { - "description": "Adds azure_database_exporter Agent.", + "description": "Adds an Agent from Inventory.", "tags": [ "AgentsService" ], - "summary": "Add Azure Database Exporter", - "operationId": "AddAzureDatabaseExporter", + "summary": "Add an Agent to Inventory", + "operationId": "AddAgent", "parameters": [ { "name": "body", @@ -3827,162 +3827,162 @@ "schema": { "type": "object", "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "node_id": { - "description": "Node identifier.", - "type": "string", - "x-order": 1 - }, - "azure_client_id": { - "type": "string", - "title": "Azure client ID", - "x-order": 2 - }, - "azure_client_secret": { - "type": "string", - "title": "Azure client secret", - "x-order": 3 - }, - "azure_tenant_id": { - "type": "string", - "title": "Azure tanant ID", - "x-order": 4 - }, - "azure_subscription_id": { - "type": "string", - "title": "Azure subscription ID", - "x-order": 5 - }, - "azure_resource_group": { - "description": "Azure resource group.", - "type": "string", - "x-order": 6 - }, - "azure_database_resource_type": { - "type": "string", - "title": "Azure resource type (mysql, maria, postgres)", - "x-order": 7 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", + "pmm_agent": { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "runs_on_node_id": { + "description": "Node identifier where this instance runs.", + "type": "string", + "x-order": 0 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 1 + } }, - "x-order": 8 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 9 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 10 + "x-order": 0 }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 11 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "azure_database_exporter": { - "description": "AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics.", + "node_exporter": { "type": "object", "properties": { - "agent_id": { - "description": "Unique randomly generated instance identifier.", + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", "type": "string", "x-order": 0 }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 1 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 2 + }, + "disable_collectors": { + "description": "List of collector names to disable in this exporter.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 3 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 4 + }, + "expose_exporter": { + "type": "boolean", + "title": "Expose the node_exporter process on all public interfaces", + "x-order": 5 + } + }, + "x-order": 1 + }, + "mysqld_exporter": { + "type": "object", + "properties": { "pmm_agent_id": { "description": "The pmm-agent identifier which runs this instance.", "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", "x-order": 1 }, - "disabled": { - "description": "Desired Agent status: enabled (false) or disabled (true).", - "type": "boolean", + "username": { + "description": "MySQL username for scraping metrics.", + "type": "string", "x-order": 2 }, - "node_id": { - "description": "Node identifier.", + "password": { + "description": "MySQL password for scraping metrics.", "type": "string", "x-order": 3 }, - "azure_database_subscription_id": { - "description": "Azure database subscription ID.", - "type": "string", + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", "x-order": 4 }, - "azure_database_resource_type": { - "type": "string", - "title": "Azure database resource type (mysql, maria, postgres)", + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", "x-order": 5 }, - "custom_labels": { - "description": "Custom user-assigned labels.\n\nStatus fields below.", - "type": "object", - "additionalProperties": { - "type": "string" - }, + "tls_ca": { + "description": "Certificate Authority certificate chain.", + "type": "string", "x-order": 6 }, - "status": { - "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "tls_cert": { + "description": "Client certificate.", "type": "string", - "default": "AGENT_STATUS_UNSPECIFIED", - "enum": [ - "AGENT_STATUS_UNSPECIFIED", - "AGENT_STATUS_STARTING", - "AGENT_STATUS_RUNNING", - "AGENT_STATUS_WAITING", - "AGENT_STATUS_STOPPING", - "AGENT_STATUS_DONE", - "AGENT_STATUS_UNKNOWN" - ], "x-order": 7 }, - "listen_port": { - "description": "Listen port for scraping metrics (the same for several configurations).", - "type": "integer", - "format": "int64", + "tls_key": { + "description": "Password for decrypting tls_cert.", + "type": "string", "x-order": 8 }, - "push_metrics_enabled": { - "description": "True if the exporter operates in push metrics mode.", - "type": "boolean", + "tablestats_group_table_limit": { + "description": "Tablestats group collectors will be disabled if there are more than that number of tables.\n0 means tablestats group collectors are always enabled (no limit).\nNegative value means tablestats group collectors are always disabled.", + "type": "integer", + "format": "int32", "x-order": 9 }, - "process_exec_path": { - "description": "Path to exec process.", - "type": "string", + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, "x-order": 10 }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 11 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 12 + }, + "disable_collectors": { + "description": "List of collector names to disable in this exporter.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 13 + }, + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 14 + }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", "type": "string", @@ -3996,476 +3996,812 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 11 + "x-order": 15 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 16 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 + "x-order": 2 }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false + "mongodb_exporter": { + "type": "object", + "properties": { + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "username": { + "description": "MongoDB username for scraping metrics.", + "type": "string", + "x-order": 2 + }, + "password": { + "description": "MongoDB password for scraping metrics.", + "type": "string", + "x-order": 3 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "tls_certificate_key": { + "description": "Client certificate and key.", + "type": "string", + "x-order": 6 + }, + "tls_certificate_key_file_password": { + "description": "Password for decrypting tls_certificate_key.", + "type": "string", + "x-order": 7 + }, + "tls_ca": { + "description": "Certificate Authority certificate chain.", + "type": "string", + "x-order": 8 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 9 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 10 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 11 + }, + "disable_collectors": { + "description": "List of collector names to disable in this exporter.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 12 + }, + "authentication_mechanism": { + "description": "Authentication mechanism.\nSee https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism\nfor details.", + "type": "string", + "x-order": 13 + }, + "authentication_database": { + "description": "Authentication database.", + "type": "string", + "x-order": 14 + }, + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 15 + }, + "stats_collections": { + "type": "array", + "title": "List of colletions to get stats from. Can use *", + "items": { + "type": "string" + }, + "x-order": 16 + }, + "collections_limit": { + "type": "integer", + "format": "int32", + "title": "Collections limit. Only get Databases and collection stats if the total number of collections in the server\nis less than this value. 0: no limit", + "x-order": 17 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 18 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 19 + } }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddExternalExporter": { - "post": { - "description": "Adds external_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add External Exporter", - "operationId": "AddExternalExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "runs_on_node_id": { - "description": "The node identifier where this instance is run.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "username": { - "description": "HTTP basic auth username for collecting metrics.", - "type": "string", - "x-order": 2 - }, - "password": { - "description": "HTTP basic auth password for collecting metrics.", - "type": "string", "x-order": 3 }, - "scheme": { - "description": "Scheme to generate URI to exporter metrics endpoints(default: http).", - "type": "string", + "postgres_exporter": { + "type": "object", + "properties": { + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "username": { + "description": "PostgreSQL username for scraping metrics.", + "type": "string", + "x-order": 2 + }, + "password": { + "description": "PostgreSQL password for scraping metrics.", + "type": "string", + "x-order": 3 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full.", + "type": "boolean", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 7 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 8 + }, + "disable_collectors": { + "description": "List of collector names to disable in this exporter.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 9 + }, + "tls_ca": { + "description": "TLS CA certificate.", + "type": "string", + "x-order": 10 + }, + "tls_cert": { + "description": "TLS Certifcate.", + "type": "string", + "x-order": 11 + }, + "tls_key": { + "description": "TLS Certificate Key.", + "type": "string", + "x-order": 12 + }, + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 13 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 14 + }, + "auto_discovery_limit": { + "description": "Limit of databases for auto-discovery.", + "type": "integer", + "format": "int32", + "x-order": 15 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 16 + } + }, "x-order": 4 }, - "metrics_path": { - "description": "Path under which metrics are exposed, used to generate URI(default: /metrics).", - "type": "string", + "proxysql_exporter": { + "type": "object", + "properties": { + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "username": { + "description": "ProxySQL username for scraping metrics.", + "type": "string", + "x-order": 2 + }, + "password": { + "description": "ProxySQL password for scraping metrics.", + "type": "string", + "x-order": 3 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 7 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 8 + }, + "disable_collectors": { + "description": "List of collector names to disable in this exporter.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 9 + }, + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 10 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 11 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 12 + } + }, "x-order": 5 }, - "listen_port": { - "description": "Listen port for scraping metrics.", - "type": "integer", - "format": "int64", + "external_exporter": { + "type": "object", + "properties": { + "runs_on_node_id": { + "description": "The node identifier where this instance is run.", + "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "username": { + "description": "HTTP basic auth username for collecting metrics.", + "type": "string", + "x-order": 2 + }, + "password": { + "description": "HTTP basic auth password for collecting metrics.", + "type": "string", + "x-order": 3 + }, + "scheme": { + "description": "Scheme to generate URI to exporter metrics endpoints(default: http).", + "type": "string", + "x-order": 4 + }, + "metrics_path": { + "description": "Path under which metrics are exposed, used to generate URI(default: /metrics).", + "type": "string", + "x-order": 5 + }, + "listen_port": { + "description": "Listen port for scraping metrics.", + "type": "integer", + "format": "int64", + "x-order": 6 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 7 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 8 + } + }, "x-order": 6 }, - "custom_labels": { - "description": "Custom user-assigned labels.", + "rds_exporter": { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "node_id": { + "description": "Node identifier.", + "type": "string", + "x-order": 1 + }, + "aws_access_key": { + "description": "AWS Access Key.", + "type": "string", + "x-order": 2 + }, + "aws_secret_key": { + "description": "AWS Secret Key.", + "type": "string", + "x-order": 3 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 4 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 5 + }, + "disable_basic_metrics": { + "description": "Disable basic metrics.", + "type": "boolean", + "x-order": 6 + }, + "disable_enhanced_metrics": { + "description": "Disable enhanced metrics.", + "type": "boolean", + "x-order": 7 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 8 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 9 + } }, "x-order": 7 }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 8 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "external_exporter": { - "description": "ExternalExporter runs on any Node type, including Remote Node.", + "azure_database_exporter": { "type": "object", "properties": { - "agent_id": { - "description": "Unique randomly generated instance identifier.", + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", "type": "string", "x-order": 0 }, - "runs_on_node_id": { - "description": "Node identifier where this instance runs.", + "node_id": { + "description": "Node identifier.", "type": "string", "x-order": 1 }, - "disabled": { - "description": "If disabled, metrics from this exporter will not be collected.", - "type": "boolean", + "azure_client_id": { + "type": "string", + "title": "Azure client ID", "x-order": 2 }, + "azure_client_secret": { + "type": "string", + "title": "Azure client secret", + "x-order": 3 + }, + "azure_tenant_id": { + "type": "string", + "title": "Azure tanant ID", + "x-order": 4 + }, + "azure_subscription_id": { + "type": "string", + "title": "Azure subscription ID", + "x-order": 5 + }, + "azure_resource_group": { + "description": "Azure resource group.", + "type": "string", + "x-order": 6 + }, + "azure_database_resource_type": { + "type": "string", + "title": "Azure resource type (mysql, maria, postgres)", + "x-order": 7 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 8 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 9 + }, + "push_metrics": { + "description": "Enables push metrics mode for exporter.", + "type": "boolean", + "x-order": 10 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 11 + } + }, + "x-order": 8 + }, + "qan_mysql_perfschema_agent": { + "type": "object", + "properties": { + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, "service_id": { "description": "Service identifier.", "type": "string", - "x-order": 3 + "x-order": 1 }, "username": { - "description": "HTTP basic auth username for collecting metrics.", + "description": "MySQL username for getting performance data.", + "type": "string", + "x-order": 2 + }, + "password": { + "description": "MySQL password for getting performance data.", "type": "string", + "x-order": 3 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", "x-order": 4 }, - "scheme": { - "description": "Scheme to generate URI to exporter metrics endpoints.", + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "tls_ca": { + "description": "Certificate Authority certificate chain.", + "type": "string", + "x-order": 6 + }, + "tls_cert": { + "description": "Client certificate.", + "type": "string", + "x-order": 7 + }, + "tls_key": { + "description": "Password for decrypting tls_cert.", + "type": "string", + "x-order": 8 + }, + "max_query_length": { + "type": "integer", + "format": "int32", + "title": "Limit query length in QAN (default: server-defined; -1: no limit)", + "x-order": 9 + }, + "disable_query_examples": { + "description": "Disable query examples.", + "type": "boolean", + "x-order": 10 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 11 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 12 + }, + "disable_comments_parsing": { + "description": "Disable parsing comments from queries and showing them in QAN.", + "type": "boolean", + "x-order": 13 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 14 + } + }, + "x-order": 9 + }, + "qan_mysql_slowlog_agent": { + "type": "object", + "properties": { + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 0 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 1 + }, + "username": { + "description": "MySQL username for getting slowlog data.", + "type": "string", + "x-order": 2 + }, + "password": { + "description": "MySQL password for getting slowlog data.", "type": "string", + "x-order": 3 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", "x-order": 5 }, - "metrics_path": { - "description": "Path under which metrics are exposed, used to generate URI.", + "tls_ca": { + "description": "Certificate Authority certificate chain.", "type": "string", "x-order": 6 }, + "tls_cert": { + "description": "Client certificate.", + "type": "string", + "x-order": 7 + }, + "tls_key": { + "description": "Password for decrypting tls_cert.", + "type": "string", + "x-order": 8 + }, + "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).", + "type": "integer", + "format": "int32", + "x-order": 9 + }, + "disable_query_examples": { + "description": "Disable query examples.", + "type": "boolean", + "x-order": 10 + }, + "max_slowlog_file_size": { + "description": "Rotate slowlog file at this size if \u003e 0.\nUse zero or negative value to disable rotation.", + "type": "string", + "format": "int64", + "x-order": 11 + }, "custom_labels": { "description": "Custom user-assigned labels.", "type": "object", "additionalProperties": { "type": "string" }, - "x-order": 7 + "x-order": 12 }, - "listen_port": { - "description": "Listen port for scraping metrics.", - "type": "integer", - "format": "int64", - "x-order": 8 + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 13 }, - "push_metrics_enabled": { - "description": "True if exporter uses push metrics mode.", + "disable_comments_parsing": { + "description": "Disable parsing comments from queries and showing them in QAN.", "type": "boolean", - "x-order": 9 + "x-order": 14 }, - "process_exec_path": { - "description": "Path to exec process.", + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", "type": "string", - "x-order": 10 + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 15 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddMongoDBExporter": { - "post": { - "description": "Adds mongodb_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add MongoDB Exporter", - "operationId": "AddMongoDBExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "username": { - "description": "MongoDB username for scraping metrics.", - "type": "string", - "x-order": 2 - }, - "password": { - "description": "MongoDB password for scraping metrics.", - "type": "string", - "x-order": 3 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "tls_certificate_key": { - "description": "Client certificate and key.", - "type": "string", - "x-order": 6 - }, - "tls_certificate_key_file_password": { - "description": "Password for decrypting tls_certificate_key.", - "type": "string", - "x-order": 7 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 8 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 9 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", "x-order": 10 }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 11 - }, - "disable_collectors": { - "description": "List of collector names to disable in this exporter.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 12 - }, - "authentication_mechanism": { - "description": "Authentication mechanism.\nSee https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism\nfor details.", - "type": "string", - "x-order": 13 - }, - "authentication_database": { - "description": "Authentication database.", - "type": "string", - "x-order": 14 - }, - "agent_password": { - "description": "Custom password for exporter endpoint /metrics.", - "type": "string", - "x-order": 15 - }, - "stats_collections": { - "type": "array", - "title": "List of colletions to get stats from. Can use *", - "items": { - "type": "string" - }, - "x-order": 16 - }, - "collections_limit": { - "type": "integer", - "format": "int32", - "title": "Collections limit. Only get Databases and collection stats if the total number of collections in the server\nis less than this value. 0: no limit", - "x-order": 17 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 18 - }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 19 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "mongodb_exporter": { - "description": "MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics.", + "qan_mongodb_profiler_agent": { "type": "object", "properties": { - "agent_id": { - "description": "Unique randomly generated instance identifier.", - "type": "string", - "x-order": 0 - }, "pmm_agent_id": { "description": "The pmm-agent identifier which runs this instance.", "type": "string", - "x-order": 1 - }, - "disabled": { - "description": "Desired Agent status: enabled (false) or disabled (true).", - "type": "boolean", - "x-order": 2 + "x-order": 0 }, "service_id": { "description": "Service identifier.", "type": "string", - "x-order": 3 + "x-order": 1 }, "username": { - "description": "MongoDB username for scraping metrics.", + "description": "MongoDB username for getting profile data.", "type": "string", - "x-order": 4 + "x-order": 2 + }, + "password": { + "description": "MongoDB password for getting profile data.", + "type": "string", + "x-order": 3 }, "tls": { "description": "Use TLS for database connections.", "type": "boolean", - "x-order": 5 + "x-order": 4 }, "tls_skip_verify": { "description": "Skip TLS certificate and hostname validation.", "type": "boolean", + "x-order": 5 + }, + "tls_certificate_key": { + "description": "Client certificate and key.", + "type": "string", "x-order": 6 }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, + "tls_certificate_key_file_password": { + "description": "Password for decrypting tls_certificate_key.", + "type": "string", "x-order": 7 }, - "push_metrics_enabled": { - "description": "True if exporter uses push metrics mode.", - "type": "boolean", - "x-order": 8 - }, - "disabled_collectors": { - "description": "List of disabled collector names.\n\nStatus fields below.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 9 - }, - "status": { - "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "tls_ca": { + "description": "Certificate Authority certificate chain.", "type": "string", - "default": "AGENT_STATUS_UNSPECIFIED", - "enum": [ - "AGENT_STATUS_UNSPECIFIED", - "AGENT_STATUS_STARTING", - "AGENT_STATUS_RUNNING", - "AGENT_STATUS_WAITING", - "AGENT_STATUS_STOPPING", - "AGENT_STATUS_DONE", - "AGENT_STATUS_UNKNOWN" - ], - "x-order": 10 + "x-order": 8 }, - "listen_port": { - "description": "Listen port for scraping metrics.", + "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).", "type": "integer", - "format": "int64", - "x-order": 11 + "format": "int32", + "x-order": 9 }, - "stats_collections": { - "type": "array", - "title": "List of colletions to get stats from. Can use *", - "items": { + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { "type": "string" }, - "x-order": 12 - }, - "collections_limit": { - "type": "integer", - "format": "int32", - "title": "Collections limit. Only get Databases and collection stats if the total number of collections in the server\nis less than this value. 0: no limit", - "x-order": 13 + "x-order": 10 }, - "enable_all_collectors": { - "description": "Enable All collectors.", + "skip_connection_check": { + "description": "Skip connection check.", "type": "boolean", - "x-order": 14 + "x-order": 11 }, - "process_exec_path": { - "description": "Path to exec process.", + "authentication_mechanism": { + "description": "Authentication mechanism.\nSee https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism\nfor details.", "type": "string", - "x-order": 15 + "x-order": 12 + }, + "authentication_database": { + "description": "Authentication database.", + "type": "string", + "x-order": 13 }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", @@ -4480,240 +4816,43 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 16 - }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 17 + "x-order": 14 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddMySQLdExporter": { - "post": { - "description": "Adds mysqld_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add mysqld Exporter", - "operationId": "AddMySQLdExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "username": { - "description": "MySQL username for scraping metrics.", - "type": "string", - "x-order": 2 - }, - "password": { - "description": "MySQL password for scraping metrics.", - "type": "string", - "x-order": 3 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 6 - }, - "tls_cert": { - "description": "Client certificate.", - "type": "string", - "x-order": 7 - }, - "tls_key": { - "description": "Password for decrypting tls_cert.", - "type": "string", - "x-order": 8 - }, - "tablestats_group_table_limit": { - "description": "Tablestats group collectors will be disabled if there are more than that number of tables.\n0 means tablestats group collectors are always enabled (no limit).\nNegative value means tablestats group collectors are always disabled.", - "type": "integer", - "format": "int32", - "x-order": 9 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 10 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", "x-order": 11 }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 12 - }, - "disable_collectors": { - "description": "List of collector names to disable in this exporter.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 13 - }, - "agent_password": { - "description": "Custom password for exporter endpoint /metrics.", - "type": "string", - "x-order": 14 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 15 - }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 16 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "mysqld_exporter": { - "description": "MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics.", + "qan_postgresql_pgstatements_agent": { "type": "object", "properties": { - "agent_id": { - "description": "Unique randomly generated instance identifier.", - "type": "string", - "x-order": 0 - }, "pmm_agent_id": { "description": "The pmm-agent identifier which runs this instance.", "type": "string", - "x-order": 1 - }, - "disabled": { - "description": "Desired Agent status: enabled (false) or disabled (true).", - "type": "boolean", - "x-order": 2 + "x-order": 0 }, "service_id": { "description": "Service identifier.", "type": "string", - "x-order": 3 + "x-order": 1 }, "username": { - "description": "MySQL username for scraping metrics.", - "type": "string", - "x-order": 4 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 5 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 6 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 7 - }, - "tls_cert": { - "description": "Client certificate.", + "description": "PostgreSQL username for getting pg stat statements data.", "type": "string", - "x-order": 8 + "x-order": 2 }, - "tls_key": { - "description": "Password for decrypting tls_cert.", + "password": { + "description": "PostgreSQL password for getting pg stat statements data.", "type": "string", - "x-order": 9 + "x-order": 3 }, - "tablestats_group_table_limit": { - "description": "Tablestats group collectors are disabled if there are more than that number of tables.\n0 means tablestats group collectors are always enabled (no limit).\nNegative value means tablestats group collectors are always disabled.", - "type": "integer", - "format": "int32", - "x-order": 10 + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 }, "custom_labels": { "description": "Custom user-assigned labels.", @@ -4721,51 +4860,38 @@ "additionalProperties": { "type": "string" }, - "x-order": 11 + "x-order": 6 }, - "push_metrics_enabled": { - "description": "True if exporter uses push metrics mode.", + "skip_connection_check": { + "description": "Skip connection check.", "type": "boolean", - "x-order": 12 - }, - "disabled_collectors": { - "description": "List of disabled collector names.\n\nStatus fields below.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 13 + "x-order": 7 }, - "status": { - "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", - "type": "string", - "default": "AGENT_STATUS_UNSPECIFIED", - "enum": [ - "AGENT_STATUS_UNSPECIFIED", - "AGENT_STATUS_STARTING", - "AGENT_STATUS_RUNNING", - "AGENT_STATUS_WAITING", - "AGENT_STATUS_STOPPING", - "AGENT_STATUS_DONE", - "AGENT_STATUS_UNKNOWN" - ], - "x-order": 14 + "disable_comments_parsing": { + "description": "Disable parsing comments from queries and showing them in QAN.", + "type": "boolean", + "x-order": 8 }, - "listen_port": { - "description": "Listen port for scraping metrics.", + "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).", "type": "integer", - "format": "int64", - "x-order": 15 + "format": "int32", + "x-order": 9 }, - "tablestats_group_disabled": { - "description": "True if tablestats group collectors are currently disabled.", - "type": "boolean", - "x-order": 16 + "tls_ca": { + "description": "TLS CA certificate.", + "type": "string", + "x-order": 10 }, - "process_exec_path": { - "description": "Path to exec process.", + "tls_cert": { + "description": "TLS Certifcate.", "type": "string", - "x-order": 17 + "x-order": 11 + }, + "tls_key": { + "description": "TLS Certificate Key.", + "type": "string", + "x-order": 12 }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", @@ -4780,196 +4906,87 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 18 - }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 19 + "x-order": 13 } }, - "x-order": 0 - }, - "table_count": { - "description": "Actual table count at the moment of adding.", - "type": "integer", - "format": "int32", - "x-order": 1 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddNodeExporter": { - "post": { - "description": "Adds node_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add Node Exporter", - "operationId": "AddNodeExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 1 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 2 - }, - "disable_collectors": { - "description": "List of collector names to disable in this exporter.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 3 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 4 + "x-order": 12 }, - "expose_exporter": { - "type": "boolean", - "title": "Expose the node_exporter process on all public interfaces", - "x-order": 5 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "node_exporter": { - "description": "NodeExporter runs on Generic or Container Node and exposes its metrics.", + "qan_postgresql_pgstatmonitor_agent": { "type": "object", "properties": { - "agent_id": { - "description": "Unique randomly generated instance identifier.", + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", "type": "string", "x-order": 0 }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", + "service_id": { + "description": "Service identifier.", "type": "string", "x-order": 1 }, - "disabled": { - "description": "Desired Agent status: enabled (false) or disabled (true).", - "type": "boolean", + "username": { + "description": "PostgreSQL username for getting pg stat monitor data.", + "type": "string", "x-order": 2 }, + "password": { + "description": "PostgreSQL password for getting pg stat monitor data.", + "type": "string", + "x-order": 3 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 4 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 5 + }, + "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).", + "type": "integer", + "format": "int32", + "x-order": 6 + }, + "disable_query_examples": { + "description": "Disable query examples.", + "type": "boolean", + "x-order": 7 + }, "custom_labels": { "description": "Custom user-assigned labels.", "type": "object", "additionalProperties": { "type": "string" }, - "x-order": 3 + "x-order": 8 }, - "push_metrics_enabled": { - "description": "True if exporter uses push metrics mode.", + "skip_connection_check": { + "description": "Skip connection check.", "type": "boolean", - "x-order": 4 - }, - "disabled_collectors": { - "description": "List of disabled collector names.\n\nStatus fields below.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 5 + "x-order": 9 }, - "status": { - "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", - "type": "string", - "default": "AGENT_STATUS_UNSPECIFIED", - "enum": [ - "AGENT_STATUS_UNSPECIFIED", - "AGENT_STATUS_STARTING", - "AGENT_STATUS_RUNNING", - "AGENT_STATUS_WAITING", - "AGENT_STATUS_STOPPING", - "AGENT_STATUS_DONE", - "AGENT_STATUS_UNKNOWN" - ], - "x-order": 6 + "disable_comments_parsing": { + "description": "Disable parsing comments from queries and showing them in QAN.", + "type": "boolean", + "x-order": 10 }, - "listen_port": { - "description": "Listen port for scraping metrics.", - "type": "integer", - "format": "int64", - "x-order": 7 + "tls_ca": { + "description": "TLS CA certificate.", + "type": "string", + "x-order": 11 }, - "process_exec_path": { - "description": "Path to exec process.", + "tls_cert": { + "description": "TLS Certifcate.", "type": "string", - "x-order": 8 + "x-order": 12 + }, + "tls_key": { + "description": "TLS Certificate Key.", + "type": "string", + "x-order": 13 }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", @@ -4984,81 +5001,10 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 9 - }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 10 + "x-order": 14 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddPMMAgent": { - "post": { - "description": "Adds PMM Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add PMM Agent", - "operationId": "AddPMMAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "runs_on_node_id": { - "description": "Node identifier where this instance runs.", - "type": "string", - "x-order": 0 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 1 + "x-order": 13 } } } @@ -5095,183 +5041,18 @@ "connected": { "description": "True if Agent is running and connected to pmm-managed.", "type": "boolean", - "x-order": 3 - }, - "process_exec_path": { - "description": "Path to exec process.", - "type": "string", - "x-order": 4 - } - }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddPostgresExporter": { - "post": { - "description": "Adds postgres_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add Postgres Exporter", - "operationId": "AddPostgresExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "username": { - "description": "PostgreSQL username for scraping metrics.", - "type": "string", - "x-order": 2 - }, - "password": { - "description": "PostgreSQL password for scraping metrics.", - "type": "string", - "x-order": 3 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full.", - "type": "boolean", - "x-order": 5 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 6 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 7 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 8 - }, - "disable_collectors": { - "description": "List of collector names to disable in this exporter.", - "type": "array", - "items": { - "type": "string" - }, - "x-order": 9 - }, - "tls_ca": { - "description": "TLS CA certificate.", - "type": "string", - "x-order": 10 - }, - "tls_cert": { - "description": "TLS Certifcate.", - "type": "string", - "x-order": 11 - }, - "tls_key": { - "description": "TLS Certificate Key.", - "type": "string", - "x-order": 12 - }, - "agent_password": { - "description": "Custom password for exporter endpoint /metrics.", - "type": "string", - "x-order": 13 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 14 - }, - "auto_discovery_limit": { - "description": "Limit of databases for auto-discovery.", - "type": "integer", - "format": "int32", - "x-order": 15 - }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 16 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "postgres_exporter": { - "description": "PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics.", + "x-order": 3 + }, + "process_exec_path": { + "description": "Path to exec process.", + "type": "string", + "x-order": 4 + } + }, + "x-order": 0 + }, + "node_exporter": { + "description": "NodeExporter runs on Generic or Container Node and exposes its metrics.", "type": "object", "properties": { "agent_id": { @@ -5289,46 +5070,26 @@ "type": "boolean", "x-order": 2 }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 3 - }, - "username": { - "description": "PostgreSQL username for scraping metrics.", - "type": "string", - "x-order": 4 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 5 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full.", - "type": "boolean", - "x-order": 6 - }, "custom_labels": { "description": "Custom user-assigned labels.", "type": "object", "additionalProperties": { "type": "string" }, - "x-order": 7 + "x-order": 3 }, "push_metrics_enabled": { "description": "True if exporter uses push metrics mode.", "type": "boolean", - "x-order": 8 + "x-order": 4 }, "disabled_collectors": { - "description": "List of disabled collector names.", + "description": "List of disabled collector names.\n\nStatus fields below.", "type": "array", "items": { "type": "string" }, - "x-order": 9 + "x-order": 5 }, "status": { "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", @@ -5343,18 +5104,18 @@ "AGENT_STATUS_DONE", "AGENT_STATUS_UNKNOWN" ], - "x-order": 10 + "x-order": 6 }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", "format": "int64", - "x-order": 11 + "x-order": 7 }, "process_exec_path": { "description": "Path to exec process.", "type": "string", - "x-order": 12 + "x-order": 8 }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", @@ -5369,168 +5130,153 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 13 - }, - "auto_discovery_limit": { - "description": "Limit of databases for auto-discovery.", - "type": "integer", - "format": "int32", - "x-order": 14 + "x-order": 9 }, "expose_exporter": { "type": "boolean", "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 15 + "x-order": 10 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddProxySQLExporter": { - "post": { - "description": "Adds proxysql_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add ProxySQL Exporter", - "operationId": "AddProxySQLExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", "x-order": 1 }, - "username": { - "description": "ProxySQL username for scraping metrics.", - "type": "string", - "x-order": 2 - }, - "password": { - "description": "ProxySQL password for scraping metrics.", - "type": "string", - "x-order": 3 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", + "mysqld_exporter": { + "description": "MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics.", "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 6 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 7 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 8 - }, - "disable_collectors": { - "description": "List of collector names to disable in this exporter.", - "type": "array", - "items": { - "type": "string" + "properties": { + "agent_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 1 + }, + "disabled": { + "description": "Desired Agent status: enabled (false) or disabled (true).", + "type": "boolean", + "x-order": 2 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 3 + }, + "username": { + "description": "MySQL username for scraping metrics.", + "type": "string", + "x-order": 4 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 5 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 6 + }, + "tls_ca": { + "description": "Certificate Authority certificate chain.", + "type": "string", + "x-order": 7 + }, + "tls_cert": { + "description": "Client certificate.", + "type": "string", + "x-order": 8 + }, + "tls_key": { + "description": "Password for decrypting tls_cert.", + "type": "string", + "x-order": 9 + }, + "tablestats_group_table_limit": { + "description": "Tablestats group collectors are disabled if there are more than that number of tables.\n0 means tablestats group collectors are always enabled (no limit).\nNegative value means tablestats group collectors are always disabled.", + "type": "integer", + "format": "int32", + "x-order": 10 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 11 + }, + "push_metrics_enabled": { + "description": "True if exporter uses push metrics mode.", + "type": "boolean", + "x-order": 12 + }, + "disabled_collectors": { + "description": "List of disabled collector names.\n\nStatus fields below.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 13 + }, + "status": { + "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "type": "string", + "default": "AGENT_STATUS_UNSPECIFIED", + "enum": [ + "AGENT_STATUS_UNSPECIFIED", + "AGENT_STATUS_STARTING", + "AGENT_STATUS_RUNNING", + "AGENT_STATUS_WAITING", + "AGENT_STATUS_STOPPING", + "AGENT_STATUS_DONE", + "AGENT_STATUS_UNKNOWN" + ], + "x-order": 14 + }, + "listen_port": { + "description": "Listen port for scraping metrics.", + "type": "integer", + "format": "int64", + "x-order": 15 + }, + "tablestats_group_disabled": { + "description": "True if tablestats group collectors are currently disabled.", + "type": "boolean", + "x-order": 16 + }, + "process_exec_path": { + "description": "Path to exec process.", + "type": "string", + "x-order": 17 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 18 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 19 + } }, - "x-order": 9 - }, - "agent_password": { - "description": "Custom password for exporter endpoint /metrics.", - "type": "string", - "x-order": 10 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 11 + "x-order": 2 }, - "expose_exporter": { - "type": "boolean", - "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 12 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "proxysql_exporter": { - "description": "ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics.", + "mongodb_exporter": { + "description": "MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics.", "type": "object", "properties": { "agent_id": { @@ -5554,7 +5300,7 @@ "x-order": 3 }, "username": { - "description": "ProxySQL username for scraping metrics.", + "description": "MongoDB username for scraping metrics.", "type": "string", "x-order": 4 }, @@ -5610,10 +5356,29 @@ "format": "int64", "x-order": 11 }, + "stats_collections": { + "type": "array", + "title": "List of colletions to get stats from. Can use *", + "items": { + "type": "string" + }, + "x-order": 12 + }, + "collections_limit": { + "type": "integer", + "format": "int32", + "title": "Collections limit. Only get Databases and collection stats if the total number of collections in the server\nis less than this value. 0: no limit", + "x-order": 13 + }, + "enable_all_collectors": { + "description": "Enable All collectors.", + "type": "boolean", + "x-order": 14 + }, "process_exec_path": { "description": "Path to exec process.", "type": "string", - "x-order": 12 + "x-order": 15 }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", @@ -5628,170 +5393,133 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 13 + "x-order": 16 }, "expose_exporter": { "type": "boolean", "title": "Optionally expose the exporter process on all public interfaces", - "x-order": 14 + "x-order": 17 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddQANMongoDBProfilerAgent": { - "post": { - "description": "Adds 'Query Analytics MongoDB Profiler' Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add 'QAN MongoDB Profiler' Agent", - "operationId": "AddQANMongoDBProfilerAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "username": { - "description": "MongoDB username for getting profile data.", - "type": "string", - "x-order": 2 - }, - "password": { - "description": "MongoDB password for getting profile data.", - "type": "string", "x-order": 3 }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "tls_certificate_key": { - "description": "Client certificate and key.", - "type": "string", - "x-order": 6 - }, - "tls_certificate_key_file_password": { - "description": "Password for decrypting tls_certificate_key.", - "type": "string", - "x-order": 7 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 8 - }, - "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).", - "type": "integer", - "format": "int32", - "x-order": 9 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", + "postgres_exporter": { + "description": "PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics.", "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "agent_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 1 + }, + "disabled": { + "description": "Desired Agent status: enabled (false) or disabled (true).", + "type": "boolean", + "x-order": 2 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 3 + }, + "username": { + "description": "PostgreSQL username for scraping metrics.", + "type": "string", + "x-order": 4 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 5 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation. Uses sslmode=required instead of verify-full.", + "type": "boolean", + "x-order": 6 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 7 + }, + "push_metrics_enabled": { + "description": "True if exporter uses push metrics mode.", + "type": "boolean", + "x-order": 8 + }, + "disabled_collectors": { + "description": "List of disabled collector names.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 9 + }, + "status": { + "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "type": "string", + "default": "AGENT_STATUS_UNSPECIFIED", + "enum": [ + "AGENT_STATUS_UNSPECIFIED", + "AGENT_STATUS_STARTING", + "AGENT_STATUS_RUNNING", + "AGENT_STATUS_WAITING", + "AGENT_STATUS_STOPPING", + "AGENT_STATUS_DONE", + "AGENT_STATUS_UNKNOWN" + ], + "x-order": 10 + }, + "listen_port": { + "description": "Listen port for scraping metrics.", + "type": "integer", + "format": "int64", + "x-order": 11 + }, + "process_exec_path": { + "description": "Path to exec process.", + "type": "string", + "x-order": 12 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 13 + }, + "auto_discovery_limit": { + "description": "Limit of databases for auto-discovery.", + "type": "integer", + "format": "int32", + "x-order": 14 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 15 + } }, - "x-order": 10 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 11 - }, - "authentication_mechanism": { - "description": "Authentication mechanism.\nSee https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authMechanism\nfor details.", - "type": "string", - "x-order": 12 - }, - "authentication_database": { - "description": "Authentication database.", - "type": "string", - "x-order": 13 + "x-order": 4 }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 14 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "qan_mongodb_profiler_agent": { - "description": "QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server.", + "proxysql_exporter": { + "description": "ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics.", "type": "object", "properties": { "agent_id": { @@ -5815,7 +5543,7 @@ "x-order": 3 }, "username": { - "description": "MongoDB username for getting profiler data.", + "description": "ProxySQL username for scraping metrics.", "type": "string", "x-order": 4 }, @@ -5829,20 +5557,27 @@ "type": "boolean", "x-order": 6 }, - "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).\n\nTrue if query examples are disabled.\n bool query_examples_disabled = 8; TODO https://jira.percona.com/browse/PMM-4650", - "type": "integer", - "format": "int32", - "x-order": 7 - }, "custom_labels": { - "description": "Custom user-assigned labels.\n\nStatus fields below.", + "description": "Custom user-assigned labels.", "type": "object", "additionalProperties": { "type": "string" }, + "x-order": 7 + }, + "push_metrics_enabled": { + "description": "True if exporter uses push metrics mode.", + "type": "boolean", "x-order": 8 }, + "disabled_collectors": { + "description": "List of disabled collector names.\n\nStatus fields below.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 9 + }, "status": { "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", "type": "string", @@ -5856,12 +5591,18 @@ "AGENT_STATUS_DONE", "AGENT_STATUS_UNKNOWN" ], - "x-order": 9 + "x-order": 10 + }, + "listen_port": { + "description": "Listen port for scraping metrics.", + "type": "integer", + "format": "int64", + "x-order": 11 }, "process_exec_path": { "description": "Path to exec process.", "type": "string", - "x-order": 10 + "x-order": 12 }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", @@ -5876,165 +5617,18 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 11 - } - }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } + "x-order": 13 }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddQANMySQLPerfSchemaAgent": { - "post": { - "description": "Adds 'Query Analytics MySQL PerfSchema' Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add 'QAN MySQL PerfSchema' Agent", - "operationId": "AddQANMySQLPerfSchemaAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "username": { - "description": "MySQL username for getting performance data.", - "type": "string", - "x-order": 2 - }, - "password": { - "description": "MySQL password for getting performance data.", - "type": "string", - "x-order": 3 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 6 - }, - "tls_cert": { - "description": "Client certificate.", - "type": "string", - "x-order": 7 - }, - "tls_key": { - "description": "Password for decrypting tls_cert.", - "type": "string", - "x-order": 8 - }, - "max_query_length": { - "type": "integer", - "format": "int32", - "title": "Limit query length in QAN (default: server-defined; -1: no limit)", - "x-order": 9 - }, - "disable_query_examples": { - "description": "Disable query examples.", - "type": "boolean", - "x-order": 10 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 11 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 12 - }, - "disable_comments_parsing": { - "description": "Disable parsing comments from queries and showing them in QAN.", - "type": "boolean", - "x-order": 13 + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 14 + } + }, + "x-order": 5 }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 14 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "qan_mysql_perfschema_agent": { - "description": "QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server.", + "external_exporter": { + "description": "ExternalExporter runs on any Node type, including Remote Node.", "type": "object", "properties": { "agent_id": { @@ -6042,13 +5636,13 @@ "type": "string", "x-order": 0 }, - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", + "runs_on_node_id": { + "description": "Node identifier where this instance runs.", "type": "string", "x-order": 1 }, "disabled": { - "description": "Desired Agent status: enabled (false) or disabled (true).", + "description": "If disabled, metrics from this exporter will not be collected.", "type": "boolean", "x-order": 2 }, @@ -6058,50 +5652,75 @@ "x-order": 3 }, "username": { - "description": "MySQL username for getting performance data.", + "description": "HTTP basic auth username for collecting metrics.", "type": "string", "x-order": 4 }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", + "scheme": { + "description": "Scheme to generate URI to exporter metrics endpoints.", + "type": "string", "x-order": 5 }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", + "metrics_path": { + "description": "Path under which metrics are exposed, used to generate URI.", + "type": "string", "x-order": 6 }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, "x-order": 7 }, - "tls_cert": { - "description": "Client certificate.", - "type": "string", + "listen_port": { + "description": "Listen port for scraping metrics.", + "type": "integer", + "format": "int64", "x-order": 8 }, - "tls_key": { - "description": "Password for decrypting tls_cert.", - "type": "string", + "push_metrics_enabled": { + "description": "True if exporter uses push metrics mode.", + "type": "boolean", "x-order": 9 }, - "disable_comments_parsing": { - "description": "Disable parsing comments from queries and showing them in QAN.", - "type": "boolean", + "process_exec_path": { + "description": "Path to exec process.", + "type": "string", "x-order": 10 + } + }, + "x-order": 6 + }, + "rds_exporter": { + "description": "RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics.", + "type": "object", + "properties": { + "agent_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 }, - "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).", - "type": "integer", - "format": "int32", - "x-order": 11 + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 1 }, - "query_examples_disabled": { - "description": "True if query examples are disabled.", + "disabled": { + "description": "Desired Agent status: enabled (false) or disabled (true).", "type": "boolean", - "x-order": 12 + "x-order": 2 + }, + "node_id": { + "description": "Node identifier.", + "type": "string", + "x-order": 3 + }, + "aws_access_key": { + "description": "AWS Access Key.", + "type": "string", + "x-order": 4 }, "custom_labels": { "description": "Custom user-assigned labels.\n\nStatus fields below.", @@ -6109,7 +5728,7 @@ "additionalProperties": { "type": "string" }, - "x-order": 13 + "x-order": 5 }, "status": { "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", @@ -6124,12 +5743,33 @@ "AGENT_STATUS_DONE", "AGENT_STATUS_UNKNOWN" ], - "x-order": 14 + "x-order": 6 + }, + "listen_port": { + "description": "Listen port for scraping metrics (the same for several configurations).\n\nMetric collections flags below.", + "type": "integer", + "format": "int64", + "x-order": 7 + }, + "basic_metrics_disabled": { + "description": "Basic metrics are disabled.", + "type": "boolean", + "x-order": 8 + }, + "enhanced_metrics_disabled": { + "description": "Enhanced metrics are disabled.", + "type": "boolean", + "x-order": 9 + }, + "push_metrics_enabled": { + "description": "True if exporter uses push metrics mode.", + "type": "boolean", + "x-order": 10 }, "process_exec_path": { "description": "Path to exec process.", "type": "string", - "x-order": 15 + "x-order": 11 }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", @@ -6144,171 +5784,110 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 16 - } - }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } + "x-order": 12 }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddQANMySQLSlowlogAgent": { - "post": { - "description": "Adds 'Query Analytics MySQL Slowlog' Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add 'QAN MySQL Slowlog' Agent", - "operationId": "AddQANMySQLSlowlogAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "username": { - "description": "MySQL username for getting slowlog data.", - "type": "string", - "x-order": 2 - }, - "password": { - "description": "MySQL password for getting slowlog data.", - "type": "string", - "x-order": 3 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "tls_ca": { - "description": "Certificate Authority certificate chain.", - "type": "string", - "x-order": 6 - }, - "tls_cert": { - "description": "Client certificate.", - "type": "string", - "x-order": 7 - }, - "tls_key": { - "description": "Password for decrypting tls_cert.", - "type": "string", - "x-order": 8 - }, - "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).", - "type": "integer", - "format": "int32", - "x-order": 9 - }, - "disable_query_examples": { - "description": "Disable query examples.", - "type": "boolean", - "x-order": 10 - }, - "max_slowlog_file_size": { - "description": "Rotate slowlog file at this size if \u003e 0.\nUse zero or negative value to disable rotation.", - "type": "string", - "format": "int64", - "x-order": 11 + "auto_discovery_limit": { + "description": "Limit of databases for auto-discovery.", + "type": "integer", + "format": "int32", + "x-order": 13 + } + }, + "x-order": 7 }, - "custom_labels": { - "description": "Custom user-assigned labels.", + "azure_database_exporter": { + "description": "AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics.", "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "agent_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 1 + }, + "disabled": { + "description": "Desired Agent status: enabled (false) or disabled (true).", + "type": "boolean", + "x-order": 2 + }, + "node_id": { + "description": "Node identifier.", + "type": "string", + "x-order": 3 + }, + "azure_database_subscription_id": { + "description": "Azure database subscription ID.", + "type": "string", + "x-order": 4 + }, + "azure_database_resource_type": { + "type": "string", + "title": "Azure database resource type (mysql, maria, postgres)", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.\n\nStatus fields below.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "status": { + "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "type": "string", + "default": "AGENT_STATUS_UNSPECIFIED", + "enum": [ + "AGENT_STATUS_UNSPECIFIED", + "AGENT_STATUS_STARTING", + "AGENT_STATUS_RUNNING", + "AGENT_STATUS_WAITING", + "AGENT_STATUS_STOPPING", + "AGENT_STATUS_DONE", + "AGENT_STATUS_UNKNOWN" + ], + "x-order": 7 + }, + "listen_port": { + "description": "Listen port for scraping metrics (the same for several configurations).", + "type": "integer", + "format": "int64", + "x-order": 8 + }, + "push_metrics_enabled": { + "description": "True if the exporter operates in push metrics mode.", + "type": "boolean", + "x-order": 9 + }, + "process_exec_path": { + "description": "Path to exec process.", + "type": "string", + "x-order": 10 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 11 + } }, - "x-order": 12 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 13 - }, - "disable_comments_parsing": { - "description": "Disable parsing comments from queries and showing them in QAN.", - "type": "boolean", - "x-order": 14 + "x-order": 8 }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 15 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "qan_mysql_slowlog_agent": { - "description": "QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server.", + "qan_mysql_perfschema_agent": { + "description": "QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server.", "type": "object", "properties": { "agent_id": { @@ -6367,9 +5946,9 @@ "x-order": 10 }, "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).", "type": "integer", "format": "int32", - "title": "Limit query length in QAN (default: server-defined; -1: no limit)", "x-order": 11 }, "query_examples_disabled": { @@ -6377,19 +5956,13 @@ "type": "boolean", "x-order": 12 }, - "max_slowlog_file_size": { - "description": "Slowlog file is rotated at this size if \u003e 0.", - "type": "string", - "format": "int64", - "x-order": 13 - }, "custom_labels": { "description": "Custom user-assigned labels.\n\nStatus fields below.", "type": "object", "additionalProperties": { "type": "string" }, - "x-order": 14 + "x-order": 13 }, "status": { "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", @@ -6404,12 +5977,12 @@ "AGENT_STATUS_DONE", "AGENT_STATUS_UNKNOWN" ], - "x-order": 15 + "x-order": 14 }, "process_exec_path": { + "description": "Path to exec process.", "type": "string", - "title": "mod tidy", - "x-order": 16 + "x-order": 15 }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", @@ -6424,165 +5997,13 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 17 - } - }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent": { - "post": { - "description": "Adds 'Query Analytics PostgreSQL pg_stat_monitor' Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add 'QAN PostgreSQL pg_stat_monitor' Agent", - "operationId": "AddQANPostgreSQLPgStatMonitorAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "username": { - "description": "PostgreSQL username for getting pg stat monitor data.", - "type": "string", - "x-order": 2 - }, - "password": { - "description": "PostgreSQL password for getting pg stat monitor data.", - "type": "string", - "x-order": 3 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 - }, - "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).", - "type": "integer", - "format": "int32", - "x-order": 6 - }, - "disable_query_examples": { - "description": "Disable query examples.", - "type": "boolean", - "x-order": 7 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 8 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", + "x-order": 16 + } + }, "x-order": 9 }, - "disable_comments_parsing": { - "description": "Disable parsing comments from queries and showing them in QAN.", - "type": "boolean", - "x-order": 10 - }, - "tls_ca": { - "description": "TLS CA certificate.", - "type": "string", - "x-order": 11 - }, - "tls_cert": { - "description": "TLS Certifcate.", - "type": "string", - "x-order": 12 - }, - "tls_key": { - "description": "TLS Certificate Key.", - "type": "string", - "x-order": 13 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 14 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "qan_postgresql_pgstatmonitor_agent": { - "description": "QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server.", + "qan_mysql_slowlog_agent": { + "description": "QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server.", "type": "object", "properties": { "agent_id": { @@ -6606,7 +6027,7 @@ "x-order": 3 }, "username": { - "description": "PostgreSQL username for getting pg stat monitor data.", + "description": "MySQL username for getting performance data.", "type": "string", "x-order": 4 }, @@ -6620,21 +6041,42 @@ "type": "boolean", "x-order": 6 }, + "tls_ca": { + "description": "Certificate Authority certificate chain.", + "type": "string", + "x-order": 7 + }, + "tls_cert": { + "description": "Client certificate.", + "type": "string", + "x-order": 8 + }, + "tls_key": { + "description": "Password for decrypting tls_cert.", + "type": "string", + "x-order": 9 + }, "disable_comments_parsing": { "description": "Disable parsing comments from queries and showing them in QAN.", "type": "boolean", - "x-order": 7 + "x-order": 10 }, "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).", "type": "integer", "format": "int32", - "x-order": 8 + "title": "Limit query length in QAN (default: server-defined; -1: no limit)", + "x-order": 11 }, "query_examples_disabled": { "description": "True if query examples are disabled.", "type": "boolean", - "x-order": 9 + "x-order": 12 + }, + "max_slowlog_file_size": { + "description": "Slowlog file is rotated at this size if \u003e 0.", + "type": "string", + "format": "int64", + "x-order": 13 }, "custom_labels": { "description": "Custom user-assigned labels.\n\nStatus fields below.", @@ -6642,7 +6084,7 @@ "additionalProperties": { "type": "string" }, - "x-order": 10 + "x-order": 14 }, "status": { "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", @@ -6657,12 +6099,12 @@ "AGENT_STATUS_DONE", "AGENT_STATUS_UNKNOWN" ], - "x-order": 11 + "x-order": 15 }, "process_exec_path": { - "description": "Path to exec process.", "type": "string", - "x-order": 12 + "title": "mod tidy", + "x-order": 16 }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", @@ -6677,158 +6119,102 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 13 + "x-order": 17 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent": { - "post": { - "description": "Adds 'Query Analytics PostgreSQL pg_stat_statements' Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add 'QAN PostgreSQL pg_stat_statements' Agent", - "operationId": "AddQANPostgreSQLPgStatementsAgent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "service_id": { - "description": "Service identifier.", - "type": "string", - "x-order": 1 - }, - "username": { - "description": "PostgreSQL username for getting pg stat statements data.", - "type": "string", - "x-order": 2 - }, - "password": { - "description": "PostgreSQL password for getting pg stat statements data.", - "type": "string", - "x-order": 3 - }, - "tls": { - "description": "Use TLS for database connections.", - "type": "boolean", - "x-order": 4 - }, - "tls_skip_verify": { - "description": "Skip TLS certificate and hostname validation.", - "type": "boolean", - "x-order": 5 + "x-order": 10 }, - "custom_labels": { - "description": "Custom user-assigned labels.", + "qan_mongodb_profiler_agent": { + "description": "QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server.", "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "agent_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 1 + }, + "disabled": { + "description": "Desired Agent status: enabled (false) or disabled (true).", + "type": "boolean", + "x-order": 2 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 3 + }, + "username": { + "description": "MongoDB username for getting profiler data.", + "type": "string", + "x-order": 4 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 5 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 6 + }, + "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).\n\nTrue if query examples are disabled.\n bool query_examples_disabled = 8; TODO https://jira.percona.com/browse/PMM-4650", + "type": "integer", + "format": "int32", + "x-order": 7 + }, + "custom_labels": { + "description": "Custom user-assigned labels.\n\nStatus fields below.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 8 + }, + "status": { + "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "type": "string", + "default": "AGENT_STATUS_UNSPECIFIED", + "enum": [ + "AGENT_STATUS_UNSPECIFIED", + "AGENT_STATUS_STARTING", + "AGENT_STATUS_RUNNING", + "AGENT_STATUS_WAITING", + "AGENT_STATUS_STOPPING", + "AGENT_STATUS_DONE", + "AGENT_STATUS_UNKNOWN" + ], + "x-order": 9 + }, + "process_exec_path": { + "description": "Path to exec process.", + "type": "string", + "x-order": 10 + }, + "log_level": { + "description": "- LOG_LEVEL_UNSPECIFIED: Auto", + "type": "string", + "title": "Log level for exporters", + "default": "LOG_LEVEL_UNSPECIFIED", + "enum": [ + "LOG_LEVEL_UNSPECIFIED", + "LOG_LEVEL_FATAL", + "LOG_LEVEL_ERROR", + "LOG_LEVEL_WARN", + "LOG_LEVEL_INFO", + "LOG_LEVEL_DEBUG" + ], + "x-order": 11 + } }, - "x-order": 6 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 7 - }, - "disable_comments_parsing": { - "description": "Disable parsing comments from queries and showing them in QAN.", - "type": "boolean", - "x-order": 8 - }, - "max_query_length": { - "description": "Limit query length in QAN (default: server-defined; -1: no limit).", - "type": "integer", - "format": "int32", - "x-order": 9 - }, - "tls_ca": { - "description": "TLS CA certificate.", - "type": "string", - "x-order": 10 - }, - "tls_cert": { - "description": "TLS Certifcate.", - "type": "string", "x-order": 11 }, - "tls_key": { - "description": "TLS Certificate Key.", - "type": "string", - "x-order": 12 - }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 13 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { "qan_postgresql_pgstatements_agent": { "description": "QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server.", "type": "object", @@ -6923,136 +6309,10 @@ "x-order": 12 } }, - "x-order": 0 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": false - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/inventory/Agents/AddRDSExporter": { - "post": { - "description": "Adds rds_exporter Agent.", - "tags": [ - "AgentsService" - ], - "summary": "Add RDS Exporter", - "operationId": "AddRDSExporter", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pmm_agent_id": { - "description": "The pmm-agent identifier which runs this instance.", - "type": "string", - "x-order": 0 - }, - "node_id": { - "description": "Node identifier.", - "type": "string", - "x-order": 1 - }, - "aws_access_key": { - "description": "AWS Access Key.", - "type": "string", - "x-order": 2 - }, - "aws_secret_key": { - "description": "AWS Secret Key.", - "type": "string", - "x-order": 3 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 4 - }, - "skip_connection_check": { - "description": "Skip connection check.", - "type": "boolean", - "x-order": 5 - }, - "disable_basic_metrics": { - "description": "Disable basic metrics.", - "type": "boolean", - "x-order": 6 - }, - "disable_enhanced_metrics": { - "description": "Disable enhanced metrics.", - "type": "boolean", - "x-order": 7 - }, - "push_metrics": { - "description": "Enables push metrics mode for exporter.", - "type": "boolean", - "x-order": 8 + "x-order": 12 }, - "log_level": { - "description": "- LOG_LEVEL_UNSPECIFIED: Auto", - "type": "string", - "title": "Log level for exporters", - "default": "LOG_LEVEL_UNSPECIFIED", - "enum": [ - "LOG_LEVEL_UNSPECIFIED", - "LOG_LEVEL_FATAL", - "LOG_LEVEL_ERROR", - "LOG_LEVEL_WARN", - "LOG_LEVEL_INFO", - "LOG_LEVEL_DEBUG" - ], - "x-order": 9 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "rds_exporter": { - "description": "RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics.", + "qan_postgresql_pgstatmonitor_agent": { + "description": "QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server.", "type": "object", "properties": { "agent_id": { @@ -7070,23 +6330,49 @@ "type": "boolean", "x-order": 2 }, - "node_id": { - "description": "Node identifier.", + "service_id": { + "description": "Service identifier.", "type": "string", "x-order": 3 }, - "aws_access_key": { - "description": "AWS Access Key.", + "username": { + "description": "PostgreSQL username for getting pg stat monitor data.", "type": "string", "x-order": 4 }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 5 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 6 + }, + "disable_comments_parsing": { + "description": "Disable parsing comments from queries and showing them in QAN.", + "type": "boolean", + "x-order": 7 + }, + "max_query_length": { + "description": "Limit query length in QAN (default: server-defined; -1: no limit).", + "type": "integer", + "format": "int32", + "x-order": 8 + }, + "query_examples_disabled": { + "description": "True if query examples are disabled.", + "type": "boolean", + "x-order": 9 + }, "custom_labels": { "description": "Custom user-assigned labels.\n\nStatus fields below.", "type": "object", "additionalProperties": { "type": "string" }, - "x-order": 5 + "x-order": 10 }, "status": { "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent finished.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", @@ -7101,33 +6387,12 @@ "AGENT_STATUS_DONE", "AGENT_STATUS_UNKNOWN" ], - "x-order": 6 - }, - "listen_port": { - "description": "Listen port for scraping metrics (the same for several configurations).\n\nMetric collections flags below.", - "type": "integer", - "format": "int64", - "x-order": 7 - }, - "basic_metrics_disabled": { - "description": "Basic metrics are disabled.", - "type": "boolean", - "x-order": 8 - }, - "enhanced_metrics_disabled": { - "description": "Enhanced metrics are disabled.", - "type": "boolean", - "x-order": 9 - }, - "push_metrics_enabled": { - "description": "True if exporter uses push metrics mode.", - "type": "boolean", - "x-order": 10 + "x-order": 11 }, "process_exec_path": { "description": "Path to exec process.", "type": "string", - "x-order": 11 + "x-order": 12 }, "log_level": { "description": "- LOG_LEVEL_UNSPECIFIED: Auto", @@ -7142,16 +6407,16 @@ "LOG_LEVEL_INFO", "LOG_LEVEL_DEBUG" ], - "x-order": 12 - }, - "auto_discovery_limit": { - "description": "Limit of databases for auto-discovery.", - "type": "integer", - "format": "int32", "x-order": 13 } }, - "x-order": 0 + "x-order": 13 + }, + "table_count": { + "description": "Actual table count for SQL databases at the moment of adding.", + "type": "integer", + "format": "int32", + "x-order": 14 } } } @@ -13123,11 +12388,11 @@ }, "/v1/inventory/Agents/Remove": { "post": { - "description": "Removes Agent.", + "description": "Removes an Agent from Inventory.", "tags": [ "AgentsService" ], - "summary": "Remove Agent", + "summary": "Remove an Agent from Inventory", "operationId": "RemoveAgent", "parameters": [ { diff --git a/descriptor.bin b/descriptor.bin index bf7d2a9c78..bd6b1b127e 100644 Binary files a/descriptor.bin and b/descriptor.bin differ diff --git a/docs/api/inventory/add-agent.md b/docs/api/inventory/add-agent.md new file mode 100644 index 0000000000..d893e4dfae --- /dev/null +++ b/docs/api/inventory/add-agent.md @@ -0,0 +1,85 @@ +--- +title: Add an Agent +slug: addagent +category: 626de009b977e3003179f7dd +--- + +## Add an Agent + +This section describes how to add an Agent of any type to PMM Inventory. + +In PMM versions prior to 3.0.0, we featured a separate API call for each Agent type. Starting with PMM 3.0.0, we offer a single API endpoint for all Agent types. While previously the Agent type was defined by the endpoint, i.e. `Agents/MySQLdExporter`, now the Agent type must be specified as the top-level property of the request payload. Along with this single API endpoint, we are deprecating individual API endpoints for each Agent type. + +Let's see how to add an Agent of type `mysql` using the old and new API calls. + +Old API call: + +```shell +curl --insecure -X POST \ + -H 'Authorization: Basic YWRtaW46YWRtaW4=' \ + -H 'Accept: application/json' \ + -H 'Content-Type: application/json' \ + --url https://127.0.0.1/v1/inventory/Agents/MySQLdExporter \ + --data ' +{ + "pmm_agent_id": "pmm-server", + "service_id": "/service_id/13519ec9-eedc-4d21-868c-582e146e1d0e", + "username": "mysql-prod-user", + "password": "mysql-prod-pass", + "listen_port": 33060, + "custom_labels": { + "department": "sales", + "environment": "sales-prod", + "replication_set": "db-sales-prod-1-rs1", + "cluster": "db-sales-prod-1" + } +} +' +``` + +New API call: + +```shell +curl --insecure -X POST \ + -H 'Authorization: Basic YWRtaW46YWRtaW4=' \ + -H 'Accept: application/json' \ + -H 'Content-Type: application/json' \ + --url https://127.0.0.1/v1/inventory/Agents/Add \ + --data ' +{ + "mysqld_exporter": { + "pmm_agent_id": "pmm-server", + "service_id": "/service_id/13519ec9-eedc-4d21-868c-582e146e1d0e", + "username": "mysql-prod-user", + "password": "mysql-prod-pass", + "listen_port": 33060, + "custom_labels": { + "department": "sales", + "environment": "sales-prod", + "replication_set": "db-sales-prod-1-rs1", + "cluster": "db-sales-prod-1" + } + } +} +' +``` + +You can choose from the following Agent types: + +- pmm_agent +- node_exporter +- mysqld_exporter +- mongodb_exporter +- postgres_exporter +- proxysql_exporter +- external_exporter +- rds_exporter +- azure_database_exporter +- qan_mysql_perfschema_agent +- qan_mysql_slowlog_agent +- qan_mongodb_profiler_agent +- qan_postgresql_pgstatements_agent +- qan_postgresql_pgstatmonitor_agent + + +To get the authentication token, please visit [this page](ref:authentication). diff --git a/docs/api/inventory/add-node.md b/docs/api/inventory/add-node.md index b7263228d8..3ddff695d7 100644 --- a/docs/api/inventory/add-node.md +++ b/docs/api/inventory/add-node.md @@ -8,7 +8,7 @@ category: 626de009b977e3003179f7dd This section describes how to add a Node of any type to PMM Inventory. -In PMM 2, we featured a separate API call for each Node type. Starting with PMM 3, we offer a single API endpoint for all Node types. While previously the Node type was defined by the endpoint, i.e. `Nodes/AddGeneric`, now the Node type must be specified as the top-level property of the request payload. Along with this single API endpoint, we are deprecating the separate API calls for each Node type. +In PMM 2, we featured a separate API call for each Node type. Starting with PMM 3, we offer a single API endpoint for all Node types. While previously the Node type was defined by the endpoint, i.e. `Nodes/AddGeneric`, now the Node type must be specified as the top-level property of the request payload. Along with this single API endpoint, we are deprecating individual API endpoint for each Node type. Let's see how to add a Node of type `generic` using the old and new API calls. diff --git a/docs/api/inventory/add-service.md b/docs/api/inventory/add-service.md index 4ff9bc487e..cd34ea6500 100644 --- a/docs/api/inventory/add-service.md +++ b/docs/api/inventory/add-service.md @@ -8,7 +8,7 @@ category: 626de009b977e3003179f7dd This section describes how to add a Service of any type to PMM Inventory. -In PMM versions prior to 3.0.0, we featured a separate API call for each Service type. Starting with PMM 3.0.0, we offer a single API endpoint for all Service types. While previously the Service type was defined by the endpoint, i.e. `Services/AddMySQL`, now the Service type must be specified as the top-level property of the request payload. Along with this single API endpoint, we are deprecating the separate API calls for each Service type. +In PMM versions prior to 3.0.0, we featured a separate API call for each Service type. Starting with PMM 3.0.0, we offer a single API endpoint for all Service types. While previously the Service type was defined by the endpoint, i.e. `Services/AddMySQL`, now the Service type must be specified as the top-level property of the request payload. Along with this single API endpoint, we are deprecating individual API endpoints for each Service type. Let's see how to add a Node of type `mysql` using the old and new API calls. diff --git a/managed/services/inventory/agents.go b/managed/services/inventory/agents.go index 2b7b53faeb..12d95e217b 100644 --- a/managed/services/inventory/agents.go +++ b/managed/services/inventory/agents.go @@ -181,10 +181,10 @@ func (as *AgentsService) Logs(ctx context.Context, id string, limit uint32) ([]s // AddPMMAgent inserts pmm-agent Agent with given parameters. // //nolint:unparam -func (as *AgentsService) AddPMMAgent(ctx context.Context, req *inventoryv1.AddPMMAgentRequest) (*inventoryv1.PMMAgent, error) { +func (as *AgentsService) AddPMMAgent(ctx context.Context, p *inventoryv1.AddPMMAgentParams) (*inventoryv1.PMMAgent, error) { var res *inventoryv1.PMMAgent e := as.db.InTransaction(func(tx *reform.TX) error { - row, err := models.CreatePMMAgent(tx.Querier, req.RunsOnNodeId, req.CustomLabels) + row, err := models.CreatePMMAgent(tx.Querier, p.RunsOnNodeId, p.CustomLabels) if err != nil { return err } @@ -200,11 +200,11 @@ func (as *AgentsService) AddPMMAgent(ctx context.Context, req *inventoryv1.AddPM } // AddNodeExporter inserts node_exporter Agent with given parameters. -func (as *AgentsService) AddNodeExporter(ctx context.Context, req *inventoryv1.AddNodeExporterRequest) (*inventoryv1.NodeExporter, error) { +func (as *AgentsService) AddNodeExporter(ctx context.Context, p *inventoryv1.AddNodeExporterParams) (*inventoryv1.NodeExporter, error) { var res *inventoryv1.NodeExporter - e := as.db.InTransaction(func(tx *reform.TX) error { - row, err := models.CreateNodeExporter(tx.Querier, req.PmmAgentId, req.CustomLabels, req.PushMetrics, req.ExposeExporter, - req.DisableCollectors, nil, services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_ERROR)) + e := as.db.InTransactionContext(ctx, nil, func(tx *reform.TX) error { + row, err := models.CreateNodeExporter(tx.Querier, p.PmmAgentId, p.CustomLabels, p.PushMetrics, p.ExposeExporter, + p.DisableCollectors, nil, services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_ERROR)) if err != nil { return err } @@ -220,7 +220,7 @@ func (as *AgentsService) AddNodeExporter(ctx context.Context, req *inventoryv1.A return nil, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, nil } @@ -237,24 +237,24 @@ func (as *AgentsService) ChangeNodeExporter(ctx context.Context, req *inventoryv } // AddMySQLdExporter inserts mysqld_exporter Agent with given parameters and returns it and an actual table count. -func (as *AgentsService) AddMySQLdExporter(ctx context.Context, req *inventoryv1.AddMySQLdExporterRequest) (*inventoryv1.MySQLdExporter, int32, error) { //nolint:unparam +func (as *AgentsService) AddMySQLdExporter(ctx context.Context, p *inventoryv1.AddMySQLdExporterParams) (*inventoryv1.MySQLdExporter, int32, error) { //nolint:unparam var row *models.Agent var res *inventoryv1.MySQLdExporter e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateAgentParams{ - PMMAgentID: req.PmmAgentId, - ServiceID: req.ServiceId, - Username: req.Username, - Password: req.Password, - AgentPassword: req.AgentPassword, - CustomLabels: req.CustomLabels, - TLS: req.Tls, - TLSSkipVerify: req.TlsSkipVerify, - MySQLOptions: models.MySQLOptionsFromRequest(req), - TableCountTablestatsGroupLimit: req.TablestatsGroupTableLimit, - PushMetrics: req.PushMetrics, - DisableCollectors: req.DisableCollectors, - LogLevel: services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_ERROR), + PMMAgentID: p.PmmAgentId, + ServiceID: p.ServiceId, + Username: p.Username, + Password: p.Password, + AgentPassword: p.AgentPassword, + CustomLabels: p.CustomLabels, + TLS: p.Tls, + TLSSkipVerify: p.TlsSkipVerify, + MySQLOptions: models.MySQLOptionsFromRequest(p), + TableCountTablestatsGroupLimit: p.TablestatsGroupTableLimit, + PushMetrics: p.PushMetrics, + DisableCollectors: p.DisableCollectors, + LogLevel: services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_ERROR), } var err error row, err = models.CreateAgent(tx.Querier, models.MySQLdExporterType, params) @@ -262,8 +262,8 @@ func (as *AgentsService) AddMySQLdExporter(ctx context.Context, req *inventoryv1 return err } - if !req.SkipConnectionCheck { - service, err := models.FindServiceByID(tx.Querier, req.ServiceId) + if !p.SkipConnectionCheck { + service, err := models.FindServiceByID(tx.Querier, p.ServiceId) if err != nil { return err } @@ -288,7 +288,7 @@ func (as *AgentsService) AddMySQLdExporter(ctx context.Context, req *inventoryv1 return nil, 0, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, pointer.GetInt32(row.TableCount), nil } @@ -305,30 +305,30 @@ func (as *AgentsService) ChangeMySQLdExporter(ctx context.Context, req *inventor } // AddMongoDBExporter inserts mongodb_exporter Agent with given parameters. -func (as *AgentsService) AddMongoDBExporter(ctx context.Context, req *inventoryv1.AddMongoDBExporterRequest) (*inventoryv1.MongoDBExporter, error) { +func (as *AgentsService) AddMongoDBExporter(ctx context.Context, p *inventoryv1.AddMongoDBExporterParams) (*inventoryv1.MongoDBExporter, error) { var res *inventoryv1.MongoDBExporter e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateAgentParams{ - PMMAgentID: req.PmmAgentId, - ServiceID: req.ServiceId, - Username: req.Username, - Password: req.Password, - AgentPassword: req.AgentPassword, - CustomLabels: req.CustomLabels, - TLS: req.Tls, - TLSSkipVerify: req.TlsSkipVerify, - MongoDBOptions: models.MongoDBOptionsFromRequest(req), - PushMetrics: req.PushMetrics, - DisableCollectors: req.DisableCollectors, - LogLevel: services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), + PMMAgentID: p.PmmAgentId, + ServiceID: p.ServiceId, + Username: p.Username, + Password: p.Password, + AgentPassword: p.AgentPassword, + CustomLabels: p.CustomLabels, + TLS: p.Tls, + TLSSkipVerify: p.TlsSkipVerify, + MongoDBOptions: models.MongoDBOptionsFromRequest(p), + PushMetrics: p.PushMetrics, + DisableCollectors: p.DisableCollectors, + LogLevel: services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), } row, err := models.CreateAgent(tx.Querier, models.MongoDBExporterType, params) if err != nil { return err } - if !req.SkipConnectionCheck { - service, err := models.FindServiceByID(tx.Querier, req.ServiceId) + if !p.SkipConnectionCheck { + service, err := models.FindServiceByID(tx.Querier, p.ServiceId) if err != nil { return err } @@ -353,7 +353,7 @@ func (as *AgentsService) AddMongoDBExporter(ctx context.Context, req *inventoryv return nil, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, nil } @@ -372,29 +372,29 @@ func (as *AgentsService) ChangeMongoDBExporter(ctx context.Context, req *invento // AddQANMySQLPerfSchemaAgent adds MySQL PerfSchema QAN Agent. // //nolint:lll -func (as *AgentsService) AddQANMySQLPerfSchemaAgent(ctx context.Context, req *inventoryv1.AddQANMySQLPerfSchemaAgentRequest) (*inventoryv1.QANMySQLPerfSchemaAgent, error) { +func (as *AgentsService) AddQANMySQLPerfSchemaAgent(ctx context.Context, p *inventoryv1.AddQANMySQLPerfSchemaAgentParams) (*inventoryv1.QANMySQLPerfSchemaAgent, error) { var res *inventoryv1.QANMySQLPerfSchemaAgent e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateAgentParams{ - PMMAgentID: req.PmmAgentId, - ServiceID: req.ServiceId, - Username: req.Username, - Password: req.Password, - CustomLabels: req.CustomLabels, - TLS: req.Tls, - TLSSkipVerify: req.TlsSkipVerify, - MySQLOptions: models.MySQLOptionsFromRequest(req), - MaxQueryLength: req.MaxQueryLength, - QueryExamplesDisabled: req.DisableQueryExamples, - CommentsParsingDisabled: req.DisableCommentsParsing, - LogLevel: services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), + PMMAgentID: p.PmmAgentId, + ServiceID: p.ServiceId, + Username: p.Username, + Password: p.Password, + CustomLabels: p.CustomLabels, + TLS: p.Tls, + TLSSkipVerify: p.TlsSkipVerify, + MySQLOptions: models.MySQLOptionsFromRequest(p), + MaxQueryLength: p.MaxQueryLength, + QueryExamplesDisabled: p.DisableQueryExamples, + CommentsParsingDisabled: p.DisableCommentsParsing, + LogLevel: services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), } row, err := models.CreateAgent(tx.Querier, models.QANMySQLPerfSchemaAgentType, params) if err != nil { return err } - if !req.SkipConnectionCheck { - service, err := models.FindServiceByID(tx.Querier, req.ServiceId) + if !p.SkipConnectionCheck { + service, err := models.FindServiceByID(tx.Querier, p.ServiceId) if err != nil { return err } @@ -415,7 +415,7 @@ func (as *AgentsService) AddQANMySQLPerfSchemaAgent(ctx context.Context, req *in return res, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, e } @@ -432,36 +432,36 @@ func (as *AgentsService) ChangeQANMySQLPerfSchemaAgent(ctx context.Context, req } // AddQANMySQLSlowlogAgent adds MySQL Slowlog QAN Agent. -func (as *AgentsService) AddQANMySQLSlowlogAgent(ctx context.Context, req *inventoryv1.AddQANMySQLSlowlogAgentRequest) (*inventoryv1.QANMySQLSlowlogAgent, error) { +func (as *AgentsService) AddQANMySQLSlowlogAgent(ctx context.Context, p *inventoryv1.AddQANMySQLSlowlogAgentParams) (*inventoryv1.QANMySQLSlowlogAgent, error) { var res *inventoryv1.QANMySQLSlowlogAgent e := as.db.InTransaction(func(tx *reform.TX) error { // tweak according to API docs - maxSlowlogFileSize := req.MaxSlowlogFileSize + maxSlowlogFileSize := p.MaxSlowlogFileSize if maxSlowlogFileSize < 0 { maxSlowlogFileSize = 0 } params := &models.CreateAgentParams{ - PMMAgentID: req.PmmAgentId, - ServiceID: req.ServiceId, - Username: req.Username, - Password: req.Password, - CustomLabels: req.CustomLabels, - TLS: req.Tls, - TLSSkipVerify: req.TlsSkipVerify, - MySQLOptions: models.MySQLOptionsFromRequest(req), - MaxQueryLength: req.MaxQueryLength, - QueryExamplesDisabled: req.DisableQueryExamples, - CommentsParsingDisabled: req.DisableCommentsParsing, + PMMAgentID: p.PmmAgentId, + ServiceID: p.ServiceId, + Username: p.Username, + Password: p.Password, + CustomLabels: p.CustomLabels, + TLS: p.Tls, + TLSSkipVerify: p.TlsSkipVerify, + MySQLOptions: models.MySQLOptionsFromRequest(p), + MaxQueryLength: p.MaxQueryLength, + QueryExamplesDisabled: p.DisableQueryExamples, + CommentsParsingDisabled: p.DisableCommentsParsing, MaxQueryLogSize: maxSlowlogFileSize, - LogLevel: services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), + LogLevel: services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), } row, err := models.CreateAgent(tx.Querier, models.QANMySQLSlowlogAgentType, params) if err != nil { return err } - if !req.SkipConnectionCheck { - service, err := models.FindServiceByID(tx.Querier, req.ServiceId) + if !p.SkipConnectionCheck { + service, err := models.FindServiceByID(tx.Querier, p.ServiceId) if err != nil { return err } @@ -482,7 +482,7 @@ func (as *AgentsService) AddQANMySQLSlowlogAgent(ctx context.Context, req *inven return res, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, e } @@ -499,30 +499,30 @@ func (as *AgentsService) ChangeQANMySQLSlowlogAgent(ctx context.Context, req *in } // AddPostgresExporter inserts postgres_exporter Agent with given parameters. -func (as *AgentsService) AddPostgresExporter(ctx context.Context, req *inventoryv1.AddPostgresExporterRequest) (*inventoryv1.PostgresExporter, error) { +func (as *AgentsService) AddPostgresExporter(ctx context.Context, p *inventoryv1.AddPostgresExporterParams) (*inventoryv1.PostgresExporter, error) { var res *inventoryv1.PostgresExporter e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateAgentParams{ - PMMAgentID: req.PmmAgentId, - ServiceID: req.ServiceId, - Username: req.Username, - Password: req.Password, - AgentPassword: req.AgentPassword, - CustomLabels: req.CustomLabels, - TLS: req.Tls, - TLSSkipVerify: req.TlsSkipVerify, - PushMetrics: req.PushMetrics, - DisableCollectors: req.DisableCollectors, - PostgreSQLOptions: models.PostgreSQLOptionsFromRequest(req), - LogLevel: services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_ERROR), + PMMAgentID: p.PmmAgentId, + ServiceID: p.ServiceId, + Username: p.Username, + Password: p.Password, + AgentPassword: p.AgentPassword, + CustomLabels: p.CustomLabels, + TLS: p.Tls, + TLSSkipVerify: p.TlsSkipVerify, + PushMetrics: p.PushMetrics, + DisableCollectors: p.DisableCollectors, + PostgreSQLOptions: models.PostgreSQLOptionsFromRequest(p), + LogLevel: services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_ERROR), } row, err := models.CreateAgent(tx.Querier, models.PostgresExporterType, params) if err != nil { return err } - if !req.SkipConnectionCheck { - service, err := models.FindServiceByID(tx.Querier, req.ServiceId) + if !p.SkipConnectionCheck { + service, err := models.FindServiceByID(tx.Querier, p.ServiceId) if err != nil { return err } @@ -547,7 +547,7 @@ func (as *AgentsService) AddPostgresExporter(ctx context.Context, req *inventory return nil, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, nil } @@ -566,29 +566,29 @@ func (as *AgentsService) ChangePostgresExporter(ctx context.Context, req *invent // AddQANMongoDBProfilerAgent adds MongoDB Profiler QAN Agent. // //nolint:lll -func (as *AgentsService) AddQANMongoDBProfilerAgent(ctx context.Context, req *inventoryv1.AddQANMongoDBProfilerAgentRequest) (*inventoryv1.QANMongoDBProfilerAgent, error) { +func (as *AgentsService) AddQANMongoDBProfilerAgent(ctx context.Context, p *inventoryv1.AddQANMongoDBProfilerAgentParams) (*inventoryv1.QANMongoDBProfilerAgent, error) { var res *inventoryv1.QANMongoDBProfilerAgent e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateAgentParams{ - PMMAgentID: req.PmmAgentId, - ServiceID: req.ServiceId, - Username: req.Username, - Password: req.Password, - CustomLabels: req.CustomLabels, - TLS: req.Tls, - TLSSkipVerify: req.TlsSkipVerify, - MongoDBOptions: models.MongoDBOptionsFromRequest(req), - MaxQueryLength: req.MaxQueryLength, - LogLevel: services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), + PMMAgentID: p.PmmAgentId, + ServiceID: p.ServiceId, + Username: p.Username, + Password: p.Password, + CustomLabels: p.CustomLabels, + TLS: p.Tls, + TLSSkipVerify: p.TlsSkipVerify, + MongoDBOptions: models.MongoDBOptionsFromRequest(p), + MaxQueryLength: p.MaxQueryLength, + LogLevel: services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), // TODO QueryExamplesDisabled https://jira.percona.com/browse/PMM-4650 } row, err := models.CreateAgent(tx.Querier, models.QANMongoDBProfilerAgentType, params) if err != nil { return err } - if !req.SkipConnectionCheck { - service, err := models.FindServiceByID(tx.Querier, req.ServiceId) + if !p.SkipConnectionCheck { + service, err := models.FindServiceByID(tx.Querier, p.ServiceId) if err != nil { return err } @@ -609,7 +609,7 @@ func (as *AgentsService) AddQANMongoDBProfilerAgent(ctx context.Context, req *in return res, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, e } @@ -628,29 +628,29 @@ func (as *AgentsService) ChangeQANMongoDBProfilerAgent(ctx context.Context, req } // AddProxySQLExporter inserts proxysql_exporter Agent with given parameters. -func (as *AgentsService) AddProxySQLExporter(ctx context.Context, req *inventoryv1.AddProxySQLExporterRequest) (*inventoryv1.ProxySQLExporter, error) { +func (as *AgentsService) AddProxySQLExporter(ctx context.Context, p *inventoryv1.AddProxySQLExporterParams) (*inventoryv1.ProxySQLExporter, error) { var res *inventoryv1.ProxySQLExporter e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateAgentParams{ - PMMAgentID: req.PmmAgentId, - ServiceID: req.ServiceId, - Username: req.Username, - Password: req.Password, - AgentPassword: req.AgentPassword, - CustomLabels: req.CustomLabels, - TLS: req.Tls, - TLSSkipVerify: req.TlsSkipVerify, - PushMetrics: req.PushMetrics, - DisableCollectors: req.DisableCollectors, - LogLevel: services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), + PMMAgentID: p.PmmAgentId, + ServiceID: p.ServiceId, + Username: p.Username, + Password: p.Password, + AgentPassword: p.AgentPassword, + CustomLabels: p.CustomLabels, + TLS: p.Tls, + TLSSkipVerify: p.TlsSkipVerify, + PushMetrics: p.PushMetrics, + DisableCollectors: p.DisableCollectors, + LogLevel: services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), } row, err := models.CreateAgent(tx.Querier, models.ProxySQLExporterType, params) if err != nil { return err } - if !req.SkipConnectionCheck { - service, err := models.FindServiceByID(tx.Querier, req.ServiceId) + if !p.SkipConnectionCheck { + service, err := models.FindServiceByID(tx.Querier, p.ServiceId) if err != nil { return err } @@ -675,7 +675,7 @@ func (as *AgentsService) AddProxySQLExporter(ctx context.Context, req *inventory return nil, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, nil } @@ -694,7 +694,7 @@ func (as *AgentsService) ChangeProxySQLExporter(ctx context.Context, req *invent // AddQANPostgreSQLPgStatementsAgent adds PostgreSQL Pg stat statements QAN Agent. // //nolint:lll -func (as *AgentsService) AddQANPostgreSQLPgStatementsAgent(ctx context.Context, req *inventoryv1.AddQANPostgreSQLPgStatementsAgentRequest) (*inventoryv1.QANPostgreSQLPgStatementsAgent, error) { +func (as *AgentsService) AddQANPostgreSQLPgStatementsAgent(ctx context.Context, req *inventoryv1.AddQANPostgreSQLPgStatementsAgentParams) (*inventoryv1.QANPostgreSQLPgStatementsAgent, error) { var res *inventoryv1.QANPostgreSQLPgStatementsAgent e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateAgentParams{ @@ -755,29 +755,29 @@ func (as *AgentsService) ChangeQANPostgreSQLPgStatementsAgent(ctx context.Contex // AddQANPostgreSQLPgStatMonitorAgent adds PostgreSQL Pg stat monitor QAN Agent. // //nolint:lll -func (as *AgentsService) AddQANPostgreSQLPgStatMonitorAgent(ctx context.Context, req *inventoryv1.AddQANPostgreSQLPgStatMonitorAgentRequest) (*inventoryv1.QANPostgreSQLPgStatMonitorAgent, error) { +func (as *AgentsService) AddQANPostgreSQLPgStatMonitorAgent(ctx context.Context, p *inventoryv1.AddQANPostgreSQLPgStatMonitorAgentParams) (*inventoryv1.QANPostgreSQLPgStatMonitorAgent, error) { var res *inventoryv1.QANPostgreSQLPgStatMonitorAgent e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateAgentParams{ - PMMAgentID: req.PmmAgentId, - ServiceID: req.ServiceId, - Username: req.Username, - Password: req.Password, - MaxQueryLength: req.MaxQueryLength, - QueryExamplesDisabled: req.DisableQueryExamples, - CommentsParsingDisabled: req.DisableCommentsParsing, - CustomLabels: req.CustomLabels, - TLS: req.Tls, - TLSSkipVerify: req.TlsSkipVerify, - PostgreSQLOptions: models.PostgreSQLOptionsFromRequest(req), - LogLevel: services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), + PMMAgentID: p.PmmAgentId, + ServiceID: p.ServiceId, + Username: p.Username, + Password: p.Password, + MaxQueryLength: p.MaxQueryLength, + QueryExamplesDisabled: p.DisableQueryExamples, + CommentsParsingDisabled: p.DisableCommentsParsing, + CustomLabels: p.CustomLabels, + TLS: p.Tls, + TLSSkipVerify: p.TlsSkipVerify, + PostgreSQLOptions: models.PostgreSQLOptionsFromRequest(p), + LogLevel: services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), } row, err := models.CreateAgent(tx.Querier, models.QANPostgreSQLPgStatMonitorAgentType, params) if err != nil { return err } - if !req.SkipConnectionCheck { - service, err := models.FindServiceByID(tx.Querier, req.ServiceId) + if !p.SkipConnectionCheck { + service, err := models.FindServiceByID(tx.Querier, p.ServiceId) if err != nil { return err } @@ -798,7 +798,7 @@ func (as *AgentsService) AddQANPostgreSQLPgStatMonitorAgent(ctx context.Context, return res, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, e } @@ -815,19 +815,19 @@ func (as *AgentsService) ChangeQANPostgreSQLPgStatMonitorAgent(ctx context.Conte } // AddRDSExporter inserts rds_exporter Agent with given parameters. -func (as *AgentsService) AddRDSExporter(ctx context.Context, req *inventoryv1.AddRDSExporterRequest) (*inventoryv1.RDSExporter, error) { +func (as *AgentsService) AddRDSExporter(ctx context.Context, p *inventoryv1.AddRDSExporterParams) (*inventoryv1.RDSExporter, error) { var res *inventoryv1.RDSExporter e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateAgentParams{ - PMMAgentID: req.PmmAgentId, - NodeID: req.NodeId, - AWSAccessKey: req.AwsAccessKey, - AWSSecretKey: req.AwsSecretKey, - CustomLabels: req.CustomLabels, - RDSBasicMetricsDisabled: req.DisableBasicMetrics, - RDSEnhancedMetricsDisabled: req.DisableEnhancedMetrics, - PushMetrics: req.PushMetrics, - LogLevel: services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), + PMMAgentID: p.PmmAgentId, + NodeID: p.NodeId, + AWSAccessKey: p.AwsAccessKey, + AWSSecretKey: p.AwsSecretKey, + CustomLabels: p.CustomLabels, + RDSBasicMetricsDisabled: p.DisableBasicMetrics, + RDSEnhancedMetricsDisabled: p.DisableEnhancedMetrics, + PushMetrics: p.PushMetrics, + LogLevel: services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), } row, err := models.CreateAgent(tx.Querier, models.RDSExporterType, params) if err != nil { @@ -835,7 +835,7 @@ func (as *AgentsService) AddRDSExporter(ctx context.Context, req *inventoryv1.Ad } // TODO check connection to AWS: https://jira.percona.com/browse/PMM-5024 - // if !req.SkipConnectionCheck { + // if !p.SkipConnectionCheck { // ... // } @@ -850,7 +850,7 @@ func (as *AgentsService) AddRDSExporter(ctx context.Context, req *inventoryv1.Ad return nil, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, nil } @@ -867,22 +867,22 @@ func (as *AgentsService) ChangeRDSExporter(ctx context.Context, req *inventoryv1 } // AddExternalExporter inserts external-exporter Agent with given parameters. -func (as *AgentsService) AddExternalExporter(ctx context.Context, req *inventoryv1.AddExternalExporterRequest) (*inventoryv1.ExternalExporter, error) { +func (as *AgentsService) AddExternalExporter(ctx context.Context, p *inventoryv1.AddExternalExporterParams) (*inventoryv1.ExternalExporter, error) { var ( res *inventoryv1.ExternalExporter PMMAgentID *string ) e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateExternalExporterParams{ - RunsOnNodeID: req.RunsOnNodeId, - ServiceID: req.ServiceId, - Username: req.Username, - Password: req.Password, - Scheme: req.Scheme, - MetricsPath: req.MetricsPath, - ListenPort: req.ListenPort, - CustomLabels: req.CustomLabels, - PushMetrics: req.PushMetrics, + RunsOnNodeID: p.RunsOnNodeId, + ServiceID: p.ServiceId, + Username: p.Username, + Password: p.Password, + Scheme: p.Scheme, + MetricsPath: p.MetricsPath, + ListenPort: p.ListenPort, + CustomLabels: p.CustomLabels, + PushMetrics: p.PushMetrics, } row, err := models.CreateExternalExporter(tx.Querier, params) if err != nil { @@ -926,17 +926,17 @@ func (as *AgentsService) ChangeExternalExporter(req *inventoryv1.ChangeExternalE } // AddAzureDatabaseExporter inserts azure_exporter Agent with given parameters. -func (as *AgentsService) AddAzureDatabaseExporter(ctx context.Context, req *inventoryv1.AddAzureDatabaseExporterRequest) (*inventoryv1.AzureDatabaseExporter, error) { +func (as *AgentsService) AddAzureDatabaseExporter(ctx context.Context, p *inventoryv1.AddAzureDatabaseExporterParams) (*inventoryv1.AzureDatabaseExporter, error) { var res *inventoryv1.AzureDatabaseExporter e := as.db.InTransaction(func(tx *reform.TX) error { params := &models.CreateAgentParams{ - PMMAgentID: req.PmmAgentId, - NodeID: req.NodeId, - AzureOptions: models.AzureOptionsFromRequest(req), - CustomLabels: req.CustomLabels, - PushMetrics: req.PushMetrics, - LogLevel: services.SpecifyLogLevel(req.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), + PMMAgentID: p.PmmAgentId, + NodeID: p.NodeId, + AzureOptions: models.AzureOptionsFromRequest(p), + CustomLabels: p.CustomLabels, + PushMetrics: p.PushMetrics, + LogLevel: services.SpecifyLogLevel(p.LogLevel, inventoryv1.LogLevel_LOG_LEVEL_FATAL), } row, err := models.CreateAgent(tx.Querier, models.AzureDatabaseExporterType, params) if err != nil { @@ -954,7 +954,7 @@ func (as *AgentsService) AddAzureDatabaseExporter(ctx context.Context, req *inve return nil, e } - as.state.RequestStateUpdate(ctx, req.PmmAgentId) + as.state.RequestStateUpdate(ctx, p.PmmAgentId) return res, nil } diff --git a/managed/services/inventory/agents_test.go b/managed/services/inventory/agents_test.go index 76d31a5f11..c8b73462b7 100644 --- a/managed/services/inventory/agents_test.go +++ b/managed/services/inventory/agents_test.go @@ -56,7 +56,7 @@ func TestAgents(t *testing.T) { mock.AnythingOfType(reflect.TypeOf(&models.Agent{}).Name())).Return(nil) as.vmdb.(*mockPrometheusService).On("RequestConfigurationUpdate").Return() - pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentRequest{ + pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentParams{ RunsOnNodeId: models.PMMServerNodeID, }) require.NoError(t, err) @@ -67,7 +67,7 @@ func TestAgents(t *testing.T) { } assert.Equal(t, expectedPMMAgent, pmmAgent) - actualNodeExporter, err := as.AddNodeExporter(ctx, &inventoryv1.AddNodeExporterRequest{ + actualNodeExporter, err := as.AddNodeExporter(ctx, &inventoryv1.AddNodeExporterParams{ PmmAgentId: pmmAgent.AgentId, }) require.NoError(t, err) @@ -106,7 +106,7 @@ func TestAgents(t *testing.T) { }) require.NoError(t, err) - actualAgent, _, err = as.AddMySQLdExporter(ctx, &inventoryv1.AddMySQLdExporterRequest{ + actualAgent, _, err = as.AddMySQLdExporter(ctx, &inventoryv1.AddMySQLdExporterParams{ PmmAgentId: pmmAgent.AgentId, ServiceId: s.ServiceId, Username: "username", @@ -133,7 +133,7 @@ func TestAgents(t *testing.T) { }) require.NoError(t, err) - actualAgent, err = as.AddMongoDBExporter(ctx, &inventoryv1.AddMongoDBExporterRequest{ + actualAgent, err = as.AddMongoDBExporter(ctx, &inventoryv1.AddMongoDBExporterParams{ PmmAgentId: pmmAgent.AgentId, ServiceId: ms.ServiceId, Username: "username", @@ -154,7 +154,7 @@ func TestAgents(t *testing.T) { require.NoError(t, err) assert.Equal(t, expectedMongoDBExporter, actualAgent) - actualAgent, err = as.AddQANMySQLSlowlogAgent(ctx, &inventoryv1.AddQANMySQLSlowlogAgentRequest{ + actualAgent, err = as.AddQANMySQLSlowlogAgent(ctx, &inventoryv1.AddQANMySQLSlowlogAgentParams{ PmmAgentId: pmmAgent.AgentId, ServiceId: s.ServiceId, Username: "username", @@ -181,7 +181,7 @@ func TestAgents(t *testing.T) { }) require.NoError(t, err) - actualAgent, err = as.AddPostgresExporter(ctx, &inventoryv1.AddPostgresExporterRequest{ + actualAgent, err = as.AddPostgresExporter(ctx, &inventoryv1.AddPostgresExporterParams{ PmmAgentId: pmmAgent.AgentId, ServiceId: ps.ServiceId, Username: "username", @@ -200,7 +200,7 @@ func TestAgents(t *testing.T) { require.NoError(t, err) assert.Equal(t, expectedPostgresExporter, actualAgent) - actualAgent, err = as.AddExternalExporter(ctx, &inventoryv1.AddExternalExporterRequest{ + actualAgent, err = as.AddExternalExporter(ctx, &inventoryv1.AddExternalExporterParams{ RunsOnNodeId: models.PMMServerNodeID, ServiceId: ps.ServiceId, Username: "username", @@ -302,7 +302,7 @@ func TestAgents(t *testing.T) { defer teardown(t) as.r.(*mockAgentsRegistry).On("IsConnected", "/agent_id/00000000-0000-4000-8000-000000000005").Return(false) - actualAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentRequest{ + actualAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentParams{ RunsOnNodeId: models.PMMServerNodeID, }) require.NoError(t, err) @@ -314,7 +314,7 @@ func TestAgents(t *testing.T) { assert.Equal(t, expectedPMMAgent, actualAgent) as.r.(*mockAgentsRegistry).On("IsConnected", "/agent_id/00000000-0000-4000-8000-000000000006").Return(true) - actualAgent, err = as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentRequest{ + actualAgent, err = as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentParams{ RunsOnNodeId: models.PMMServerNodeID, }) require.NoError(t, err) @@ -330,7 +330,7 @@ func TestAgents(t *testing.T) { _, as, _, teardown, ctx, _ := setup(t) defer teardown(t) - _, err := as.AddNodeExporter(ctx, &inventoryv1.AddNodeExporterRequest{ + _, err := as.AddNodeExporter(ctx, &inventoryv1.AddNodeExporterParams{ PmmAgentId: "no-such-id", }) tests.AssertGRPCError(t, status.New(codes.NotFound, `Agent with ID "no-such-id" not found.`), err) @@ -362,7 +362,7 @@ func TestAgents(t *testing.T) { as.state.(*mockAgentsStateUpdater).On("RequestStateUpdate", ctx, "pmm-server") - agent, err := as.AddRDSExporter(ctx, &inventoryv1.AddRDSExporterRequest{ + agent, err := as.AddRDSExporter(ctx, &inventoryv1.AddRDSExporterParams{ PmmAgentId: "pmm-server", NodeId: node.NodeId, AwsAccessKey: "EXAMPLE_ACCESS_KEY", @@ -395,7 +395,7 @@ func TestAgents(t *testing.T) { require.NoError(t, err) require.NotNil(t, service) - agent, err := as.AddExternalExporter(ctx, &inventoryv1.AddExternalExporterRequest{ + agent, err := as.AddExternalExporter(ctx, &inventoryv1.AddExternalExporterParams{ RunsOnNodeId: models.PMMServerNodeID, ServiceId: service.ServiceId, Username: "username", @@ -423,12 +423,12 @@ func TestAgents(t *testing.T) { defer teardown(t) as.r.(*mockAgentsRegistry).On("IsConnected", "/agent_id/00000000-0000-4000-8000-000000000005").Return(true) - pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentRequest{ + pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentParams{ RunsOnNodeId: models.PMMServerNodeID, }) require.NoError(t, err) - _, _, err = as.AddMySQLdExporter(ctx, &inventoryv1.AddMySQLdExporterRequest{ + _, _, err = as.AddMySQLdExporter(ctx, &inventoryv1.AddMySQLdExporterParams{ PmmAgentId: pmmAgent.AgentId, ServiceId: "no-such-id", }) @@ -462,7 +462,7 @@ func TestAgents(t *testing.T) { mock.AnythingOfType(reflect.TypeOf(&models.Service{}).Name()), mock.AnythingOfType(reflect.TypeOf(&models.Agent{}).Name())).Return(nil) - pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentRequest{ + pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentParams{ RunsOnNodeId: models.PMMServerNodeID, }) require.NoError(t, err) @@ -479,7 +479,7 @@ func TestAgents(t *testing.T) { Port: pointer.ToUint16(27017), }) require.NoError(t, err) - actualAgent, err := as.AddMongoDBExporter(ctx, &inventoryv1.AddMongoDBExporterRequest{ + actualAgent, err := as.AddMongoDBExporter(ctx, &inventoryv1.AddMongoDBExporterParams{ PmmAgentId: pmmAgent.AgentId, ServiceId: ms.ServiceId, Username: "username", @@ -508,7 +508,7 @@ func TestAgents(t *testing.T) { as.r.(*mockAgentsRegistry).On("IsConnected", "/agent_id/00000000-0000-4000-8000-000000000005").Return(true) as.state.(*mockAgentsStateUpdater).On("RequestStateUpdate", ctx, "/agent_id/00000000-0000-4000-8000-000000000005") - pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentRequest{ + pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentParams{ RunsOnNodeId: models.PMMServerNodeID, }) require.NoError(t, err) @@ -519,7 +519,7 @@ func TestAgents(t *testing.T) { } assert.Equal(t, expectedPMMAgent, pmmAgent) - actualNodeExporter, err := as.AddNodeExporter(ctx, &inventoryv1.AddNodeExporterRequest{ + actualNodeExporter, err := as.AddNodeExporter(ctx, &inventoryv1.AddNodeExporterParams{ PmmAgentId: pmmAgent.AgentId, PushMetrics: true, }) @@ -552,7 +552,7 @@ func TestAgents(t *testing.T) { mock.AnythingOfType(reflect.TypeOf(&models.Service{}).Name()), mock.AnythingOfType(reflect.TypeOf(&models.Agent{}).Name())).Return(nil) - pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentRequest{ + pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentParams{ RunsOnNodeId: models.PMMServerNodeID, }) require.NoError(t, err) @@ -570,7 +570,7 @@ func TestAgents(t *testing.T) { }) require.NoError(t, err) - actualAgent, err := as.AddPostgresExporter(ctx, &inventoryv1.AddPostgresExporterRequest{ + actualAgent, err := as.AddPostgresExporter(ctx, &inventoryv1.AddPostgresExporterParams{ PmmAgentId: pmmAgent.AgentId, ServiceId: ps.ServiceId, Username: "username", @@ -607,7 +607,7 @@ func TestAgents(t *testing.T) { mock.AnythingOfType(reflect.TypeOf(&models.Service{}).Name()), mock.AnythingOfType(reflect.TypeOf(&models.Agent{}).Name())).Return(nil) - pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentRequest{ + pmmAgent, err := as.AddPMMAgent(ctx, &inventoryv1.AddPMMAgentParams{ RunsOnNodeId: models.PMMServerNodeID, }) require.NoError(t, err) @@ -627,7 +627,7 @@ func TestAgents(t *testing.T) { }) require.NoError(t, err) - actualAgent, _, err := as.AddMySQLdExporter(ctx, &inventoryv1.AddMySQLdExporterRequest{ + actualAgent, _, err := as.AddMySQLdExporter(ctx, &inventoryv1.AddMySQLdExporterParams{ PmmAgentId: pmmAgent.AgentId, ServiceId: s.ServiceId, Username: "username", @@ -670,7 +670,7 @@ func TestAgents(t *testing.T) { as.state.(*mockAgentsStateUpdater).On("RequestStateUpdate", ctx, "pmm-server") - agent, err := as.AddRDSExporter(ctx, &inventoryv1.AddRDSExporterRequest{ + agent, err := as.AddRDSExporter(ctx, &inventoryv1.AddRDSExporterParams{ PmmAgentId: "pmm-server", NodeId: node.NodeId, AwsAccessKey: "EXAMPLE_ACCESS_KEY", @@ -703,7 +703,7 @@ func TestAgents(t *testing.T) { require.NoError(t, err) require.NotNil(t, service) - agent, err := as.AddExternalExporter(ctx, &inventoryv1.AddExternalExporterRequest{ + agent, err := as.AddExternalExporter(ctx, &inventoryv1.AddExternalExporterParams{ RunsOnNodeId: models.PMMServerNodeID, ServiceId: service.ServiceId, Username: "username", diff --git a/managed/services/inventory/grpc/agents_server.go b/managed/services/inventory/grpc/agents_server.go index 07d42eda96..8bfb2d08eb 100644 --- a/managed/services/inventory/grpc/agents_server.go +++ b/managed/services/inventory/grpc/agents_server.go @@ -174,27 +174,67 @@ func (s *agentsServer) GetAgentLogs(ctx context.Context, req *inventoryv1.GetAge } // AddPMMAgent adds pmm-agent Agent. -func (s *agentsServer) AddPMMAgent(ctx context.Context, req *inventoryv1.AddPMMAgentRequest) (*inventoryv1.AddPMMAgentResponse, error) { - agent, err := s.s.AddPMMAgent(ctx, req) +func (s *agentsServer) addPMMAgent(ctx context.Context, params *inventoryv1.AddPMMAgentParams) (*inventoryv1.AddAgentResponse, error) { + agent, err := s.s.AddPMMAgent(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddPMMAgentResponse{ - PmmAgent: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_PmmAgent{ + PmmAgent: agent, + }, } return res, nil } -// AddNodeExporter adds node_exporter Agent. -func (s *agentsServer) AddNodeExporter(ctx context.Context, req *inventoryv1.AddNodeExporterRequest) (*inventoryv1.AddNodeExporterResponse, error) { - agent, err := s.s.AddNodeExporter(ctx, req) +// AddAgent adds an Agent. +func (s *agentsServer) AddAgent(ctx context.Context, req *inventoryv1.AddAgentRequest) (*inventoryv1.AddAgentResponse, error) { + switch req.Exporter.(type) { + case *inventoryv1.AddAgentRequest_PmmAgent: + return s.addPMMAgent(ctx, req.GetPmmAgent()) + case *inventoryv1.AddAgentRequest_NodeExporter: + return s.addNodeExporter(ctx, req.GetNodeExporter()) + case *inventoryv1.AddAgentRequest_MysqldExporter: + return s.addMySQLdExporter(ctx, req.GetMysqldExporter()) + case *inventoryv1.AddAgentRequest_MongodbExporter: + return s.addMongoDBExporter(ctx, req.GetMongodbExporter()) + case *inventoryv1.AddAgentRequest_PostgresExporter: + return s.addPostgresExporter(ctx, req.GetPostgresExporter()) + case *inventoryv1.AddAgentRequest_ProxysqlExporter: + return s.addProxySQLExporter(ctx, req.GetProxysqlExporter()) + case *inventoryv1.AddAgentRequest_RdsExporter: + return s.addRDSExporter(ctx, req.GetRdsExporter()) + case *inventoryv1.AddAgentRequest_ExternalExporter: + return s.addExternalExporter(ctx, req.GetExternalExporter()) + case *inventoryv1.AddAgentRequest_AzureDatabaseExporter: + return s.addAzureDatabaseExporter(ctx, req.GetAzureDatabaseExporter()) + case *inventoryv1.AddAgentRequest_QanMysqlPerfschemaAgent: + return s.addQANMySQLPerfSchemaAgent(ctx, req.GetQanMysqlPerfschemaAgent()) + case *inventoryv1.AddAgentRequest_QanMysqlSlowlogAgent: + return s.addQANMySQLSlowlogAgent(ctx, req.GetQanMysqlSlowlogAgent()) + case *inventoryv1.AddAgentRequest_QanMongodbProfilerAgent: + return s.addQANMongoDBProfilerAgent(ctx, req.GetQanMongodbProfilerAgent()) + case *inventoryv1.AddAgentRequest_QanPostgresqlPgstatementsAgent: + return s.addQANPostgreSQLPgStatementsAgent(ctx, req.GetQanPostgresqlPgstatementsAgent()) + case *inventoryv1.AddAgentRequest_QanPostgresqlPgstatmonitorAgent: + return s.addQANPostgreSQLPgStatMonitorAgent(ctx, req.GetQanPostgresqlPgstatmonitorAgent()) + default: + return nil, fmt.Errorf("invalid request %v", req.Exporter) + } +} + +// addNodeExporter adds node_exporter Agent. +func (s *agentsServer) addNodeExporter(ctx context.Context, params *inventoryv1.AddNodeExporterParams) (*inventoryv1.AddAgentResponse, error) { + agent, err := s.s.AddNodeExporter(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddNodeExporterResponse{ - NodeExporter: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_NodeExporter{ + NodeExporter: agent, + }, } return res, nil } @@ -212,16 +252,18 @@ func (s *agentsServer) ChangeNodeExporter(ctx context.Context, req *inventoryv1. return res, nil } -// AddMySQLdExporter adds mysqld_exporter Agent. -func (s *agentsServer) AddMySQLdExporter(ctx context.Context, req *inventoryv1.AddMySQLdExporterRequest) (*inventoryv1.AddMySQLdExporterResponse, error) { - agent, tableCount, err := s.s.AddMySQLdExporter(ctx, req) +// addMySQLdExporter adds mysqld_exporter Agent. +func (s *agentsServer) addMySQLdExporter(ctx context.Context, params *inventoryv1.AddMySQLdExporterParams) (*inventoryv1.AddAgentResponse, error) { + agent, tableCount, err := s.s.AddMySQLdExporter(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddMySQLdExporterResponse{ - MysqldExporter: agent, - TableCount: tableCount, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_MysqldExporter{ + MysqldExporter: agent, + }, + TableCount: tableCount, } return res, nil } @@ -239,15 +281,17 @@ func (s *agentsServer) ChangeMySQLdExporter(ctx context.Context, req *inventoryv return res, nil } -// AddMongoDBExporter adds mongodb_exporter Agent. -func (s *agentsServer) AddMongoDBExporter(ctx context.Context, req *inventoryv1.AddMongoDBExporterRequest) (*inventoryv1.AddMongoDBExporterResponse, error) { - agent, err := s.s.AddMongoDBExporter(ctx, req) +// addMongoDBExporter adds mongodb_exporter Agent. +func (s *agentsServer) addMongoDBExporter(ctx context.Context, params *inventoryv1.AddMongoDBExporterParams) (*inventoryv1.AddAgentResponse, error) { + agent, err := s.s.AddMongoDBExporter(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddMongoDBExporterResponse{ - MongodbExporter: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_MongodbExporter{ + MongodbExporter: agent, + }, } return res, nil } @@ -268,14 +312,16 @@ func (s *agentsServer) ChangeMongoDBExporter(ctx context.Context, req *inventory // AddQANMySQLPerfSchemaAgent adds MySQL PerfSchema QAN Agent. // //nolint:lll -func (s *agentsServer) AddQANMySQLPerfSchemaAgent(ctx context.Context, req *inventoryv1.AddQANMySQLPerfSchemaAgentRequest) (*inventoryv1.AddQANMySQLPerfSchemaAgentResponse, error) { +func (s *agentsServer) addQANMySQLPerfSchemaAgent(ctx context.Context, req *inventoryv1.AddQANMySQLPerfSchemaAgentParams) (*inventoryv1.AddAgentResponse, error) { agent, err := s.s.AddQANMySQLPerfSchemaAgent(ctx, req) if err != nil { return nil, err } - res := &inventoryv1.AddQANMySQLPerfSchemaAgentResponse{ - QanMysqlPerfschemaAgent: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_QanMysqlPerfschemaAgent{ + QanMysqlPerfschemaAgent: agent, + }, } return res, nil } @@ -298,14 +344,16 @@ func (s *agentsServer) ChangeQANMySQLPerfSchemaAgent(ctx context.Context, req *i // AddQANMySQLSlowlogAgent adds MySQL Slowlog QAN Agent. // //nolint:lll -func (s *agentsServer) AddQANMySQLSlowlogAgent(ctx context.Context, req *inventoryv1.AddQANMySQLSlowlogAgentRequest) (*inventoryv1.AddQANMySQLSlowlogAgentResponse, error) { - agent, err := s.s.AddQANMySQLSlowlogAgent(ctx, req) +func (s *agentsServer) addQANMySQLSlowlogAgent(ctx context.Context, params *inventoryv1.AddQANMySQLSlowlogAgentParams) (*inventoryv1.AddAgentResponse, error) { + agent, err := s.s.AddQANMySQLSlowlogAgent(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddQANMySQLSlowlogAgentResponse{ - QanMysqlSlowlogAgent: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_QanMysqlSlowlogAgent{ + QanMysqlSlowlogAgent: agent, + }, } return res, nil } @@ -325,15 +373,17 @@ func (s *agentsServer) ChangeQANMySQLSlowlogAgent(ctx context.Context, req *inve return res, nil } -// AddPostgresExporter adds postgres_exporter Agent. -func (s *agentsServer) AddPostgresExporter(ctx context.Context, req *inventoryv1.AddPostgresExporterRequest) (*inventoryv1.AddPostgresExporterResponse, error) { - agent, err := s.s.AddPostgresExporter(ctx, req) +// addPostgresExporter adds postgres_exporter Agent. +func (s *agentsServer) addPostgresExporter(ctx context.Context, params *inventoryv1.AddPostgresExporterParams) (*inventoryv1.AddAgentResponse, error) { + agent, err := s.s.AddPostgresExporter(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddPostgresExporterResponse{ - PostgresExporter: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_PostgresExporter{ + PostgresExporter: agent, + }, } return res, nil } @@ -354,14 +404,16 @@ func (s *agentsServer) ChangePostgresExporter(ctx context.Context, req *inventor // AddQANMongoDBProfilerAgent adds MongoDB Profiler QAN Agent. // //nolint:lll -func (s *agentsServer) AddQANMongoDBProfilerAgent(ctx context.Context, req *inventoryv1.AddQANMongoDBProfilerAgentRequest) (*inventoryv1.AddQANMongoDBProfilerAgentResponse, error) { - agent, err := s.s.AddQANMongoDBProfilerAgent(ctx, req) +func (s *agentsServer) addQANMongoDBProfilerAgent(ctx context.Context, params *inventoryv1.AddQANMongoDBProfilerAgentParams) (*inventoryv1.AddAgentResponse, error) { + agent, err := s.s.AddQANMongoDBProfilerAgent(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddQANMongoDBProfilerAgentResponse{ - QanMongodbProfilerAgent: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_QanMongodbProfilerAgent{ + QanMongodbProfilerAgent: agent, + }, } return res, nil } @@ -381,15 +433,17 @@ func (s *agentsServer) ChangeQANMongoDBProfilerAgent(ctx context.Context, req *i return res, nil } -// AddProxySQLExporter adds proxysql_exporter Agent. -func (s *agentsServer) AddProxySQLExporter(ctx context.Context, req *inventoryv1.AddProxySQLExporterRequest) (*inventoryv1.AddProxySQLExporterResponse, error) { - agent, err := s.s.AddProxySQLExporter(ctx, req) +// addProxySQLExporter adds proxysql_exporter Agent. +func (s *agentsServer) addProxySQLExporter(ctx context.Context, params *inventoryv1.AddProxySQLExporterParams) (*inventoryv1.AddAgentResponse, error) { + agent, err := s.s.AddProxySQLExporter(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddProxySQLExporterResponse{ - ProxysqlExporter: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_ProxysqlExporter{ + ProxysqlExporter: agent, + }, } return res, nil } @@ -408,14 +462,16 @@ func (s *agentsServer) ChangeProxySQLExporter(ctx context.Context, req *inventor } // AddQANPostgreSQLPgStatementsAgent adds PostgreSQL Pg stat statements QAN Agent. -func (s *agentsServer) AddQANPostgreSQLPgStatementsAgent(ctx context.Context, req *inventoryv1.AddQANPostgreSQLPgStatementsAgentRequest) (*inventoryv1.AddQANPostgreSQLPgStatementsAgentResponse, error) { //nolint:lll - agent, err := s.s.AddQANPostgreSQLPgStatementsAgent(ctx, req) +func (s *agentsServer) addQANPostgreSQLPgStatementsAgent(ctx context.Context, params *inventoryv1.AddQANPostgreSQLPgStatementsAgentParams) (*inventoryv1.AddAgentResponse, error) { //nolint:lll + agent, err := s.s.AddQANPostgreSQLPgStatementsAgent(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddQANPostgreSQLPgStatementsAgentResponse{ - QanPostgresqlPgstatementsAgent: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_QanPostgresqlPgstatementsAgent{ + QanPostgresqlPgstatementsAgent: agent, + }, } return res, nil } @@ -434,14 +490,16 @@ func (s *agentsServer) ChangeQANPostgreSQLPgStatementsAgent(ctx context.Context, } // AddQANPostgreSQLPgStatMonitorAgent adds PostgreSQL Pg stat monitor QAN Agent. -func (s *agentsServer) AddQANPostgreSQLPgStatMonitorAgent(ctx context.Context, req *inventoryv1.AddQANPostgreSQLPgStatMonitorAgentRequest) (*inventoryv1.AddQANPostgreSQLPgStatMonitorAgentResponse, error) { //nolint:lll - agent, err := s.s.AddQANPostgreSQLPgStatMonitorAgent(ctx, req) +func (s *agentsServer) addQANPostgreSQLPgStatMonitorAgent(ctx context.Context, params *inventoryv1.AddQANPostgreSQLPgStatMonitorAgentParams) (*inventoryv1.AddAgentResponse, error) { //nolint:lll + agent, err := s.s.AddQANPostgreSQLPgStatMonitorAgent(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddQANPostgreSQLPgStatMonitorAgentResponse{ - QanPostgresqlPgstatmonitorAgent: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_QanPostgresqlPgstatmonitorAgent{ + QanPostgresqlPgstatmonitorAgent: agent, + }, } return res, nil } @@ -459,15 +517,17 @@ func (s *agentsServer) ChangeQANPostgreSQLPgStatMonitorAgent(ctx context.Context return res, nil } -// AddRDSExporter adds rds_exporter Agent. -func (s *agentsServer) AddRDSExporter(ctx context.Context, req *inventoryv1.AddRDSExporterRequest) (*inventoryv1.AddRDSExporterResponse, error) { - agent, err := s.s.AddRDSExporter(ctx, req) +// addRDSExporter adds rds_exporter Agent. +func (s *agentsServer) addRDSExporter(ctx context.Context, params *inventoryv1.AddRDSExporterParams) (*inventoryv1.AddAgentResponse, error) { + agent, err := s.s.AddRDSExporter(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddRDSExporterResponse{ - RdsExporter: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_RdsExporter{ + RdsExporter: agent, + }, } return res, nil } @@ -485,14 +545,17 @@ func (s *agentsServer) ChangeRDSExporter(ctx context.Context, req *inventoryv1.C return res, nil } -func (s *agentsServer) AddExternalExporter(ctx context.Context, req *inventoryv1.AddExternalExporterRequest) (*inventoryv1.AddExternalExporterResponse, error) { - agent, err := s.s.AddExternalExporter(ctx, req) +// addExternalExporter adds external_exporter Agent. +func (s *agentsServer) addExternalExporter(ctx context.Context, params *inventoryv1.AddExternalExporterParams) (*inventoryv1.AddAgentResponse, error) { + agent, err := s.s.AddExternalExporter(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddExternalExporterResponse{ - ExternalExporter: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_ExternalExporter{ + ExternalExporter: agent, + }, } return res, nil } @@ -509,18 +572,20 @@ func (s *agentsServer) ChangeExternalExporter(ctx context.Context, req *inventor return res, nil } -// AddAzureDatabaseExporter adds azure_database_exporter Agent. -func (s *agentsServer) AddAzureDatabaseExporter( +// addAzureDatabaseExporter adds azure_database_exporter Agent. +func (s *agentsServer) addAzureDatabaseExporter( ctx context.Context, - req *inventoryv1.AddAzureDatabaseExporterRequest, -) (*inventoryv1.AddAzureDatabaseExporterResponse, error) { - agent, err := s.s.AddAzureDatabaseExporter(ctx, req) + params *inventoryv1.AddAzureDatabaseExporterParams, +) (*inventoryv1.AddAgentResponse, error) { + agent, err := s.s.AddAzureDatabaseExporter(ctx, params) if err != nil { return nil, err } - res := &inventoryv1.AddAzureDatabaseExporterResponse{ - AzureDatabaseExporter: agent, + res := &inventoryv1.AddAgentResponse{ + Exporter: &inventoryv1.AddAgentResponse_AzureDatabaseExporter{ + AzureDatabaseExporter: agent, + }, } return res, nil } diff --git a/managed/services/inventory/services_test.go b/managed/services/inventory/services_test.go index 133ac98139..273f7693ac 100644 --- a/managed/services/inventory/services_test.go +++ b/managed/services/inventory/services_test.go @@ -152,7 +152,7 @@ func TestServices(t *testing.T) { node, err := ns.AddRemoteRDSNode(ctx, &inventoryv1.AddRemoteRDSNodeParams{NodeName: "test1", Region: "test-region", Address: "test"}) require.NoError(t, err) - rdsAgent, err := as.AddRDSExporter(ctx, &inventoryv1.AddRDSExporterRequest{ + rdsAgent, err := as.AddRDSExporter(ctx, &inventoryv1.AddRDSExporterParams{ PmmAgentId: "pmm-server", NodeId: node.NodeId, AwsAccessKey: "EXAMPLE_ACCESS_KEY", @@ -169,7 +169,7 @@ func TestServices(t *testing.T) { }) require.NoError(t, err) - mySQLAgent, _, err := as.AddMySQLdExporter(ctx, &inventoryv1.AddMySQLdExporterRequest{ + mySQLAgent, _, err := as.AddMySQLdExporter(ctx, &inventoryv1.AddMySQLdExporterParams{ PmmAgentId: "pmm-server", ServiceId: mySQLService.ServiceId, Username: "username", @@ -214,7 +214,7 @@ func TestServices(t *testing.T) { node, err := ns.AddRemoteAzureDatabaseNode(ctx, &inventoryv1.AddRemoteAzureNodeParams{NodeName: "test1", Region: "test-region", Address: "test"}) require.NoError(t, err) - rdsAgent, err := as.AddAzureDatabaseExporter(ctx, &inventoryv1.AddAzureDatabaseExporterRequest{ + rdsAgent, err := as.AddAzureDatabaseExporter(ctx, &inventoryv1.AddAzureDatabaseExporterParams{ PmmAgentId: "pmm-server", NodeId: node.NodeId, PushMetrics: true, @@ -230,7 +230,7 @@ func TestServices(t *testing.T) { }) require.NoError(t, err) - mySQLAgent, _, err := as.AddMySQLdExporter(ctx, &inventoryv1.AddMySQLdExporterRequest{ + mySQLAgent, _, err := as.AddMySQLdExporter(ctx, &inventoryv1.AddMySQLdExporterParams{ PmmAgentId: "pmm-server", ServiceId: mySQLService.ServiceId, Username: "username",