GetSpeedometerResult GetSpeedometer(SpeedometerId tSpeedometer, GetSpeedometerArg tArg)
tSpeedometer. Speedometer moniker.
tArg. Speedometer settings extraction parameters.
The GetSpeedometer operation extracts speedometer settings.
To execute the operation, specify speedometer moniker in the tSpeedometer field and parameters, according to which settings are extracted, in the tArg field. The current version allows for working with speedometers only in dashboards. A speedometer moniker can be based on the dashboard data source moniker by the following rule: "Dashboard moniker"!DSO!"Data source identifier"!Speedometer.
Below is the example of using the GetSpeedometer operation to get speedometer settings. The request contains a speedometer moniker that is based on the dashboard data source. The response contains speedometer settings.
{ "GetSpeedometer" : { "tSpeedometer" : { "id" : "S1!M!S!AdHoc1!DSO!SCIOGHRM2O578C19!Speedometer" }, "tArg" : { "pattern" : { "metaData" : "true" } } } }
{ "GetSpeedometerResult" : { "id" : { "id" : "S1!M!S!AdHoc1!DSO!SCIOGHRM2O578C19!Speedometer" }, "meta" : { "md" : { "Speedometer" : { "@PaddingEnabled" : "TRUE", "@OpacityEnabled" : "TRUE", "@BaseHeight" : "120", "@CenterPosition" : "110,107", "@Padding" : "0 0 0 0", "@OuterRadius" : "100,100", "@Opacity" : "1", "@BaseWidth" : "220", "@ToolTip" : "", "Scales" : { "Scale" : [ { "@Name" : "Scale1", "@MinValue" : "0", "@Length" : "180", "@RotateLabels" : "FALSE", "@MaxValue" : "180", "@OpacityEnabled" : "TRUE", "@BorderEnabled" : "FALSE", "@DisplayLabels" : "TRUE", "@ToolTip" : "Scale", "@Id" : "", "@DisplayMajorTicks" : "TRUE", "@Visible" : "TRUE", "@BorderStyle" : "solid", "@IsAbsoluteSectorOffset" : "TRUE", "@StartAngle" : "90", "@CenterPosition" : "110,115", "@OuterRadius" : "1,1", "@Opacity" : "1", "@DisplayMinorTicks" : "TRUE", "@Size" : "0", "@Step" : "50", "@BorderWidth" : "0", "Sectors" : { "Sector" : [ { "@EndSize" : "1", "@OpacityEnabled" : "TRUE", "@EndValue" : "180", "@Offset" : "0", "@Opacity" : "1", "@StartSize" : "1", "@IsVisible" : "TRUE", "@StartValue" : "0", "Background" : { "@EndPoint" : "1,0.5", "@PPType" : "PP.LinearGradientBrush", "@StartPoint" : "0,0.5", "@Enabled" : "TRUE", "GradientStops" : { "GradientStop" : [ { "@Offset" : "0", "@Color" : "#ffd5d3d3" }, { "@Offset" : "0.01", "@Color" : "#ffd5d3d3" }, { "@Offset" : "0.080000000000000002", "@Color" : "#ff676767" }, { "@Offset" : "0.25", "@Color" : "#ffd5d3d3" }, { "@Offset" : "0.5", "@Color" : "#ff676767" }, { "@Offset" : "0.75", "@Color" : "#ffd5d3d3" }, { "@Offset" : "0.92000000000000004", "@Color" : "#ff676767" }, { "@Offset" : "0.98999999999999999", "@Color" : "#ffd2d2d2" }, { "@Offset" : "1", "@Color" : "#ffd2d2d2" } ] } } }, { "@EndSize" : "0.94999999999999996", "@OpacityEnabled" : "TRUE", "@EndValue" : "180", "@Offset" : "5", "@Opacity" : "1", "@StartSize" : "0.94999999999999996", "@IsVisible" : "TRUE", "@StartValue" : "0", "Background" : { "@EndPoint" : "1,0.5", "@PPType" : "PP.LinearGradientBrush", "@StartPoint" : "0,0.5", "@Enabled" : "TRUE", "GradientStops" : { "GradientStop" : [ { "@Offset" : "0", "@Color" : "#ffbebebe" }, { "@Offset" : "0.01", "@Color" : "#ffbebebe" }, { "@Offset" : "0.25", "@Color" : "#ffdadada" }, { "@Offset" : "0.5", "@Color" : "#ff767676" }, { "@Offset" : "0.80000000000000004", "@Color" : "#ffdfdfdf" }, { "@Offset" : "0.98999999999999999", "@Color" : "#ffaeaeae" }, { "@Offset" : "1", "@Color" : "#ffaeaeae" } ] } } }, { "@EndSize" : "0.01", "@OpacityEnabled" : "TRUE", "@EndValue" : "120", "@Offset" : "1", "@Opacity" : "1", "@StartSize" : "0.01", "@IsVisible" : "TRUE", "@StartValue" : "0", "Background" : { "@EndPoint" : "1,0.5", "@PPType" : "PP.LinearGradientBrush", "@StartPoint" : "0,0.5", "@Enabled" : "TRUE", "GradientStops" : { "GradientStop" : [ { "@Offset" : "0", "@Color" : "#ffffffff" }, { "@Offset" : "0.01", "@Color" : "#ffffffff" }, { "@Offset" : "0.75", "@Color" : "#ffc7c7c7" }, { "@Offset" : "0.90000000000000002", "@Color" : "#ffd2d0d0" }, { "@Offset" : "1", "@Color" : "#ffd2d0d0" } ] } } } ] } }, { "@Name" : "Scale2", "@MinValue" : "0", "@Length" : "180", "@RotateLabels" : "FALSE", "@MaxValue" : "180", "@OpacityEnabled" : "TRUE", "@BorderEnabled" : "FALSE", "@DisplayLabels" : "TRUE", "@ToolTip" : "Scale", "@Id" : "", "@DisplayMajorTicks" : "TRUE", "@Visible" : "TRUE", "@BorderStyle" : "solid", "@IsAbsoluteSectorOffset" : "FALSE", "@StartAngle" : "90", "@CenterPosition" : "110,112", "@OuterRadius" : "0.949999988079071,0.920000016689301", "@Opacity" : "1", "@DisplayMinorTicks" : "TRUE", "@Size" : "0", "@Step" : "50", "@BorderWidth" : "0", "Sectors" : { "Sector" : [ { "@EndSize" : "1", "@OpacityEnabled" : "TRUE", "@EndValue" : "180", "@Offset" : "0", "@Opacity" : "1", "@StartSize" : "1", "@IsVisible" : "TRUE", "@StartValue" : "0", "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1", "@Enabled" : "TRUE", "@Color" : "#ffefefef" } }, { "@EndSize" : "0.01", "@OpacityEnabled" : "TRUE", "@EndValue" : "180", "@Offset" : "0.37", "@Opacity" : "1", "@StartSize" : "0.01", "@IsVisible" : "TRUE", "@StartValue" : "0", "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1", "@Enabled" : "TRUE", "@Color" : "#ffa2a1a1" } }, { "@EndSize" : "0.01", "@OpacityEnabled" : "TRUE", "@EndValue" : "180", "@Offset" : "0", "@Opacity" : "1", "@StartSize" : "0.01", "@IsVisible" : "TRUE", "@StartValue" : "0", "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1", "@Enabled" : "TRUE", "@Color" : "#ff666666" } }, { "@EndSize" : "0.01", "@OpacityEnabled" : "TRUE", "@EndValue" : "180", "@Offset" : "0.38", "@Opacity" : "1", "@StartSize" : "0.01", "@IsVisible" : "TRUE", "@StartValue" : "0", "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1", "@Enabled" : "TRUE", "@Color" : "#ffffffff" } } ] } }, { "@Name" : "Scale3", "@MinValue" : "0", "@Length" : "180", "@RotateLabels" : "FALSE", "@MaxValue" : "11.4", "@OpacityEnabled" : "TRUE", "@BorderEnabled" : "FALSE", "@DisplayLabels" : "TRUE", "@ToolTip" : "Scale", "@DataSource" : "DataSource0", "@Id" : "DataScale", "@DisplayMajorTicks" : "TRUE", "@Visible" : "TRUE", "@BorderStyle" : "solid", "@IsAbsoluteSectorOffset" : "TRUE", "@StartAngle" : "90", "@CenterPosition" : "110,107", "@OuterRadius" : "0.949999988079071,0.875", "@Opacity" : "1", "@DisplayMinorTicks" : "TRUE", "@Size" : "0", "@Step" : "0.57000000000000006", "@BorderWidth" : "0", "Arrows" : { "Arrow" : [ { "@PPType" : "PP.Ui.LineArrow", "@OpacityEnabled" : "TRUE", "@Radius" : "0.59999999999999998", "@Opacity" : "1", "@Tail" : "0", "@Size" : "1", "@DimAttributeId" : "Value", "@Value" : "650", "Border" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1", "@Color" : "#ffff462c" } } ] }, "Labels" : { "Label" : [ "0.00", "2.85", "5.70", "8.55", "11.40" ] }, "LabelFont" : { "@IsItalic" : "FALSE", "@IsUnderline" : "FALSE", "@FontFamily" : "Tahoma", "@Size" : "8", "@IsBold" : "FALSE", "@Color" : "#ff918f8d" }, "MinorTick" : { "@Style" : "Inner", "@PPType" : "PP.Ui.CircleMarker", "@OpacityEnabled" : "TRUE", "@Offset" : "-0.31", "@Opacity" : "1", "@BorderEnabled" : "TRUE", "@IsVisible" : "TRUE", "@Size" : "0.02", "@ToolTip" : "", "@BorderWidth" : "3", "@BorderStyle" : "solid", "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1", "@Enabled" : "TRUE", "@Color" : "#ff8c8c8c" } }, "MajorTick" : { "@Style" : "Inner", "@PPType" : "PP.Ui.CircleMarker", "@OpacityEnabled" : "TRUE", "@Offset" : "-0.31", "@Opacity" : "1", "@BorderEnabled" : "TRUE", "@IsVisible" : "TRUE", "@Size" : "0.040000000000000001", "@ToolTip" : "", "@BorderWidth" : "3", "@BorderStyle" : "solid", "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1", "@Enabled" : "TRUE", "@Color" : "#ff8c8c8c" } }, "Values" : { "Value" : [ "0", "2.8500000000000001", "5.7000000000000002", "8.5500000000000007", "11.4" ] } } ] }, "Timeline" : { "@StepDuration" : "1000", "@IsOverlap" : "FALSE", "@DelayDuration" : "1000", "@VerticalAlignment" : "Bottom", "@HorizontalAlignment" : "Center", "@IsVisible" : "TRUE", "@ReturnToInitialState" : "TRUE", "@CurrentStep" : "0", "StepsNames" : { "StepName" : [ "2009A1", "2010A1", "2011A1" ] } }, "Center" : { "@Style" : "Center", "@PPType" : "PP.Ui.CircleMarker", "@OpacityEnabled" : "TRUE", "@Offset" : "0", "@Opacity" : "1", "@BorderEnabled" : "TRUE", "@IsVisible" : "TRUE", "@Size" : "8", "@ToolTip" : "Center", "@BorderWidth" : "0", "@BorderStyle" : "solid", "Background" : { "@EndPoint" : "0,-1.11022302462516E-16", "@PPType" : "PP.LinearGradientBrush", "@StartPoint" : "1,1", "@Enabled" : "TRUE", "GradientStops" : { "GradientStop" : [ { "@Offset" : "0", "@Color" : "#ffff4433" }, { "@Offset" : "0.10000000000000001", "@Color" : "#ffff4433" }, { "@Offset" : "0.5", "@Color" : "#ffff190b" }, { "@Offset" : "0.90000000000000002", "@Color" : "#ff9f0505" }, { "@Offset" : "1", "@Color" : "#ff9f0505" } ] } } }, "DataSources" : { "DataSource0" : { "Series" : { "Value" : { "@Items" : "5.7000000000000002 5.7000000000000002 5.7000000000000002" } } } } } } } } }
public static GetSpeedometerResult GetSpeedometerInfo(string moniker) { var somClient = new SomPortTypeClient(); // Proxy object for operation execution // Operation execution parameters var tGet = new GetSpeedometer() { tArg = new GetSpeedometerArg() { pattern = new SpeedometerMdPattern() { metaData = true } }, tSpeedometer = new SpeedometerId() { id = moniker } }; // Get speedometer settings var result = somClient.GetSpeedometer(tGet); return result; }
See also: