testData
grafonnet.query.testData
Subpackages
Index
fn withAlias(value)
fn withChannel(value)
fn withCsvContent(value)
fn withCsvFileName(value)
fn withCsvWave(value)
fn withCsvWaveMixin(value)
fn withDatasource(value)
fn withDropPercent(value)
fn withErrorType(value)
fn withFlamegraphDiff(value=true)
fn withHide(value=true)
fn withLabels(value)
fn withLevelColumn(value=true)
fn withLines(value)
fn withNodes(value)
fn withNodesMixin(value)
fn withPoints(value)
fn withPointsMixin(value)
fn withPulseWave(value)
fn withPulseWaveMixin(value)
fn withQueryType(value)
fn withRawFrameContent(value)
fn withRefId(value)
fn withScenarioId(value)
fn withSeriesCount(value)
fn withSim(value)
fn withSimMixin(value)
fn withSpanCount(value)
fn withStream(value)
fn withStreamMixin(value)
fn withStringInput(value)
fn withUsa(value)
fn withUsaMixin(value)
obj nodes
obj pulseWave
obj sim
obj stream
obj usa
Fields
fn withAlias
withAlias(value)
PARAMETERS:
- value (
string
)
fn withChannel
withChannel(value)
PARAMETERS:
- value (
string
)
fn withCsvContent
withCsvContent(value)
PARAMETERS:
- value (
string
)
fn withCsvFileName
withCsvFileName(value)
PARAMETERS:
- value (
string
)
fn withCsvWave
withCsvWave(value)
PARAMETERS:
- value (
array
)
fn withCsvWaveMixin
withCsvWaveMixin(value)
PARAMETERS:
- value (
array
)
fn withDatasource
withDatasource(value)
PARAMETERS:
- value (
string
)
For mixed data sources the selected datasource is on the query level. For non mixed scenarios this is undefined. TODO find a better way to do this ^ that's friendly to schema TODO this shouldn't be unknown but DataSourceRef | null
fn withDropPercent
withDropPercent(value)
PARAMETERS:
- value (
number
)
Drop percentage (the chance we will lose a point 0-100)
fn withErrorType
withErrorType(value)
PARAMETERS:
- value (
string
)- valid values:
"server_panic"
,"frontend_exception"
,"frontend_observable"
- valid values:
fn withFlamegraphDiff
withFlamegraphDiff(value=true)
PARAMETERS:
- value (
boolean
)- default value:
true
- default value:
fn withHide
withHide(value=true)
PARAMETERS:
- value (
boolean
)- default value:
true
- default value:
true if query is disabled (ie should not be returned to the dashboard) Note this does not always imply that the query should not be executed since the results from a hidden query may be used as the input to other queries (SSE etc)
fn withLabels
withLabels(value)
PARAMETERS:
- value (
string
)
fn withLevelColumn
withLevelColumn(value=true)
PARAMETERS:
- value (
boolean
)- default value:
true
- default value:
fn withLines
withLines(value)
PARAMETERS:
- value (
integer
)
fn withNodes
withNodes(value)
PARAMETERS:
- value (
object
)
fn withNodesMixin
withNodesMixin(value)
PARAMETERS:
- value (
object
)
fn withPoints
withPoints(value)
PARAMETERS:
- value (
array
)
fn withPointsMixin
withPointsMixin(value)
PARAMETERS:
- value (
array
)
fn withPulseWave
withPulseWave(value)
PARAMETERS:
- value (
object
)
fn withPulseWaveMixin
withPulseWaveMixin(value)
PARAMETERS:
- value (
object
)
fn withQueryType
withQueryType(value)
PARAMETERS:
- value (
string
)
Specify the query flavor TODO make this required and give it a default
fn withRawFrameContent
withRawFrameContent(value)
PARAMETERS:
- value (
string
)
fn withRefId
withRefId(value)
PARAMETERS:
- value (
string
)
A unique identifier for the query within the list of targets. In server side expressions, the refId is used as a variable name to identify results. By default, the UI will assign A->Z; however setting meaningful names may be useful.
fn withScenarioId
withScenarioId(value)
PARAMETERS:
- value (
string
)- valid values:
"random_walk"
,"slow_query"
,"random_walk_with_error"
,"random_walk_table"
,"exponential_heatmap_bucket_data"
,"linear_heatmap_bucket_data"
,"no_data_points"
,"datapoints_outside_range"
,"csv_metric_values"
,"predictable_pulse"
,"predictable_csv_wave"
,"streaming_client"
,"simulation"
,"usa"
,"live"
,"grafana_api"
,"arrow"
,"annotations"
,"table_static"
,"server_error_500"
,"logs"
,"node_graph"
,"flame_graph"
,"raw_frame"
,"csv_file"
,"csv_content"
,"trace"
,"manual_entry"
,"variables-query"
- valid values:
fn withSeriesCount
withSeriesCount(value)
PARAMETERS:
- value (
integer
)
fn withSim
withSim(value)
PARAMETERS:
- value (
object
)
fn withSimMixin
withSimMixin(value)
PARAMETERS:
- value (
object
)
fn withSpanCount
withSpanCount(value)
PARAMETERS:
- value (
integer
)
fn withStream
withStream(value)
PARAMETERS:
- value (
object
)
fn withStreamMixin
withStreamMixin(value)
PARAMETERS:
- value (
object
)
fn withStringInput
withStringInput(value)
PARAMETERS:
- value (
string
)
fn withUsa
withUsa(value)
PARAMETERS:
- value (
object
)
fn withUsaMixin
withUsaMixin(value)
PARAMETERS:
- value (
object
)
obj nodes
fn nodes.withCount
nodes.withCount(value)
PARAMETERS:
- value (
integer
)
fn nodes.withSeed
nodes.withSeed(value)
PARAMETERS:
- value (
integer
)
fn nodes.withType
nodes.withType(value)
PARAMETERS:
- value (
string
)- valid values:
"random"
,"response_small"
,"response_medium"
,"random edges"
- valid values:
obj pulseWave
fn pulseWave.withOffCount
pulseWave.withOffCount(value)
PARAMETERS:
- value (
integer
)
fn pulseWave.withOffValue
pulseWave.withOffValue(value)
PARAMETERS:
- value (
number
)
fn pulseWave.withOnCount
pulseWave.withOnCount(value)
PARAMETERS:
- value (
integer
)
fn pulseWave.withOnValue
pulseWave.withOnValue(value)
PARAMETERS:
- value (
number
)
fn pulseWave.withTimeStep
pulseWave.withTimeStep(value)
PARAMETERS:
- value (
integer
)
obj sim
fn sim.withConfig
sim.withConfig(value)
PARAMETERS:
- value (
object
)
fn sim.withConfigMixin
sim.withConfigMixin(value)
PARAMETERS:
- value (
object
)
fn sim.withKey
sim.withKey(value)
PARAMETERS:
- value (
object
)
fn sim.withKeyMixin
sim.withKeyMixin(value)
PARAMETERS:
- value (
object
)
fn sim.withLast
sim.withLast(value=true)
PARAMETERS:
- value (
boolean
)- default value:
true
- default value:
fn sim.withStream
sim.withStream(value=true)
PARAMETERS:
- value (
boolean
)- default value:
true
- default value:
obj sim.key
fn sim.key.withTick
sim.key.withTick(value)
PARAMETERS:
- value (
number
)
fn sim.key.withType
sim.key.withType(value)
PARAMETERS:
- value (
string
)
fn sim.key.withUid
sim.key.withUid(value)
PARAMETERS:
- value (
string
)
obj stream
fn stream.withBands
stream.withBands(value)
PARAMETERS:
- value (
integer
)
fn stream.withNoise
stream.withNoise(value)
PARAMETERS:
- value (
integer
)
fn stream.withSpeed
stream.withSpeed(value)
PARAMETERS:
- value (
integer
)
fn stream.withSpread
stream.withSpread(value)
PARAMETERS:
- value (
integer
)
fn stream.withType
stream.withType(value)
PARAMETERS:
- value (
string
)- valid values:
"signal"
,"logs"
,"fetch"
,"traces"
- valid values:
fn stream.withUrl
stream.withUrl(value)
PARAMETERS:
- value (
string
)
obj usa
fn usa.withFields
usa.withFields(value)
PARAMETERS:
- value (
array
)
fn usa.withFieldsMixin
usa.withFieldsMixin(value)
PARAMETERS:
- value (
array
)
fn usa.withMode
usa.withMode(value)
PARAMETERS:
- value (
string
)
fn usa.withPeriod
usa.withPeriod(value)
PARAMETERS:
- value (
string
)
fn usa.withStates
usa.withStates(value)
PARAMETERS:
- value (
array
)
fn usa.withStatesMixin
usa.withStatesMixin(value)
PARAMETERS:
- value (
array
)