profile

<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="profile">
  ...
</discovery-tile>
{
  'type' 'profile'
  ...
  'macro' <% %>
}

GTS values are considered as durations.

Name Default
--warp-view-chart-label-color #8e8e8e
--warp-view-chart-grid-color #8e8e8e
Name Type Description
data GTS, GTS[] Data to display, numeric GTS only
globalParams Option Global options (see above) concerning this tile
params Option[] List of options (see above) concerning each displayed dataset depending of the index of this array
events Events[] List of events to emit (see below)

Supported option per series are:

  • datasetColor: Hex CSS color of the series. ie: '#fff00f'
  • key: Name the series

Samples

Simple profile

1 4 <% 
  'i' STORE NEWGTS 'data-' $i TOSTRING + RENAME 'g' STORE
  1 5 <% 'ts' STORE $g $ts h NOW + RAND h - NaN NaN NaN RAND 20.0 * m ADDVALUE DROP %> FOR
$g %> FOR SORT
1 4 <% 'i' STORE NEWGTS 'data-' $i TOSTRING + RENAME 'g' STORE 1 5 <% 'ts' STORE $g $ts h NOW + RAND h - NaN NaN NaN RAND 20.0 * m ADDVALUE DROP %> FOR $g %> FOR SORT

Custom data

{
  'values' {
    'key' { 'timestamp' 'duration' 'timestamp' 'duration' ... }  
  }
}
NOW 'now' STORE
{
  'title' 'Test'
  'values' {
    'A' { 
      1 5 <%
        'i' STORE
        NOW $i h - RAND h - RAND 20.0 * m
      %> FOR
    }
    'B' {
      1 5 <%
        'i' STORE
        NOW $i h - RAND h - RAND 20.0 * m
      %> FOR
    }
    'C' {
      1 5 <%
        'i' STORE
        NOW $i h - RAND h - RAND 20.0 * m
      %> FOR
    }
  }
} 'values' STORE
{ 
  'data' $values 
}
NOW 'now' STORE { 'title' 'Test' 'values' { 'A' { 1 5 <% 'i' STORE NOW $i h - RAND h - RAND 20.0 * m %> FOR } 'B' { 1 5 <% 'i' STORE NOW $i h - RAND h - RAND 20.0 * m %> FOR } 'C' { 1 5 <% 'i' STORE NOW $i h - RAND h - RAND 20.0 * m %> FOR } } } 'values' STORE { 'data' $values 'globalParams' { } }

Found an issue on this page or something missing?

Tell us onSlack iconThe Lounge, the Warp 10 Community Slack.