Skip to main content
Create a new dashboard
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/5/dashboards/dashboards/v1 \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dashboard": {
    "layout": {
      "sections": [
        {
          "id": {
            "value": "<string>"
          },
          "options": {
            "internal": {}
          },
          "rows": [
            {
              "appearance": {
                "height": 123
              },
              "id": {
                "value": "<string>"
              },
              "widgets": [
                {
                  "appearance": {
                    "width": 123
                  },
                  "createdAt": "2023-11-07T05:31:56Z",
                  "definition": {
                    "dataTable": {
                      "columns": [
                        {
                          "field": "<string>",
                          "width": 123
                        }
                      ],
                      "dataModeType": "DATA_MODE_TYPE_HIGH_UNSPECIFIED",
                      "orderBy": {
                        "field": "<string>",
                        "orderDirection": "ORDER_DIRECTION_UNSPECIFIED"
                      },
                      "query": {
                        "dataprime": {
                          "dataprimeQuery": {
                            "text": "<string>"
                          },
                          "filters": [
                            {
                              "logs": {
                                "field": "<string>",
                                "observationField": {
                                  "keypath": [
                                    "<string>"
                                  ],
                                  "scope": "DATASET_SCOPE_UNSPECIFIED"
                                },
                                "operator": "<unknown>"
                              }
                            }
                          ],
                          "timeFrame": {
                            "absoluteTimeFrame": {
                              "from": "2023-11-07T05:31:56Z",
                              "to": "2023-11-07T05:31:56Z"
                            }
                          }
                        }
                      },
                      "resultsPerPage": 10,
                      "rowStyle": "ROW_STYLE_UNSPECIFIED"
                    }
                  },
                  "description": "<string>",
                  "id": {
                    "value": "<string>"
                  },
                  "reference": {
                    "dashboardId": "<string>",
                    "widgetId": {
                      "value": "<string>"
                    }
                  },
                  "title": "<string>",
                  "updatedAt": "2023-11-07T05:31:56Z"
                }
              ]
            }
          ]
        }
      ]
    },
    "name": "Example Name",
    "relativeTimeFrame": "<string>",
    "twoMinutes": {},
    "actions": [
      {
        "dataSource": "ACTION_DATA_SOURCE_TYPE_NONE_UNSPECIFIED",
        "definition": {
          "customAction": {
            "url": "<string>"
          }
        },
        "id": "<string>",
        "name": "<string>",
        "queryId": "<string>",
        "shouldOpenInNewWindow": true,
        "widgetId": "<string>"
      }
    ],
    "annotations": [
      {
        "color": "ANNOTATION_COLOR_UNSPECIFIED",
        "description": "<string>",
        "enabled": true,
        "id": "<string>",
        "name": "<string>",
        "scope": {
          "allWidgets": {}
        },
        "source": {
          "metrics": {
            "intervalResolution": {
              "auto": {
                "maximumDataPoints": 500,
                "minimumInterval": "<string>"
              },
              "useAdvancedLimit": true
            },
            "labels": [
              "<string>"
            ],
            "messageTemplate": "<string>",
            "orientation": "ANNOTATION_ORIENTATION_VERTICAL_UNSPECIFIED",
            "promqlQuery": {
              "value": "<string>"
            },
            "strategy": {
              "startTimeMetric": {}
            }
          }
        }
      }
    ],
    "description": "Sample description",
    "filters": [
      {
        "collapsed": true,
        "displayName": "<string>",
        "enabled": true,
        "id": {
          "value": "<string>"
        },
        "scope": {
          "allWidgets": {},
          "specificWidgets": {
            "widgetIds": [
              {
                "value": "<string>"
              }
            ]
          }
        },
        "source": {
          "logs": {
            "field": "<string>",
            "observationField": {
              "keypath": [
                "<string>"
              ],
              "scope": "DATASET_SCOPE_UNSPECIFIED"
            },
            "operator": {
              "equals": {
                "selection": {
                  "all": {}
                }
              }
            }
          }
        }
      }
    ],
    "folderId": {
      "value": "<string>"
    },
    "folderPath": {
      "segments": [
        "<string>"
      ]
    },
    "id": "GZLHSeqelCbD3I7HbIDtL",
    "slugName": "system-health-monitoring",
    "variables": [
      {
        "definition": {
          "constant": {
            "value": "<string>"
          }
        },
        "description": "<string>",
        "displayName": "<string>",
        "displayType": "VARIABLE_DISPLAY_TYPE_UNSPECIFIED",
        "name": "<string>"
      }
    ],
    "variablesV2": [
      {
        "description": "<string>",
        "displayFullRow": true,
        "displayName": "<string>",
        "displayType": "VARIABLE_DISPLAY_TYPE_V2_UNSPECIFIED",
        "id": {
          "value": "<string>"
        },
        "name": "<string>",
        "source": {
          "static": {
            "allOption": {
              "includeAll": true,
              "label": "<string>"
            },
            "values": [
              {
                "isDefault": true,
                "label": "<string>",
                "value": "<string>"
              }
            ],
            "valuesOrderDirection": "ORDER_DIRECTION_UNSPECIFIED"
          }
        },
        "value": {
          "regex": {
            "value": {
              "label": "<string>",
              "value": "<string>"
            }
          }
        }
      }
    ]
  },
  "requestId": "<string>",
  "isLocked": true
}
'
{
  "dashboardId": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

This is a request used to create a new custom dashboard

dashboard
Dashboard · object
required

Dashboard represents the structure and configuration of a Coralogix Custom Dashboard.

requestId
string
required
isLocked
boolean

Response

This is a response received when a custom dashboard is successfully created

dashboardId
string