Documentation
¶
Index ¶
- Constants
- type AdminQueriesOutdated
- type AdminQuerisRqStatus
- type AdminQuerisRqStatusDefault
- type AdminQuerisRqStatusEmails
- type AdminQuerisRqStatusPeriodic
- type AdminQuerisRqStatusQueries
- type AdminQuerisRqStatusQueues
- type AdminQuerisRqStatusSchemas
- type AdminQuerisRqStatusWorker
- type Alert
- type AlertOptions
- type AlertSubscription
- type Client
- func MustNewClient(endpoint string, apiKey string) *Client
- func MustNewClientWithHTTPClient(endpoint string, apiKey string, httpClient *http.Client) *Client
- func NewClient(endpoint string, apiKey string) (*Client, error)
- func NewClientWithHTTPClient(endpoint string, apiKey string, httpClient *http.Client) (*Client, error)
- func (client *Client) AddAlertSubscription(ctx context.Context, id int, destinationId int) (*AlertSubscription, error)
- func (client *Client) AddGroupDataSource(ctx context.Context, id int, dsId int) (*DataSource, error)
- func (client *Client) AddGroupMember(ctx context.Context, id int, userId int) (*User, error)
- func (client *Client) ArchiveDashboard(ctx context.Context, idOrSlug any) error
- func (client *Client) ArchiveQuery(ctx context.Context, id int) error
- func (client *Client) CreateAlert(ctx context.Context, input *CreateAlertInput) (*Alert, error)
- func (client *Client) CreateDashboard(ctx context.Context, input *CreateDashboardInput) (*Dashboard, error)
- func (client *Client) CreateDataSource(ctx context.Context, input *CreateDataSourceInput) (*DataSource, error)
- func (client *Client) CreateDestination(ctx context.Context, input *CreateDestinationInput) (*Destination, error)
- func (client *Client) CreateFavoriteDashboard(ctx context.Context, idOrSlug any) error
- func (client *Client) CreateFavoriteQuery(ctx context.Context, id int) error
- func (client *Client) CreateGroup(ctx context.Context, input *CreateGroupInput) (*Group, error)
- func (client *Client) CreateQuery(ctx context.Context, input *CreateQueryInput) (*Query, error)
- func (client *Client) CreateQuerySnippet(ctx context.Context, input *CreateQuerySnippetInput) (*QuerySnippet, error)
- func (client *Client) CreateUser(ctx context.Context, input *CreateUsersInput) (*User, error)
- func (client *Client) CreateWidget(ctx context.Context, input *CreateWidgetInput) (*Widget, error)
- func (client *Client) Delete(ctx context.Context, path string) (*http.Response, responseCloser, error)
- func (client *Client) DeleteAlert(ctx context.Context, id int) error
- func (client *Client) DeleteDataSource(ctx context.Context, id int) error
- func (client *Client) DeleteDestination(ctx context.Context, id int) error
- func (client *Client) DeleteGroup(ctx context.Context, id int) error
- func (client *Client) DeleteQuerySnippet(ctx context.Context, id int) error
- func (client *Client) DeleteUser(ctx context.Context, id int) error
- func (client *Client) DeleteWidget(ctx context.Context, id int) error
- func (client *Client) DisableUser(ctx context.Context, id int) (*User, error)
- func (client *Client) EnableUser(ctx context.Context, id int) (*User, error)
- func (client *Client) ExecQueryJSON(ctx context.Context, id int, out io.Writer) (*JobResponse, error)
- func (client *Client) ForkQuery(ctx context.Context, id int) (*Query, error)
- func (client *Client) FormatQuery(ctx context.Context, query string) (*FormatQueryOutput, error)
- func (client *Client) Get(ctx context.Context, path string, params any) (*http.Response, responseCloser, error)
- func (client *Client) GetAdminQueriesOutdated(ctx context.Context) (*AdminQueriesOutdated, error)
- func (client *Client) GetAdminQueriesRqStatus(ctx context.Context) (*AdminQuerisRqStatus, error)
- func (client *Client) GetAlert(ctx context.Context, id int) (*Alert, error)
- func (client *Client) GetConfig(ctx context.Context) (*Config, error)
- func (client *Client) GetDashboard(ctx context.Context, idOrSlug any) (*Dashboard, error)
- func (client *Client) GetDashboardTags(ctx context.Context) (*DashboardTags, error)
- func (client *Client) GetDataSource(ctx context.Context, id int) (*DataSource, error)
- func (client *Client) GetDataSourceTypes(ctx context.Context) ([]DataSourceType, error)
- func (client *Client) GetDestination(ctx context.Context, id int) (*Destination, error)
- func (client *Client) GetDestinationTypes(ctx context.Context) ([]DestinationType, error)
- func (client *Client) GetGroup(ctx context.Context, id int) (*Group, error)
- func (client *Client) GetJob(ctx context.Context, id string) (*JobResponse, error)
- func (client *Client) GetOrganizationStatus(ctx context.Context) (*OrganizationStatus, error)
- func (client *Client) GetQuery(ctx context.Context, id int) (*Query, error)
- func (client *Client) GetQueryResults(ctx context.Context, id int, ext string, out io.Writer) error
- func (client *Client) GetQueryResultsCSV(ctx context.Context, id int, out io.Writer) error
- func (client *Client) GetQueryResultsJSON(ctx context.Context, id int, out io.Writer) error
- func (client *Client) GetQuerySnippet(ctx context.Context, id int) (*QuerySnippet, error)
- func (client *Client) GetQueryTags(ctx context.Context) (*QueryTags, error)
- func (client *Client) GetSession(ctx context.Context) (*Session, error)
- func (client *Client) GetSettingsOrganization(ctx context.Context) (*SettingsOrganization, error)
- func (client *Client) GetStatus(ctx context.Context) (*Status, error)
- func (client *Client) GetUser(ctx context.Context, id int) (*User, error)
- func (client *Client) ListAlertSubscriptions(ctx context.Context, id int) ([]AlertSubscription, error)
- func (client *Client) ListAlerts(ctx context.Context) ([]Alert, error)
- func (client *Client) ListDashboards(ctx context.Context, input *ListDashboardsInput) (*DashboardPage, error)
- func (client *Client) ListDataSources(ctx context.Context) ([]DataSource, error)
- func (client *Client) ListDestinations(ctx context.Context) ([]Destination, error)
- func (client *Client) ListEvents(ctx context.Context, input *ListEventsInput) (*EventPage, error)
- func (client *Client) ListFavoriteDashboards(ctx context.Context, input *ListFavoriteDashboardsInput) (*DashboardPage, error)
- func (client *Client) ListFavoriteQueries(ctx context.Context, input *ListFavoriteQueriesInput) (*QueryPage, error)
- func (client *Client) ListGroupDataSources(ctx context.Context, id int) ([]DataSource, error)
- func (client *Client) ListGroupMembers(ctx context.Context, id int) ([]User, error)
- func (client *Client) ListGroups(ctx context.Context) ([]Group, error)
- func (client *Client) ListMyDashboards(ctx context.Context, input *ListMyDashboardsInput) (*DashboardPage, error)
- func (client *Client) ListMyQueries(ctx context.Context, input *ListMyQueriesInput) (*QueryPage, error)
- func (client *Client) ListQueries(ctx context.Context, input *ListQueriesInput) (*QueryPage, error)
- func (client *Client) ListQuerySnippets(ctx context.Context) ([]QuerySnippet, error)
- func (client *Client) ListRecentQueries(ctx context.Context) ([]Query, error)
- func (client *Client) ListUsers(ctx context.Context, input *ListUsersInput) (*UserPage, error)
- func (client *Client) MuteAlert(ctx context.Context, id int) error
- func (client *Client) PauseDataSource(ctx context.Context, id int, input *PauseDataSourceInput) (*DataSource, error)
- func (client *Client) Ping(ctx context.Context) error
- func (client *Client) Post(ctx context.Context, path string, body any) (*http.Response, responseCloser, error)
- func (client *Client) RefreshQuery(ctx context.Context, id int) (*JobResponse, error)
- func (client *Client) RemoveAlertSubscription(ctx context.Context, id int, subscriptionId int) error
- func (client *Client) RemoveGroupDataSource(ctx context.Context, id int, dsId int) error
- func (client *Client) RemoveGroupMember(ctx context.Context, id int, userId int) error
- func (client *Client) ResumeDataSource(ctx context.Context, id int) (*DataSource, error)
- func (client *Client) SearchQueries(ctx context.Context, input *SearchQueriesInput) (*QueryPage, error)
- func (client *Client) ShareDashboard(ctx context.Context, id int) (*ShareDashboardOutput, error)
- func (client *Client) TestCredentials(ctx context.Context) error
- func (client *Client) TestDataSource(ctx context.Context, id int) (*TestDataSourceOutput, error)
- func (client *Client) UnmuteAlert(ctx context.Context, id int) error
- func (client *Client) UnshareDashboard(ctx context.Context, id int) error
- func (client *Client) UpdateAlert(ctx context.Context, id int, input *UpdateAlertInput) (*Alert, error)
- func (client *Client) UpdateDashboard(ctx context.Context, id int, input *UpdateDashboardInput) (*Dashboard, error)
- func (client *Client) UpdateDataSource(ctx context.Context, id int, input *UpdateDataSourceInput) (*DataSource, error)
- func (client *Client) UpdateGroupDataSource(ctx context.Context, id int, dsId int, input *UpdateGroupDataSourceInput) (*DataSource, error)
- func (client *Client) UpdateQuery(ctx context.Context, id int, input *UpdateQueryInput) (*Query, error)
- func (client *Client) UpdateQuerySnippet(ctx context.Context, id int, input *UpdateQuerySnippetInput) (*QuerySnippet, error)
- func (client *Client) UpdateSettingsOrganization(ctx context.Context, input *UpdateSettingsOrganizationInput) (*SettingsOrganization, error)
- func (client *Client) UpdateUser(ctx context.Context, id int, input *UpdateUserInput) (*User, error)
- func (client *Client) UpdateVisualization(ctx context.Context, id int, input *UpdateVisualizationInput) (*Visualization, error)
- func (client *Client) WithoutContext() *ClientWithoutContext
- type ClientConfig
- type ClientWithoutContext
- func (client *ClientWithoutContext) AddAlertSubscription(id int, destinationId int) (*AlertSubscription, error)
- func (client *ClientWithoutContext) AddGroupDataSource(id int, dsId int) (*DataSource, error)
- func (client *ClientWithoutContext) AddGroupMember(id int, userId int) (*User, error)
- func (client *ClientWithoutContext) ArchiveDashboard(idOrSlug any) error
- func (client *ClientWithoutContext) ArchiveQuery(id int) error
- func (client *ClientWithoutContext) CreateAlert(input *CreateAlertInput) (*Alert, error)
- func (client *ClientWithoutContext) CreateDashboard(input *CreateDashboardInput) (*Dashboard, error)
- func (client *ClientWithoutContext) CreateDataSource(input *CreateDataSourceInput) (*DataSource, error)
- func (client *ClientWithoutContext) CreateDestination(input *CreateDestinationInput) (*Destination, error)
- func (client *ClientWithoutContext) CreateFavoriteDashboard(idOrSlug any) error
- func (client *ClientWithoutContext) CreateFavoriteQuery(id int) error
- func (client *ClientWithoutContext) CreateGroup(input *CreateGroupInput) (*Group, error)
- func (client *ClientWithoutContext) CreateQuery(input *CreateQueryInput) (*Query, error)
- func (client *ClientWithoutContext) CreateQuerySnippet(input *CreateQuerySnippetInput) (*QuerySnippet, error)
- func (client *ClientWithoutContext) CreateUser(input *CreateUsersInput) (*User, error)
- func (client *ClientWithoutContext) CreateWidget(input *CreateWidgetInput) (*Widget, error)
- func (client *ClientWithoutContext) DeleteAlert(id int) error
- func (client *ClientWithoutContext) DeleteDataSource(id int) error
- func (client *ClientWithoutContext) DeleteDestination(id int) error
- func (client *ClientWithoutContext) DeleteGroup(id int) error
- func (client *ClientWithoutContext) DeleteQuerySnippet(id int) error
- func (client *ClientWithoutContext) DeleteUser(id int) error
- func (client *ClientWithoutContext) DeleteWidget(id int) error
- func (client *ClientWithoutContext) DisableUser(id int) (*User, error)
- func (client *ClientWithoutContext) EnableUser(id int) (*User, error)
- func (client *ClientWithoutContext) ExecQueryJSON(id int, out io.Writer) (*JobResponse, error)
- func (client *ClientWithoutContext) ForkQuery(id int) (*Query, error)
- func (client *ClientWithoutContext) FormatQuery(query string) (*FormatQueryOutput, error)
- func (client *ClientWithoutContext) GetAdminQueriesOutdated() (*AdminQueriesOutdated, error)
- func (client *ClientWithoutContext) GetAdminQueriesRqStatus() (*AdminQuerisRqStatus, error)
- func (client *ClientWithoutContext) GetAlert(id int) (*Alert, error)
- func (client *ClientWithoutContext) GetConfig() (*Config, error)
- func (client *ClientWithoutContext) GetDashboard(idOrSlug any) (*Dashboard, error)
- func (client *ClientWithoutContext) GetDashboardTags() (*DashboardTags, error)
- func (client *ClientWithoutContext) GetDataSource(id int) (*DataSource, error)
- func (client *ClientWithoutContext) GetDataSourceTypes() ([]DataSourceType, error)
- func (client *ClientWithoutContext) GetDestination(id int) (*Destination, error)
- func (client *ClientWithoutContext) GetDestinationTypes() ([]DestinationType, error)
- func (client *ClientWithoutContext) GetGroup(id int) (*Group, error)
- func (client *ClientWithoutContext) GetJob(id string) (*JobResponse, error)
- func (client *ClientWithoutContext) GetOrganizationStatus() (*OrganizationStatus, error)
- func (client *ClientWithoutContext) GetQuery(id int) (*Query, error)
- func (client *ClientWithoutContext) GetQueryResults(id int, ext string, out io.Writer) error
- func (client *ClientWithoutContext) GetQueryResultsCSV(id int, out io.Writer) error
- func (client *ClientWithoutContext) GetQueryResultsJSON(id int, out io.Writer) error
- func (client *ClientWithoutContext) GetQuerySnippet(id int) (*QuerySnippet, error)
- func (client *ClientWithoutContext) GetQueryTags() (*QueryTags, error)
- func (client *ClientWithoutContext) GetSession() (*Session, error)
- func (client *ClientWithoutContext) GetSettingsOrganization() (*SettingsOrganization, error)
- func (client *ClientWithoutContext) GetStatus() (*Status, error)
- func (client *ClientWithoutContext) GetUser(id int) (*User, error)
- func (client *ClientWithoutContext) ListAlertSubscriptions(id int) ([]AlertSubscription, error)
- func (client *ClientWithoutContext) ListAlerts() ([]Alert, error)
- func (client *ClientWithoutContext) ListDashboards(input *ListDashboardsInput) (*DashboardPage, error)
- func (client *ClientWithoutContext) ListDataSources() ([]DataSource, error)
- func (client *ClientWithoutContext) ListDestinations() ([]Destination, error)
- func (client *ClientWithoutContext) ListEvents(input *ListEventsInput) (*EventPage, error)
- func (client *ClientWithoutContext) ListFavoriteDashboards(input *ListFavoriteDashboardsInput) (*DashboardPage, error)
- func (client *ClientWithoutContext) ListFavoriteQueries(input *ListFavoriteQueriesInput) (*QueryPage, error)
- func (client *ClientWithoutContext) ListGroupDataSources(id int) ([]DataSource, error)
- func (client *ClientWithoutContext) ListGroupMembers(id int) ([]User, error)
- func (client *ClientWithoutContext) ListGroups() ([]Group, error)
- func (client *ClientWithoutContext) ListMyDashboards(input *ListMyDashboardsInput) (*DashboardPage, error)
- func (client *ClientWithoutContext) ListMyQueries(input *ListMyQueriesInput) (*QueryPage, error)
- func (client *ClientWithoutContext) ListQueries(input *ListQueriesInput) (*QueryPage, error)
- func (client *ClientWithoutContext) ListQuerySnippets() ([]QuerySnippet, error)
- func (client *ClientWithoutContext) ListRecentQueries() ([]Query, error)
- func (client *ClientWithoutContext) ListUsers(input *ListUsersInput) (*UserPage, error)
- func (client *ClientWithoutContext) MuteAlert(id int) error
- func (client *ClientWithoutContext) PauseDataSource(id int, input *PauseDataSourceInput) (*DataSource, error)
- func (client *ClientWithoutContext) Ping() error
- func (client *ClientWithoutContext) RefreshQuery(id int) (*JobResponse, error)
- func (client *ClientWithoutContext) RemoveAlertSubscription(id int, subscriptionId int) error
- func (client *ClientWithoutContext) RemoveGroupDataSource(id int, dsId int) error
- func (client *ClientWithoutContext) RemoveGroupMember(id int, userId int) error
- func (client *ClientWithoutContext) ResumeDataSource(id int) (*DataSource, error)
- func (client *ClientWithoutContext) SearchQueries(input *SearchQueriesInput) (*QueryPage, error)
- func (client *ClientWithoutContext) ShareDashboard(id int) (*ShareDashboardOutput, error)
- func (client *ClientWithoutContext) TestCredentials() error
- func (client *ClientWithoutContext) TestDataSource(id int) (*TestDataSourceOutput, error)
- func (client *ClientWithoutContext) UnmuteAlert(id int) error
- func (client *ClientWithoutContext) UnshareDashboard(id int) error
- func (client *ClientWithoutContext) UpdateAlert(id int, input *UpdateAlertInput) (*Alert, error)
- func (client *ClientWithoutContext) UpdateDashboard(id int, input *UpdateDashboardInput) (*Dashboard, error)
- func (client *ClientWithoutContext) UpdateDataSource(id int, input *UpdateDataSourceInput) (*DataSource, error)
- func (client *ClientWithoutContext) UpdateGroupDataSource(id int, dsId int, input *UpdateGroupDataSourceInput) (*DataSource, error)
- func (client *ClientWithoutContext) UpdateQuery(id int, input *UpdateQueryInput) (*Query, error)
- func (client *ClientWithoutContext) UpdateQuerySnippet(id int, input *UpdateQuerySnippetInput) (*QuerySnippet, error)
- func (client *ClientWithoutContext) UpdateSettingsOrganization(input *UpdateSettingsOrganizationInput) (*SettingsOrganization, error)
- func (client *ClientWithoutContext) UpdateUser(id int, input *UpdateUserInput) (*User, error)
- func (client *ClientWithoutContext) UpdateVisualization(id int, input *UpdateVisualizationInput) (*Visualization, error)
- type Config
- type CreateAlertInput
- type CreateAlertOptions
- type CreateDashboardInput
- type CreateDataSourceInput
- type CreateDestinationInput
- type CreateGroupInput
- type CreateQueryInput
- type CreateQueryInputOptions
- type CreateQueryInputSchedule
- type CreateQuerySnippetInput
- type CreateUsersInput
- type CreateWidgetInput
- type Dashboard
- type DashboardPage
- type DashboardTags
- type DashboardTagsTag
- type DataSource
- type DataSourceType
- type DataSourceTypeConfigurationSchema
- type DataSourceTypeConfigurationSchemaProperty
- type Destination
- type DestinationType
- type DestinationTypeConfigurationSchema
- type DestinationTypeConfigurationSchemaProperty
- type Event
- type EventPage
- type FormatQueryOutput
- type Group
- type Job
- type JobResponse
- type ListDashboardsInput
- type ListEventsInput
- type ListFavoriteDashboardsInput
- type ListFavoriteQueriesInput
- type ListMyDashboardsInput
- type ListMyQueriesInput
- type ListQueriesInput
- type ListUsersInput
- type OrganizationStatus
- type OrganizationStatusObjectCounters
- type PauseDataSourceInput
- type Query
- type QueryOptions
- type QueryPage
- type QuerySnippet
- type QueryTags
- type QueryTagsTag
- type QueueSchedule
- type SearchQueriesInput
- type Session
- type SettingsOrganization
- type SettingsOrganizationSettings
- type ShareDashboardOutput
- type Status
- type StatusDatabaseMetrics
- type StatusManager
- type StatusManagerQueues
- type StatusManagerQueuesCelery
- type StatusManagerQueuesQueries
- type StatusManagerQueuesScheduledQueries
- type TestDataSourceOutput
- type UpdateAlertInput
- type UpdateAlertOptions
- type UpdateDashboardInput
- type UpdateDataSourceInput
- type UpdateGroupDataSourceInput
- type UpdateQueryInput
- type UpdateQueryInputOptions
- type UpdateQueryInputSchedule
- type UpdateQuerySnippetInput
- type UpdateSettingsOrganizationInput
- type UpdateUserInput
- type UpdateVisualizationInput
- type User
- type UserPage
- type Visualization
- type Widget
Constants ¶
View Source
const ( // see https://redash.io/help/user-guide/integrations-and-api/api#Jobs JobStatusPending = 1 JobStatusStarted = 2 JobStatusSuccess = 3 JobStatusFailure = 4 JobStatusCancelled = 5 )
View Source
const (
UserAgent = "redash-go"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminQueriesOutdated ¶ added in v0.8.0
type AdminQuerisRqStatus ¶ added in v0.8.0
type AdminQuerisRqStatus struct {
Queues AdminQuerisRqStatusQueues `json:"queues"`
Workers []AdminQuerisRqStatusWorker `json:"workers"`
}
type AdminQuerisRqStatusDefault ¶ added in v0.8.0
type AdminQuerisRqStatusEmails ¶ added in v0.8.0
type AdminQuerisRqStatusPeriodic ¶ added in v0.8.0
type AdminQuerisRqStatusQueries ¶ added in v0.8.0
type AdminQuerisRqStatusQueues ¶ added in v0.8.0
type AdminQuerisRqStatusQueues struct {
Default *AdminQuerisRqStatusDefault `json:"default"`
Emails *AdminQuerisRqStatusEmails `json:"emails"`
Periodic *AdminQuerisRqStatusPeriodic `json:"periodic"`
Queries *AdminQuerisRqStatusQueries `json:"queries"`
Schemas *AdminQuerisRqStatusSchemas `json:"schemas"`
}
type AdminQuerisRqStatusSchemas ¶ added in v0.8.0
type AdminQuerisRqStatusWorker ¶ added in v0.8.0
type AdminQuerisRqStatusWorker struct {
BirthDate string `json:"birth_date"`
CurrentJob string `json:"current_job"`
FailedJobs int `json:"failed_jobs"`
Hostname string `json:"hostname"`
LastHeartbeat string `json:"last_heartbeat"`
Name string `json:"name"`
Pid int `json:"pid"`
Queues string `json:"queues"`
State string `json:"state"`
SuccessfulJobs int `json:"successful_jobs"`
TotalWorkingTime float64 `json:"total_working_time"`
}
type Alert ¶
type Alert struct {
CreatedAt time.Time `json:"created_at"`
ID int `json:"id"`
LastTriggeredAt time.Time `json:"last_triggered_at"`
Name string `json:"name"`
Options AlertOptions `json:"options"`
Query Query `json:"query"`
Rearm int `json:"rearm"`
State string `json:"state"`
UpdatedAt time.Time `json:"updated_at"`
User User `json:"user"`
}
type AlertOptions ¶
type AlertSubscription ¶
type AlertSubscription struct {
AlertID int `json:"alert_id"`
Destination *Destination `json:"destination"`
ID int `json:"id"`
User User `json:"user"`
}
type Client ¶
type Client struct {
Debug bool
// contains filtered or unexported fields
}
func MustNewClient ¶ added in v0.20.0
func MustNewClientWithHTTPClient ¶ added in v0.20.0
func NewClientWithHTTPClient ¶ added in v0.5.1
func (*Client) AddAlertSubscription ¶
func (*Client) AddGroupDataSource ¶
func (*Client) AddGroupMember ¶
func (*Client) CreateAlert ¶
func (*Client) CreateDashboard ¶
func (*Client) CreateDataSource ¶
func (client *Client) CreateDataSource(ctx context.Context, input *CreateDataSourceInput) (*DataSource, error)
func (*Client) CreateDestination ¶
func (client *Client) CreateDestination(ctx context.Context, input *CreateDestinationInput) (*Destination, error)
func (*Client) CreateFavoriteQuery ¶
func (*Client) CreateGroup ¶
func (*Client) CreateQuery ¶
func (*Client) CreateQuerySnippet ¶ added in v0.3.0
func (client *Client) CreateQuerySnippet(ctx context.Context, input *CreateQuerySnippetInput) (*QuerySnippet, error)
func (*Client) CreateUser ¶
func (*Client) CreateWidget ¶
func (*Client) DeleteDataSource ¶
func (*Client) DeleteDestination ¶
func (*Client) DeleteQuerySnippet ¶ added in v0.3.0
func (*Client) DeleteUser ¶ added in v0.12.0
func (*Client) DeleteWidget ¶ added in v0.7.0
func (*Client) DisableUser ¶
func (*Client) EnableUser ¶ added in v0.12.0
func (*Client) ExecQueryJSON ¶
func (*Client) FormatQuery ¶ added in v0.23.0
func (*Client) GetAdminQueriesOutdated ¶ added in v0.8.0
func (client *Client) GetAdminQueriesOutdated(ctx context.Context) (*AdminQueriesOutdated, error)
func (*Client) GetAdminQueriesRqStatus ¶ added in v0.8.0
func (client *Client) GetAdminQueriesRqStatus(ctx context.Context) (*AdminQuerisRqStatus, error)
func (*Client) GetDashboardTags ¶ added in v0.13.0
func (client *Client) GetDashboardTags(ctx context.Context) (*DashboardTags, error)
func (*Client) GetDataSource ¶
func (*Client) GetDataSourceTypes ¶ added in v0.14.0
func (client *Client) GetDataSourceTypes(ctx context.Context) ([]DataSourceType, error)
func (*Client) GetDestination ¶
func (*Client) GetDestinationTypes ¶ added in v0.14.0
func (client *Client) GetDestinationTypes(ctx context.Context) ([]DestinationType, error)
func (*Client) GetOrganizationStatus ¶ added in v0.22.0
func (client *Client) GetOrganizationStatus(ctx context.Context) (*OrganizationStatus, error)
func (*Client) GetQueryResults ¶
func (*Client) GetQueryResultsCSV ¶
func (*Client) GetQueryResultsJSON ¶
func (*Client) GetQuerySnippet ¶ added in v0.3.0
func (*Client) GetQueryTags ¶ added in v0.13.0
func (*Client) GetSession ¶ added in v0.5.0
func (*Client) GetSettingsOrganization ¶ added in v0.25.0
func (client *Client) GetSettingsOrganization(ctx context.Context) (*SettingsOrganization, error)
func (*Client) ListAlertSubscriptions ¶
func (*Client) ListDashboards ¶
func (client *Client) ListDashboards(ctx context.Context, input *ListDashboardsInput) (*DashboardPage, error)
func (*Client) ListDataSources ¶
func (client *Client) ListDataSources(ctx context.Context) ([]DataSource, error)
func (*Client) ListDestinations ¶
func (client *Client) ListDestinations(ctx context.Context) ([]Destination, error)
func (*Client) ListEvents ¶ added in v0.9.0
func (*Client) ListFavoriteDashboards ¶ added in v0.19.0
func (client *Client) ListFavoriteDashboards(ctx context.Context, input *ListFavoriteDashboardsInput) (*DashboardPage, error)
func (*Client) ListFavoriteQueries ¶ added in v0.19.0
func (*Client) ListGroupDataSources ¶
func (*Client) ListGroupMembers ¶
func (*Client) ListMyDashboards ¶ added in v0.19.0
func (client *Client) ListMyDashboards(ctx context.Context, input *ListMyDashboardsInput) (*DashboardPage, error)
func (*Client) ListMyQueries ¶ added in v0.19.0
func (*Client) ListQueries ¶
func (*Client) ListQuerySnippets ¶ added in v0.3.0
func (client *Client) ListQuerySnippets(ctx context.Context) ([]QuerySnippet, error)
func (*Client) ListRecentQueries ¶ added in v0.24.0
func (*Client) PauseDataSource ¶ added in v0.11.0
func (client *Client) PauseDataSource(ctx context.Context, id int, input *PauseDataSourceInput) (*DataSource, error)
func (*Client) RefreshQuery ¶ added in v0.16.0
func (*Client) RemoveAlertSubscription ¶
func (*Client) RemoveGroupDataSource ¶
func (*Client) RemoveGroupMember ¶
func (*Client) ResumeDataSource ¶ added in v0.11.0
func (*Client) SearchQueries ¶ added in v0.17.0
func (*Client) ShareDashboard ¶ added in v0.21.0
func (*Client) TestDataSource ¶ added in v0.11.0
func (*Client) UnmuteAlert ¶ added in v0.15.0
func (*Client) UnshareDashboard ¶ added in v0.21.0
func (*Client) UpdateAlert ¶
func (*Client) UpdateDashboard ¶
func (*Client) UpdateDataSource ¶
func (client *Client) UpdateDataSource(ctx context.Context, id int, input *UpdateDataSourceInput) (*DataSource, error)
func (*Client) UpdateGroupDataSource ¶
func (client *Client) UpdateGroupDataSource(ctx context.Context, id int, dsId int, input *UpdateGroupDataSourceInput) (*DataSource, error)
func (*Client) UpdateQuery ¶
func (*Client) UpdateQuerySnippet ¶ added in v0.3.0
func (client *Client) UpdateQuerySnippet(ctx context.Context, id int, input *UpdateQuerySnippetInput) (*QuerySnippet, error)
func (*Client) UpdateSettingsOrganization ¶ added in v0.25.0
func (client *Client) UpdateSettingsOrganization(ctx context.Context, input *UpdateSettingsOrganizationInput) (*SettingsOrganization, error)
func (*Client) UpdateUser ¶ added in v1.2.0
func (*Client) UpdateVisualization ¶
func (client *Client) UpdateVisualization(ctx context.Context, id int, input *UpdateVisualizationInput) (*Visualization, error)
func (*Client) WithoutContext ¶ added in v0.10.0
func (client *Client) WithoutContext() *ClientWithoutContext
type ClientConfig ¶ added in v0.2.0
type ClientConfig struct {
AllowCustomJSVisualizations bool `json:"allowCustomJSVisualizations"`
AllowScriptsInUserInput bool `json:"allowScriptsInUserInput"`
AutoPublishNamedQueries bool `json:"autoPublishNamedQueries"`
BasePath string `json:"basePath"`
DashboardRefreshIntervals []int `json:"dashboardRefreshIntervals"`
DateFormat string `json:"dateFormat"`
DateFormatList []string `json:"dateFormatList"`
DateTimeFormat string `json:"dateTimeFormat"`
ExtendedAlertOptions bool `json:"extendedAlertOptions"`
FloatFormat string `json:"floatFormat"`
GoogleLoginEnabled bool `json:"googleLoginEnabled"`
IntegerFormat string `json:"integerFormat"`
MailSettingsMissing bool `json:"mailSettingsMissing"`
NewVersionAvailable bool `json:"newVersionAvailable"`
PageSize int `json:"pageSize"`
PageSizeOptions []int `json:"pageSizeOptions"`
QueryRefreshIntervals []int `json:"queryRefreshIntervals"`
ShowBeaconConsentMessage bool `json:"showBeaconConsentMessage"`
ShowPermissionsControl bool `json:"showPermissionsControl"`
TableCellMaxJSONSize int `json:"tableCellMaxJSONSize"`
TimeFormatList []string `json:"timeFormatList"`
Version string `json:"version"`
}
type ClientWithoutContext ¶ added in v0.10.0
type ClientWithoutContext struct {
// contains filtered or unexported fields
}
func (*ClientWithoutContext) AddAlertSubscription ¶ added in v0.10.0
func (client *ClientWithoutContext) AddAlertSubscription(id int, destinationId int) (*AlertSubscription, error)
func (*ClientWithoutContext) AddGroupDataSource ¶ added in v0.10.0
func (client *ClientWithoutContext) AddGroupDataSource(id int, dsId int) (*DataSource, error)
func (*ClientWithoutContext) AddGroupMember ¶ added in v0.10.0
func (client *ClientWithoutContext) AddGroupMember(id int, userId int) (*User, error)
func (*ClientWithoutContext) ArchiveDashboard ¶ added in v0.10.0
func (client *ClientWithoutContext) ArchiveDashboard(idOrSlug any) error
func (*ClientWithoutContext) ArchiveQuery ¶ added in v0.10.0
func (client *ClientWithoutContext) ArchiveQuery(id int) error
func (*ClientWithoutContext) CreateAlert ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateAlert(input *CreateAlertInput) (*Alert, error)
func (*ClientWithoutContext) CreateDashboard ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateDashboard(input *CreateDashboardInput) (*Dashboard, error)
func (*ClientWithoutContext) CreateDataSource ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateDataSource(input *CreateDataSourceInput) (*DataSource, error)
func (*ClientWithoutContext) CreateDestination ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateDestination(input *CreateDestinationInput) (*Destination, error)
func (*ClientWithoutContext) CreateFavoriteDashboard ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateFavoriteDashboard(idOrSlug any) error
func (*ClientWithoutContext) CreateFavoriteQuery ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateFavoriteQuery(id int) error
func (*ClientWithoutContext) CreateGroup ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateGroup(input *CreateGroupInput) (*Group, error)
func (*ClientWithoutContext) CreateQuery ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateQuery(input *CreateQueryInput) (*Query, error)
func (*ClientWithoutContext) CreateQuerySnippet ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateQuerySnippet(input *CreateQuerySnippetInput) (*QuerySnippet, error)
func (*ClientWithoutContext) CreateUser ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateUser(input *CreateUsersInput) (*User, error)
func (*ClientWithoutContext) CreateWidget ¶ added in v0.10.0
func (client *ClientWithoutContext) CreateWidget(input *CreateWidgetInput) (*Widget, error)
func (*ClientWithoutContext) DeleteAlert ¶ added in v0.10.0
func (client *ClientWithoutContext) DeleteAlert(id int) error
func (*ClientWithoutContext) DeleteDataSource ¶ added in v0.10.0
func (client *ClientWithoutContext) DeleteDataSource(id int) error
func (*ClientWithoutContext) DeleteDestination ¶ added in v0.10.0
func (client *ClientWithoutContext) DeleteDestination(id int) error
func (*ClientWithoutContext) DeleteGroup ¶ added in v0.10.0
func (client *ClientWithoutContext) DeleteGroup(id int) error
func (*ClientWithoutContext) DeleteQuerySnippet ¶ added in v0.10.0
func (client *ClientWithoutContext) DeleteQuerySnippet(id int) error
func (*ClientWithoutContext) DeleteUser ¶ added in v0.12.0
func (client *ClientWithoutContext) DeleteUser(id int) error
func (*ClientWithoutContext) DeleteWidget ¶ added in v0.10.0
func (client *ClientWithoutContext) DeleteWidget(id int) error
func (*ClientWithoutContext) DisableUser ¶ added in v0.10.0
func (client *ClientWithoutContext) DisableUser(id int) (*User, error)
func (*ClientWithoutContext) EnableUser ¶ added in v0.12.0
func (client *ClientWithoutContext) EnableUser(id int) (*User, error)
func (*ClientWithoutContext) ExecQueryJSON ¶ added in v0.10.0
func (client *ClientWithoutContext) ExecQueryJSON(id int, out io.Writer) (*JobResponse, error)
func (*ClientWithoutContext) ForkQuery ¶ added in v0.10.0
func (client *ClientWithoutContext) ForkQuery(id int) (*Query, error)
func (*ClientWithoutContext) FormatQuery ¶ added in v0.23.0
func (client *ClientWithoutContext) FormatQuery(query string) (*FormatQueryOutput, error)
func (*ClientWithoutContext) GetAdminQueriesOutdated ¶ added in v0.10.0
func (client *ClientWithoutContext) GetAdminQueriesOutdated() (*AdminQueriesOutdated, error)
func (*ClientWithoutContext) GetAdminQueriesRqStatus ¶ added in v0.10.0
func (client *ClientWithoutContext) GetAdminQueriesRqStatus() (*AdminQuerisRqStatus, error)
func (*ClientWithoutContext) GetAlert ¶ added in v0.10.0
func (client *ClientWithoutContext) GetAlert(id int) (*Alert, error)
func (*ClientWithoutContext) GetConfig ¶ added in v0.10.0
func (client *ClientWithoutContext) GetConfig() (*Config, error)
func (*ClientWithoutContext) GetDashboard ¶ added in v0.10.0
func (client *ClientWithoutContext) GetDashboard(idOrSlug any) (*Dashboard, error)
func (*ClientWithoutContext) GetDashboardTags ¶ added in v0.13.0
func (client *ClientWithoutContext) GetDashboardTags() (*DashboardTags, error)
func (*ClientWithoutContext) GetDataSource ¶ added in v0.10.0
func (client *ClientWithoutContext) GetDataSource(id int) (*DataSource, error)
func (*ClientWithoutContext) GetDataSourceTypes ¶ added in v0.14.0
func (client *ClientWithoutContext) GetDataSourceTypes() ([]DataSourceType, error)
func (*ClientWithoutContext) GetDestination ¶ added in v0.10.0
func (client *ClientWithoutContext) GetDestination(id int) (*Destination, error)
func (*ClientWithoutContext) GetDestinationTypes ¶ added in v0.14.0
func (client *ClientWithoutContext) GetDestinationTypes() ([]DestinationType, error)
func (*ClientWithoutContext) GetGroup ¶ added in v0.10.0
func (client *ClientWithoutContext) GetGroup(id int) (*Group, error)
func (*ClientWithoutContext) GetJob ¶ added in v0.10.0
func (client *ClientWithoutContext) GetJob(id string) (*JobResponse, error)
func (*ClientWithoutContext) GetOrganizationStatus ¶ added in v0.22.0
func (client *ClientWithoutContext) GetOrganizationStatus() (*OrganizationStatus, error)
func (*ClientWithoutContext) GetQuery ¶ added in v0.10.0
func (client *ClientWithoutContext) GetQuery(id int) (*Query, error)
func (*ClientWithoutContext) GetQueryResults ¶ added in v0.10.0
func (*ClientWithoutContext) GetQueryResultsCSV ¶ added in v0.10.0
func (client *ClientWithoutContext) GetQueryResultsCSV(id int, out io.Writer) error
func (*ClientWithoutContext) GetQueryResultsJSON ¶ added in v0.10.0
func (client *ClientWithoutContext) GetQueryResultsJSON(id int, out io.Writer) error
func (*ClientWithoutContext) GetQuerySnippet ¶ added in v0.10.0
func (client *ClientWithoutContext) GetQuerySnippet(id int) (*QuerySnippet, error)
func (*ClientWithoutContext) GetQueryTags ¶ added in v0.13.0
func (client *ClientWithoutContext) GetQueryTags() (*QueryTags, error)
func (*ClientWithoutContext) GetSession ¶ added in v0.10.0
func (client *ClientWithoutContext) GetSession() (*Session, error)
func (*ClientWithoutContext) GetSettingsOrganization ¶ added in v0.25.0
func (client *ClientWithoutContext) GetSettingsOrganization() (*SettingsOrganization, error)
func (*ClientWithoutContext) GetStatus ¶ added in v0.10.0
func (client *ClientWithoutContext) GetStatus() (*Status, error)
func (*ClientWithoutContext) GetUser ¶ added in v0.10.0
func (client *ClientWithoutContext) GetUser(id int) (*User, error)
func (*ClientWithoutContext) ListAlertSubscriptions ¶ added in v0.10.0
func (client *ClientWithoutContext) ListAlertSubscriptions(id int) ([]AlertSubscription, error)
func (*ClientWithoutContext) ListAlerts ¶ added in v0.10.0
func (client *ClientWithoutContext) ListAlerts() ([]Alert, error)
func (*ClientWithoutContext) ListDashboards ¶ added in v0.10.0
func (client *ClientWithoutContext) ListDashboards(input *ListDashboardsInput) (*DashboardPage, error)
func (*ClientWithoutContext) ListDataSources ¶ added in v0.10.0
func (client *ClientWithoutContext) ListDataSources() ([]DataSource, error)
func (*ClientWithoutContext) ListDestinations ¶ added in v0.10.0
func (client *ClientWithoutContext) ListDestinations() ([]Destination, error)
func (*ClientWithoutContext) ListEvents ¶ added in v0.10.0
func (client *ClientWithoutContext) ListEvents(input *ListEventsInput) (*EventPage, error)
func (*ClientWithoutContext) ListFavoriteDashboards ¶ added in v0.19.0
func (client *ClientWithoutContext) ListFavoriteDashboards(input *ListFavoriteDashboardsInput) (*DashboardPage, error)
func (*ClientWithoutContext) ListFavoriteQueries ¶ added in v0.19.0
func (client *ClientWithoutContext) ListFavoriteQueries(input *ListFavoriteQueriesInput) (*QueryPage, error)
func (*ClientWithoutContext) ListGroupDataSources ¶ added in v0.10.0
func (client *ClientWithoutContext) ListGroupDataSources(id int) ([]DataSource, error)
func (*ClientWithoutContext) ListGroupMembers ¶ added in v0.10.0
func (client *ClientWithoutContext) ListGroupMembers(id int) ([]User, error)
func (*ClientWithoutContext) ListGroups ¶ added in v0.10.0
func (client *ClientWithoutContext) ListGroups() ([]Group, error)
func (*ClientWithoutContext) ListMyDashboards ¶ added in v0.19.0
func (client *ClientWithoutContext) ListMyDashboards(input *ListMyDashboardsInput) (*DashboardPage, error)
func (*ClientWithoutContext) ListMyQueries ¶ added in v0.19.0
func (client *ClientWithoutContext) ListMyQueries(input *ListMyQueriesInput) (*QueryPage, error)
func (*ClientWithoutContext) ListQueries ¶ added in v0.10.0
func (client *ClientWithoutContext) ListQueries(input *ListQueriesInput) (*QueryPage, error)
func (*ClientWithoutContext) ListQuerySnippets ¶ added in v0.10.0
func (client *ClientWithoutContext) ListQuerySnippets() ([]QuerySnippet, error)
func (*ClientWithoutContext) ListRecentQueries ¶ added in v0.24.0
func (client *ClientWithoutContext) ListRecentQueries() ([]Query, error)
func (*ClientWithoutContext) ListUsers ¶ added in v0.10.0
func (client *ClientWithoutContext) ListUsers(input *ListUsersInput) (*UserPage, error)
func (*ClientWithoutContext) MuteAlert ¶ added in v0.15.0
func (client *ClientWithoutContext) MuteAlert(id int) error
func (*ClientWithoutContext) PauseDataSource ¶ added in v0.11.0
func (client *ClientWithoutContext) PauseDataSource(id int, input *PauseDataSourceInput) (*DataSource, error)
func (*ClientWithoutContext) Ping ¶ added in v0.13.0
func (client *ClientWithoutContext) Ping() error
func (*ClientWithoutContext) RefreshQuery ¶ added in v0.16.0
func (client *ClientWithoutContext) RefreshQuery(id int) (*JobResponse, error)
func (*ClientWithoutContext) RemoveAlertSubscription ¶ added in v0.10.0
func (client *ClientWithoutContext) RemoveAlertSubscription(id int, subscriptionId int) error
func (*ClientWithoutContext) RemoveGroupDataSource ¶ added in v0.10.0
func (client *ClientWithoutContext) RemoveGroupDataSource(id int, dsId int) error
func (*ClientWithoutContext) RemoveGroupMember ¶ added in v0.10.0
func (client *ClientWithoutContext) RemoveGroupMember(id int, userId int) error
func (*ClientWithoutContext) ResumeDataSource ¶ added in v0.11.0
func (client *ClientWithoutContext) ResumeDataSource(id int) (*DataSource, error)
func (*ClientWithoutContext) SearchQueries ¶ added in v0.17.0
func (client *ClientWithoutContext) SearchQueries(input *SearchQueriesInput) (*QueryPage, error)
func (*ClientWithoutContext) ShareDashboard ¶ added in v0.21.0
func (client *ClientWithoutContext) ShareDashboard(id int) (*ShareDashboardOutput, error)
func (*ClientWithoutContext) TestCredentials ¶ added in v0.10.0
func (client *ClientWithoutContext) TestCredentials() error
func (*ClientWithoutContext) TestDataSource ¶ added in v0.11.0
func (client *ClientWithoutContext) TestDataSource(id int) (*TestDataSourceOutput, error)
func (*ClientWithoutContext) UnmuteAlert ¶ added in v0.15.0
func (client *ClientWithoutContext) UnmuteAlert(id int) error
func (*ClientWithoutContext) UnshareDashboard ¶ added in v0.21.0
func (client *ClientWithoutContext) UnshareDashboard(id int) error
func (*ClientWithoutContext) UpdateAlert ¶ added in v0.10.0
func (client *ClientWithoutContext) UpdateAlert(id int, input *UpdateAlertInput) (*Alert, error)
func (*ClientWithoutContext) UpdateDashboard ¶ added in v0.10.0
func (client *ClientWithoutContext) UpdateDashboard(id int, input *UpdateDashboardInput) (*Dashboard, error)
func (*ClientWithoutContext) UpdateDataSource ¶ added in v0.10.0
func (client *ClientWithoutContext) UpdateDataSource(id int, input *UpdateDataSourceInput) (*DataSource, error)
func (*ClientWithoutContext) UpdateGroupDataSource ¶ added in v0.10.0
func (client *ClientWithoutContext) UpdateGroupDataSource(id int, dsId int, input *UpdateGroupDataSourceInput) (*DataSource, error)
func (*ClientWithoutContext) UpdateQuery ¶ added in v0.10.0
func (client *ClientWithoutContext) UpdateQuery(id int, input *UpdateQueryInput) (*Query, error)
func (*ClientWithoutContext) UpdateQuerySnippet ¶ added in v0.10.0
func (client *ClientWithoutContext) UpdateQuerySnippet(id int, input *UpdateQuerySnippetInput) (*QuerySnippet, error)
func (*ClientWithoutContext) UpdateSettingsOrganization ¶ added in v0.25.0
func (client *ClientWithoutContext) UpdateSettingsOrganization(input *UpdateSettingsOrganizationInput) (*SettingsOrganization, error)
func (*ClientWithoutContext) UpdateUser ¶ added in v1.2.0
func (client *ClientWithoutContext) UpdateUser(id int, input *UpdateUserInput) (*User, error)
func (*ClientWithoutContext) UpdateVisualization ¶ added in v0.10.0
func (client *ClientWithoutContext) UpdateVisualization(id int, input *UpdateVisualizationInput) (*Visualization, error)
type Config ¶ added in v0.2.0
type Config struct {
ClientConfig ClientConfig `json:"client_config"`
OrgSlug string `json:"org_slug"`
}
type CreateAlertInput ¶
type CreateAlertInput struct {
Name string `json:"name"`
Options CreateAlertOptions `json:"options"`
QueryId int `json:"query_id"`
Rearm int `json:"rearm,omitempty"`
}
type CreateAlertOptions ¶
type CreateAlertOptions struct {
Column string `json:"column"`
Op string `json:"op"`
Value int `json:"value"`
CustomSubject string `json:"custom_subject,omitempty"`
CustomBody string `json:"custom_body,omitempty"`
// Deprecated: for backward compatibility
Template string `json:"template,omitempty"`
}
type CreateDashboardInput ¶
type CreateDashboardInput struct {
Name string `json:"name"`
}
type CreateDataSourceInput ¶
type CreateDestinationInput ¶
type CreateGroupInput ¶
type CreateGroupInput struct {
Name string `json:"name"`
}
type CreateQueryInput ¶
type CreateQueryInput struct {
DataSourceID int `json:"data_source_id"`
Description string `json:"description,omitempty"`
Name string `json:"name"`
Options *CreateQueryInputOptions `json:"options,omitempty"`
Query string `json:"query"`
Schedule *CreateQueryInputSchedule `json:"schedule,omitempty"`
Tags []string `json:"tags,omitempty"`
}
type CreateQueryInputOptions ¶
type CreateQuerySnippetInput ¶ added in v0.3.0
type CreateUsersInput ¶
type CreateWidgetInput ¶
type Dashboard ¶
type Dashboard struct {
CanEdit bool `json:"can_edit"`
CreatedAt time.Time `json:"created_at"`
DashboardFiltersEnabled bool `json:"dashboard_filters_enabled"`
ID int `json:"id"`
IsArchived bool `json:"is_archived"`
IsDraft bool `json:"is_draft"`
IsFavorite bool `json:"is_favorite"`
Layout any `json:"layout"`
Name string `json:"name"`
Slug string `json:"slug"`
Tags []string `json:"tags"`
UpdatedAt time.Time `json:"updated_at"`
User User `json:"user"`
UserID int `json:"user_id"`
Version int `json:"version"`
Widgets []Widget `json:"widgets"`
}
type DashboardPage ¶
type DashboardTags ¶ added in v0.13.0
type DashboardTags struct {
Tags []DashboardTagsTag `json:"tags"`
}
type DashboardTagsTag ¶ added in v0.13.0
type DataSource ¶
type DataSource struct {
Groups map[int]bool `json:"groups"`
ID int `json:"id"`
Name string `json:"name"`
Options map[string]any `json:"options"`
Paused int `json:"paused"`
PauseReason string `json:"pause_reason"`
QueueName string `json:"queue_name"`
ScheduledQueueName string `json:"scheduled_queue_name"`
Syntax string `json:"syntax"`
Type string `json:"type"`
ViewOnly bool `json:"view_only"`
}
type DataSourceType ¶ added in v0.14.0
type DataSourceType struct {
ConfigurationSchema DataSourceTypeConfigurationSchema `json:"configuration_schema"`
Name string `json:"name"`
Type string `json:"type"`
}
type DataSourceTypeConfigurationSchema ¶ added in v0.14.0
type DataSourceTypeConfigurationSchema struct {
ExtraOptions []string `json:"extra_options"`
Order []string `json:"order"`
Properties map[string]DataSourceTypeConfigurationSchemaProperty `json:"properties"`
Required []string `json:"required"`
Secret []string `json:"secret"`
Type string `json:"type"`
}
type DataSourceTypeConfigurationSchemaProperty ¶ added in v0.14.0
type Destination ¶
type DestinationType ¶ added in v0.14.0
type DestinationType struct {
ConfigurationSchema DestinationTypeConfigurationSchema `json:"configuration_schema"`
Icon string `json:"icon"`
Name string `json:"name"`
Type string `json:"type"`
}
type DestinationTypeConfigurationSchema ¶ added in v0.14.0
type DestinationTypeConfigurationSchemaProperty ¶ added in v0.14.0
type Event ¶ added in v0.9.0
type Event struct {
Action string `json:"action"`
Browser string `json:"browser"`
CreatedAt time.Time `json:"created_at"`
Details map[string]string `json:"details"`
Location string `json:"location"`
ObjectID string `json:"object_id"`
ObjectType string `json:"object_type"`
OrgID int `json:"org_id"`
UserID int `json:"user_id"`
UserName string `json:"user_name"`
}
type FormatQueryOutput ¶ added in v0.23.0
type FormatQueryOutput struct {
Query string `json:"query"`
}
type JobResponse ¶
type JobResponse struct {
Job Job `json:"job"`
}
type ListDashboardsInput ¶
type ListEventsInput ¶ added in v0.9.0
type ListFavoriteDashboardsInput ¶ added in v0.19.0
type ListFavoriteQueriesInput ¶ added in v0.19.0
type ListMyDashboardsInput ¶ added in v0.19.0
type ListMyQueriesInput ¶ added in v0.19.0
type ListQueriesInput ¶
type ListUsersInput ¶
type OrganizationStatus ¶ added in v0.22.0
type OrganizationStatus struct {
ObjectCounters OrganizationStatusObjectCounters `json:"object_counters"`
}
type OrganizationStatusObjectCounters ¶ added in v0.22.0
type PauseDataSourceInput ¶ added in v0.11.0
type PauseDataSourceInput struct {
Reason string `json:"reason,omitempty"`
}
type Query ¶
type Query struct {
APIKey string `json:"api_key"`
CanEdit bool `json:"can_edit"`
CreatedAt time.Time `json:"created_at"`
DataSourceID int `json:"data_source_id"`
Description string `json:"description"`
ID int `json:"id"`
IsArchived bool `json:"is_archived"`
IsDraft bool `json:"is_draft"`
IsFavorite bool `json:"is_favorite"`
IsSafe bool `json:"is_safe"`
LastModifiedBy *User `json:"last_modified_by"`
LastModifiedByID int `json:"last_modified_by_id"`
LatestQueryDataID int `json:"latest_query_data_id"`
Name string `json:"name"`
Options QueryOptions `json:"options"`
Query string `json:"query"`
QueryHash string `json:"query_hash"`
RetrievedAt time.Time `json:"retrieved_at"`
Runtime float64 `json:"runtime"`
Schedule *QueueSchedule `json:"schedule"`
Tags []string `json:"tags"`
UpdatedAt time.Time `json:"updated_at"`
User User `json:"user"`
Version int `json:"version"`
Visualizations []Visualization `json:"visualizations"`
}
type QueryOptions ¶
type QuerySnippet ¶ added in v0.3.0
type QueryTags ¶ added in v0.13.0
type QueryTags struct {
Tags []QueryTagsTag `json:"tags"`
}
type QueryTagsTag ¶ added in v0.13.0
type QueueSchedule ¶
type SearchQueriesInput ¶ added in v0.17.0
type SearchQueriesInput struct {
Q string `url:"q"`
}
type Session ¶ added in v0.5.0
type Session struct {
ClientConfig ClientConfig `json:"client_config"`
Messages []string `json:"messages"`
OrgSlug string `json:"org_slug"`
User User `json:"user"`
}
type SettingsOrganization ¶ added in v0.25.0
type SettingsOrganization struct {
SettingsOrganizationSettings `json:"settings"`
}
type SettingsOrganizationSettings ¶ added in v0.25.0
type SettingsOrganizationSettings struct {
AuthGoogleAppsDomains []string `json:"auth_google_apps_domains"`
AuthJwtAuthAlgorithms []string `json:"auth_jwt_auth_algorithms"`
AuthJwtAuthAudience string `json:"auth_jwt_auth_audience"`
AuthJwtAuthCookieName string `json:"auth_jwt_auth_cookie_name"`
AuthJwtAuthHeaderName string `json:"auth_jwt_auth_header_name"`
AuthJwtAuthIssuer string `json:"auth_jwt_auth_issuer"`
AuthJwtAuthPublicCertsURL string `json:"auth_jwt_auth_public_certs_url"`
AuthJwtLoginEnabled bool `json:"auth_jwt_login_enabled"`
AuthPasswordLoginEnabled bool `json:"auth_password_login_enabled"`
AuthSamlEnabled bool `json:"auth_saml_enabled"`
AuthSamlEntityID string `json:"auth_saml_entity_id"`
AuthSamlMetadataURL string `json:"auth_saml_metadata_url"`
AuthSamlNameidFormat string `json:"auth_saml_nameid_format"`
AuthSamlSsoURL string `json:"auth_saml_sso_url"`
AuthSamlType string `json:"auth_saml_type"`
AuthSamlX509Cert string `json:"auth_saml_x509_cert"`
BeaconConsent bool `json:"beacon_consent"`
DateFormat string `json:"date_format"`
DisablePublicUrls bool `json:"disable_public_urls"`
FeatureShowPermissionsControl bool `json:"feature_show_permissions_control"`
FloatFormat string `json:"float_format"`
HidePlotlyModeBar bool `json:"hide_plotly_mode_bar"`
IntegerFormat string `json:"integer_format"`
MultiByteSearchEnabled bool `json:"multi_byte_search_enabled"`
SendEmailOnFailedScheduledQueries bool `json:"send_email_on_failed_scheduled_queries"`
TimeFormat string `json:"time_format"`
}
type ShareDashboardOutput ¶ added in v0.21.0
type ShareDashboardOutput struct {
}
type Status ¶ added in v0.5.0
type Status struct {
DashboardsCount int `json:"dashboards_count"`
DatabaseMetrics StatusDatabaseMetrics `json:"database_metrics"`
Manager StatusManager `json:"manager"`
QueriesCount int `json:"queries_count"`
QueryResultsCount int `json:"query_results_count"`
RedisUsedMemory int `json:"redis_used_memory"`
RedisUsedMemoryHuman string `json:"redis_used_memory_human"`
UnusedQueryResultsCount int `json:"unused_query_results_count"`
Version string `json:"version"`
WidgetsCount int `json:"widgets_count"`
Workers []any `json:"workers"`
}
type StatusDatabaseMetrics ¶ added in v0.5.0
type StatusDatabaseMetrics struct {
Metrics [][]any `json:"metrics"`
}
type StatusManager ¶ added in v0.5.0
type StatusManager struct {
LastRefreshAt string `json:"last_refresh_at"`
OutdatedQueriesCount string `json:"outdated_queries_count"`
QueryIds string `json:"query_ids"`
Queues StatusManagerQueues `json:"queues"`
}
type StatusManagerQueues ¶ added in v0.5.0
type StatusManagerQueues struct {
Celery StatusManagerQueuesCelery `json:"celery"`
Queries StatusManagerQueuesQueries `json:"queries"`
ScheduledQueries StatusManagerQueuesScheduledQueries `json:"scheduled_queries"`
}
type StatusManagerQueuesCelery ¶ added in v0.5.0
type StatusManagerQueuesCelery struct {
Size int `json:"size"`
}
type StatusManagerQueuesQueries ¶ added in v0.5.0
type StatusManagerQueuesQueries struct {
Size int `json:"size"`
}
type StatusManagerQueuesScheduledQueries ¶ added in v0.5.0
type StatusManagerQueuesScheduledQueries struct {
Size int `json:"size"`
}
type TestDataSourceOutput ¶ added in v0.11.0
type UpdateAlertInput ¶
type UpdateAlertInput struct {
Name string `json:"name,omitempty"`
Options *UpdateAlertOptions `json:"options,omitempty"`
QueryId int `json:"query_id,omitempty"`
Rearm int `json:"rearm"`
}
type UpdateAlertOptions ¶
type UpdateAlertOptions struct {
Column string `json:"column"`
Value int `json:"value"`
Op string `json:"op"`
CustomSubject string `json:"custom_subject,omitempty"`
CustomBody string `json:"custom_body,omitempty"`
// Deprecated: for backward compatibility
Template string `json:"template,omitempty"`
}
type UpdateDashboardInput ¶
type UpdateDashboardInput struct {
DashboardFiltersEnabled bool `json:"dashboard_filters_enabled,omitempty"`
IsArchived bool `json:"is_archived,omitempty"`
IsDraft bool `json:"is_draft,omitempty"`
Layout []any `json:"layout,omitempty"`
Name string `json:"name,omitempty"`
Options any `json:"options,omitempty"`
Tags *[]string `json:"tags,omitempty"`
Version int `json:"version,omitempty"`
}
type UpdateDataSourceInput ¶
type UpdateGroupDataSourceInput ¶
type UpdateGroupDataSourceInput struct {
ViewOnly bool `json:"view_only"`
}
type UpdateQueryInput ¶
type UpdateQueryInput struct {
DataSourceID int `json:"data_source_id,omitempty"`
Description string `json:"description,omitempty"`
Name string `json:"name,omitempty"`
Options *UpdateQueryInputOptions `json:"options,omitempty"`
Query string `json:"query,omitempty"`
Schedule *UpdateQueryInputSchedule `json:"schedule,omitempty"`
Tags *[]string `json:"tags,omitempty"`
}
type UpdateQueryInputOptions ¶
type UpdateQuerySnippetInput ¶ added in v0.3.0
type UpdateSettingsOrganizationInput ¶ added in v0.25.0
type UpdateSettingsOrganizationInput struct {
AuthGoogleAppsDomains []string `json:"auth_google_apps_domains,omitempty"`
AuthJwtAuthAlgorithms []string `json:"auth_jwt_auth_algorithms,omitempty"`
AuthJwtAuthAudience string `json:"auth_jwt_auth_audience,omitempty"`
AuthJwtAuthCookieName string `json:"auth_jwt_auth_cookie_name,omitempty"`
AuthJwtAuthHeaderName string `json:"auth_jwt_auth_header_name,omitempty"`
AuthJwtAuthIssuer string `json:"auth_jwt_auth_issuer,omitempty"`
AuthJwtAuthPublicCertsURL string `json:"auth_jwt_auth_public_certs_url,omitempty"`
AuthJwtLoginEnabled bool `json:"auth_jwt_login_enabled,omitempty"`
AuthPasswordLoginEnabled bool `json:"auth_password_login_enabled,omitempty"`
AuthSamlEnabled bool `json:"auth_saml_enabled,omitempty"`
AuthSamlEntityID string `json:"auth_saml_entity_id,omitempty"`
AuthSamlMetadataURL string `json:"auth_saml_metadata_url,omitempty"`
AuthSamlNameidFormat string `json:"auth_saml_nameid_format,omitempty"`
AuthSamlSsoURL string `json:"auth_saml_sso_url,omitempty"`
AuthSamlType string `json:"auth_saml_type,omitempty"`
AuthSamlX509Cert string `json:"auth_saml_x509_cert,omitempty"`
BeaconConsent bool `json:"beacon_consent,omitempty"`
DateFormat string `json:"date_format,omitempty"`
DisablePublicUrls bool `json:"disable_public_urls,omitempty"`
FeatureShowPermissionsControl bool `json:"feature_show_permissions_control,omitempty"`
FloatFormat string `json:"float_format,omitempty"`
HidePlotlyModeBar bool `json:"hide_plotly_mode_bar,omitempty"`
IntegerFormat string `json:"integer_format,omitempty"`
MultiByteSearchEnabled bool `json:"multi_byte_search_enabled,omitempty"`
SendEmailOnFailedScheduledQueries bool `json:"send_email_on_failed_scheduled_queries,omitempty"`
TimeFormat string `json:"time_format,omitempty"`
}
type UpdateUserInput ¶ added in v1.2.0
type User ¶
type User struct {
ActiveAt time.Time `json:"active_at"`
APIKey string `json:"api_key"`
AuthType string `json:"auth_type"`
CreatedAt time.Time `json:"created_at"`
DisabledAt time.Time `json:"disabled_at"`
Email string `json:"email"`
Groups []any `json:"groups"`
ID int `json:"id"`
IsDisabled bool `json:"is_disabled"`
IsEmailVerified bool `json:"is_email_verified"`
IsInvitationPending bool `json:"is_invitation_pending"`
Name string `json:"name"`
ProfileImageURL string `json:"profile_image_url"`
UpdatedAt time.Time `json:"updated_at"`
}
type Visualization ¶
type Widget ¶
type Widget struct {
CreatedAt time.Time `json:"created_at"`
DashboardID int `json:"dashboard_id"`
ID int `json:"id"`
Options map[string]any `json:"options"`
Text string `json:"text"`
UpdatedAt time.Time `json:"updated_at"`
Visualization *Visualization `json:"visualization"`
Width int `json:"width"`
}
Source Files
¶
- admin.go
- admin_without_ctx.go
- alert.go
- alert_without_ctx.go
- client.go
- config.go
- config_without_ctx.go
- dashboard.go
- dashboard_without_ctx.go
- data_source.go
- data_source_without_ctx.go
- destinations.go
- destinations_without_ctx.go
- event.go
- event_without_ctx.go
- group.go
- group_without_ctx.go
- job.go
- job_without_ctx.go
- organization.go
- organization_without_ctx.go
- ping.go
- ping_without_ctx.go
- query.go
- query_snippet.go
- query_snippet_without_ctx.go
- query_without_ctx.go
- session.go
- session_without_ctx.go
- settings.go
- settings_without_ctx.go
- status.go
- status_without_ctx.go
- user.go
- user_without_ctx.go
- visualization.go
- visualization_without_ctx.go
- widget.go
- widget_without_ctx.go
Click to show internal directories.
Click to hide internal directories.