Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 1.89 KB

UsageStatsAPI.md

File metadata and controls

80 lines (51 loc) · 1.89 KB

\UsageStatsAPI

All URIs are relative to http://localhost

Method HTTP request Description
UsageStatsFetch Get /api/v{version}/UsageStats/fetch

UsageStatsFetch

UsageStatsFetch(ctx, version).From(from).To(to).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
    "time"
	openapiclient "github.com/max-bytes/omnikeeper-client-go"
)

func main() {
	from := time.Now() // time.Time | 
	to := time.Now() // time.Time | 
	version := "version_example" // string | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.UsageStatsAPI.UsageStatsFetch(context.Background(), version).From(from).To(to).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `UsageStatsAPI.UsageStatsFetch``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
version string

Other Parameters

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

Name Type Description Notes
from time.Time
to time.Time

Return type

(empty response body)

Authorization

oauth2, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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