Documentation ¶
Index ¶
Constants ¶
View Source
const ( OpsManagerCollectFailureMessage = "Failed collecting from Operations Manager" CredhubCollectFailureMessage = "Failed collecting from Credhub" UsageCollectFailureMessage = "Failed collecting from Usage Service" DataWriteFailureMessage = "Failed writing data" ContentReadingFailureMessage = "Failed to read content" UUIDGenerationErrorMessage = "unable to generate UUID" CoreCountsCollectFailureMessage = "Failed collecting from Core Counting API" )
View Source
const ( AuthorizationHeaderKey = "Authorization" PostPath = "/collections/batch" TarContentType = "application/tar" GzipContentEncoding = "gzip" HTTPSenderVersionRequestHeader = "Pivotal-Telemetry-Sender-Version" RequestCreationFailureMessage = "Failed make request object" PostFailedMessage = "Failed to do request" ReadDataFileError = "Unable to read data file" UnexpectedServerErrorFormat = "" /* 128-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectExecutor ¶
type CollectExecutor struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func NewCollector(opsmanagerDC omDataCollector, credhubDC credhubDataCollector, consumptionDC consumptionDataCollector, coreConsumptionDC coreConsumptionDataCollector, tarWriter tarWriter, uuidProvider uuidProvider, operationalDataOnly bool) *CollectExecutor
func (*CollectExecutor) Collect ¶
func (ce *CollectExecutor) Collect(envType, collectorVersion, foundationNickname string) error
type SendExecutor ¶
type SendExecutor struct{}
func (SendExecutor) Send ¶
func (s SendExecutor) Send(client httpClient, tarFilePath, dataLoaderURL, apiToken, senderVersion string) error
Click to show internal directories.
Click to hide internal directories.