Skip to main content

Siren APIs

Documentation of our Siren API with gRPC and gRPC-Gateway.

Version: 0.5

/v1beta1/alerts/{provider_type}/{provider_id}

GET

Summary

list alerts

Parameters
NameLocated inDescriptionRequiredSchema
provider_typepathYesstring
provider_idpathYesstring (uint64)
resource_namequeryNostring
start_timequeryNostring (uint64)
end_timequeryNostring (uint64)
namespace_idqueryNostring (uint64)
silence_idqueryNostring
Responses
CodeDescriptionSchema
200A successful response.ListAlertsResponse
defaultAn unexpected error response.Status

POST

Summary

create alerts

Parameters
NameLocated inDescriptionRequiredSchema
provider_typepathYesstring
provider_idpathYesstring (uint64)
bodybodyYesobject
Responses
CodeDescriptionSchema
200A successful response.CreateAlertsResponse
defaultAn unexpected error response.Status

/v1beta1/alerts/{provider_type}/{provider_id}/{namespace_id}

POST

Summary

create alerts with namespace

Parameters
NameLocated inDescriptionRequiredSchema
provider_typepathYesstring
provider_idpathYesstring (uint64)
namespace_idpathYesstring (uint64)
bodybodyYesobject
Responses
CodeDescriptionSchema
200A successful response.CreateAlertsWithNamespaceResponse
defaultAn unexpected error response.Status

/v1beta1/namespaces

GET

Summary

list namespaces

Responses
CodeDescriptionSchema
200A successful response.ListNamespacesResponse
defaultAn unexpected error response.Status

POST

Summary

create a namespace

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesCreateNamespaceRequest
Responses
CodeDescriptionSchema
200A successful response.CreateNamespaceResponse
defaultAn unexpected error response.Status

/v1beta1/namespaces/{id}

GET

Summary

get a namespace

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
Responses
CodeDescriptionSchema
200A successful response.GetNamespaceResponse
defaultAn unexpected error response.Status

DELETE

Summary

delete a namespace

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
Responses
CodeDescriptionSchema
200A successful response.DeleteNamespaceResponse
defaultAn unexpected error response.Status

PUT

Summary

update a namespace

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
bodybodyYesobject
Responses
CodeDescriptionSchema
200A successful response.UpdateNamespaceResponse
defaultAn unexpected error response.Status

/v1beta1/providers

GET

Summary

list providers

Parameters
NameLocated inDescriptionRequiredSchema
urnqueryNostring
typequeryNostring
Responses
CodeDescriptionSchema
200A successful response.ListProvidersResponse
defaultAn unexpected error response.Status

POST

Summary

create a provider

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesCreateProviderRequest
Responses
CodeDescriptionSchema
200A successful response.CreateProviderResponse
defaultAn unexpected error response.Status

/v1beta1/providers/{id}

GET

Summary

get a provider

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
Responses
CodeDescriptionSchema
200A successful response.GetProviderResponse
defaultAn unexpected error response.Status

DELETE

Summary

delete a provider

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
Responses
CodeDescriptionSchema
200A successful response.DeleteProviderResponse
defaultAn unexpected error response.Status

PUT

Summary

update a provider

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
bodybodyYesobject
Responses
CodeDescriptionSchema
200A successful response.UpdateProviderResponse
defaultAn unexpected error response.Status

/v1beta1/receivers

GET

Summary

list receivers

Responses
CodeDescriptionSchema
200A successful response.ListReceiversResponse
defaultAn unexpected error response.Status

POST

Summary

create a receiver

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesCreateReceiverRequest
Responses
CodeDescriptionSchema
200A successful response.CreateReceiverResponse
defaultAn unexpected error response.Status

/v1beta1/receivers/{id}

GET

Summary

get a receiver

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
Responses
CodeDescriptionSchema
200A successful response.GetReceiverResponse
defaultAn unexpected error response.Status

DELETE

Summary

delete a receiver

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
Responses
CodeDescriptionSchema
200A successful response.DeleteReceiverResponse
defaultAn unexpected error response.Status

PUT

Summary

update a receiver

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
bodybodyYesobject
Responses
CodeDescriptionSchema
200A successful response.UpdateReceiverResponse
defaultAn unexpected error response.Status

/v1beta1/receivers/{id}/send

POST

Summary

send notification to receiver

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
bodybodyYesobject
Responses
CodeDescriptionSchema
200A successful response.NotifyReceiverResponse
defaultAn unexpected error response.Status

/v1beta1/rules

GET

Summary

list rules

Parameters
NameLocated inDescriptionRequiredSchema
namequeryNostring
namespacequeryNostring
group_namequeryNostring
templatequeryNostring
provider_namespacequeryNostring (uint64)
Responses
CodeDescriptionSchema
200A successful response.ListRulesResponse
defaultAn unexpected error response.Status

PUT

Summary

add/update a rule

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesUpdateRuleRequest
Responses
CodeDescriptionSchema
200A successful response.UpdateRuleResponse
defaultAn unexpected error response.Status

/v1beta1/silences

GET

Summary

get all silences

Parameters
NameLocated inDescriptionRequiredSchema
subscription_idqueryNostring (uint64)
namespace_idqueryNostring (uint64)
Responses
CodeDescriptionSchema
200A successful response.ListSilencesResponse
defaultAn unexpected error response.Status

POST

Summary

create a silence

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesCreateSilenceRequest
Responses
CodeDescriptionSchema
200A successful response.CreateSilenceResponse
defaultAn unexpected error response.Status

/v1beta1/silences/{id}

GET

Summary

get a silence

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.GetSilenceResponse
defaultAn unexpected error response.Status

DELETE

Summary

expire a silence

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.ExpireSilenceResponse
defaultAn unexpected error response.Status

/v1beta1/subscriptions

GET

Summary

List subscriptions

Parameters
NameLocated inDescriptionRequiredSchema
namespace_idqueryNostring (uint64)
silence_idqueryNostring
Responses
CodeDescriptionSchema
200A successful response.ListSubscriptionsResponse
defaultAn unexpected error response.Status

POST

Summary

Create a subscription

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesCreateSubscriptionRequest
Responses
CodeDescriptionSchema
200A successful response.CreateSubscriptionResponse
defaultAn unexpected error response.Status

/v1beta1/subscriptions/{id}

GET

Summary

Get a subscription

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
Responses
CodeDescriptionSchema
200A successful response.GetSubscriptionResponse
defaultAn unexpected error response.Status

DELETE

Summary

Delete a subscription

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
Responses
CodeDescriptionSchema
200A successful response.DeleteSubscriptionResponse
defaultAn unexpected error response.Status

PUT

Summary

Update a subscription

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring (uint64)
bodybodyYesobject
Responses
CodeDescriptionSchema
200A successful response.UpdateSubscriptionResponse
defaultAn unexpected error response.Status

/v1beta1/templates

GET

Summary

list templates

Parameters
NameLocated inDescriptionRequiredSchema
tagqueryNostring
Responses
CodeDescriptionSchema
200A successful response.ListTemplatesResponse
defaultAn unexpected error response.Status

PUT

Summary

add/update a template

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesUpsertTemplateRequest
Responses
CodeDescriptionSchema
200A successful response.UpsertTemplateResponse
defaultAn unexpected error response.Status

/v1beta1/templates/{name}

GET

Summary

get a template

Parameters
NameLocated inDescriptionRequiredSchema
namepathYesstring
Responses
CodeDescriptionSchema
200A successful response.GetTemplateResponse
defaultAn unexpected error response.Status

DELETE

Summary

delete a template

Parameters
NameLocated inDescriptionRequiredSchema
namepathYesstring
Responses
CodeDescriptionSchema
200A successful response.DeleteTemplateResponse
defaultAn unexpected error response.Status

