Skip to content

Commit

Permalink
Implemented support for cluster metrics monitors (opensearch-project#162
Browse files Browse the repository at this point in the history
) (opensearch-project#189)

* Implemented LocalUriInput component, and supporting methods. Implemented unit and integration tests for LocalUriInput. Refactored various other classes and components to support LocalUriInput.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored learn more links to open new tabs.

Signed-off-by: AWSHurneyt <[email protected]>

* Implemented default trigger conditions for API supported by the LocalUriInput feature.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored button text and size based on UX reviewer feedback.

Signed-off-by: AWSHurneyt <[email protected]>

* Added documentation link for cluster stats API.

Signed-off-by: AWSHurneyt <[email protected]>

* Adjusted some wording based on UX reviewer feedback. Implemented modal that displays when changing request type.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored feature assets to use ClusterMetrics naming convention instead of LocalUriInput.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored behavior of cluster metrics clear triggers modal, and implemented tests.

Signed-off-by: AWSHurneyt <[email protected]>

* Added periods to error messages.

Signed-off-by: AWSHurneyt <[email protected]>

* Removed fixed width for clearTriggersModal.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored the cluster metrics radio card to be a monitor type instead of monitor definition type. Refactored request type selection combobox so it's not clearable, and reworded the clearTriggersModal text and refactored tests accordingly.

Signed-off-by: AWSHurneyt <[email protected]>

* Updated copyright headers.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactoring monitorType checking logic to accommodate cluster metrics monitors.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored help text to use lowercase letters.

Signed-off-by: AWSHurneyt <[email protected]>

* Implemented a helper method as a temporary solution to some incorrect formatting of cluster metrics monitors returned by the getMonitors API.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored cluster metrics feature to remove support for CAT repositories.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored cluster metrics request types labels to no longer reference CAT.

Signed-off-by: AWSHurneyt <[email protected]>

* Adjusted the example trigger conditions for two request types.

Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Mar 11, 2022
1 parent 1bace21 commit c4c34f0
Show file tree
Hide file tree
Showing 48 changed files with 3,147 additions and 394 deletions.
64 changes: 64 additions & 0 deletions cypress/fixtures/sample_cluster_metrics_monitor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "sample_cluster_metrics_health_monitor",
"type": "monitor",
"monitor_type": "cluster_metrics_monitor",
"enabled": true,
"schedule": {
"period": {
"unit": "MINUTES",
"interval": 1
}
},
"inputs": [
{
"uri": {
"api_type": "CLUSTER_HEALTH",
"path": "_cluster/health/",
"path_params": "",
"url": "http://localhost:9200/_cluster/health/"
}
}
],
"triggers": [],
"ui_metadata": {
"schedule": {
"timezone": null,
"frequency": "interval",
"period": {
"unit": "MINUTES",
"interval": 1
},
"daily": 0,
"weekly": {
"tue": false,
"wed": false,
"thur": false,
"sat": false,
"fri": false,
"mon": false,
"sun": false
},
"monthly": {
"type": "day",
"day": 1
},
"cronExpression": "0 */1 * * *"
},
"search": {
"searchType": "clusterMetrics",
"timeField": "",
"aggregations": [],
"groupBy": [],
"bucketValue": 1,
"bucketUnitOfTime": "h",
"where": {
"fieldName": [],
"fieldRangeEnd": 0,
"fieldRangeStart": 0,
"fieldValue": "",
"operator": "is"
}
},
"monitor_type": "cluster_metrics_monitor"
}
}
Loading

0 comments on commit c4c34f0

Please sign in to comment.