Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(openapi): Implement getIndexSizes function from rest.li in openapi #8730

Merged
merged 5 commits into from
Jan 19, 2024

Conversation

iprentic
Copy link
Contributor

@iprentic iprentic commented Aug 25, 2023

  • Move this function over here as we want to use openapi moving forward
  • It can be used in a health check (though it has authentication)

Url: http://localhost:9002/openapi/operations/elasticSearch/getIndexSizes
Output:

"sizes":[{"aspectName":"datahubingestionrunsummary","entityName":"datajob","indexName":"datajob_datahubingestionrunsummaryaspect_v1","sizeMb":0.208},{"aspectName":"dashboardusagestatistics","entityName":"dashboard","indexName":"dashboard_dashboardusagestatisticsaspect_v1","sizeMb":0.208},{"aspectName":"datasetprofile","entityName":"dataset","indexName":"dataset_datasetprofileaspect_v1","sizeMb":0.208},{"aspectName":"chartusagestatistics","entityName":"chart","indexName":"chart_chartusagestatisticsaspect_v1","sizeMb":0.208},{"aspectName":"datahubingestioncheckpoint","entityName":"datajob","indexName":"datajob_datahubingestioncheckpointaspect_v1","sizeMb":0.208},{"aspectName":"assertionrunevent","entityName":"assertion","indexName":"assertion_assertionruneventaspect_v1","sizeMb":0.208},{"aspectName":"dataprocessinstancerunevent","entityName":"dataprocessinstance","indexName":"dataprocessinstance_dataprocessinstanceruneventaspect_v1","sizeMb":0.208},{"aspectName":"operation","entityName":"dataset","indexName":"dataset_operationaspect_v1","sizeMb":0.208},{"aspectName":"datasetusagestatistics","entityName":"dataset","indexName":"dataset_datasetusagestatisticsaspect_v1","sizeMb":0.208}]}

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@iprentic iprentic requested a review from RyanHolstien August 25, 2023 20:05
@github-actions github-actions bot added the devops PR or Issue related to DataHub backend & deployment label Aug 25, 2023
@david-leifker david-leifker self-assigned this Oct 26, 2023
@david-leifker david-leifker added the merge-pending-ci A PR that has passed review and should be merged once CI is green. label Jan 18, 2024
@david-leifker david-leifker merged commit 3682c5f into master Jan 19, 2024
34 checks passed
@david-leifker david-leifker deleted the nd-idx-sizes-openapi branch January 19, 2024 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops PR or Issue related to DataHub backend & deployment merge-pending-ci A PR that has passed review and should be merged once CI is green.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants