Newer Version Available

This content describes an older version of this product. View Latest

Lens Resource

Returns, deletes, or updates the lens with the specified ID or API name.
Resource URL
1/wave/lenses/<lensIdOrApiName>
Formats
JSON
Available Version
36.0
Available Components
HTTP Methods
GET DELETE PATCH
GET Response Body (LensRepresentation)

LensRepresentation inherits properties from the abstract BaseTemplatedAssetRepresentation. These base properties appear in LensRepresentation alongside the properties defined explicitly in the following table.

Property Name Type Description Filter Group and Version Available Version
allow​Preview Boolean Indicates whether the user is allowed to preview the lens. Small, 36.0 36.0
dataset Asset​Reference​Representation DEPRECATED A reference to the dataset used to create this lens. Small, 36.0 36.0-42.0
datasets Asset​Reference​Representation[] A list of the datasets that the lens uses. Small, 43.0 43.0
date​Version Integer The version of dates used by the lens. Valid values are:
  • 1
  • 2
Small, 44.0 44.0
files Lens​File​Representation[] The list of the lens files. Medium, 36.0 36.0
files​Url String The URL to the lens files. Small, 36.0 36.0
folder Asset​Reference​Representation A reference to the folder in which this lens is stored. Small, 36.0 36.0
histories​Url String The URL for the lens histories associated with this lens. Small, 44.0 44.0
refresh​Date Date The date of the most recent current dataset that is used by the lens, in ISO8601 date format. Small, 36.0 36.0
state Lens​State​Representation The state of the lens. Big, 36.0 36.0
visibility Connect​Wave​Asset​Visibility​Type Indicates whether the asset is hidden from users with view access or not. Valid values are:
  • All (Show all assets)
  • Limited (Hide assets from viewers with view access)
Small, 51.0 51.0
visualization​Type String The visualization type used for this lens. Valid values are: Valid values are:
  • Bullet
  • Calendar​Heat​Map
  • Combo
  • Comparison​Table
  • Flatgauge
  • Gauge
  • Heat​Map
  • Horizontal​Bar
  • Horizontal​Dot
  • Line
  • Matrix
  • Parallel​Coordinates
  • Pie
  • Pivot​Table
  • Polargauge
  • Pyramid
  • Rating
  • Scatter
  • Stack​Waterfall
  • Stacked​Horizontal​Bar
  • Stacked​Vertical​Bar
  • Time
  • Time​Bar
  • Time​Combo
  • Values​Table
  • Vertical​Bar
  • Vertical​Dot
  • Waterfall
Small, 36.0 36.0
PATCH Request Body (LensInputRepresentation)

LensInputRepresentation inherits properties from the abstract BaseAssetInputRepresentation. These base properties appear in LensInputRepresentation alongside the properties defined explicitly in the following table.

Property Name Type Description Required or Optional Available Version
datasets Asset​Reference​Input​Representation[] The list of dataset used to create this lens. Required for POST, optional for PATCH 43.0
folder Asset​Reference​Input​Representation The folder in which this lens is stored. Required for POST, optional for PATCH 36.0
history​label String The history label of the lens version being saved. Optional 46.0
state Lens​State​Input​Representation The state of the lens. Required for POST, optional for PATCH 36.0
visibility Connect​Wave​Asset​Visibility​Type Indicates whether the asset is hidden from users with view access or not. Valid values are:
  • All (Show all assets)
  • Limited (Hide assets from viewers with view access)
Optional 51.0
visualization​Type Connect​Wave​Visualization​Type​Enum The visualization type of the lens. Valid values are:
  • Bullet
  • Calendar​Heat​Map
  • Combo
  • Comparison​Table
  • Flatgauge
  • Gauge
  • Heat​Map
  • Horizontal​Bar
  • Horizontal​Dot
  • Line
  • Matrix
  • Parallel​Coordinates
  • Pie
  • Pivot​Table
  • Polargauge
  • Pyramid
  • Rating
  • Scatter
  • Stack​Waterfall
  • Stacked​Horizontal​Bar
  • Stacked​Vertical​Bar
  • Time
  • Time​Bar
  • Time​Combo
  • Values​Table
  • Vertical​Bar
  • Vertical​Dot
  • Waterfall
Required for POST, optional for PATCH 36.0
xmd Xmd​Input​Representation The asset XMD of the lens. Optional 43.0
PATCH Response Body (LensRepresentation)
Property Name Type Description Filter Group and Version Available Version
allow​Preview Boolean Indicates whether the user is allowed to preview the lens. Small, 36.0 36.0
dataset Asset​Reference​Representation DEPRECATED A reference to the dataset used to create this lens. Small, 36.0 36.0-42.0
datasets Asset​Reference​Representation[] A list of the datasets that the lens uses. Small, 43.0 43.0
date​Version Integer The version of dates used by the lens. Valid values are:
  • 1
  • 2
