> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/roboflow/roboflow-hi/deploy/vision-events/query-events.md).

# Query Events

## घटनाओं को क्वेरी और फ़िल्टर करें

Vision Events Dashboard में फ़िल्टरों का उपयोग करके विशिष्ट घटनाएँ खोजें या REST API के माध्यम से प्रोग्रामेटिक रूप से उन्हें क्वेरी करें।

### Dashboard में Events ब्राउज़ करें

#### एक Use Case चुनें

Vision Events पेज से, उसके events देखने के लिए किसी Use Case पर क्लिक करें। Events उल्टे कालानुक्रमिक क्रम में प्रदर्शित होते हैं।

<figure><img src="/files/22f604b1c519b9af970177b9aca1a2a2c44b4484" alt="" width="375"><figcaption></figcaption></figure>

#### Events फ़िल्टर करें

परिणामों को सीमित करने के लिए events सूची के शीर्ष पर दिए गए फ़िल्टर नियंत्रणों का उपयोग करें:

* **तिथि सीमा** — प्रारंभ और समाप्ति टाइमस्टैम्प
* **Event type** — quality\_check, inventory\_count, safety\_alert, custom, operator\_feedback
* **डिवाइस** — device ID के अनुसार फ़िल्टर करें
* **Stream** — stream या camera ID के अनुसार फ़िल्टर करें
* **Workflow** — उस workflow के अनुसार फ़िल्टर करें जिसने घटनाएँ उत्पन्न कीं
* **Detection** — किसी detected object class के अनुसार फ़िल्टर करें, वैकल्पिक confidence threshold के साथ
* **Feedback status** — सही, गलत, अनिर्णायक, या कोई feedback नहीं
* **Custom metadata** — किसी भी custom metadata field और value के अनुसार फ़िल्टर करें
* **Warnings** — केवल वे घटनाएँ दिखाएँ जिनमें ingestion warnings थीं

आप event detail sidebar में values पर भी क्लिक कर सकते हैं (जैसे device ID, stream, quality check result, या custom metadata values) ताकि उन्हें जल्दी से filters के रूप में जोड़ा जा सके।

Filter chips संपादन योग्य हैं -- किसी भी सक्रिय filter chip पर क्लिक करके उसका मान या operator बदलें, बिना उसे हटाए और फिर से जोड़े।

जब filters लागू होते हैं, तो एक **कुल संख्या** मिलान करने वाली घटनाओं की परिणाम सूची के शीर्ष पर प्रदर्शित होती है। यह संख्या event list से स्वतंत्र रूप से अपडेट होती है, इसलिए आप यह देख सकते हैं कि आपके filters से कितनी घटनाएँ मेल खाती हैं, भले ही घटनाएँ अभी भी लोड हो रही हों।

<figure><img src="/files/69717c370783c4593107a89fc2bcbd9e614270ea" alt="" width="375"><figcaption></figcaption></figure>

#### Event विवरण देखें

उसकी पूरी जानकारी देखने के लिए सूची में किसी भी event पर क्लिक करें:

* स्रोत छवि और कोई भी आउटपुट छवियाँ
* सभी source metadata (device, stream, workflow)
* Object detections, classifications, और segmentations, उनके confidence scores के साथ
* Event-type-specific डेटा (उदा: pass/fail result, item count, alert severity)
* Custom metadata key-value pairs

**Detections ड्रा करें**

जब किसी event में prediction data (object detections, instance segmentations, या keypoints) होता है, तो छवि के ऊपर एक "Draw Detections" checkbox दिखाई देता है। इसे सक्षम करें ताकि bounding boxes, segmentation polygons, और confidence scores वाले labels को स्रोत छवि के ऊपर ओवरले किया जा सके।

यह तब उपयोगी है जब आपका pipeline केवल मूल input image को ही सहेजता है और आप अलग output image संग्रहीत किए बिना यह देखना चाहते हैं कि model ने क्या detect किया।

{% hint style="info" %}
जब किसी अलग output image को देखा जा रहा हो, तो checkbox छिपा रहता है, क्योंकि उनमें detections पहले से ही rendered होते हैं।
{% endhint %}

### API के माध्यम से Events क्वेरी करें

Query endpoint dashboard के समान filters का समर्थन करता है, साथ ही cursor-based pagination भी। parameters और response fields की पूरी सूची के लिए, देखें [Vision Events API Reference](https://docs.roboflow.com/developer/rest-api/vision-events).

#### बेसिक Query

```bash
curl -X POST "https://api.roboflow.com/vision-events/query" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "useCaseId": "assembly-line-qa",
    "startTime": "2026-03-01T00:00:00Z",
    "endTime": "2026-03-31T23:59:59Z",
    "limit": 25
  }'
```

**प्रतिक्रिया:**

```json
{
  "events": [
    {
      "eventId": "evt-789ghi",
      "eventType": "quality_check",
      "timestamp": "2026-03-30T14:30:00.000Z",
      "deviceId": "factory-cam-01",
      "streamId": "line-3",
      "images": [],
      "eventData": { "result": "fail" },
      "customMetadata": {
        "line_id": "line-3",
        "shift": "morning",
        "part_number": "PN-4421"
      }
    }
  ],
  "nextCursor": "eyJ0cyI6IjIwMjYtMDMtMzAifQ==",
  "hasMore": true
}
```

#### पृष्ठांकन

परिणाम cursor का उपयोग करके पृष्ठांकित किए जाते हैं। यदि response में एक `nextCursor` मान और `hasMore` है `true`तो अगला पृष्ठ प्राप्त करने के लिए अगली request में cursor पास करें:

```bash
curl -X POST "https://api.roboflow.com/vision-events/query" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "useCaseId": "assembly-line-qa",
    "limit": 25,
    "cursor": "eyJ0cyI6IjIwMjYtMDMtMzAifQ=="
  }'
```

जब तक `hasMore` है `false`.

#### Event Type के अनुसार फ़िल्टर करें

एकल event type को क्वेरी करें:

```json
{
  "useCaseId": "assembly-line-qa",
  "eventType": "quality_check"
}
```

या कई event types (अधिकतम 20):

```json
{
  "useCaseId": "assembly-line-qa",
  "eventTypes": ["quality_check", "operator_feedback"]
}
```

#### Feedback Status के अनुसार फ़िल्टर करें

उपयोग करें `feedbackStatus` यह जानने के लिए कि operators ने उन्हें समीक्षा की है या नहीं और उन्हें कैसे रेट किया गया था:

```json
{
  "useCaseId": "assembly-line-qa",
  "feedbackStatus": ["incorrect", "none"]
}
```

मान्य मान: `correct`, `incorrect`, `inconclusive`, `none`. उपयोग करें `none` ऐसी घटनाएँ खोजने के लिए जिन्हें अभी तक समीक्षा नहीं की गई है।

#### Custom Metadata के अनुसार फ़िल्टर करें

उपयोग करें `customMetadataFilters` अपनी metadata फ़ील्ड्स के आधार पर events फ़िल्टर करने के लिए:

```json
{
  "useCaseId": "assembly-line-qa",
  "customMetadataFilters": [
    { "key": "line_id", "operator": "eq", "value": "line-3" },
    { "key": "shift", "operator": "eq", "value": "morning" }
  ]
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-hi/deploy/vision-events/query-events.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
