Class: Infrawrench::DashboardsDefaultNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs

Overview

client.dashboards.default

Instance Method Summary collapse

Constructor Details

#initialize(transport) ⇒ DashboardsDefaultNamespace

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of DashboardsDefaultNamespace.

Parameters:



6364
6365
6366
# File 'lib/infrawrench/client.rb', line 6364

def initialize(transport)
  @transport = transport
end

Instance Method Details

#full(org_id: nil, request_options: nil) ⇒ Hash

Get-or-create the default dashboard with its pins

Requires permission: dashboards:read.

GET /api/org/orgId/dashboards/default/full

Parameters:

  • org_id (String, nil) (defaults to: nil)

    Organization id. Defaults to the org_id the client was constructed with.

  • request_options (Hash, nil) (defaults to: nil)

    Per-call :headers, :timeout and :open_timeout.

  • org_id: (String, nil) (defaults to: nil)
  • request_options: (Hash[Symbol, untyped], nil) (defaults to: nil)

Returns:

  • (Hash)

    Parsed JSON, shaped as DashboardWithPins — see sig/infrawrench/sdk.rbs.

Raises:



6379
6380
6381
6382
6383
6384
6385
6386
# File 'lib/infrawrench/client.rb', line 6379

def full(org_id: nil, request_options: nil)
  @transport.request(
    http_method: "GET",
    path: "/api/org/{orgId}/dashboards/default/full",
    path_params: { "orgId" => org_id },
    request_options: request_options
  )
end