# Use Cases

## Use Cases

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

### एक vs. कई 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** — tracks `line_id`, `shift`, `part_number`
* **Warehouse Inventory** — tracks `aisle`, `shelf`, `item_type`
* **Construction Site Safety** — tracks `zone`, `alert_type`, `contractor`

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

#### Dashboard में

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

<figure><img src="https://2698615118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6S9nPJhEX9FYH6clfW%2Fuploads%2FHeINTZfy9moBciMlrQpZ%2Fimage.png?alt=media&#x26;token=75581e01-5e61-46b4-958d-654ffb7014ac" alt="" width="375"><figcaption></figcaption></figure>

### 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 Case archive करें

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

<figure><img src="https://2698615118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6S9nPJhEX9FYH6clfW%2Fuploads%2F71mElYpzCyYcZ3Fupy3A%2FDashboard%20view%20for%20solution%20nine%20status.png?alt=media&#x26;token=46dd10e0-d93b-45c3-8c71-5cf4884e10d2" alt=""><figcaption></figcaption></figure>

### Custom Metadata Schema

Events को एक Use Case में भेजे जाने के बाद, system देखे गए fields और value types के आधार पर metadata schema infer करता है। आप किसी 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) पूर्ण विवरण के लिए।