/v1beta1/templates/{name}/render

POST

Summary

render a template

Parameters
NameLocated inDescriptionRequiredSchema
namepathYesstring
bodybodyYesobject
Responses
CodeDescriptionSchema
200A successful response.RenderTemplateResponse
defaultAn unexpected error response.Status

Models

Alert

NameTypeDescriptionRequired
idstring (uint64)No
metric_namestringNo
metric_valuestringNo
namespace_idstring (uint64)No
provider_idstring (uint64)No
resource_namestringNo
rulestringNo
severitystringNo
silence_statusstringNo
triggered_atdateTimeNo

Any

NameTypeDescriptionRequired
@typestringNo

CreateAlertsResponse

NameTypeDescriptionRequired
alerts[ Alert ]No

CreateAlertsWithNamespaceResponse

NameTypeDescriptionRequired
alerts[ Alert ]No

CreateNamespaceRequest

NameTypeDescriptionRequired
created_atdateTimeNo
credentialsobjectNo
labelsobjectNo
namestringNo
providerstring (uint64)No
updated_atdateTimeNo
urnstringNo

CreateNamespaceResponse

NameTypeDescriptionRequired
idstring (uint64)No

CreateProviderRequest

NameTypeDescriptionRequired
credentialsobjectNo
hoststringNo
labelsobjectNo
namestringNo
typestringNo
urnstringNo

CreateProviderResponse

NameTypeDescriptionRequired
idstring (uint64)No

CreateReceiverRequest

NameTypeDescriptionRequired
configurationsobjectNo
labelsobjectNo
namestringNo
typestringNo

CreateReceiverResponse

NameTypeDescriptionRequired
idstring (uint64)No

CreateSilenceRequest

NameTypeDescriptionRequired
namespace_idstring (uint64)No
target_expressionobjectNo
target_idstring (uint64)No
typestringNo

CreateSilenceResponse

NameTypeDescriptionRequired
idstringNo

CreateSubscriptionRequest

NameTypeDescriptionRequired
matchobjectNo
namespacestring (uint64)No
receivers[ ReceiverMetadata ]No
urnstringNo

CreateSubscriptionResponse

NameTypeDescriptionRequired
idstring (uint64)No

DeleteNamespaceResponse

NameTypeDescriptionRequired
DeleteNamespaceResponseobject

DeleteProviderResponse

NameTypeDescriptionRequired
DeleteProviderResponseobject

DeleteReceiverResponse

NameTypeDescriptionRequired
DeleteReceiverResponseobject

DeleteSubscriptionResponse

NameTypeDescriptionRequired
DeleteSubscriptionResponseobject

DeleteTemplateResponse

NameTypeDescriptionRequired
DeleteTemplateResponseobject

ExpireSilenceResponse

NameTypeDescriptionRequired
ExpireSilenceResponseobject

GetNamespaceResponse

NameTypeDescriptionRequired
namespaceNamespaceNo

GetProviderResponse

NameTypeDescriptionRequired
providerProviderNo

GetReceiverResponse

NameTypeDescriptionRequired
receiverReceiverNo

GetSilenceResponse

NameTypeDescriptionRequired
silenceSilenceNo

GetSubscriptionResponse

NameTypeDescriptionRequired
subscriptionSubscriptionNo

GetTemplateResponse

NameTypeDescriptionRequired
templateTemplateNo

ListAlertsResponse

NameTypeDescriptionRequired
alerts[ Alert ]No

ListNamespacesResponse

NameTypeDescriptionRequired
namespaces[ Namespace ]No

ListProvidersResponse

NameTypeDescriptionRequired
providers[ Provider ]No

ListReceiversResponse

NameTypeDescriptionRequired
receivers[ Receiver ]No

ListRulesResponse

NameTypeDescriptionRequired
rules[ Rule ]No

ListSilencesResponse

