github.com/weaviate/weaviate@v1.24.6/usecases/telemetry/payload.go (about)

     1  //                           _       _
     2  // __      _____  __ ___   ___  __ _| |_ ___
     3  // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
     4  //  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
     5  //   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
     6  //
     7  //  Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
     8  //
     9  //  CONTACT: hello@weaviate.io
    10  //
    11  
    12  package telemetry
    13  
    14  import (
    15  	"github.com/go-openapi/strfmt"
    16  )
    17  
    18  // PayloadType is the discrete set of statuses which indicate the type of payload sent
    19  var PayloadType = struct {
    20  	Init      string
    21  	Update    string
    22  	Terminate string
    23  }{
    24  	Init:      "INIT",
    25  	Update:    "UPDATE",
    26  	Terminate: "TERMINATE",
    27  }
    28  
    29  // Payload is the object transmitted for telemetry purposes
    30  type Payload struct {
    31  	MachineID  strfmt.UUID `json:"machineId"`
    32  	Type       string      `json:"type"`
    33  	Version    string      `json:"version"`
    34  	Modules    string      `json:"modules"`
    35  	NumObjects int64       `json:"objs"`
    36  	OS         string      `json:"os"`
    37  	Arch       string      `json:"arch"`
    38  }