erp_mon

mon_monitoramento

30 views 05/03/2020 07/05/2021 integrador 0

2.0info: 1.13.0 mon_monitoramento description: Serviço de monitoramento x-senior-domain: erp_mon x-senior-domain-path: erp_mon x-senior-service-path: mon_monitoramento contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: platform.senior.com.br /t/senior.com.br/bridge/1.0/rest/erp_monsecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /mon_monitoramento/queries/pesquisarSituacaoTenants: post: description: Retorna os tenants e o status dos integradores conforme os filtros passados tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: tenant: type: string maxLength: 100 description: Nome do tenant servico: type: object allOf: – #/definitions/recServicosInput description: Serviço e Status do Serviço responses: 200: description: Ok schema: type: object required: – tenants properties: tenants: type: array items: type: object allOf: – #/definitions/recTenant minimum: 1 description: Lista de tenants com seus status inativos: type: integer format: int64 description: Quantidade de Tenants Inativos ativos: type: integer format: int64 description: Quantidade de Tenants Ativos 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/queries/pesquisarTenantsMonitorados: post: description: Pesquisar Tenants Monitorados tags: – Queries x-senior-visibility: PRIVATE parameters: responses: 200: description: Ok schema: type: object required: – tenants properties: tenants: type: array items: type: string minimum: 1 description: Tenants que estão sendo monitorados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Pesquisar Tenants Monitorados tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – tenants properties: tenants: type: array items: type: string minimum: 1 description: Tenants que estão sendo monitorados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/queries/pesquisarUtilizacaoSolucoes: post: description: Retorna a utilizacao das solucoes Senior tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: dominio: type: string description: Dominio solucao: type: string description: Solucao schema: type: string description: Schema dataBase: type: string format: date description: Data base da pesquisa responses: 200: description: Ok schema: type: object required: – solucoes properties: solucoes: type: array items: type: object allOf: – #/definitions/recUtilizacaoSolucoes minimum: 1 description: Lista de Solucoes com a sua utilizacao 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Retorna a utilizacao das solucoes Senior tags: – Queries x-senior-visibility: PRIVATE parameters: – name: dominio description: Dominio in: query type: string – name: solucao description: Solucao in: query type: string – name: schema description: Schema in: query type: string – name: dataBase description: Data base da pesquisa in: query type: string format: date responses: 200: description: Ok schema: type: object required: – solucoes properties: solucoes: type: array items: type: object allOf: – #/definitions/recUtilizacaoSolucoes minimum: 1 description: Lista de Solucoes com a sua utilizacao 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/queries/pesquisarTenantsLogin: post: description: Retorna os tenants com login registrados tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – offset – limit properties: tenant: type: string maxLength: 100 description: Tenant clientCode: type: integer format: int64 description: Client Code clientName: type: string maxLength: 100 description: Client Name loginType: type: string allOf: – #/definitions/enumLoginType description: Tipo de Login offset: type: integer format: int64 description: Offset limit: type: integer format: int64 description: Limit responses: 200: description: Ok schema: type: object required: – tenants – paginacaoRetorno properties: tenants: type: array items: type: object allOf: – #/definitions/recRegistrosLogin minimum: 1 description: Lista de Tenants paginacaoRetorno: type: object allOf: – #/definitions/recPaginacaoRetorno description: Paginação 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/queries/pesquisarErrosReplicacaoBifrost: post: description: Retorna os dados de Erros de Replicação do Bifrost. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – dataInclusao – paginacao properties: schema: type: string maxLength: 75 description: Schema dataInclusao: type: string format: date description: Data de Inclusão do Registro paginacao: type: object allOf: – #/definitions/recPaginacao description: Paginação responses: 200: description: Ok schema: type: object required: – registros – totalErros – paginacaoRetorno properties: registros: type: array items: type: object allOf: – #/definitions/recErrosReplicacaoBifrost minimum: 1 description: Lista com os Registros totalErros: type: integer format: int64 description: Count – Total de Erros paginacaoRetorno: type: object allOf: – #/definitions/recPaginacaoRetorno description: Paginação 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/queries/pesquisarEmailsMonitoramento: post: description: Pesquisar os emails cadastrados por tenant para receber os avisos quando algum dos serviços monitorados estiver apresentando problema tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – tenants properties: tenants: type: array items: type: string minimum: 1 description: Filtro pelos tenants responses: 200: description: Ok schema: type: object required: – dados properties: dados: type: array items: type: object allOf: – #/definitions/recEmailsPorTenant minimum: 1 description: Retorno os emails cadastrados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Pesquisar os emails cadastrados por tenant para receber os avisos quando algum dos serviços monitorados estiver apresentando problema tags: – Queries x-senior-visibility: PRIVATE parameters: – name: tenants description: Filtro pelos tenants in: query required: true type: array items: type: string minimum: 1 responses: 200: description: Ok schema: type: object required: – dados properties: dados: type: array items: type: object allOf: – #/definitions/recEmailsPorTenant minimum: 1 description: Retorno os emails cadastrados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/queries/pesquisarSituacaoTour: post: description: Pesquisar Tenants e Situação do Tour tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: tenant: type: string description: Filtro pelos tenants dominio: type: string description: Domínio solucao: type: string description: Solução progresso: type: string allOf: – #/definitions/enumProgresso description: Progresso dataInicio: type: string format: date description: Data Inicio dataFim: type: string format: date description: Data Fim responses: 200: description: Ok schema: type: object required: – tours properties: tours: type: array items: type: object allOf: – #/definitions/recMonitoramentoTour minimum: 1 description: Retorno com os tenants e situação 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/queries/getMetadata: post: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: metadataFormat: type: string description: responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: metadataFormat description: in: query type: string responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/queries/getDependencies: post: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PUBLIC responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PUBLIC responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/actions/gravarTenant: post: description: Action para cadastrar/alterar um Tenant na Tabela Monitoramento tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – tenant – tipoTenant – etlUsuario – erpUsuario – servicoLogistica properties: tenant: type: string maxLength: 60 description: Tenant tipoTenant: type: string allOf: – #/definitions/enumTipoTenant description: Tipo do Tenant etlUsuario: type: string maxLength: 60 description: ETL Usuário erpUsuario: type: string maxLength: 60 description: ERP Service Usuario formaMonitoramento: type: string allOf: – #/definitions/enumFormaMonitoramento description: Forma de Monitoramento tempoMonitoramento: type: number format: double description: Tempo Monitoramento proximaChamada: type: string format: date-time description: Data da Próxima Chamada ultimaChamada: type: string format: date-time description: Data Última Chamada statusAtual: type: string allOf: – #/definitions/enumAtivoInativo description: Status Atual monitoramentoAtivo: type: string allOf: – #/definitions/enumAtivoInativo description: Status Monitoramento falhasEmail: type: integer format: int64 description: Quantidade de falhas para disparar o e-mail servicoLogistica: type: boolean description: Flag para controlar se será criado Serviço para Logística isFromIdentificarTenantsCargaInicial: type: boolean description: Flag para controlar se será um tenant vindo do IdentificarTenantsCargaInicial responses: 200: description: Ok schema: type: object required: – tenantCriado properties: tenantCriado: type: boolean description: Confirmação tenant criado. 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/actions/incluirEmailsMonitoramento: post: description: Incluir emails para receber os avisos quando algum dos serviços monitorados estiver apresentando problema tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – emails properties: emails: type: array items: type: object allOf: – #/definitions/recEmailMonitoramentoBase minimum: 1 description: Email que irá ser cadastrado para receber os avisos responses: 200: description: Ok schema: type: object required: – emailsCadastrados properties: emailsCadastrados: type: array items: type: object allOf: – #/definitions/recEmailMonitoramentoBase minimum: 1 description: Retorno os emails cadastrados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/actions/excluirEmailsMonitoramento: post: description: Excluir emails que recebem os avisos quando algum dos serviços monitorados estiver apresentando problema tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – emails properties: emails: type: array items: type: object allOf: – #/definitions/recEmailMonitoramentoBase minimum: 1 description: Emails que serão excluídos do recebimento dos avisos responses: 200: description: Ok schema: type: object required: – emailsExcluidos properties: emailsExcluidos: type: array items: type: object allOf: – #/definitions/recEmailMonitoramentoBase minimum: 1 description: Retorno dos emails excluídos mensagemErro: type: array items: type: string description: Mensagem de Erro 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /mon_monitoramento/actions/registrarInformacaoBaseG5: post: description: Registrar informações da G5 tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – rotina – texto properties: rotina: type: string maxLength: 30 description: Identificar único da rotina que está sendo registradas as informações clienteCodigo: type: integer format: int64 description: Código do Cliente baseG5Origem: type: string allOf: – #/definitions/enumTipoTenant description: Opcional – Origem da base (homologação ou produção) – Quando não informado será considerado produção texto: type: string format: byte description: Informação que deverá ser grava em um campo texto/json responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/identificarTenantsCargaInicial: post: description: Atualiza na tabela monitoramento os tenants com carga inicial realizada tags: – Signals parameters: – name: input in: body required: true schema: type: object responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/realizarMonitoramentoServicos: post: description: Realiza o Monitoramento dos Serviços Configurados/Cadastrados tags: – Signals parameters: – name: input in: body required: true schema: type: object responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/identificarUtilizacaoSolucoes: post: description: Realiza pesquisa com contagem de utilizacao de cada solucao por schema tags: – Signals parameters: – name: input in: body required: true schema: type: object properties: dataInicio: type: string format: date description: Data Inicio do Select responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/identificarErrosReplicacaoBifrost: post: description: Realiza pesquisa na tabela bifrsot_sync_pendency retornando os erros de replicação tags: – Signals parameters: – name: input in: body required: true schema: type: object responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/identificarUtilizacaoCamadaGestao: post: description: Identifica se o tenant que for enviado utiliza a Camada Gestão tags: – Signals parameters: – name: input in: body required: true schema: type: object responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/registraLoginErpXt: post: description: Cadastra no banco todo tenant que faz login na SeniorXT tags: – Signals parameters: – name: input in: body required: true schema: type: object required: – loginType – user properties: clientCode: type: integer format: int64 description: Código do Cliente tenant: type: string maxLength: 100 description: Tenant loginType: type: string allOf: – #/definitions/enumLoginType description: Tipo de login type: string maxLength: 20 description: Versão da G5 user: type: string maxLength: 50 description: Usuário responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/processarFilaEtl: post: description: Processa chamadas para ETL tags: – Signals parameters: – name: input in: body required: true schema: type: object required: – tenant – usuario properties: tenant: type: string description: Nome do tenant usuario: type: string description: Usuário da ETL responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/processarFilaErpService: post: description: Processa chamadas para ERP Service tags: – Signals parameters: – name: input in: body required: true schema: type: object required: – tenant properties: tenant: type: string description: Nome do tenant responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/processarFilaEtlLogistica: post: description: Processa chamadas para o ETL Logistica tags: – Signals parameters: – name: input in: body required: true schema: type: object required: – tenant properties: tenant: type: string description: Tenant responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/processarFilaDmlLogistica: post: description: Processa chamadas para DML Logistica tags: – Signals parameters: – name: input in: body required: true schema: type: object required: – tenant properties: tenant: type: string description: Nome do tenant responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /mon_monitoramento/signals/registrarTour: post: description: Registra informações sobre a realização do Tour tags: – Signals parameters: – name: input in: body required: true schema: type: object required: – dominio – solucao – progresso properties: dominio: type: string maxLength: 15 description: Domínio solucao: type: string maxLength: 20 description: Solução progresso: type: string allOf: – #/definitions/enumProgresso description: Progresso responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericErrordefinitions: enumLoginType: description: Tipo de login que está sendo efetuado type: string enum: – G5 – FACELIFT – FACELIFT_COM_TENANT – FACELIFT_OFFLINE enumTipoOrdenacao: description: Enum tipo de ordenar type: string enum: – Asc – Desc enumTipoTenant: description: Enum tipo usuário Tenant type: string enum: – HOMOLOGACAO – PRODUCAO enumFormaMonitoramento: description: Enum forma de monitoramento type: string enum: – ERPSERVICE – ERPETL – LOGISTICA_ETL – LOGISTICA_DML enumAtivoInativo: description: Enum Ativo – Inativo type: string enum: – INATIVO – ATIVO enumProgresso: description: Progressos do Tour type: string enum: – INICIO – FIM userNotificationKind: description: User notification kind. type: string enum: – Operational – Management – News userNotificationPriority: description: User notification priority. type: string enum: – Error – Alert – None eventEmailFormat: description: Format of the email type: string enum: – HTML – PLAIN_TEXT recTenant: description: Record dos tenants type: object required: – tenant – servicos properties: tenant: type: string maxLength: 100 description: Nome do tenant servicos: type: array items: type: object allOf: – #/definitions/recServicos minimum: 1 description: Serviços vinculados ao Tenant recServicos: description: Record dos Servicos type: object required: – servico – statusAtual – proximaChamada – monitoramentoChamadas properties: servico: type: string allOf: – #/definitions/enumFormaMonitoramento description: Serviço statusAtual: type: string allOf: – #/definitions/enumAtivoInativo description: Status Atual do Serviço proximaChamada: type: string format: date-time description: Data da Próxima chamada monitoramentoChamadas: type: object allOf: – #/definitions/recMonitoramentoChamadas description: Record Monitoramento Chamadas recMonitoramentoChamadas: description: Record Monitoramento Chamadas type: object required: – mensagemErro – causaErro – dataChamada properties: mensagemErro: type: string description: Mensagem de Erro causaErro: type: string description: Causa do Erro dataChamada: type: string format: date-time description: Data da Chamada dataResposta: type: string format: date-time description: Data da Resposta recServicosInput: description: Record da Primitiva PesquisarSituacaoTenants type: object required: – tipoServico properties: tipoServico: type: string allOf: – #/definitions/enumFormaMonitoramento description: Tipo Serviço status: type: string allOf: – #/definitions/enumAtivoInativo description: Status do Serviço recUtilizacaoSolucoes: description: Record da Utilizacao das Solucoes type: object required: – dominio – solucao – totalRegistros – schema – dataBase properties: dominio: type: string description: Dominio solucao: type: string description: Solucao totalRegistros: type: integer format: int64 description: Total Registros schema: type: string description: Schema dataBase: type: string format: date description: Data Base recRegistrosLogin: description: Record Registros Login type: object required: – loginTypeCode – loginType – generationDate – lastLoginDate properties: tenant: type: string description: Tenant clientCode: type: integer format: int64 description: Código do cliente clientName: type: string description: Nome do cliente clientType: type: string description: Cliente ou Canal loginTypeCode: type: string allOf: – #/definitions/enumLoginType description: Código do tipo de login loginType: type: string description: Tipo de login versionG5: type: string description: Versão G5 generationDate: type: string format: date description: Data de geração lastLoginDate: type: string format: date description: Data último login recRegistrosLoginDatas: description: Record Registros Login Datas type: object required: – username – dataAcesso properties: username: type: string description: Usuário dataAcesso: type: string format: date description: Data Acesso recErrosReplicacaoBifrost: description: Record Erros de Replicação Bifrost type: object required: – schema – totalRegistros – dataBase properties: schema: type: string description: Schema totalRegistros: type: integer format: int64 description: Número de erros do schema dataBase: type: string format: date description: Data de Inclusão recEmailMonitoramentoBase: description: Record emails de monitoramento base type: object required: – tenant – email properties: tenant: type: string description: Tenant email: type: string description: Email recEmailsPorTenant: description: Record para output da primitiva PesquisarEmailsMonitoramento type: object required: – tenant – emails – totalEmails properties: tenant: type: string description: Tenant emails: type: array items: type: string minimum: 1 description: Email totalEmails: type: integer format: int64 description: Total de e-mails registrados no tenant recMonitoramentoTour: description: Record para Monitoramento tour type: object required: – dominio – solucoes properties: dominio: type: string description: Domínio solucoes: type: array items: type: object allOf: – #/definitions/recSolucaoTour minimum: 1 description: Soluções recSolucaoTour: description: Record para Solução do Tour type: object required: – solucao – situacao properties: solucao: type: string description: Solução situacao: type: array items: type: object allOf: – #/definitions/recSituacaoTour minimum: 1 description: Situação Tour recSituacaoTour: description: Record para Situação Tour type: object required: – tenant – progresso – dataCadastro – usuario properties: tenant: type: string description: Tenant progresso: type: string allOf: – #/definitions/enumProgresso description: Progresso Atual dataCadastro: type: string format: date description: Data Cadastro usuario: type: string description: Usuário recListaOrdenacao: description: Ordenação type: object required: – campo – ordenacao properties: campo: type: string description: Campo de ordenação ordenacao: type: string allOf: – #/definitions/enumTipoOrdenacao description: Forma de ordenar recPaginacao: description: Record Paginacao Input type: object required: – pagina – numeroRegistrosPagina – listaOrdenacao properties: pagina: type: integer format: int64 description: Página numeroRegistrosPagina: type: integer format: int64 description: Qnt de Registros por Página listaOrdenacao: type: array items: type: object allOf: – #/definitions/recListaOrdenacao minimum: 1 description: Forma de Ordenação recPaginacaoRetorno: description: Record Paginacao Output type: object required: – pagina – numeroRegistrosPagina – registrosEncontrados properties: pagina: type: integer format: int64 description: Página numeroRegistrosPagina: type: integer format: int64 description: Qnt de Registros por Página registrosEncontrados: type: integer format: int64 description: Total de Registros notifyUserEventPayload: description: Represents a regular user event notification payload discriminator: _discriminator type: object required: – notificationKind – notificationPriority – notificationSubject – notificationContent – sourceDomain – sourceService – destinationUser – _discriminator properties: notificationClass: type: string description: Class of notification notificationOrigin: type: string description: Origin of notification. Free text. Optional. notificationKind: type: string allOf: – #/definitions/userNotificationKind description: Notification kind. notificationPriority: type: string allOf: – #/definitions/userNotificationPriority description: Notification priority. notificationSubject: type: string description: Notification subject. notificationContent: type: string description: Notification content. sourceDomain: type: string description: Domain that generates the notification. sourceService: type: string description: Service that generates the notification. destinationUser: type: string description: Username of the destination user. link: type: string description: Notification link _discriminator: type: string description: emailNotifyUserEventPayload: description: Represents an email notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – from properties: from: type: string description: Email sender address sendTo: type: array items: type: string description: Additional recipients to send the email to format: type: string allOf: – #/definitions/eventEmailFormat description: Email format pushNotifyUserEventPayload: description: Represents a push notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – applicationId properties: applicationId: type: string description: Apple/Google application id blobReference: description: Default blob reference type. Every service defines its own. type: object required: – targetObjectId properties: domainName: type: string description: The domain the blob belongs to. serviceName: type: string description: The service the blob belongs to. targetObjectId: type: string description: The basic id of the blob. targetCopyId: type: string description: The id of the blob copy. basicErrorPayload: description: Default error payload type. Every service defines its own. type: object properties: message: type: string description: The user-facing error message, if any. errorCode: type: string description: The program-accessible (and service-specific) error code. dependency: description: Represents a service dependency type: object required: – domain – service – version properties: domain: type: string description: Domain of the dependency service service: type: string description: Name of the dependency service type: string description: Version of the dependency service genericError: properties: message: type: string description: Messaging describing the error. reason: type: string description: A symbolic code identifying the category of the reason of the error. enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE

Este artigo foi útil para você?

Leave A Comment