curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/latest/v1/dashboards/dashboards \
--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": {
"lineChart": {
"queryDefinitions": [
{
"id": "<string>",
"query": {
"spans": {
"aggregations": [
{
"metricAggregation": {
"aggregationType": "METRIC_AGGREGATION_TYPE_UNSPECIFIED",
"metricField": "METRIC_FIELD_UNSPECIFIED"
}
}
],
"filters": [
{
"field": {
"metadataField": "METADATA_FIELD_UNSPECIFIED"
},
"observationField": {
"keypath": [
"<string>"
],
"relationType": "SPAN_RELATION_TYPE_NONE_UNSPECIFIED",
"scope": "DATASET_SCOPE_UNSPECIFIED"
},
"operator": {
"equals": {
"selection": {
"all": {}
}
}
}
}
],
"groupBy": [
{
"metadataField": "METADATA_FIELD_UNSPECIFIED"
}
],
"groupBys": [
{
"keypath": [
"<string>"
],
"relationType": "SPAN_RELATION_TYPE_NONE_UNSPECIFIED",
"scope": "DATASET_SCOPE_UNSPECIFIED"
}
],
"luceneQuery": {
"value": "<string>"
},
"timeFrame": {
"absoluteTimeFrame": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
}
}
}
},
"colorScheme": "<string>",
"customUnit": "<string>",
"dataModeType": "DATA_MODE_TYPE_HIGH_UNSPECIFIED",
"decimal": 4,
"decimalPrecision": false,
"hashColors": false,
"isVisible": true,
"name": "<string>",
"resolution": {
"bucketsPresented": 123,
"interval": "<string>"
},
"scaleType": "SCALE_TYPE_UNSPECIFIED",
"seriesCountLimit": "<string>",
"seriesNameTemplate": "<string>",
"unit": "UNIT_UNSPECIFIED",
"yAxisMax": 1000,
"yAxisMin": -1000
}
],
"connectNulls": false,
"legend": {
"columns": [
1,
2,
6
],
"groupByQuery": true,
"isVisible": true,
"placement": "LEGEND_PLACEMENT_UNSPECIFIED"
},
"stackedLine": "STACKED_LINE_UNSPECIFIED",
"tooltip": {
"showLabels": true,
"type": "TOOLTIP_TYPE_UNSPECIFIED"
}
}
},
"description": "<string>",
"id": {
"value": "<string>"
},
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
]
}
]
},
"name": "Example Name",
"actions": [
{
"dataSource": "ACTION_DATA_SOURCE_TYPE_NONE_UNSPECIFIED",
"definition": {
"goToDashboardAction": {
"dashboardId": "<string>"
}
},
"id": "<string>",
"name": "<string>",
"shouldOpenInNewWindow": true,
"widgetId": "<string>"
}
],
"annotations": [
{
"color": "ANNOTATION_COLOR_UNSPECIFIED",
"description": "<string>",
"enabled": true,
"id": "<string>",
"name": "<string>",
"scope": {
"specificWidgets": {
"widgetIds": [
"<string>"
]
}
},
"source": {
"dataprime": {
"dataModeType": "DATA_MODE_TYPE_HIGH_UNSPECIFIED",
"labelFields": [
{
"keypath": [
"<string>"
],
"scope": "DATASET_SCOPE_UNSPECIFIED"
}
],
"messageTemplate": "<string>",
"orientation": "ANNOTATION_ORIENTATION_VERTICAL_UNSPECIFIED",
"query": {
"text": "<string>"
},
"strategy": {
"instant": {
"timestampField": {
"keypath": [
"<string>"
],
"scope": "DATASET_SCOPE_UNSPECIFIED"
}
}
}
}
}
}
],
"description": "Sample description",
"filters": [
{
"collapsed": true,
"displayName": "<string>",
"enabled": true,
"id": {
"value": "<string>"
},
"source": {
"metrics": {
"label": "<string>",
"metric": "<string>",
"operator": {
"equals": {
"selection": {
"all": {}
}
}
}
}
}
}
],
"fiveMinutes": {},
"folderId": {
"value": "<string>"
},
"folderPath": {
"segments": [
"<string>"
]
},
"id": "GZLHSeqelCbD3I7HbIDtL",
"relativeTimeFrame": "<string>",
"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": {
"interval": {
"value": {
"label": "<string>",
"value": "<string>"
}
}
}
}
]
},
"requestId": "<string>",
"isLocked": true
}
'{
"dashboardId": "<string>"
}No description available
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/latest/v1/dashboards/dashboards \
--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": {
"lineChart": {
"queryDefinitions": [
{
"id": "<string>",
"query": {
"spans": {
"aggregations": [
{
"metricAggregation": {
"aggregationType": "METRIC_AGGREGATION_TYPE_UNSPECIFIED",
"metricField": "METRIC_FIELD_UNSPECIFIED"
}
}
],
"filters": [
{
"field": {
"metadataField": "METADATA_FIELD_UNSPECIFIED"
},
"observationField": {
"keypath": [
"<string>"
],
"relationType": "SPAN_RELATION_TYPE_NONE_UNSPECIFIED",
"scope": "DATASET_SCOPE_UNSPECIFIED"
},
"operator": {
"equals": {
"selection": {
"all": {}
}
}
}
}
],
"groupBy": [
{
"metadataField": "METADATA_FIELD_UNSPECIFIED"
}
],
"groupBys": [
{
"keypath": [
"<string>"
],
"relationType": "SPAN_RELATION_TYPE_NONE_UNSPECIFIED",
"scope": "DATASET_SCOPE_UNSPECIFIED"
}
],
"luceneQuery": {
"value": "<string>"
},
"timeFrame": {
"absoluteTimeFrame": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
}
}
}
},
"colorScheme": "<string>",
"customUnit": "<string>",
"dataModeType": "DATA_MODE_TYPE_HIGH_UNSPECIFIED",
"decimal": 4,
"decimalPrecision": false,
"hashColors": false,
"isVisible": true,
"name": "<string>",
"resolution": {
"bucketsPresented": 123,
"interval": "<string>"
},
"scaleType": "SCALE_TYPE_UNSPECIFIED",
"seriesCountLimit": "<string>",
"seriesNameTemplate": "<string>",
"unit": "UNIT_UNSPECIFIED",
"yAxisMax": 1000,
"yAxisMin": -1000
}
],
"connectNulls": false,
"legend": {
"columns": [
1,
2,
6
],
"groupByQuery": true,
"isVisible": true,
"placement": "LEGEND_PLACEMENT_UNSPECIFIED"
},
"stackedLine": "STACKED_LINE_UNSPECIFIED",
"tooltip": {
"showLabels": true,
"type": "TOOLTIP_TYPE_UNSPECIFIED"
}
}
},
"description": "<string>",
"id": {
"value": "<string>"
},
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
]
}
]
},
"name": "Example Name",
"actions": [
{
"dataSource": "ACTION_DATA_SOURCE_TYPE_NONE_UNSPECIFIED",
"definition": {
"goToDashboardAction": {
"dashboardId": "<string>"
}
},
"id": "<string>",
"name": "<string>",
"shouldOpenInNewWindow": true,
"widgetId": "<string>"
}
],
"annotations": [
{
"color": "ANNOTATION_COLOR_UNSPECIFIED",
"description": "<string>",
"enabled": true,
"id": "<string>",
"name": "<string>",
"scope": {
"specificWidgets": {
"widgetIds": [
"<string>"
]
}
},
"source": {
"dataprime": {
"dataModeType": "DATA_MODE_TYPE_HIGH_UNSPECIFIED",
"labelFields": [
{
"keypath": [
"<string>"
],
"scope": "DATASET_SCOPE_UNSPECIFIED"
}
],
"messageTemplate": "<string>",
"orientation": "ANNOTATION_ORIENTATION_VERTICAL_UNSPECIFIED",
"query": {
"text": "<string>"
},
"strategy": {
"instant": {
"timestampField": {
"keypath": [
"<string>"
],
"scope": "DATASET_SCOPE_UNSPECIFIED"
}
}
}
}
}
}
],
"description": "Sample description",
"filters": [
{
"collapsed": true,
"displayName": "<string>",
"enabled": true,
"id": {
"value": "<string>"
},
"source": {
"metrics": {
"label": "<string>",
"metric": "<string>",
"operator": {
"equals": {
"selection": {
"all": {}
}
}
}
}
}
}
],
"fiveMinutes": {},
"folderId": {
"value": "<string>"
},
"folderPath": {
"segments": [
"<string>"
]
},
"id": "GZLHSeqelCbD3I7HbIDtL",
"relativeTimeFrame": "<string>",
"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": {
"interval": {
"value": {
"label": "<string>",
"value": "<string>"
}
}
}
}
]
},
"requestId": "<string>",
"isLocked": true
}
'{
"dashboardId": "<string>"
}API key authentication
This is a response received when a custom dashboard is successfully created
Was this page helpful?