Monitor Team Owner
Add teams as owners to your monitors.
Модель Monitor Team 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
- Имя
team- Тип
- Team
- Описание
Team that is the owner. All users in this team will receive notifications.
- Имя
teamId- Тип
- Object IDОбязательно
- Описание
ID of your Team 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-team/get-listСписок
Этот метод возвращает постраничный список ваших объектов «Monitor Team Owner». По умолчанию на странице до десяти записей.
Необязательные query-параметры
limit- число
- Сколько объектов вернуть. По умолчанию 10, максимум 100
skip- число
- Сколько объектов пропустить (для пагинации)
Необязательное тело запроса
query- Чтобы фильтровать Monitor Team Owner, укажите запрос здесь. Подробнее: написание запросов.
select- По умолчанию возвращается только ID; для других полей используйте select. Подробнее: как выбирать поля.
sort- По умолчанию сортировка по дате создания. Порядок можно изменить — см. раздел «Сортировка» в типах данных.
Запрос списка
POST/api/monitor-owner-team/get-list?skip=0&limit=10Content-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"isOwnerNotified": true,
"monitorId": true,
"projectId": true,
"teamId": true,
"createdByUser": true
},
"query": {},
"sort": {
"createdAt": -1
}
}Ответ
{
"count": 10,
"limit": 10,
"skip": 0,
"data": [
{
"_id": "3775fe80-28fe-11f1-b591-3fdcef396aba",
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"teamId": "7a9d1e2f-b3c4-5d6e-9f0a-1b2c3d4e5f6a",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
},
{
"_id": "3775fe81-28fe-11f1-b591-3fdcef396aba",
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"teamId": "7a9d1e2f-b3c4-5d6e-9f0a-1b2c3d4e5f6a",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
},
{
"_id": "3775fe82-28fe-11f1-b591-3fdcef396aba",
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"teamId": "7a9d1e2f-b3c4-5d6e-9f0a-1b2c3d4e5f6a",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
}
]
}/api/monitor-owner-team/:id/get-itemПолучить по ID
Возвращает объект «Monitor Team Owner» по идентификатору.
id- строка
- ID объекта
Необязательное тело запроса
select- По умолчанию возвращается только ID; для других полей используйте select. Подробнее: как выбирать поля.
Запрос одного объекта
POST/api/monitor-owner-team/:id/get-itemContent-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"isOwnerNotified": true,
"monitorId": true,
"projectId": true,
"teamId": true,
"createdByUser": true
}
}Ответ
{
"_id": "3775fe80-28fe-11f1-b591-3fdcef396aba",
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"teamId": "7a9d1e2f-b3c4-5d6e-9f0a-1b2c3d4e5f6a",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
}/api/monitor-owner-team/countКоличество
Возвращает количество ваших объектов «Monitor Team Owner».
Необязательное тело запроса
query- Чтобы фильтровать Monitor Team Owner, укажите запрос здесь. Подробнее: написание запросов.
Запрос количества
POST/api/monitor-owner-team/countContent-Type: application/json ApiKey: YOUR_API_KEY
{
"query": {}
}Ответ
{
"count": 107
}/api/monitor-owner-teamСоздать Monitor Team Owner
Создаёт новый объект.
Запрос создания
POST/api/monitor-owner-teamContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"teamId": "7a9d1e2f-b3c4-5d6e-9f0a-1b2c3d4e5f6a",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
}
}Ответ
{
"_id": "3775fe80-28fe-11f1-b591-3fdcef396aba",
"isOwnerNotified": true,
"monitorId": "3c5e7f9a-d1b2-4e6a-8f9c-0d1e2f3a4b5c",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"teamId": "7a9d1e2f-b3c4-5d6e-9f0a-1b2c3d4e5f6a",
"createdByUser": "user-id-9b1c3d5e-f7a9-4c2e-8d6f-0a1b2c3d4e5f"
}/api/monitor-owner-team/:idОбновить по ID
Обновляет объект по ID.
Альтернативные методы
Если клиент не поддерживает PUT, используйте POST или GET с теми же заголовками и телом:
Запрос обновления
PUT/api/monitor-owner-team/:idContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {}
}Ответ
{}/api/monitor-owner-team/:idУдалить по ID
Удаляет объект по ID.
Альтернативные методы
Если клиент не поддерживает DELETE, используйте POST или GET с теми же заголовками и телом:
Запрос удаления
DELETE/api/monitor-owner-team/:idContent-Type: application/json ApiKey: YOUR_API_KEY
Ответ
{}Права доступа
Для операций с ресурсом у ключа API должны быть права. При их отсутствии вернётся ответ 4xx.
Права на чтение
Нужны для чтения Monitor Team Owner
Project OwnerProject AdminProject MemberRead Monitor Team OwnerRead All Project Resources
Права на создание
Нужны для создания Monitor Team Owner
Project OwnerProject AdminProject MemberCreate Monitor Team Owner
Права на обновление
Нужны для обновления Monitor Team Owner
Project OwnerProject AdminProject MemberEdit Monitor Team Owner
Права на удаление
Нужны для удаления Monitor Team Owner
Project OwnerProject AdminProject MemberDelete Monitor Team Owner