- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for Observe (0.09 sec)
-
cmd/tier_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "testing" "time" ) func TestTierMetrics(t *testing.T) { tier := "WARM-1" globalTierMetrics.Observe(tier, 200*time.Millisecond) expSuccess := 10 expFailure := 5 for range expSuccess { globalTierMetrics.logSuccess(tier) } for range expFailure { globalTierMetrics.logFailure(tier) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 1.5K bytes - Viewed (0) -
cmd/tier.go
Buckets: []float64{0.01, 0.1, 1, 2, 5, 10, 60, 5 * 60, 15 * 60, 30 * 60}, }, []string{"tier"}), } func (t *tierMetrics) Observe(tier string, dur time.Duration) { t.histogram.With(prometheus.Labels{"tier": tier}).Observe(dur.Seconds()) } func (t *tierMetrics) logSuccess(tier string) { t.Lock() defer t.Unlock() stat := t.requestsCount[tier] stat.success++Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 15.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/security/oauth2-jwt.md
<img src="/img/tutorial/security/image07.png"> Autorize a aplicação da mesma maneira que antes. Usando as credenciais: Username: `johndoe` Password: `secret` /// check | Verifique Observe que em nenhuma parte do código está a senha em texto puro "`secret`", nós temos apenas o hash. /// <img src="/img/tutorial/security/image08.png"> Chame o endpoint `/users/me/`, você receberá o retorno como:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 11K bytes - Viewed (0) -
docs/pt/docs/async.md
framework assíncrono que não funciona como descrito acima e você está acostumado a definir *funções de operação de rota* triviais somente de computação com simples `def` para ter um mínimo ganho de performance (cerca de 100 nanosegundos), por favor observe que no **FastAPI** o efeito pode ser bem o oposto. Nesses casos, é melhor usar `async def` a menos que suas *funções de operação de rota* utilizem código que performe bloqueamento <abbr title="Input/Output: disco lendo ou escrevendo, comunicações...
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:56:21 UTC 2025 - 23.6K bytes - Viewed (0) -
cmd/bucket-lifecycle.go
} op := auditTierOp{ Tier: tier, OutputBytes: bytes, } if err == nil { since := time.Since(startTime) op.TimeToResponseNS = since.Nanoseconds() globalTierMetrics.Observe(tier, since) globalTierMetrics.logSuccess(tier) } else { op.Error = err.Error() globalTierMetrics.logFailure(tier) } logger.GetReqInfo(ctx).AppendTags("tierStats", op.String()) } }Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 33.7K bytes - Viewed (0) -
docs/en/docs/how-to/custom-docs-ui-assets.md
But it's possible to customize it, you can set a specific CDN, or serve the files yourself. ## Custom CDN for JavaScript and CSS { #custom-cdn-for-javascript-and-css }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.8K bytes - Viewed (0) -
docs/es/docs/tutorial/security/oauth2-jwt.md
<img src="/img/tutorial/security/image07.png"> Autoriza la aplicación de la misma manera que antes. Usando las credenciales: Usuario: `johndoe` Contraseña: `secret` /// check | Revisa Observa que en ninguna parte del código está la contraseña en texto claro "`secret`", solo tenemos la versión con hash. /// <img src="/img/tutorial/security/image08.png">
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 10.9K bytes - Viewed (0) -
docs/en/data/topic_repos.yml
- name: Hello-Python html_url: https://github.com/mouredev/Hello-Python stars: 31799 owner_login: mouredev owner_html_url: https://github.com/mouredev - name: serve html_url: https://github.com/jina-ai/serve stars: 21721 owner_login: jina-ai owner_html_url: https://github.com/jina-ai - name: HivisionIDPhotos html_url: https://github.com/Zeyi-Lin/HivisionIDPhotos stars: 19114
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Sep 05 08:57:41 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java
* * @see jcifs.util.transport.Response#verifySignature(byte[], int, int) */ @Override public boolean verifySignature(final byte[] buffer, final int i, final int size) { // observed too that signatures on error responses are sometimes wrong?? // Looks like the failure case also is just reflecting back the signature we sentRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 8.1K bytes - Viewed (0) -
docs/en/docs/tutorial/static-files.md
# Static Files { #static-files } You can serve static files automatically from a directory using `StaticFiles`. ## Use `StaticFiles` { #use-staticfiles } * Import `StaticFiles`. * "Mount" a `StaticFiles()` instance in a specific path. {* ../../docs_src/static_files/tutorial001.py hl[2,6] *} /// note | Technical Details You could also use `from starlette.staticfiles import StaticFiles`.Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 1.7K bytes - Viewed (0)