{"version":3,"sources":["src/app/models/statistics.ts","src/app/store/services/services.actions.ts","src/app/store/monitors/gql/fragments.ts","src/app/store/services/services.service.ts","src/app/store/services/services.state.ts"],"sourcesContent":["export interface Statistic {\n name: string;\n unit: Unit;\n datapoints: DataPoint[];\n}\n\nexport interface DataPoint {\n date: Date;\n value: number;\n}\n\nexport interface StatisticOptions {\n windowStart: Date;\n windowEnd?: Date;\n}\n\nexport enum Unit {\n Seconds = 's',\n Milliseconds = 'ms',\n Percent = 'percent',\n}\n\nexport const mapStatistics = (statistics: Statistic): Statistic => {\n return {\n ...statistics,\n datapoints: statistics.datapoints.map(dp => ({\n ...dp,\n date: new Date(dp.date),\n })),\n };\n};\n\nexport const UnitFormatters = {\n [Unit.Milliseconds]: (value: number) => value.toFixed(0) + ' ms',\n [Unit.Seconds]: (value: number) => value.toFixed(2) + ' s',\n [Unit.Percent]: (value: number) => (value * 100).toFixed(3) + ' %',\n};\n","import { OffsetPaginationOptions } from '../common/pagination';\n\nexport class LoadServices {\n static readonly type = '[Services] Load Services';\n}\n\nexport class CreateServiceAction {\n static readonly type = '[Services] Create Service';\n constructor(\n public name: string,\n public description: string,\n public ownerTeamPublicId: number\n ) {}\n}\n\nexport class LoadServiceAction {\n static readonly type = '[Services] Load Service';\n constructor(public id: number) {}\n}\n\nexport class LoadMonitorsForServiceAction {\n static readonly type = '[Services] Load Monitors for Service';\n constructor(\n public id: number,\n public pagination: OffsetPaginationOptions\n ) {}\n}\n\nexport class LoadActiveIncidentsForServiceAction {\n static readonly type = '[Services] Load Active Incidents';\n constructor(\n public id: number,\n public pagination: OffsetPaginationOptions\n ) {}\n}\n\nexport class LoadRecentIncidentsForServiceAction {\n static readonly type = '[Services] Load Recent Incidents';\n constructor(\n public id: number,\n public pagination: OffsetPaginationOptions\n ) {}\n}\n\nexport class UpdateServiceAction {\n static readonly type = '[Services] Update Service';\n constructor(\n public serviceId: number,\n public updateSpec: {\n name?: string;\n description?: string;\n ownerTeamPublicId?: number;\n }\n ) {}\n}\n\nexport class DeleteServiceAction {\n static readonly type = '[Services] Delete Service';\n constructor(public serviceId: number) {}\n}\n\nexport class LoadServiceStatisticsAction {\n static readonly type = '[Services] Load Service Statistics';\n constructor(\n public serviceId: number,\n public windowStart: string,\n public windowEnd: string\n ) {}\n}\n","import { gql } from 'apollo-angular';\n\nexport const PROBE_CONFIGURATION_FRAGMENT = gql`\n fragment ProbeConfiguration on ProbeConfiguration {\n ... on ICMPProbeConfiguration {\n timeoutSeconds\n address\n }\n ... on HTTPProbeConfiguration {\n address\n headers\n validStatusCodes\n timeoutSeconds\n method\n }\n }\n`;\n\nexport const PROBE_RESULT_FRAGMENT = gql`\n fragment ProbeResult on ProbeResultUnion {\n ... on ICMPProbeResult {\n packetLossPercent\n minRttMs\n avgRttMs\n maxRttMs\n host\n }\n ... on HTTPProbeResult {\n address\n durationMs\n statusCode\n redirectCount\n isSSL\n ipProtocolVersion\n httpVersion\n tlsInformation {\n version\n earliestCertExpiry\n certificateInformation {\n issuer\n subject\n subjectAlternativeNames\n }\n }\n timingInformation {\n resolveMs\n connectMs\n tlsHandshakeMs\n ttfbMs\n transferMs\n }\n }\n }\n`;\n\nexport const MONITOR_DETAILS_FRAGMENT = gql`\n fragment MonitorDetails on Monitor {\n id\n name\n service {\n id\n name\n }\n scheduling {\n intervalSeconds\n retries\n }\n probeType\n probeConfiguration {\n ...ProbeConfiguration\n }\n probeResults(pageSize: 20) {\n metadata {\n id\n timestamp\n error\n succeeded\n }\n result {\n ...ProbeResult\n }\n }\n statistics(options: $statisticsOptions) {\n availability {\n windowStart\n windowEnd\n uptimeSeconds\n downtimeSeconds\n availabilityPercentage\n totalMonitoredSeconds\n totalWindowSeconds\n }\n }\n }\n\n ${PROBE_CONFIGURATION_FRAGMENT}\n ${PROBE_RESULT_FRAGMENT}\n`;\n","import { inject, Injectable } from '@angular/core';\nimport { Apollo, gql } from 'apollo-angular';\nimport { map, Observable } from 'rxjs';\nimport {\n mapGQLResponse,\n toIdentifiableEntities,\n} from 'src/app/helpers/graphql';\nimport { Incident } from 'src/app/models/incident';\nimport { Monitor } from 'src/app/models/monitor';\nimport { Service, ServiceStatistics } from 'src/app/models/service';\nimport { mapStatistics, StatisticOptions } from 'src/app/models/statistics';\nimport { MONITOR_DETAILS_FRAGMENT } from 'src/app/store/monitors/gql/fragments';\nimport {\n OffsetPaginatedRespose,\n OffsetPaginationOptions,\n} from '../common/pagination';\n\nexport const GET_SERVICES_QUERY = gql`\n query GetServices($organizationUUID: ID!) {\n services(organizationUUID: $organizationUUID) {\n id\n name\n description\n owner {\n name\n }\n health {\n name\n color\n icon\n }\n }\n }\n`;\n\nconst GET_SERVICE = gql`\n query GetService($organizationUUID: ID!, $serviceId: Int!) {\n service(organizationUUID: $organizationUUID, serviceId: $serviceId) {\n id\n name\n description\n health {\n name\n color\n icon\n }\n owner {\n id\n name\n members {\n meta {\n firstname\n lastname\n avatar\n }\n }\n }\n }\n }\n`;\n\nconst CREATE_SERVICE_MUTATION = gql`\n mutation CreateService(\n $organizationUUID: ID!\n $name: String!\n $description: String!\n $owningTeamID: Int!\n ) {\n createService(\n organizationUUID: $organizationUUID\n newServiceSpec: {\n name: $name\n description: $description\n owningTeamID: $owningTeamID\n }\n ) {\n id\n name\n description\n state\n owner {\n id\n name\n members {\n meta {\n firstname\n lastname\n avatar\n }\n }\n }\n }\n }\n`;\n\nconst GET_SERVICE_MONITORS = gql`\n ${MONITOR_DETAILS_FRAGMENT}\n query GetService(\n $organizationUUID: ID!\n $serviceId: Int!\n $paginationOptions: OffsetPaginationOptions!\n $statisticsOptions: MonitorStatisticsInput!\n ) {\n service(organizationUUID: $organizationUUID, serviceId: $serviceId) {\n monitors(paginationOptions: $paginationOptions) {\n totalSize\n monitors {\n ...MonitorDetails\n }\n }\n }\n }\n`;\n\nconst GET_SERVICE_INCIDENTS = gql`\n query GetService(\n $organizationUUID: ID!\n $serviceId: Int!\n $paginationOptions: OffsetPaginationOptions!\n $query: String\n ) {\n service(organizationUUID: $organizationUUID, serviceId: $serviceId) {\n incidents(paginationOptions: $paginationOptions, query: $query) {\n totalSize\n incidents {\n id\n title\n summary\n createdAt\n schemaVersion {\n id\n version\n schema {\n id\n name\n type\n createdAt\n }\n states {\n id\n name\n order\n color\n icon\n isDefault\n isResolved\n }\n priorities {\n id\n name\n order\n color\n icon\n }\n }\n priority {\n id\n name\n order\n color\n icon\n }\n state {\n id\n name\n order\n color\n icon\n isDefault\n isResolved\n }\n statuspageLinks {\n statuspage {\n id\n name\n customDomain\n domain\n slug\n }\n }\n affectedServices {\n service {\n name\n }\n }\n }\n }\n }\n }\n`;\n\nconst UPDATE_SERVICE_MUTATION = gql`\n mutation UpdateService(\n $organizationUUID: ID!\n $serviceId: Int!\n $updateServiceSpec: UpdateServiceSpec!\n ) {\n updateService(\n organizationUUID: $organizationUUID\n serviceId: $serviceId\n updateServiceSpec: $updateServiceSpec\n ) {\n name\n description\n owner {\n id\n name\n }\n }\n }\n`;\n\nconst GET_SERVICE_STATISTICS = gql`\n query ServiceStatistics(\n $organizationId: ID!\n $serviceId: Int!\n $windowStart: Time!\n $windowEnd: Time!\n ) {\n service(organizationUUID: $organizationId, serviceId: $serviceId) {\n statistics(windowStart: $windowStart, windowEnd: $windowEnd) {\n impactDuration {\n name\n unit\n datapoints {\n date\n value\n }\n }\n mtta {\n name\n unit\n datapoints {\n date\n value\n }\n }\n mttr {\n name\n unit\n datapoints {\n date\n value\n }\n }\n }\n }\n }\n`;\n\nconst DELETE_SERVICE_MUTATION = gql`\n mutation DeleteService($organizationUUID: ID!, $serviceId: Int!) {\n deleteService(organizationUUID: $organizationUUID, serviceId: $serviceId)\n }\n`;\n\n@Injectable()\nexport class ServicesService {\n private apollo = inject(Apollo);\n\n loadServices(organizationId: string): Observable {\n return this.apollo\n .query<{ services: Service[] }>({\n query: GET_SERVICES_QUERY,\n variables: {\n organizationUUID: organizationId,\n },\n })\n .pipe(\n map(data => {\n if (data.errors) {\n throw new Error(data.errors[0].message);\n }\n return data.data.services;\n })\n );\n }\n\n loadService(organizationId: string, serviceId: number): Observable {\n return this.apollo\n .query<{ service: Service }>({\n query: GET_SERVICE,\n variables: {\n organizationUUID: organizationId,\n serviceId: serviceId,\n },\n })\n .pipe(\n map(data => {\n if (data.errors) {\n throw new Error(data.errors[0].message);\n }\n return data.data.service;\n })\n );\n }\n\n createService(\n organizationId: string,\n name: string,\n publicOwnerTeamId: number,\n description?: string\n ): Observable {\n return this.apollo\n .mutate<{ createService: Service }>({\n mutation: CREATE_SERVICE_MUTATION,\n variables: {\n organizationUUID: organizationId,\n name: name,\n description: description,\n owningTeamID: publicOwnerTeamId,\n },\n })\n .pipe(\n map(data => {\n if (data.errors) {\n throw new Error(data.errors[0].message);\n }\n return mapGQLResponse<{ createService: Service }>(\n data,\n 'createService'\n );\n })\n );\n }\n\n loadMonitorsForService(\n organizationId: string,\n serviceId: number,\n paginationOptions: OffsetPaginationOptions,\n statisticsOptions: StatisticOptions\n ): Observable> {\n return this.apollo\n .query<{ service: Service }>({\n query: GET_SERVICE_MONITORS,\n variables: {\n organizationUUID: organizationId,\n serviceId: serviceId,\n paginationOptions: paginationOptions,\n statisticsOptions: statisticsOptions,\n },\n })\n .pipe(\n map(data => {\n if (data.errors) {\n throw new Error(data.errors[0].message);\n }\n return {\n totalSize: data.data.service.monitors?.totalSize ?? 0,\n items: toIdentifiableEntities(\n data.data.service.monitors?.monitors ?? [],\n 'id'\n ),\n } as OffsetPaginatedRespose;\n })\n );\n }\n\n loadIncidentsForService(\n organizationId: string,\n serviceId: number,\n query: string,\n paginationOptions: OffsetPaginationOptions\n ): Observable> {\n return this.apollo\n .query<{ service: Service }>({\n query: GET_SERVICE_INCIDENTS,\n variables: {\n organizationUUID: organizationId,\n serviceId: serviceId,\n paginationOptions: paginationOptions,\n query: query,\n },\n })\n .pipe(\n map(data => {\n if (data.errors) {\n throw new Error(data.errors[0].message);\n }\n return {\n totalSize: data.data.service.incidents?.totalSize ?? 0,\n items: toIdentifiableEntities(\n data.data.service.incidents?.incidents ?? [],\n 'id'\n ),\n } as OffsetPaginatedRespose;\n })\n );\n }\n\n updateService(\n organizationId: string,\n serviceId: number,\n updateSpec: {\n name?: string;\n description?: string;\n ownerTeamPublicId?: number;\n }\n ): Observable> {\n return this.apollo\n .mutate<{ updateService: Service }>({\n mutation: UPDATE_SERVICE_MUTATION,\n variables: {\n organizationUUID: organizationId,\n serviceId: serviceId,\n updateServiceSpec: {\n name: updateSpec.name,\n description: updateSpec.description,\n owningTeamID: updateSpec.ownerTeamPublicId,\n },\n },\n })\n .pipe(\n map(data => {\n if (data.errors) {\n throw new Error(data.errors[0].message);\n }\n return data.data!.updateService;\n })\n );\n }\n\n deleteService(\n organizationId: string,\n serviceId: number\n ): Observable {\n return this.apollo\n .mutate<{ deleteService: boolean }>({\n mutation: DELETE_SERVICE_MUTATION,\n variables: {\n organizationUUID: organizationId,\n serviceId: serviceId,\n },\n })\n .pipe(\n map(data => {\n if (data.errors) {\n throw new Error(data.errors[0].message);\n }\n return data.data!.deleteService;\n })\n );\n }\n\n loadServiceStatistics(\n organizationId: string,\n serviceId: number,\n windowStart: string,\n windowEnd: string\n ): Observable {\n return this.apollo\n .query<{ service: { statistics: ServiceStatistics } }>({\n query: GET_SERVICE_STATISTICS,\n variables: {\n organizationId: organizationId,\n serviceId: serviceId,\n windowStart: windowStart,\n windowEnd: windowEnd,\n },\n })\n .pipe(\n map(data => {\n if (data.errors) {\n throw new Error(data.errors[0].message);\n }\n\n return {\n impactDuration: mapStatistics(\n data.data!.service.statistics.impactDuration\n ),\n mttr: mapStatistics(data.data!.service.statistics.mttr),\n mtta: mapStatistics(data.data!.service.statistics.mtta),\n };\n })\n );\n }\n}\n","import { inject, Injectable } from '@angular/core';\nimport { Action, Selector, State, StateContext, Store } from '@ngxs/store';\nimport { map } from 'rxjs';\nimport { toIdentifiableEntities } from 'src/app/helpers/graphql';\nimport { Service } from 'src/app/models/service';\nimport { ToastService } from 'src/app/services/toast/toast.service';\nimport {\n addListEntity,\n ListEntities,\n loadEntities,\n NewListEntities,\n removeListEntity,\n} from 'src/app/store/common/list-entity';\nimport { UserState } from 'src/app/store/user/user.state';\nimport {\n CreateServiceAction,\n DeleteServiceAction,\n LoadServices,\n} from './services.actions';\nimport { ServicesService } from './services.service';\n\nexport interface ServicesStateModel {\n services: ListEntities;\n}\n\n@State({\n name: 'services',\n defaults: {\n services: NewListEntities(),\n },\n})\n@Injectable()\nexport class ServicesState {\n store = inject(Store);\n servicesService = inject(ServicesService);\n toastService = inject(ToastService);\n\n @Selector()\n static services(state: ServicesStateModel) {\n return state.services;\n }\n\n @Action(LoadServices)\n loadServicesToState(ctx: StateContext) {\n const organizationID = this.store.selectSnapshot(\n UserState.getCurrentOrganizationID\n );\n\n if (!organizationID) throw new Error('No organization ID set');\n\n return loadEntities(\n ctx,\n 'services',\n this.servicesService.loadServices(organizationID).pipe(\n map(services => {\n return toIdentifiableEntities(services, 'id');\n })\n )\n );\n }\n\n @Action(CreateServiceAction)\n createService(\n ctx: StateContext,\n { name, description, ownerTeamPublicId }: CreateServiceAction\n ) {\n const organizationID = this.store.selectSnapshot(\n UserState.getCurrentOrganizationID\n );\n\n if (!organizationID) throw new Error('No organization ID set');\n\n return addListEntity(\n ctx,\n 'services',\n 'id',\n this.servicesService\n .createService(organizationID, name, ownerTeamPublicId, description)\n .pipe(\n map(val => {\n if (val) {\n this.toastService.showInfo(\n 'Service Created',\n 'Service has been created'\n );\n }\n\n return val;\n })\n )\n );\n }\n\n @Action(DeleteServiceAction)\n deleteService(\n ctx: StateContext,\n { serviceId }: DeleteServiceAction\n ) {\n const organizationID = this.store.selectSnapshot(\n UserState.getCurrentOrganizationID\n );\n\n if (!organizationID) throw new Error('No organization ID set');\n\n return removeListEntity(\n ctx,\n 'services',\n serviceId,\n (service: Service) => {\n return service.id !== serviceId;\n },\n this.servicesService.deleteService(organizationID, serviceId).pipe(\n map(val => {\n if (val) {\n this.toastService.showInfo(\n 'Service Deleted',\n 'Service has been deleted'\n );\n }\n\n return val;\n })\n )\n );\n }\n}\n"],"names":["Unit","mapStatistics","statistics","__spreadProps","__spreadValues","datapoints","map","dp","date","Date","UnitFormatters","Milliseconds","value","toFixed","Seconds","Percent","LoadServices","type","CreateServiceAction","constructor","name","description","ownerTeamPublicId","LoadServiceAction","id","LoadMonitorsForServiceAction","pagination","LoadActiveIncidentsForServiceAction","LoadRecentIncidentsForServiceAction","UpdateServiceAction","serviceId","updateSpec","DeleteServiceAction","LoadServiceStatisticsAction","windowStart","windowEnd","PROBE_CONFIGURATION_FRAGMENT","gql","PROBE_RESULT_FRAGMENT","MONITOR_DETAILS_FRAGMENT","GET_SERVICES_QUERY","gql","GET_SERVICE","CREATE_SERVICE_MUTATION","GET_SERVICE_MONITORS","MONITOR_DETAILS_FRAGMENT","GET_SERVICE_INCIDENTS","UPDATE_SERVICE_MUTATION","GET_SERVICE_STATISTICS","DELETE_SERVICE_MUTATION","ServicesService","constructor","apollo","inject","Apollo","loadServices","organizationId","query","variables","organizationUUID","pipe","map","data","errors","Error","message","services","loadService","serviceId","service","createService","name","publicOwnerTeamId","description","mutate","mutation","owningTeamID","mapGQLResponse","loadMonitorsForService","paginationOptions","statisticsOptions","totalSize","monitors","items","toIdentifiableEntities","loadIncidentsForService","incidents","updateService","updateSpec","updateServiceSpec","ownerTeamPublicId","deleteService","loadServiceStatistics","windowStart","windowEnd","impactDuration","mapStatistics","statistics","mttr","mtta","factory","ɵfac","ServicesState","constructor","store","inject","Store","servicesService","ServicesService","toastService","ToastService","services","state","loadServicesToState","ctx","organizationID","selectSnapshot","UserState","getCurrentOrganizationID","Error","loadEntities","loadServices","pipe","map","toIdentifiableEntities","createService","name","description","ownerTeamPublicId","addListEntity","val","showInfo","deleteService","serviceId","removeListEntity","service","id","factory","ɵfac","__decorate","Action","LoadServices","CreateServiceAction","DeleteServiceAction","Selector","State","defaults","NewListEntities"],"mappings":";;0NAgBA,IAAYA,EAAZ,SAAYA,EAAI,CACdA,OAAAA,EAAA,QA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