> 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/use-cases.md).

# Use Cases

## Use Cases

एक Use Case Vision Events का समूह होता है जो एक सामान्य उद्देश्य और custom metadata structure साझा करते हैं। हर event बिल्कुल एक Use Case से संबंधित होता है। एक ही Use Case के events आमतौर पर वही metadata fields साझा करते हैं, जिससे अलग-अलग sources के बीच डेटा को filter और compare करना आसान हो जाता है।

### एक बनाम कई Use Cases कब उपयोग करें

**events को एक ही Use Case में रखें** जब वे मिलते-जुलते custom metadata fields साझा करते हों, भले ही वे अलग-अलग locations, cameras, या devices से आएँ। उदाहरण के लिए, एक "Defect Detection" Use Case कई factories से events प्राप्त कर सकता है, लेकिन सभी events में शामिल होते हैं `line_id`, `shift`और `part_number`.

**अलग-अलग Use Cases बनाएं** जब metadata structure मूल रूप से अलग हो। उदाहरण के लिए:

* **Assembly Line QA** — ट्रैक करता है `line_id`, `shift`, `part_number`
* **Warehouse Inventory** — ट्रैक करता है `aisle`, `shelf`, `item_type`
* **Construction Site Safety** — ट्रैक करता है `zone`, `alert_type`, `contractor`

### एक Use Case बनाएं

#### Agent के माध्यम से

यह [Roboflow Agent](/roboflow/roboflow-hi/agents/roboflow-agent.md) Vision Events के साथ Workflow बनाते समय यह स्वचालित रूप से Use Cases बनाता है। यदि कोई मौजूदा Use Case उपयुक्त हो, तो वह उसे चुनता है, या आपके वर्णित use case के आधार पर एक नया बनाता है। आप Agent से सीधे एक नया Use Case सेटअप करने के लिए भी कह सकते हैं।

#### Dashboard में

1. पर जाएँ **Vision Events** अपने workspace के बाएँ sidebar में
2. क्लिक करें **+ Create Use Case**
3. Use Case के लिए एक नाम दर्ज करें

<figure><img src="/files/661a2b3e3d2f79380027575950a03e51f818f66f" alt="" width="375"><figcaption></figcaption></figure>

आप REST API के माध्यम से भी Use Cases बना सकते हैं, देखें [Use Cases को Programmatically प्रबंधित करें](#manage-use-cases-programmatically).

### Use Cases देखें

#### Dashboard में

Vision Events पेज आपके सभी Use Cases की एक table दिखाता है, जिसमें शामिल हैं:

* Use Case का नाम
* कुल event count
* आखिरी event timestamp
* प्रयोग में event types

#### API के माध्यम से

अपने workspace में सभी Use Cases प्राप्त करें:

```bash
curl -X GET "https://api.roboflow.com/vision-events/use-cases" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

देखें [Vision Events API Reference](https://docs.roboflow.com/developer/rest-api/vision-events) पूर्ण response format के लिए।

### Use Cases को Programmatically प्रबंधित करें

Dashboard के अलावा, आप REST API के माध्यम से Use Cases बना, rename, archive, और unarchive कर सकते हैं। इन endpoints के लिए एक API key आवश्यक है जिसके पास `vision-events:manage` scope हो (unrestricted workspace API keys में यह डिफ़ॉल्ट रूप से उपलब्ध होता है)।

**एक Use Case बनाएं**

```bash
curl -X POST "https://api.roboflow.com/vision-events/use-cases" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{ "name": "assembly-line-qa" }'
```

**एक Use Case का नाम बदलें**

```bash
curl -X PUT "https://api.roboflow.com/vision-events/use-cases/USE_CASE_ID" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{ "name": "assembly-line-qa-v2" }'
```

**एक Use Case को archive या unarchive करें**

```bash
curl -X POST "https://api.roboflow.com/vision-events/use-cases/USE_CASE_ID/archive" \
  -H "Authorization: Bearer YOUR_API_KEY"

curl -X POST "https://api.roboflow.com/vision-events/use-cases/USE_CASE_ID/unarchive" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

### एक Use Case को archive करें

जब Use Cases की आवश्यकता न रहे, तो उन्हें dashboard से archive किया जा सकता है। Archived Use Cases और उनके events उपलब्ध रहते हैं, लेकिन default view में छिपे रहते हैं। देखने के लिए क्लिक करें **Archived use cases देखें** Use Cases table के नीचे।\ <br>

<figure><img src="/files/ff7ee75e2620029a052f0038979c1627ebbf8a1d" alt=""><figcaption></figcaption></figure>

### Custom Metadata Schema

Events को किसी Use Case में भेजे जाने के बाद, system देखी गई fields और value types के आधार पर एक metadata schema का अनुमान लगाता है। आप किसी Use Case के लिए inferred schema प्राप्त कर सकते हैं ताकि समझ सकें कि कौन-सी keys और value types उपयोग में हैं:

```bash
curl -X GET "https://api.roboflow.com/vision-events/custom-metadata-schema/assembly-line-qa" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

**उदाहरण response:**

```json
{
  "useCaseId": "assembly-line-qa",
  "fields": {
    "line_id": { "types": ["string"] },
    "shift": { "types": ["string"] },
    "temperature": { "types": ["number"] },
    "is_priority": { "types": ["boolean"] }
  }
}
```

देखें [Vision Events API Reference](https://docs.roboflow.com/developer/rest-api/vision-events) पूर्ण विवरण के लिए।


---

# 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/use-cases.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.
