Module Values.WidgetSource

A configurable visualization component within a dashboard that displays specific cost and usage metrics. Each widget can show data as charts or tables and includes settings for data querying, filtering, and visual presentation.

Sourcetype nonrec t = {
  1. id : WidgetId.t option;
    (*

    The unique identifier for the widget.

    *)
  2. title : WidgetTitle.t;
    (*

    The title of the widget.

    *)
  3. description : Description.t option;
    (*

    A description of the widget's purpose or the data it displays.

    *)
  4. width : WidgetWidth.t option;
    (*

    The width of the widget in column spans. The dashboard layout consists of a grid system.

    *)
  5. height : WidgetHeight.t option;
    (*

    The height of the widget in row spans. The dashboard layout consists of a grid system.

    *)
  6. horizontalOffset : Integer.t option;
    (*

    Specifies the starting column position of the widget in the dashboard's grid layout. Used to control widget placement.

    *)
  7. configs : WidgetConfigList.t;
    (*

    An array of configurations that define the data queries and display settings for the widget.

    *)
}
Sourceval context_ : string
Sourceval make : ?id:??? -> ?description:??? -> ?width:??? -> ?height:??? -> ?horizontalOffset:??? -> title:WidgetTitle.t -> configs:WidgetConfigList.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of WidgetWidth.t | `List of [> `Structure of (string * [> `Structure of (string * [> `Map of ([> `String of GenericString.t ] * [> `Structure of (string * [> `Enum of string ]) list ]) list | `Structure of (string * Awso.Botodata.value) list ]) list ]) list ] list | `String of WidgetId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t