All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateTelemetry | Post /api/v1/customers/{cUUID}/telemetry_provider | Create Telemetry Provider |
DeleteTelemetryProvider | Delete /api/v1/customers/{cUUID}/telemetry_provider/{intUUID} | Delete a telemetry provider |
GetTelemetryProvider | Get /api/v1/customers/{cUUID}/telemetry_provider/{intUUID} | Get Telemetry Provider |
ListAllTelemetryProviders | Get /api/v1/customers/{cUUID}/telemetry_provider | List All Telemetry Providers |
TelemetryProvider CreateTelemetry(ctx, cUUID).ProviderData(providerData).Request(request).Execute()
Create Telemetry Provider
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
providerData := *openapiclient.NewTelemetryProvider(*openapiclient.NewTelemetryProviderConfig(), "CustomerUUID_example", "Name_example", map[string]string{"key": "Inner_example"}, "Uuid_example") // TelemetryProvider |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.TelemetryProviderApi.CreateTelemetry(context.Background(), cUUID).ProviderData(providerData).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TelemetryProviderApi.CreateTelemetry``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateTelemetry`: TelemetryProvider
fmt.Fprintf(os.Stdout, "Response from `TelemetryProviderApi.CreateTelemetry`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string |
Other parameters are passed through a pointer to a apiCreateTelemetryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
providerData | TelemetryProvider | | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess DeleteTelemetryProvider(ctx, cUUID, intUUID).Request(request).Execute()
Delete a telemetry provider
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
intUUID := TODO // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.TelemetryProviderApi.DeleteTelemetryProvider(context.Background(), cUUID, intUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TelemetryProviderApi.DeleteTelemetryProvider``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteTelemetryProvider`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `TelemetryProviderApi.DeleteTelemetryProvider`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
intUUID | string |
Other parameters are passed through a pointer to a apiDeleteTelemetryProviderRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TelemetryProvider GetTelemetryProvider(ctx, cUUID, intUUID).Execute()
Get Telemetry Provider
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
intUUID := TODO // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.TelemetryProviderApi.GetTelemetryProvider(context.Background(), cUUID, intUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TelemetryProviderApi.GetTelemetryProvider``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTelemetryProvider`: TelemetryProvider
fmt.Fprintf(os.Stdout, "Response from `TelemetryProviderApi.GetTelemetryProvider`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
intUUID | string |
Other parameters are passed through a pointer to a apiGetTelemetryProviderRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]TelemetryProvider ListAllTelemetryProviders(ctx, cUUID).Execute()
List All Telemetry Providers
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.TelemetryProviderApi.ListAllTelemetryProviders(context.Background(), cUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TelemetryProviderApi.ListAllTelemetryProviders``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAllTelemetryProviders`: []TelemetryProvider
fmt.Fprintf(os.Stdout, "Response from `TelemetryProviderApi.ListAllTelemetryProviders`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string |
Other parameters are passed through a pointer to a apiListAllTelemetryProvidersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]