Skip to content

Latest commit

 

History

History
430 lines (272 loc) · 13 KB

File metadata and controls

430 lines (272 loc) · 13 KB

\DashboardsApi

All URIs are relative to http://localhost

Method HTTP request Description
CloneDashboard Post /dashboards/{dashboardIdOrUrn}/clone Clone a dashboard
CreateDashboard Post /dashboards Create a new dashboard
DeleteDashboard Delete /dashboards/{dashboardIdOrUrn} Delete a dashboard
GetDashboard Get /dashboards/{dashboardIdOrUrn} Get a single dashboard
GetDashboards Get /dashboards Get a list of dashboards
PatchDashboard Patch /dashboards/{dashboardIdOrUrn} Patch a dashboard

CloneDashboard

DashboardReadFullSchema CloneDashboard(ctx, dashboardIdOrUrn).DashboardCloneSchema(dashboardCloneSchema).Execute()

Clone a dashboard

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    dashboardIdOrUrn := "dashboardIdOrUrn_example" // string | The identifier of a dashboard
    dashboardCloneSchema := *openapiclient.NewDashboardCloneSchema("Name_example") // DashboardCloneSchema | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DashboardsApi.CloneDashboard(context.Background(), dashboardIdOrUrn).DashboardCloneSchema(dashboardCloneSchema).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DashboardsApi.CloneDashboard``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `CloneDashboard`: DashboardReadFullSchema
    fmt.Fprintf(os.Stdout, "Response from `DashboardsApi.CloneDashboard`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
dashboardIdOrUrn string The identifier of a dashboard

Other Parameters

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

Name Type Description Notes

dashboardCloneSchema | DashboardCloneSchema | |

Return type

DashboardReadFullSchema

Authorization

ApiToken, ServiceBearer, ServiceToken

HTTP request headers

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

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

CreateDashboard

DashboardReadFullSchema CreateDashboard(ctx).DashboardWriteSchema(dashboardWriteSchema).Execute()

Create a new dashboard

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    dashboardWriteSchema := *openapiclient.NewDashboardWriteSchema("Name_example", "Description_example", openapiclient.DashboardScope("publicDashboard"), *openapiclient.NewPersesDashboard()) // DashboardWriteSchema | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DashboardsApi.CreateDashboard(context.Background()).DashboardWriteSchema(dashboardWriteSchema).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DashboardsApi.CreateDashboard``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `CreateDashboard`: DashboardReadFullSchema
    fmt.Fprintf(os.Stdout, "Response from `DashboardsApi.CreateDashboard`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
dashboardWriteSchema DashboardWriteSchema

Return type

DashboardReadFullSchema

Authorization

ApiToken, ServiceBearer, ServiceToken

HTTP request headers

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

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

DeleteDashboard

DeleteDashboard(ctx, dashboardIdOrUrn).Execute()

Delete a dashboard

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    dashboardIdOrUrn := "dashboardIdOrUrn_example" // string | The identifier of a dashboard

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DashboardsApi.DeleteDashboard(context.Background(), dashboardIdOrUrn).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DashboardsApi.DeleteDashboard``: %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.
dashboardIdOrUrn string The identifier of a dashboard

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

ApiToken, ServiceBearer, ServiceToken

HTTP request headers

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

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

GetDashboard

DashboardReadSchema GetDashboard(ctx, dashboardIdOrUrn).LoadFullDashboard(loadFullDashboard).Execute()

Get a single dashboard

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    dashboardIdOrUrn := "dashboardIdOrUrn_example" // string | The identifier of a dashboard
    loadFullDashboard := true // bool | If true, includes the full dashboard content in the response. Defaults to false (only metadata is returned) for retrieval endpoints. Defaults to true for create/update operations. (optional) (default to false)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DashboardsApi.GetDashboard(context.Background(), dashboardIdOrUrn).LoadFullDashboard(loadFullDashboard).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DashboardsApi.GetDashboard``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetDashboard`: DashboardReadSchema
    fmt.Fprintf(os.Stdout, "Response from `DashboardsApi.GetDashboard`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
dashboardIdOrUrn string The identifier of a dashboard

Other Parameters

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

Name Type Description Notes

loadFullDashboard | bool | If true, includes the full dashboard content in the response. Defaults to false (only metadata is returned) for retrieval endpoints. Defaults to true for create/update operations. | [default to false]

Return type

DashboardReadSchema

Authorization

ApiToken, ServiceBearer, ServiceToken

HTTP request headers

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

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

GetDashboards

DashboardList GetDashboards(ctx).LoadFullDashboard(loadFullDashboard).Execute()

Get a list of dashboards

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    loadFullDashboard := true // bool | If true, includes the full dashboard content in the response. Defaults to false (only metadata is returned) for retrieval endpoints. Defaults to true for create/update operations. (optional) (default to false)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DashboardsApi.GetDashboards(context.Background()).LoadFullDashboard(loadFullDashboard).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DashboardsApi.GetDashboards``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetDashboards`: DashboardList
    fmt.Fprintf(os.Stdout, "Response from `DashboardsApi.GetDashboards`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
loadFullDashboard bool If true, includes the full dashboard content in the response. Defaults to false (only metadata is returned) for retrieval endpoints. Defaults to true for create/update operations. [default to false]

Return type

DashboardList

Authorization

ApiToken, ServiceBearer, ServiceToken

HTTP request headers

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

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

PatchDashboard

DashboardReadFullSchema PatchDashboard(ctx, dashboardIdOrUrn).DashboardPatchSchema(dashboardPatchSchema).Execute()

Patch a dashboard

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    dashboardIdOrUrn := "dashboardIdOrUrn_example" // string | The identifier of a dashboard
    dashboardPatchSchema := *openapiclient.NewDashboardPatchSchema() // DashboardPatchSchema | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.DashboardsApi.PatchDashboard(context.Background(), dashboardIdOrUrn).DashboardPatchSchema(dashboardPatchSchema).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DashboardsApi.PatchDashboard``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PatchDashboard`: DashboardReadFullSchema
    fmt.Fprintf(os.Stdout, "Response from `DashboardsApi.PatchDashboard`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
dashboardIdOrUrn string The identifier of a dashboard

Other Parameters

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

Name Type Description Notes

dashboardPatchSchema | DashboardPatchSchema | |

Return type

DashboardReadFullSchema

Authorization

ApiToken, ServiceBearer, ServiceToken

HTTP request headers

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

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