Small, 44.0 44.0
files Lens​File​Representation[] The list of the lens files. Medium, 36.0 36.0
files​Url String The URL to the lens files. Small, 36.0 36.0
folder Asset​Reference​Representation A reference to the folder in which this lens is stored. Small, 36.0 36.0
histories​Url String The URL for the lens histories associated with this lens. Small, 44.0 44.0
refresh​Date Date The date of the most recent current dataset that is used by the lens, in ISO8601 date format. Small, 36.0 36.0
state Lens​State​Representation The state of the lens. Big, 36.0 36.0
visibility Connect​Wave​Asset​Visibility​Type Indicates whether the asset is hidden from users with view access or not. Valid values are:
  • All (Show all assets)
  • Limited (Hide assets from viewers with view access)
Small, 51.0 51.0
visualization​Type String The visualization type used for this lens. Valid values are: Valid values are:
  • Bullet
  • Calendar​Heat​Map
  • Combo
  • Comparison​Table
  • Flatgauge
  • Gauge
  • Heat​Map
  • Horizontal​Bar
  • Horizontal​Dot
  • Line
  • Matrix
  • Parallel​Coordinates
  • Pie
  • Pivot​Table
  • Polargauge
  • Pyramid
  • Rating
  • Scatter
  • Stack​Waterfall
  • Stacked​Horizontal​Bar
  • Stacked​Vertical​Bar
  • Time
  • Time​Bar
  • Time​Combo
  • Values​Table
  • Vertical​Bar
  • Vertical​Dot
  • Waterfall
