| 1 | import _get from "lodash/get" |
| 2 | |
| 3 | export function getMetaFieldLabel(key: string): string { |
| 4 | const labelsMap: Record<string, string> = { |
| 5 | id: "ID", |
| 6 | customer_code: "Customer Code", |
| 7 | integration_name: "Integration Name", |
| 8 | network_connector_name: "Network Connector Name", |
| 9 | graylog_input_id: "Graylog Input ID", |
| 10 | graylog_index_id: "Graylog Index ID", |
| 11 | graylog_stream_id: "Graylog Stream ID", |
| 12 | graylog_pipeline_id: "Graylog Pipeline ID", |
| 13 | graylog_content_pack_input_id: "Graylog Content Pack Input ID", |
| 14 | graylog_content_pack_stream_id: "Graylog Content Pack Stream ID", |
| 15 | grafana_org_id: "Grafana Org ID", |
| 16 | grafana_datasource_uid: "Grafana Datasource UID" |
| 17 | } |
| 18 | |
| 19 | return _get(labelsMap, key, key) |
| 20 | } |