Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icat-plus-api-ts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICAT
icat-plus-api-ts
Merge requests
!2
Resolve "Add elasticsearch endpoints"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add elasticsearch endpoints"
3-add-elasticsearch-entpoints
into
main
Overview
0
Commits
2
Pipelines
3
Changes
3
Merged
Mael Gaonach
requested to merge
3-add-elasticsearch-entpoints
into
main
10 months ago
Overview
0
Commits
2
Pipelines
3
Changes
3
Expand
Closes
#3 (closed)
0
0
Merge request reports
Compare
main
version 1
c09fc083
10 months ago
main (base)
and
latest version
latest version
7c78cf64
2 commits,
10 months ago
version 1
c09fc083
1 commit,
10 months ago
3 files
+
46
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/api/endpoints/modules/elasticsearch.ts
0 → 100644
+
39
−
0
Options
import
{
IcatPlusEndpoint
}
from
'
../definitions
'
;
export
const
ELASTICSEARCH_METRICS_ENDPOINT
=
IcatPlusEndpoint
({
module
:
'
elasticsearch
'
,
name
:
'
elasticsearch_metrics
'
,
method
:
'
POST
'
,
schema
:
{}
as
any
,
path
:
'
/stats/instrument/metrics
'
,
params
:
{}
as
{
instrumentName
?:
string
;
ranges
?:
{
start
:
string
;
end
:
string
;
name
:
string
;
}[];
},
autoRefresh
:
true
,
autoRefreshIntervalMinutes
:
10
,
});
export
const
ELASTICSEARCH_HISTOGRAM_ENDPOINT
=
IcatPlusEndpoint
({
module
:
'
elasticsearch
'
,
name
:
'
elasticsearch_histogram
'
,
method
:
'
GET
'
,
schema
:
{}
as
any
,
path
:
'
/stats/histogram
'
,
params
:
{}
as
{
instrumentName
?:
string
;
startDate
:
string
;
endDate
:
string
;
format
:
'
csv
'
|
'
json
'
|
'
csv_json
'
;
metric
?:
'
fileCount
'
|
'
volume
'
;
aggregation
:
'
instrumentName
'
|
'
definition
'
;
interval
:
string
;
},
autoRefresh
:
true
,
autoRefreshIntervalMinutes
:
10
,
});
Loading