Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Add API key type for accessing statistics #1404

Merged
merged 1 commit into from
Dec 17, 2020
Merged

Conversation

sethvargo
Copy link
Member

Fixes #1390

Release Note

Introduce a new API key type for accessing statistics. The statistics endpoints of the admin API are currently in preview and are subject to change.

/assign @whaught

@googlebot googlebot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Dec 17, 2020
<div class="card-body">
<div id="apikey_stats_chart" class="container d-flex h-100 w-100" style="min-height:300px;">
<p class="justify-content-center align-self-center text-center font-italic w-100">Loading chart...</p>
{{if $authApp.IsAdminType}}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is all just indented (see)

@@ -42,7 +42,7 @@ func RequireAPIKey(cacher cache.Cacher, db *database.Database, h render.Renderer
allowedTypesMap[t] = struct{}{}
}

cacheTTL := 5 * time.Minute
cacheTTL := 30 * time.Minute
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We clear these caches aggressively, so I bumped this

@sethvargo
Copy link
Member Author

/cc @mikehelmick

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sethvargo, whaught

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit 8a910cf into main Dec 17, 2020
@google-oss-robot google-oss-robot deleted the sethvargo/stats2 branch December 17, 2020 01:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide API endpoints for accessing statistics
4 participants