Monitor User Owner
Add users as owners to your monitors.
Модель Monitor User Owner
Свойства
- Имя
_id- Тип
- Object ID
- Описание
ID of this object
- Имя
createdAt- Тип
- Date
- Описание
Date and Time when the object was created.
- Имя
updatedAt- Тип
- Date
- Описание
Date and Time when the object was updated.
- Имя
project- Тип
- Project
- Описание
Relation to Project Resource in which this object belongs
- Имя
projectId- Тип
- Object IDОбязательно
- Описание
ID of your Project in which this object belongs
- Имя
user- Тип
- User
- Описание
User that is the owner. This user will receive notifications.
- Имя
userId- Тип
- Object IDОбязательно
- Описание
ID of your User in which this object belongs
- Имя
monitor- Тип
- Monitor
- Описание
Relation to Monitor Resource in which this object belongs
- Имя
monitorId- Тип
- Object IDОбязательно
- Описание
ID of your Monitor in which this object belongs
- Имя
createdByUser- Тип
- User
- Описание
Relation to User who created this object (if this object was created by a User)
- Имя
createdByUserId- Тип
- Object ID
- Описание
User ID who created this object (if this object was created by a User)
- Имя
isOwnerNotified- Тип
- BooleanОбязательно
- Описание
Are owners notified of this resource ownership?
/api/monitor-owner-user/get-listСписок
Этот метод возвращает постраничный список ваших объектов «Monitor User Owner». По умолчанию на странице до десяти записей.
Необязательные query-параметры
limit- число
- Сколько объектов вернуть. По умолчанию 10, максимум 100
skip- число
- Сколько объектов пропустить (для пагинации)
Необязательное тело запроса
query- Чтобы фильтровать Monitor User Owner, укажите запрос здесь. Подробнее: написание запросов.
select- По умолчанию возвращается только ID; для других полей используйте select. Подробнее: как выбирать поля.
sort- По умолчанию сортировка по дате создания. Порядок можно изменить — см. раздел «Сортировка» в типах данных.
Запрос списка
POST/api/monitor-owner-user/get-list?skip=0&limit=10Content-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"isOwnerNotified": true,
"monitorId": true,
"projectId": true,
"userId": true,
"createdByUser": true
},
"query": {},
"sort": {
"createdAt": -1
}
}Ответ
{
"count": 10,
"limit": 10,
"skip": 0,
"data": [
{
"_id": "3775fe83-28fe-11f1-b591-3fdcef396aba",
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"userId": "8c1d3e5f-a7b9-4c2e-9d6f-1a2b3c4d5e6f",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
},
{
"_id": "3775fe84-28fe-11f1-b591-3fdcef396aba",
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"userId": "8c1d3e5f-a7b9-4c2e-9d6f-1a2b3c4d5e6f",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
},
{
"_id": "3775fe85-28fe-11f1-b591-3fdcef396aba",
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"userId": "8c1d3e5f-a7b9-4c2e-9d6f-1a2b3c4d5e6f",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
}
]
}/api/monitor-owner-user/:id/get-itemПолучить по ID
Возвращает объект «Monitor User Owner» по идентификатору.
id- строка
- ID объекта
Необязательное тело запроса
select- По умолчанию возвращается только ID; для других полей используйте select. Подробнее: как выбирать поля.
Запрос одного объекта
POST/api/monitor-owner-user/:id/get-itemContent-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"isOwnerNotified": true,
"monitorId": true,
"projectId": true,
"userId": true,
"createdByUser": true
}
}Ответ
{
"_id": "3775fe83-28fe-11f1-b591-3fdcef396aba",
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"userId": "8c1d3e5f-a7b9-4c2e-9d6f-1a2b3c4d5e6f",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
}/api/monitor-owner-user/countКоличество
Возвращает количество ваших объектов «Monitor User Owner».
Необязательное тело запроса
query- Чтобы фильтровать Monitor User Owner, укажите запрос здесь. Подробнее: написание запросов.
Запрос количества
POST/api/monitor-owner-user/countContent-Type: application/json ApiKey: YOUR_API_KEY
{
"query": {}
}Ответ
{
"count": 107
}/api/monitor-owner-userСоздать Monitor User Owner
Создаёт новый объект.
Запрос создания
POST/api/monitor-owner-userContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"userId": "8c1d3e5f-a7b9-4c2e-9d6f-1a2b3c4d5e6f",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
}
}Ответ
{
"_id": "3775fe83-28fe-11f1-b591-3fdcef396aba",
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"userId": "8c1d3e5f-a7b9-4c2e-9d6f-1a2b3c4d5e6f",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
}/api/monitor-owner-user/:idОбновить по ID
Обновляет объект по ID.
Альтернативные методы
Если клиент не поддерживает PUT, используйте POST или GET с теми же заголовками и телом:
Запрос обновления
PUT/api/monitor-owner-user/:idContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {}
}Ответ
{}/api/monitor-owner-user/:idУдалить по ID
Удаляет объект по ID.
Альтернативные методы
Если клиент не поддерживает DELETE, используйте POST или GET с теми же заголовками и телом:
Запрос удаления
DELETE/api/monitor-owner-user/:idContent-Type: application/json ApiKey: YOUR_API_KEY
Ответ
{}Права доступа
Для операций с ресурсом у ключа API должны быть права. При их отсутствии вернётся ответ 4xx.
Права на чтение
Нужны для чтения Monitor User Owner
Project OwnerProject AdminProject MemberRead Monitor User OwnerRead All Project Resources
Права на создание
Нужны для создания Monitor User Owner
Project OwnerProject AdminProject MemberCreate Monitor User Owner
Права на обновление
Нужны для обновления Monitor User Owner
Project OwnerProject AdminProject MemberEdit Monitor User Owner
Права на удаление
Нужны для удаления Monitor User Owner
Project OwnerProject AdminProject MemberDelete Monitor User Owner