convert_speed

Applies to: ✅ Azure Data ExplorerAzure MonitorMicrosoft Sentinel

Convert a speed value from one unit to another.

Syntax

convert_speed(value,from,to)

Learn more about syntax conventions.

Parameters

Name Type Required Description
value real ✔️ The value to be converted.
from string ✔️ The unit to convert from. For possible values, see Conversion units.
to string ✔️ The unit to convert to. For possible values, see Conversion units.

Conversion units

  • CentimeterPerHour
  • CentimeterPerMinute
  • CentimeterPerSecond
  • DecimeterPerMinute
  • DecimeterPerSecond
  • FootPerHour
  • FootPerMinute
  • FootPerSecond
  • InchPerHour
  • InchPerMinute
  • InchPerSecond
  • KilometerPerHour
  • KilometerPerMinute
  • KilometerPerSecond
  • Knot
  • MeterPerHour
  • MeterPerMinute
  • MeterPerSecond
  • MicrometerPerMinute
  • MicrometerPerSecond
  • MilePerHour
  • MillimeterPerHour
  • MillimeterPerMinute
  • MillimeterPerSecond
  • NanometerPerMinute
  • NanometerPerSecond
  • UsSurveyFootPerHour
  • UsSurveyFootPerMinute
  • UsSurveyFootPerSecond
  • YardPerHour
  • YardPerMinute
  • YardPerSecond

Returns

Returns the input value converted from one speed unit to another. Invalid units return null.

Example

print result = convert_speed(1.2, 'MeterPerSecond', 'CentimeterPerHour')

Output

result
432000