Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 1.67 KB

TelemetryAPI.md

File metadata and controls

71 lines (43 loc) · 1.67 KB

\TelemetryAPI

All URIs are relative to http://localhost

Method HTTP request Description
PostExternalTelemetry Post /api/v2/telemetry

PostExternalTelemetry

PostExternalTelemetry(ctx).RequestBody(requestBody).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)

func main() {
	requestBody := map[string]map[string]interface{}{"key": map[string]interface{}(123)} // map[string]map[string]interface{} |  (optional)

	configuration := sonatypeiq.NewConfiguration()
	apiClient := sonatypeiq.NewAPIClient(configuration)
	r, err := apiClient.TelemetryAPI.PostExternalTelemetry(context.Background()).RequestBody(requestBody).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TelemetryAPI.PostExternalTelemetry``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostExternalTelemetryRequest struct via the builder pattern

Name Type Description Notes
requestBody map[string]map[string]interface{}

Return type

(empty response body)

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]