Ana Sayfa / Bildirimler: API yöntemleri ve dışa aktarma

Bildirimler: API yöntemleri ve dışa aktarma

İzleme bildirimlerini, özetlerini, zaman serilerini ve ölçümlerini alın. Başvuru CSV dışa aktarmayı ve ilgili parametreleri de açıklar.

Bu sayfada

İçindekilerden bir yöntem seçin. HTTP yöntemini, yolu, izinleri, zorunlu parametreleri ve istek gövdesini kontrol edin. schema, properties ve $ref içeren JSON blokları sözleşmeyi açıklar; bunları hazır istek gövdesi olarak göndermeyin. İstek örnekleri ve yanıt şemaları ayrı etiketlenmiştir.

GET /public-api/v1/diff-projects/{id}/alerts

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffAlertListResponse · ErrorResponse · XID

id (path)

{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

trigger_code (query)

{
  "schema": {
    "type": "string"
  }
}

created_from (query)

{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

created_to (query)

{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

limit (query)

{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}

offset (query)

{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

url_md5 (query)

{
  "schema": {
    "type": "string",
    "pattern": "^[a-fA-F0-9]{32}$"
  }
}

email (query)

{
  "schema": {
    "type": "string",
    "maxLength": 255
  }
}

trigger_group (query)

{
  "schema": {
    "type": "string"
  }
}

include_raw (query)

{
  "schema": {
    "type": "boolean"
  }
}

Yanıtlar

200

Uyarılar.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffAlertListResponse"
      }
    }
  }
}

default

Anahtar eksik veya geçersizse limit başlıkları IP başına başarısız denemeleri gösterir. Kimlik doğrulamasından sonra anahtar veya hesap limiti geçerlidir. Önceden engelleme veya sayaç kullanılamaması durumunda başlıklar bulunmayabilir. X-RateLimit-Reset saniye cinsinden Unix zamanıdır; 429 için Retry-After saniye cinsinden bekleme süresidir.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/{report_id}/alerts

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffAlertListResponse · ErrorResponse · XID

id (path)

{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

report_id (path)

Rapor xid değeri veya last sabit değeri. last yalnızca bu yol parametresinde kabul edilir.

{
  "required": true,
  "schema": {
    "type": "string",
    "minLength": 4,
    "maxLength": 64,
    "pattern": "^([A-Za-z0-9_-]+|last)$"
  }
}

trigger_code (query)

{
  "schema": {
    "type": "string"
  }
}

limit (query)

{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}

offset (query)

{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

url_md5 (query)

{
  "schema": {
    "type": "string",
    "pattern": "^[a-fA-F0-9]{32}$"
  }
}

email (query)

{
  "schema": {
    "type": "string",
    "maxLength": 255
  }
}

trigger_group (query)

{
  "schema": {
    "type": "string"
  }
}

include_raw (query)

{
  "schema": {
    "type": "boolean"
  }
}

Yanıtlar

200

Uyarılar.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffAlertListResponse"
      }
    }
  }
}

default

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/alerts/summary

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffAlertSummaryResponse · ErrorResponse · XID

id (path)

{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

created_from (query)

{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

created_to (query)

{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

url_md5 (query)

{
  "schema": {
    "type": "string",
    "pattern": "^[a-fA-F0-9]{32}$"
  }
}

email (query)

{
  "schema": {
    "type": "string",
    "maxLength": 255
  }
}

trigger_code (query)

{
  "schema": {
    "type": "string"
  }
}

trigger_group (query)

{
  "schema": {
    "type": "string"
  }
}

include_raw (query)

{
  "schema": {
    "type": "boolean"
  }
}

Yanıtlar

200

Uyarı özeti.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffAlertSummaryResponse"
      }
    }
  }
}

default

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/{report_id}/alerts/summary

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffAlertSummaryResponse · ErrorResponse · XID

id (path)

{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

report_id (path)

Rapor xid değeri veya last sabit değeri. last yalnızca bu yol parametresinde kabul edilir.

{
  "required": true,
  "schema": {
    "type": "string",
    "minLength": 4,
    "maxLength": 64,
    "pattern": "^([A-Za-z0-9_-]+|last)$"
  }
}

url_md5 (query)

{
  "schema": {
    "type": "string",
    "pattern": "^[a-fA-F0-9]{32}$"
  }
}

email (query)

{
  "schema": {
    "type": "string",
    "maxLength": 255
  }
}

trigger_code (query)

{
  "schema": {
    "type": "string"
  }
}

trigger_group (query)

{
  "schema": {
    "type": "string"
  }
}

include_raw (query)

{
  "schema": {
    "type": "boolean"
  }
}

Yanıtlar

200

Uyarı özeti.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffAlertSummaryResponse"
      }
    }
  }
}