NameTypeDescriptionRequired
silences[ Silence ]No

ListSubscriptionsResponse

NameTypeDescriptionRequired
subscriptions[ Subscription ]No

ListTemplatesResponse

NameTypeDescriptionRequired
templates[ Template ]No

Namespace

NameTypeDescriptionRequired
created_atdateTimeNo
credentialsobjectNo
idstring (uint64)No
labelsobjectNo
namestringNo
providerstring (uint64)No
updated_atdateTimeNo
urnstringNo

NotifyReceiverResponse

NameTypeDescriptionRequired
NotifyReceiverResponseobject

NullValue

NullValue is a singleton enumeration to represent the null value for the Value type union.

The JSON representation for NullValue is JSON null.

  • NULL_VALUE: Null value.
NameTypeDescriptionRequired
NullValuestringNullValue is a singleton enumeration to represent the null value for the Value type union. The JSON representation for NullValue is JSON null. - NULL_VALUE: Null value.

Provider

NameTypeDescriptionRequired
created_atdateTimeNo
credentialsobjectNo
hoststringNo
idstring (uint64)No
labelsobjectNo
namestringNo
typestringNo
updated_atdateTimeNo
urnstringNo

Receiver

NameTypeDescriptionRequired
configurationsobjectNo
created_atdateTimeNo
dataobjectNo
idstring (uint64)No
labelsobjectNo
namestringNo
typestringNo
updated_atdateTimeNo

ReceiverMetadata

NameTypeDescriptionRequired
configurationobjectNo
idstring (uint64)No

RenderTemplateResponse

NameTypeDescriptionRequired
bodystringNo

Rule

NameTypeDescriptionRequired
created_atdateTimeNo
enabledbooleanNo
group_namestringNo
idstring (uint64)No
namestringNo
namespacestringNo
provider_namespacestring (uint64)No
templatestringNo
updated_atdateTimeNo
variables[ Variables ]No

Silence

NameTypeDescriptionRequired
created_atdateTimeNo
deleted_atdateTimeNo
idstringNo
namespace_idstring (uint64)No
target_expressionobjectNo
target_idstring (uint64)No
typestringNo
updated_atdateTimeNo

Status

NameTypeDescriptionRequired
codeintegerNo
details[ Any ]No
messagestringNo

Subscription

NameTypeDescriptionRequired
created_atdateTimeNo
idstring (uint64)No
matchobjectNo
namespacestring (uint64)No
receivers[ ReceiverMetadata ]No
updated_atdateTimeNo
urnstringNo

Template

NameTypeDescriptionRequired
bodystringNo
created_atdateTimeNo
idstring (uint64)No
namestringNo
tags[ string ]No
updated_atdateTimeNo
variables[ TemplateVariables ]No

TemplateVariables

NameTypeDescriptionRequired
defaultstringNo
descriptionstringNo
namestringNo
typestringNo

UpdateNamespaceResponse

NameTypeDescriptionRequired
idstring (uint64)No

UpdateProviderResponse

NameTypeDescriptionRequired
idstring (uint64)No

UpdateReceiverResponse

NameTypeDescriptionRequired
idstring (uint64)No

UpdateRuleRequest

NameTypeDescriptionRequired
enabledbooleanNo
group_namestringNo
namespacestringNo
provider_namespacestring (uint64)No
templatestringNo
variables[ Variables ]No

UpdateRuleResponse

NameTypeDescriptionRequired
ruleRuleNo

UpdateSubscriptionResponse

NameTypeDescriptionRequired
idstring (uint64)No

UpsertTemplateRequest

NameTypeDescriptionRequired
bodystringNo
idstring (uint64)No
namestringNo
tags[ string ]No
variables[ TemplateVariables ]No

UpsertTemplateResponse

NameTypeDescriptionRequired
idstring (uint64)No

Variables

NameTypeDescriptionRequired
descriptionstringNo
namestringNo
typestringNo
valuestringNo