Back to index
Summary
Modifies a widget.projectNameStringrequiredThe name for the project that must be unique among all projects. dashboardNameStringrequiredUnique name of the dashboard within the project. widgetNameStringrequiredThe name of the dashboard widget. actualParameterArrayoptionalActual parameter values for the parameters defined on the widget's report. afterWidgetStringoptionalThe name of the widget after which this widget should be placed. attributeDataTypeArrayoptionalWidget parameters used by UI to control data types of attributes. attributePathArrayoptionalWidget parameters used by UI to control paths of attributes. beforeWidgetStringoptionalThe name of the widget before which this widget should be placed. clearAttributeDataTypesBooleanoptionalWhether or not to clear attribute data types for the widget. clearAttributePathsBooleanoptionalWhether or not to clear attribute paths for the widget. clearColorsBooleanoptionalWhether or not to clear color for the widget. clearLinkParametersBooleanoptionalWhether or not to clear link parameters for the widget. clearVisualizationPropertiesBooleanoptionalWhether or not to clear visualization properties for the widget. colorRangesStringoptionalThe JSON with color ranges definition for the widget. colorArrayoptionalColor map used when rendering the widget. The usage of the color map depends on the widget's visualization type. columnStringoptionalThe column in a COMMAND_CENTER dashboard that the widget belongs to. Required for a COMMAND_CENTER dashboard widget unless the widget section is SUMMARY in which case it is not applicable.descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. iconUrlStringoptionalThe icon to display for the widget. If using an IPv6 address, enclose the address in square brackets. Example: [<IPv6-ADDRESS>] .linkParameterArrayoptionalWidget parameters used by UI to construct the drill-down link for the widget. linkTargetStringoptionalDetermines the page to navigate to when the user drills down through the dashboard widget. newNameStringoptionalThe new name for an existing object that is being renamed. orderIndexIntegeroptionalSpecifies the relative display order for the widget. reportNameStringoptionalName of an existing report backing the widget. reportProjectNameStringoptionalSet if the report is in a different project than the dashboard. sectionStringoptionalThe section of a COMMAND_CENTER dashboard to display the widget in. Applicable for a COMMAND_CENTER dashboard widget. Possible values: "PHASE_DETAIL" , "PHASE_SUMMARY" , "SUMMARY" titleStringoptionalThe title to display for the widget. If not set, use the report title. visualizationStringoptionalType of visualization data in the widget. Possible values: "AREA_CHART" , "CUSTOM_CHART" , "DONUT_CHART" , "GROUPED_HORIZONTAL_BAR_CHART" , "GROUPED_VERTICAL_BAR_CHART" , "HORIZONTAL_BAR_CHART" , "LINE_CHART" , "METRIC" , "MULTILINE_CHART" , "STACKED_AREA_CHART" , "STACKED_HORIZONTAL_BAR_CHART" , "STACKED_VERTICAL_BAR_CHART" , "TABLE" , "VERTICAL_BAR_CHART" visualizationPropertyArrayoptionalProperties or settings used by the widget's visualization type. |
Usage
Perl
$cmdr->modifyWidget( "test-projectName", # projectName "test-dashboardName", # dashboardName "test-widgetName" # widgetName # optionals );
ectool
ectool modifyWidget \ "test-projectName" `# projectName` \ "test-dashboardName" `# dashboardName` \ "test-widgetName" `# widgetName` \ # optionals