callhome

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright (c) YugabyteDB, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	CALL_HOME_SERVICE_HOST = "34.105.39.253"
	CALL_HOME_SERVICE_PORT = 80
)

Variables

View Source
var (
	Payload         payload
	SendDiagnostics utils.BoolStr
)

call-home json formats

Functions

func GetPayload

func GetPayload(exportDir string, migrationUUID uuid.UUID) *payload

This getter method for payload: if json isn't already initialized, initialize it and fills mandatory fields in Payload struct

func PackAndSendPayload

func PackAndSendPayload(exportdir string)

Send http request to flask servers after saving locally

func ReadEnvSendDiagnostics

func ReadEnvSendDiagnostics()

[For development] Read ENV VARS for value of SendDiagnostics

func UpdateDataStats

func UpdateDataStats(exportdir string, exportedRowCount map[string]int64)

Find the largest and total data sizes, and upload to diagnostics json

Types

This section is empty.

Jump to

Keyboard shortcuts

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