Small, 36.0 36.0
Lens​File​Representation
Property Name Type Description Filter Group and Version Available Version
content​Type String The content type of the file. Small, 36.0 36.0
file​Length Integer The length of the file in KB. Small, 36.0 36.0
file​Name String The name of the file. Small, 36.0 36.0
id ID The 18-character lens file ID. Small, 36.0 36.0
last​Modified​Date Date The last modified date of the file, in ISO8601 date format. Small, 36.0 36.0
url String The URL of the file. Small, 36.0 36.0
Lens​State​Representation
Bar​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
legend Boolean Indicates whether to display the legend or not. Small, 36.0 36.0
legend​Hide​Header Boolean Indicates whether to hide the legend header or not. Small, 36.0 36.0
legend​Width Integer The width of the legend. Small, 36.0 36.0
max​Column​Width Integer The maximum width of the header column. Small, 36.0 36.0
min​Column​Width Integer The minimum width of the header column. Small, 36.0 36.0
miniBars Integer The width of the mini-bars, if used. Small, 36.0 36.0
multi​Metrics Boolean Indicates whether multiple measures are projected on the same chart, side by side, or if every measure is in its own chart. Small, 36.0 36.0
split​Axis Boolean Indicates whether each measure is projected on one axis or if all measures share an axis. Small, 36.0 36.0
sqrt Boolean Indicates whether the axis is sqrt scale or not. Small, 36.0 36.0
trellis Boolean Indicates whether the last group is treated as a trellis dimension or not. Every distinct value of the dimension is a chart. Small, 36.0 36.0
Comparison​Table​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
max​Column​Width Integer The maximum width of the header column. Small, 36.0 36.0
min​Column​Width Integer The minimum width of the header column. Small, 36.0 36.0
subtotals Boolean Indicates whether to display subtotals in the table or not. Small, 48.0 48.0
totals Boolean Indicates whether to display totals in the table or not. Small, 36.0 36.0
Dot​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
fit Boolean Indicates whether to scale the position and size of a data shape so that it's proportional to its percentage of its category or not. Small, 36.0 36.0
legend Boolean Indicates whether to display the legend or not. Small, 36.0 36.0
legend​Hide​Header Boolean Indicates whether to hide the legend header or not. Small, 36.0 36.0
legend​Width Integer The width of the legend. Small, 36.0 36.0
sqrt Boolean Indicates whether the axis is sqrt scale or not. Small, 36.0 36.0
Heat​Map​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
legend​Hide​Header Boolean Indicates whether to hide the legend header or not. Small, 36.0 36.0
legend​Width Integer The width of the legend. Small, 36.0 36.0
sqrt Boolean Indicates whether the axis is sqrt scale or not. Small, 36.0 36.0
Matrix​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
legend​Hide​Header Boolean Indicates whether to hide the legend header or not. Small, 36.0 36.0
legend​Width Integer The width of the legend. Small, 36.0 36.0
sqrt Boolean Indicates whether the axis is sqrt scale or not. Small, 36.0 36.0
Parallel​Coords​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
fit Boolean Indicates whether to scale the position and size of a data shape so that it's proportional to its percentage of its category or not. Small, 36.0 36.0
legend Boolean Indicates whether to display the legend or not. Small, 36.0 36.0
legend​Hide​Header Boolean Indicates whether to hide the legend header or not. Small, 36.0 36.0
legend​Width Integer The width of the legend. Small, 36.0 36.0
sqrt Boolean Indicates whether the axis is sqrt scale or not. Small, 36.0 36.0
Pie​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
legend​Hide​Header Boolean Indicates whether to hide the legend header or not. Small, 36.0 36.0
legend​Width Integer The width of the legend. Small, 36.0 36.0
sqrt Boolean Indicates whether the axis is sqrt scale or not. Small, 36.0 36.0
Pivot​Table​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
column​Totals Boolean Indicates whether to display column totals in the table (true) or not (false). Small, 55.0 55.0
max​Column​Width Integer The maximum width of the header column. Small, 36.0 36.0
min​Column​Width Integer The minimum width of the header column. Small, 36.0 36.0
row​Totals Boolean Indicates whether to display row totals in the table (true) or not (false). Small, 55.0 55.0
totals Boolean Indicates whether to display totals in the table or not. Small, 36.0 36.0
Scatter​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
fit Boolean Indicates whether to scale the position and size of a data shape so that it's proportional to its percentage of its category or not. Small, 36.0 36.0
legend Boolean Indicates whether to display the legend or not. Small, 36.0 36.0
legend​Hide​Header Boolean Indicates whether to hide the legend header or not. Small, 36.0 36.0
legend​Width Integer The width of the legend. Small, 36.0 36.0
sqrt Boolean Indicates whether the axis is sqrt scale or not. Small, 36.0 36.0
Stacked​Bar​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
legend Boolean Indicates whether to display the legend or not. Small, 36.0 36.0
legend​Hide​Header Boolean Indicates whether to hide the legend header or not. Small, 36.0 36.0
legend​Width Integer The width of the legend. Small, 36.0 36.0
max​Column​Width Integer The maximum width of the header column. Small, 36.0 36.0
min​Column​Width Integer The minimum width of the header column. Small, 36.0 36.0
miniBars Integer The width of the mini-bars, if used. Small, 36.0 36.0
normalize Boolean Indicates whether to scale the position and size of data shape so that it’s proportional to its percentage of its category or not. Small, 36.0 36.0
sqrt Boolean Indicates whether the axis is sqrt scale or not. Small, 36.0 36.0
Table​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
column​Totals Boolean Indicates whether to display column totals in the table (true) or not (false). Small, 55.0 55.0
subtotals Boolean Indicates whether to display subtotals in the table or not. Small, 48.0 48.0
row​Totals Boolean Indicates whether to display row totals in the table (true) or not (false). Small, 55.0 55.0
totals Boolean Indicates whether to display totals in the table or not. Small, 36.0 36.0
Time​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
legend Boolean Indicates whether to display the legend or not. Small, 36.0 36.0
legend​Hide​Header Boolean Indicates whether to hide the legend header or not. Small, 36.0 36.0
legend​Width Integer The width of the legend. Small, 36.0 36.0
multi​Metrics Boolean Indicates whether multiple measures are projected on the same chart, side by side, or if every measure is in its own chart. Small, 36.0 36.0
sqrt Boolean Indicates whether the axis is sqrt scale or not. Small, 36.0 36.0
Values​Table​Lens​Visualization​Options​Representation
Property Name Type Description Filter Group and Version Available Version
hide​Header​Column Boolean Indicates whether to display header column or not. Small, 36.0 36.0
max​Column​Width Integer The maximum width of the header column. Small, 36.0 36.0
min​Column​Width Integer The minimum width of the header column. Small, 36.0 36.0
totals Boolean Indicates whether to display totals in the table or not. Small, 36.0 36.0
Query​Representation
Property Name Type Description Filter Group and Version Available Version
aggregate​Filters Object The query aggregate filters. Small, 48.0 48.0
limit Object The query limit. Small, 48.0 48.0
orders Object The query orders. Small, 48.0 48.0
pivot​Totals String The query pivot totals. Small, 55.0 55.0
query String The SAQL query text. Small, 36.0 36.0
source​Filters Compact​Form​Filter​Representation The query source filters. Small, 48.0 48.0
sources Compact​Form​Source​Representation The query sources. Small, 48.9 48.0
totals String The query totals. Small, 55.0 55.0
version Double The version of this query. Small, 36.0 36.0
Compact​Form​Filter​Representation
Property Name Type Description Filter Group and Version Available Version
boolean​Filter​Logic String The boolean filter logic. Small, 49.0 49.0
filters Object The list of filters. Small, 48.0 48.0
Compact​Form​Source​Representation
Property Name Type Description Filter Group and Version Available Version
cogroup​Type Connect​Wave​Compact​Form​Cogroup​Type​Enum The compact form source cogroup type. Valid values are:
  • Full
  • Inner
  • Left
  • Right
Small, 48.0 48.0
columns Compact​Form​Column​Representation The compact form source columns. Small, 48.0 48.0
groups Object The compact form source groups. Small, 48.0 48.0
filters Object The compact form source column filters. Small, 52.0 52.0
name String The compact form source name. Small, 48.0 48.0
Compact​Form​Column​Representation
Property Name Type Description Filter Group and Version Available Version
field Object The compact form column field. Small, 48.0 48.0
formula String The compact form column formula. Small, 48.0 48.0
name String The name of the compact form column. Small, 48.0 48.0