action meshery_id_post_prometheus_board { label: "Handle POST request for Prometheus board" description: "Used to persist selected board and panels" provider: meshery method: POST path: "/api/telemetry/metrics/boards" encoding: json input: { type: "array" items: { type: "object" description: "SelectedGrafanaConfig represents the selected boards, panels, and template variables" properties: { board: { type: "object" description: "GrafanaBoard represents a Grafana board" properties: { org_id: { type: "integer" format: "uint64" } panels: { type: "array" items: { type: "object" properties: { alert: { type: "object" properties: { alertRuleTags: { type: "object" } conditions: { type: "array" items: { type: "object" properties: { evaluator: { type: "object" additionalProperties: true } operator: { type: "object" additionalProperties: true } query: { type: "object" additionalProperties: true } reducer: { type: "object" additionalProperties: true } type: { type: "object" additionalProperties: true } } } } executionErrorState: { type: "string" } for: { type: "string" } frequency: { type: "string" } handler: { type: "integer" format: "int64" } message: { type: "string" } name: { type: "string" } noDataState: { type: "string" } notifications: { type: "array" items: { type: "object" description: "AlertNotification as described in the doc\nhttps://grafana.com/docs/grafana/latest/http_api/alerting_notification_channels/" properties: { disableResolveMessage: { type: "object" additionalProperties: true } frequency: { type: "object" additionalProperties: true } id: { type: "object" additionalProperties: true } isDefault: { type: "object" additionalProperties: true } name: { type: "object" additionalProperties: true } sendReminder: { type: "object" additionalProperties: true } settings: { type: "object" additionalProperties: true } type: { type: "object" additionalProperties: true } uid: { type: "object" additionalProperties: true } } } } } } aliasColors: { type: "object" } bars: { type: "boolean" } cards: { type: "object" properties: { cardPadding: { type: "number" format: "double" } cardRound: { type: "number" format: "double" } } } collapsed: { type: "boolean" } color: { type: "object" properties: { cardColor: { type: "string" } colorScale: { type: "string" } colorScheme: { type: "string" } exponent: { type: "number" format: "double" } max: { type: "number" format: "double" } min: { type: "number" format: "double" } mode: { type: "string" } } } colorBackground: { type: "boolean" } colorValue: { type: "boolean" } colors: { type: "array" items: { type: "string" } } columns: { type: "array" items: { type: "object" description: "for a table" properties: { text: { type: "string" } value: { type: "string" } } } } content: { type: "string" } dashLength: { type: "integer" format: "uint64" } dashboardTags: { type: "array" items: { type: "string" } } dashes: { type: "boolean" } dataFormat: { type: "string" } datasource: { type: "string" } decimals: { type: "integer" format: "int64" } description: { type: "string" } editable: { type: "boolean" } error: { type: "boolean" } fieldConfig: { type: "object" properties: { defaults: { type: "object" properties: { threshold: { type: "object" properties: { mode: { type: "object" additionalProperties: true } steps: { type: "object" additionalProperties: true } } } unit: { type: "string" } } } } } fill: { type: "integer" format: "int64" } folderId: { type: "integer" format: "int64" } format: { type: "string" } gauge: { type: "object" description: "for a stat" properties: { maxValue: { type: "number" format: "float" } minValue: { type: "number" format: "float" } show: { type: "boolean" } thresholdLabels: { type: "boolean" } thresholdMarkers: { type: "boolean" } } } gridPos: { type: "object" properties: { h: { type: "integer" format: "int64" } w: { type: "integer" format: "int64" } x: { type: "integer" format: "int64" } y: { type: "integer" format: "int64" } } } headings: { type: "boolean" } height: { type: "object" } hideTimeOverride: { type: "boolean" } hideZeroBuckets: { type: "boolean" } highlightCards: { type: "boolean" } id: { type: "integer" format: "uint64" } isNew: { type: "boolean" } leftYAxisLabel: { type: "string" } legend: { type: "object" description: "for a graph panel" properties: { alignAsTable: { type: "boolean" } avg: { type: "boolean" } current: { type: "boolean" } hideEmpty: { type: "boolean" } hideZero: { type: "boolean" } max: { type: "boolean" } min: { type: "boolean" } rightSide: { type: "boolean" } show: { type: "boolean" } sideWidth: { type: "integer" format: "uint64" } total: { type: "boolean" } values: { type: "boolean" } } } limit: { type: "integer" format: "int64" } lines: { type: "boolean" } linewidth: { type: "integer" format: "uint64" } links: { type: "array" items: { type: "object" properties: { asDropdown: { type: "boolean" } dashUri: { type: "string" } dashboard: { type: "string" } icon: { type: "string" } includeVars: { type: "boolean" } keepTime: { type: "boolean" } params: { type: "string" } tags: { type: "array" items: { type: "object" additionalProperties: true } } targetBlank: { type: "boolean" } title: { type: "string" } tooltip: { type: "string" } type: { type: "string" } url: { type: "string" } } } } mappingType: { type: "integer" format: "uint64" } mappingTypes: { type: "array" items: { type: "object" properties: { name: { type: "string" } value: { type: "integer" format: "int64" } } } } maxDataPoints: { type: "object" properties: { Valid: { type: "boolean" } Value: { type: "integer" format: "int64" } } } minSpan: { type: "number" format: "float" } mode: { type: "string" } nameFilter: { type: "string" } nullPointMode: { type: "string" } onlyAlertsOnDashboard: { type: "boolean" } options: { type: "object" properties: { colorMode: { type: "string" } content: { type: "string" } displayMode: { type: "string" } graphMode: { type: "string" } justifyMode: { type: "string" } mode: { type: "string" } orientation: { type: "string" } reduceOptions: { type: "object" properties: { calcs: { type: "array" items: { type: "object" additionalProperties: true } } fields: { type: "string" } values: { type: "boolean" } } } textMode: { type: "string" } } } pageSize: { type: "integer" format: "uint64" } panels: { type: "array" items: { type: "object" additionalProperties: true } } percentage: { type: "boolean" } pointradius: { type: "number" format: "float" } points: { type: "boolean" } postfix: { type: "string" } postfixFontSize: { type: "string" } prefix: { type: "string" } prefixFontSize: { type: "string" } query: { type: "string" } rangeMaps: { type: "array" items: { type: "object" properties: { from: { type: "string" } text: { type: "string" } to: { type: "string" } } } } recent: { type: "boolean" } renderer: { type: "string" } repeat: { type: "string" } repeatPanelId: { type: "integer" format: "uint64" description: "RepeatIteration *int64 `json:\"repeatIteration,omitempty\"`" } reverseYBuckets: { type: "boolean" } rightYAxisLabel: { type: "string" } scopedVars: { type: "object" } scroll: { type: "boolean" } search: { type: "boolean" } seriesOverrides: { type: "array" items: { type: "object" description: "for a graph panel" properties: { alias: { type: "string" } bars: { type: "boolean" } color: { type: "string" } dashes: { type: "boolean" } fill: { type: "integer" format: "int64" } fillBelowTo: { type: "string" } legend: { type: "boolean" } lines: { type: "boolean" } linewidth: { type: "integer" format: "int64" } nullPointMode: { type: "string" } stack: { type: "object" properties: { Flag: { type: "object" additionalProperties: true } Value: { type: "object" additionalProperties: true } } } transform: { type: "string" } yaxis: { type: "integer" format: "int64" } zindex: { type: "integer" format: "int64" } } } } show: { type: "string" } showHeader: { type: "boolean" } sort: { type: "object" description: "for a graph panel" properties: { col: { type: "integer" format: "int64" } desc: { type: "boolean" } } } sortOrder: { type: "integer" format: "int64" } spaceLength: { type: "integer" format: "uint64" } span: { type: "number" format: "float" } sparkline: { type: "object" description: "for a stat" properties: { fillColor: { type: "string" } full: { type: "boolean" } lineColor: { type: "string" } show: { type: "boolean" } ymax: { type: "number" format: "double" } ymin: { type: "number" format: "double" } } } stack: { type: "boolean" } starred: { type: "boolean" } stateFilter: { type: "array" items: { type: "string" } } steppedLine: { type: "boolean" } styles: { type: "array" items: { type: "object" description: "for a table" properties: { alias: { type: "string" } colorMode: { type: "string" } colors: { type: "array" items: { type: "object" additionalProperties: true } } dateFormat: { type: "string" } decimals: { type: "integer" format: "uint64" } link: { type: "boolean" } linkTargetBlank: { type: "boolean" } linkTooltip: { type: "string" } linkUrl: { type: "string" } mappingType: { type: "integer" format: "int64" } pattern: { type: "string" } thresholds: { type: "array" items: { type: "object" additionalProperties: true } } type: { type: "string" } unit: { type: "string" } valueMaps: { type: "array" items: { type: "object" additionalProperties: true } } } } } tags: { type: "array" items: { type: "string" } } targets: { type: "array" items: { type: "object" description: "for an any panel" properties: { alias: { type: "string" } aliasBy: { type: "string" } alignOptions: { type: "array" items: { type: "object" additionalProperties: true } } alignmentPeriod: { type: "string" } bucketAggs: { type: "array" items: { type: "object" additionalProperties: true } } crossSeriesReducer: { type: "string" } datasource: { type: "string" } dimensions: { type: "object" } dsType: { type: "string" description: "For Elasticsearch" } expr: { type: "string" description: "For Prometheus" } filters: { type: "array" items: { type: "object" additionalProperties: true } } format: { type: "string" } group: { type: "array" items: { type: "object" additionalProperties: true } } groupBys: { type: "array" items: { type: "object" additionalProperties: true } } hide: { type: "boolean" } instant: { type: "boolean" } interval: { type: "string" } intervalFactor: { type: "integer" format: "int64" } legendFormat: { type: "string" } measurement: { type: "string" description: "For InfluxDB" } metricColumn: { type: "string" } metricKind: { type: "string" } metricName: { type: "string" } metricType: { type: "string" } metrics: { type: "array" items: { type: "object" additionalProperties: true } } namespace: { type: "string" description: "For CloudWatch" } perSeriesAligner: { type: "string" } period: { type: "string" } projectName: { type: "string" description: "For the Stackdriver data source. Find out more information at\nhttps:/grafana.com/docs/grafana/v6.0/features/datasources/stackdriver/" } query: { type: "string" } rawQuery: { type: "boolean" } rawSql: { type: "string" } refId: { type: "string" } region: { type: "string" } select: { type: "array" items: { type: "object" additionalProperties: true } } statistics: { type: "array" items: { type: "object" additionalProperties: true } } step: { type: "integer" format: "int64" } table: { type: "string" description: "For PostgreSQL" } target: { type: "string" description: "For Graphite" } timeColumn: { type: "string" } timeField: { type: "string" } valueType: { type: "string" } where: { type: "array" items: { type: "object" additionalProperties: true } } } } } thresholds: { type: "string" items: { type: "object" properties: { colorMode: { type: "string" description: "critical, warning, ok, custom" } fill: { type: "boolean" } fillColor: { type: "string" description: "hexadecimal color (e.g. #629e51, only when ColorMode is \"custom\")" } line: { type: "boolean" } lineColor: { type: "string" description: "hexadecimal color (e.g. #629e51, only when ColorMode is \"custom\")" } op: { type: "string" description: "gt or lt" } value: { type: "number" format: "float" description: "the alert threshold value, we do not omitempty, since 0 is a valid\nthreshold" } yaxis: { type: "string" description: "left or right" } } } } timeFrom: { type: "string" } timeShift: { type: "string" } title: { type: "string" } tooltip: { type: "object" properties: { msResolution: { type: "boolean" } shared: { type: "boolean" } sort: { type: "integer" format: "int64" } value_type: { type: "string" } } } tooltipDecimals: { type: "integer" format: "int64" } transform: { type: "string" } transparent: { type: "boolean" } type: { type: "string" } valueFontSize: { type: "string" } valueMaps: { type: "array" items: { type: "object" additionalProperties: true } } valueName: { type: "string" } "x-axis": { type: "boolean" } xAxis: { type: "object" properties: { show: { type: "boolean" } } } xBucketNumber: { type: "number" format: "double" } xBucketSize: { type: "string" } xaxis: { type: "object" description: "for a graph panel" properties: { decimals: { type: "integer" format: "int64" } format: { type: "string" } label: { type: "string" } logBase: { type: "integer" format: "int64" } max: { type: "object" properties: { Valid: { type: "boolean" } Value: { type: "number" format: "double" } } } min: { type: "object" additionalProperties: true } show: { type: "boolean" } } } "y-axis": { type: "boolean" } yAxis: { type: "object" properties: { decimals: { type: "integer" format: "int64" } format: { type: "string" } logBase: { type: "integer" format: "int64" } max: { type: "string" } min: { type: "string" } show: { type: "boolean" } splitFactor: { type: "number" format: "double" } } } yBucketBound: { type: "string" } yBucketNumber: { type: "number" format: "double" } yBucketSize: { type: "number" format: "double" } y_formats: { type: "array" items: { type: "string" } } yaxes: { type: "array" items: { type: "object" additionalProperties: true } } } } } slug: { type: "string" } template_vars: { type: "array" items: { type: "object" description: "GrafanaTemplateVars represents template variables in a bboard" properties: { datasource: { type: "object" description: "GrafanaDataSource represents a Grafana datasource like Prometheus" properties: { id: { type: "integer" format: "uint64" } name: { type: "string" } } } hide: { type: "integer" format: "uint8" } name: { type: "string" } query: { type: "string" } value: { type: "object" } } } } title: { type: "string" } uid: { type: "string" } uri: { type: "string" } } } panels: { type: "array" items: { type: "object" additionalProperties: true } } templateVars: { type: "array" items: { type: "string" } } } } } output: { type: "object" additionalProperties: true } }