default

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/alerts/timeseries

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffAlertTimeseriesResponse · ErrorResponse · XID

id (path)

{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

interval (query)

{
  "schema": {
    "type": "string",
    "enum": [
      "hour",
      "day"
    ],
    "default": "day"
  }
}

url_md5 (query)

{
  "schema": {
    "type": "string",
    "pattern": "^[a-fA-F0-9]{32}$"
  }
}

email (query)

{
  "schema": {
    "type": "string",
    "maxLength": 255
  }
}

trigger_code (query)

{
  "schema": {
    "type": "string"
  }
}

trigger_group (query)

{
  "schema": {
    "type": "string"
  }
}

include_raw (query)

{
  "schema": {
    "type": "boolean"
  }
}

from (query)

{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

to (query)

{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

Yanıtlar

200

Uyarı zaman serileri.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffAlertTimeseriesResponse"
      }
    }
  }
}

default

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/alerts/export.csv

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · XID

id (path)

{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

created_from (query)

{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

created_to (query)

{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

bom (query)

{
  "schema": {
    "type": "boolean",
    "default": true
  }
}

url_md5 (query)

{
  "schema": {
    "type": "string",
    "pattern": "^[a-fA-F0-9]{32}$"
  }
}

email (query)

{
  "schema": {
    "type": "string",
    "maxLength": 255
  }
}

trigger_code (query)

{
  "schema": {
    "type": "string"
  }
}

trigger_group (query)

{
  "schema": {
    "type": "string"
  }
}

include_raw (query)

{
  "schema": {
    "type": "boolean"
  }
}

Yanıtlar

200

Elektronik tablo araçları için kodlanmış CSV dışa aktarımı.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "Content-Disposition": {
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "text/csv": {
      "schema": {
        "type": "string"
      }
    }
  }
}

default

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/alerts/metrics

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · XID

id (path)

{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

created_from (query)

{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

created_to (query)

{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

url_md5 (query)

{
  "schema": {
    "type": "string",
    "pattern": "^[a-fA-F0-9]{32}$"
  }
}

email (query)

{
  "schema": {
    "type": "string",
    "maxLength": 255
  }
}

trigger_code (query)

{
  "schema": {
    "type": "string"
  }
}

trigger_group (query)

{
  "schema": {
    "type": "string"
  }
}

include_raw (query)

{
  "schema": {
    "type": "boolean"
  }
}

Yanıtlar

200

Yalnızca düşük kardinaliteli etiketlerle Prometheus metin biçimi.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "text/plain": {
      "schema": {
        "type": "string"
      }
    }
  }
}

default

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/{report_id}/alerts/metrics

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · XID

id (path)

{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

report_id (path)

Rapor xid değeri veya last sabit değeri. last yalnızca bu yol parametresinde kabul edilir.

{
  "required": true,
  "schema": {
    "type": "string",
    "minLength": 4,
    "maxLength": 64,
    "pattern": "^([A-Za-z0-9_-]+|last)$"
  }
}

url_md5 (query)

{
  "schema": {
    "type": "string",
    "pattern": "^[a-fA-F0-9]{32}$"
  }
}

email (query)

{
  "schema": {
    "type": "string",
    "maxLength": 255
  }
}

trigger_code (query)

{
  "schema": {
    "type": "string"
  }
}

trigger_group (query)

{
  "schema": {
    "type": "string"
  }
}

include_raw (query)

{
  "schema": {
    "type": "boolean"
  }
}

Yanıtlar

200

Yalnızca düşük kardinaliteli etiketlerle Prometheus metin biçimi.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "text/plain": {
      "schema": {
        "type": "string"
      }
    }
  }
}

default

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    },
    "X-RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimitLimit"
    },
    "X-RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimitRemaining"
    },
    "X-RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimitResetAt"
    },
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "Retry-After": {
      "$ref": "#/components/headers/RetryAfter"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ErrorResponse"
      }
    }
  }
}