Skip to content

Commit

Permalink
[Docs] [Console] Fixed/updated documentation links in Dev Tools conso…
Browse files Browse the repository at this point in the history
…le (#3724) (#3986)

* Update console documentation links to corresponding documentation pages
* Update console documentation links to https://opensearch.org/docs/ because corresponding pages are missing/not yet written in documentation
* Update console documentation links for component_template delete, get and exists
* Update console documentation links for info.json and ping.json to index page https://opensearch.org/docs/
* Fix: added missing documentation links to get_script_context and get_script_languages
* Update links to processors in comments to their working documentation pages
* Update links to processors with no corresponding pages in documentation to the general page about processors https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
* Update CHANGELOG.md
* Update cluster.* links with missing docs to https://opensearch.org/docs/latest/api-reference/cluster-api/index/
* Update indices.* links with missing docs to https://opensearch.org/docs/latest/api-reference/index-apis/index/
* Update links with anchor # if applicable
* Update links

Co-authored-by: Zhongnan Su <szhongna@amazon.com>

---------

Signed-off-by: Sirazh Gabdullin <sirazh.gabdullin@nu.edu.kz>
Co-authored-by: Zhongnan Su <szhongna@amazon.com>
Co-authored-by: Josh Romero <rmerqg@amazon.com>
(cherry picked from commit 01a0baf)

Co-authored-by: Sirazh Gabdullin <sirazh.gabdullin@nu.edu.kz>
Co-authored-by: Qingyang(Abby) Hu <abigailhu2000@gmail.com>
  • Loading branch information
3 people committed May 26, 2023
1 parent d71c377 commit 916c096
Show file tree
Hide file tree
Showing 153 changed files with 649 additions and 291 deletions.
66 changes: 33 additions & 33 deletions src/plugins/console/server/lib/spec_definitions/js/ingest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const commonPipelineParams = {
tag: '',
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/append-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const appendProcessorDefinition = {
append: {
__template: {
Expand All @@ -54,7 +54,7 @@ const appendProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/bytes-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const bytesProcessorDefinition = {
bytes: {
__template: {
Expand All @@ -69,7 +69,7 @@ const bytesProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/ingest-circle-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const circleProcessorDefinition = {
circle: {
__template: {
Expand All @@ -90,7 +90,7 @@ const circleProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/csv-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/csv/
const csvProcessorDefinition = {
csv: {
__template: {
Expand All @@ -112,7 +112,7 @@ const csvProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/convert-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const convertProcessorDefinition = {
convert: {
__template: {
Expand All @@ -131,7 +131,7 @@ const convertProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/date-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/date/
const dateProcessorDefinition = {
date: {
__template: {
Expand All @@ -147,7 +147,7 @@ const dateProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/date-index-name-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const dateIndexNameProcessorDefinition = {
date_index_name: {
__template: {
Expand All @@ -166,7 +166,7 @@ const dateIndexNameProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/dissect-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const dissectProcessorDefinition = {
dissect: {
__template: {
Expand All @@ -183,7 +183,7 @@ const dissectProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/dot-expand-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const dotExpanderProcessorDefinition = {
dot_expander: {
__template: {
Expand All @@ -195,15 +195,15 @@ const dotExpanderProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/drop-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const dropProcessorDefinition = {
drop: {
__template: {},
...commonPipelineParams,
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/fail-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const failProcessorDefinition = {
fail: {
__template: {
Expand All @@ -214,7 +214,7 @@ const failProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/foreach-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const foreachProcessorDefinition = {
foreach: {
__template: {
Expand All @@ -229,7 +229,7 @@ const foreachProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/geoip-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const geoipProcessorDefinition = {
geoip: {
__template: {
Expand All @@ -248,7 +248,7 @@ const geoipProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/grok-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/grok/
const grokProcessorDefinition = {
grok: {
__template: {
Expand All @@ -268,7 +268,7 @@ const grokProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/gsub-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const gsubProcessorDefinition = {
gsub: {
__template: {
Expand All @@ -283,7 +283,7 @@ const gsubProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/htmlstrip-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const htmlStripProcessorDefinition = {
html_strip: {
__template: {
Expand All @@ -298,7 +298,7 @@ const htmlStripProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/inference-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const inferenceProcessorDefinition = {
inference: {
__template: {
Expand All @@ -314,7 +314,7 @@ const inferenceProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/join-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const joinProcessorDefinition = {
join: {
__template: {
Expand All @@ -327,7 +327,7 @@ const joinProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/json-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/parse-json/
const jsonProcessorDefinition = {
json: {
__template: {
Expand All @@ -342,7 +342,7 @@ const jsonProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/kv-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const kvProcessorDefinition = {
kv: {
__template: {
Expand All @@ -362,7 +362,7 @@ const kvProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/lowercase-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/lowercase-string/
const lowercaseProcessorDefinition = {
lowercase: {
__template: {
Expand All @@ -376,7 +376,7 @@ const lowercaseProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/pipeline-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const pipelineProcessorDefinition = {
pipeline: {
__template: {
Expand All @@ -387,7 +387,7 @@ const pipelineProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/remove-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const removeProcessorDefinition = {
remove: {
__template: {
Expand All @@ -398,7 +398,7 @@ const removeProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/rename-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const renameProcessorDefinition = {
rename: {
__template: {
Expand All @@ -414,7 +414,7 @@ const renameProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/script-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const scriptProcessorDefinition = {
script: {
__template: {},
Expand All @@ -427,7 +427,7 @@ const scriptProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/set-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const setProcessorDefinition = {
set: {
__template: {
Expand All @@ -443,7 +443,7 @@ const setProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/ingest-node-set-security-user-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const setSecurityUserProcessorDefinition = {
set_security_user: {
__template: {
Expand All @@ -455,7 +455,7 @@ const setSecurityUserProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/split-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/split-string/
const splitProcessorDefinition = {
split: {
__template: {
Expand All @@ -471,7 +471,7 @@ const splitProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/sort-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const sortProcessorDefinition = {
sort: {
__template: {
Expand All @@ -483,7 +483,7 @@ const sortProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/trim-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/trim-string/
const trimProcessorDefinition = {
trim: {
__template: {
Expand All @@ -497,7 +497,7 @@ const trimProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/uppercase-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/uppercase-string/
const uppercaseProcessorDefinition = {
uppercase: {
__template: {
Expand All @@ -511,7 +511,7 @@ const uppercaseProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/urldecode-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const urlDecodeProcessorDefinition = {
urldecode: {
__template: {
Expand All @@ -526,7 +526,7 @@ const urlDecodeProcessorDefinition = {
},
};

// Based on https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/user-agent-processor.html
// Based on https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/processors/
const userAgentProcessorDefinition = {
user_agent: {
__template: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"{indices}/_bulk",
"{indices}/{type}/_bulk"
],
"documentation": "https://opensearch.org/docs/latest/opensearch/rest-api/document-apis/bulk/"
"documentation": "https://opensearch.org/docs/latest/api-reference/document-apis/bulk/"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"_cat/aliases",
"_cat/aliases/{name}"
],
"documentation": "https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-aliases/"
"documentation": "https://opensearch.org/docs/latest/api-reference/cat/cat-aliases/"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"_cat/allocation",
"_cat/allocation/{nodes}"
],
"documentation": "https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-allocation/"
"documentation": "https://opensearch.org/docs/latest/api-reference/cat/cat-allocation/"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"cat.cluster_manager": {
"url_params": {
"format": "",
"local": "__flag__",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
"v": "__flag__"
},
"methods": [
"GET"
],
"patterns": [
"_cat/cluster_manager"
],
"documentation": "https://opensearch.org/docs/latest/api-reference/cat/cat-cluster_manager/"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"_cat/count",
"_cat/count/{indices}"
],
"documentation": "https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-count/"
"documentation": "https://opensearch.org/docs/latest/api-reference/cat/cat-count/"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"_cat/fielddata",
"_cat/fielddata/{fields}"
],
"documentation": "https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-field-data/#cat-fielddata"
"documentation": "https://opensearch.org/docs/latest/api-reference/cat/cat-field-data/"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"patterns": [
"_cat/health"
],
"documentation": "https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-health/"
"documentation": "https://opensearch.org/docs/latest/api-reference/cat/cat-health/"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"patterns": [
"_cat"
],
"documentation": "https://opensearch.org/docs/latest/opensearch/rest-api/cat/index/"
"documentation": "https://opensearch.org/docs/latest/api-reference/cat/index"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
"_cat/indices",
"_cat/indices/{indices}"
],
"documentation": "https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-indices/"
"documentation": "https://opensearch.org/docs/latest/api-reference/cat/cat-indices/"
}
}
}
Loading

0 comments on commit 916c096

Please sign in to comment.