@segment/public-api-sdk-typescript 45.0.0-b8341 → 46.0.0-b8342
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api/aPICallsApi.ts +1 -1
- package/api/apis.ts +5 -2
- package/api/audiencesApi.ts +1 -1
- package/api/auditTrailApi.ts +1 -1
- package/api/catalogApi.ts +1 -1
- package/api/computedTraitsApi.ts +1 -1
- package/api/deletionAndSuppressionApi.ts +1 -1
- package/api/deliveryOverviewApi.ts +966 -0
- package/api/destinationFiltersApi.ts +1 -1
- package/api/destinationsApi.ts +1 -1
- package/api/edgeFunctionsApi.ts +1 -1
- package/api/eventsApi.ts +1 -1
- package/api/functionsApi.ts +1 -1
- package/api/iAMGroupsApi.ts +1 -1
- package/api/iAMRolesApi.ts +1 -1
- package/api/iAMUsersApi.ts +1 -1
- package/api/labelsApi.ts +1 -1
- package/api/monthlyTrackedUsersApi.ts +1 -1
- package/api/profilesSyncApi.ts +1 -1
- package/api/reverseETLApi.ts +1 -1
- package/api/selectiveSyncApi.ts +1 -1
- package/api/sourcesApi.ts +1 -1
- package/api/spacesApi.ts +1 -1
- package/api/testingApi.ts +1 -1
- package/api/trackingPlansApi.ts +1 -1
- package/api/transformationsApi.ts +1 -1
- package/api/warehousesApi.ts +1 -1
- package/api/workspacesApi.ts +1 -1
- package/dist/api/apis.d.ts +3 -1
- package/dist/api/apis.js +5 -2
- package/dist/api/apis.js.map +1 -1
- package/dist/api/deliveryOverviewApi.d.ts +77 -0
- package/dist/api/deliveryOverviewApi.js +690 -0
- package/dist/api/deliveryOverviewApi.js.map +1 -0
- package/dist/model/deliveryOverviewFilterBy.d.ts +17 -0
- package/dist/model/deliveryOverviewFilterBy.js +36 -0
- package/dist/model/deliveryOverviewFilterBy.js.map +1 -0
- package/dist/model/deliveryOverviewMetricsDatapoint.d.ts +16 -0
- package/dist/model/deliveryOverviewMetricsDatapoint.js +31 -0
- package/dist/model/deliveryOverviewMetricsDatapoint.js.map +1 -0
- package/dist/model/deliveryOverviewMetricsDataset.d.ts +21 -0
- package/dist/model/deliveryOverviewMetricsDataset.js +51 -0
- package/dist/model/deliveryOverviewMetricsDataset.js.map +1 -0
- package/dist/model/getDeliveryOverviewMetricsAlphaOutput.d.ts +18 -0
- package/dist/model/getDeliveryOverviewMetricsAlphaOutput.js +31 -0
- package/dist/model/getDeliveryOverviewMetricsAlphaOutput.js.map +1 -0
- package/dist/model/getEgressFailedMetricsFromDeliveryOverview200Response.d.ts +15 -0
- package/dist/model/getEgressFailedMetricsFromDeliveryOverview200Response.js +21 -0
- package/dist/model/getEgressFailedMetricsFromDeliveryOverview200Response.js.map +1 -0
- package/dist/model/models.d.ts +5 -0
- package/dist/model/models.js +15 -0
- package/dist/model/models.js.map +1 -1
- package/model/aPICallSnapshotV1.ts +1 -1
- package/model/accessPermissionV1.ts +1 -1
- package/model/addConnectionFromSourceToWarehouse201Response.ts +1 -1
- package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
- package/model/addLabelsToSource200Response.ts +1 -1
- package/model/addLabelsToSource200Response1.ts +1 -1
- package/model/addLabelsToSourceAlphaInput.ts +1 -1
- package/model/addLabelsToSourceAlphaOutput.ts +1 -1
- package/model/addLabelsToSourceV1Input.ts +1 -1
- package/model/addLabelsToSourceV1Output.ts +1 -1
- package/model/addPermissionsToUser200Response.ts +1 -1
- package/model/addPermissionsToUserGroup200Response.ts +1 -1
- package/model/addPermissionsToUserGroupV1Input.ts +1 -1
- package/model/addPermissionsToUserGroupV1Output.ts +1 -1
- package/model/addPermissionsToUserV1Input.ts +1 -1
- package/model/addPermissionsToUserV1Output.ts +1 -1
- package/model/addSourceToTrackingPlan200Response.ts +1 -1
- package/model/addSourceToTrackingPlanV1Input.ts +1 -1
- package/model/addSourceToTrackingPlanV1Output.ts +1 -1
- package/model/addUsersToUserGroup200Response.ts +1 -1
- package/model/addUsersToUserGroupV1Input.ts +1 -1
- package/model/addUsersToUserGroupV1Output.ts +1 -1
- package/model/advancedWarehouseSyncScheduleV1Input.ts +1 -1
- package/model/advancedWarehouseSyncScheduleV1Output.ts +1 -1
- package/model/allowedLabelBeta.ts +1 -1
- package/model/audienceDefinition.ts +1 -1
- package/model/audienceSummary.ts +1 -1
- package/model/auditEventV1.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +1 -1
- package/model/breakdownBeta.ts +1 -1
- package/model/commonSourceSettingsV1.ts +1 -1
- package/model/computedTraitSummary.ts +1 -1
- package/model/computedTraitsDefinition.ts +1 -1
- package/model/contact.ts +1 -1
- package/model/createCloudSourceRegulation200Response.ts +1 -1
- package/model/createCloudSourceRegulationV1Input.ts +1 -1
- package/model/createCloudSourceRegulationV1Output.ts +1 -1
- package/model/createDestination200Response.ts +1 -1
- package/model/createDestinationSubscription200Response.ts +1 -1
- package/model/createDestinationSubscriptionAlphaInput.ts +1 -1
- package/model/createDestinationSubscriptionAlphaOutput.ts +1 -1
- package/model/createDestinationV1Input.ts +1 -1
- package/model/createDestinationV1Output.ts +1 -1
- package/model/createEdgeFunctions200Response.ts +1 -1
- package/model/createEdgeFunctionsAlphaInput.ts +1 -1
- package/model/createEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/createFilterForDestination200Response.ts +1 -1
- package/model/createFilterForDestinationV1Input.ts +1 -1
- package/model/createFilterForDestinationV1Output.ts +1 -1
- package/model/createFunction200Response.ts +1 -1
- package/model/createFunctionDeployment200Response.ts +1 -1
- package/model/createFunctionDeploymentV1Output.ts +1 -1
- package/model/createFunctionV1Input.ts +1 -1
- package/model/createFunctionV1Output.ts +1 -1
- package/model/createInsertFunctionInstance200Response.ts +1 -1
- package/model/createInsertFunctionInstanceAlphaInput.ts +1 -1
- package/model/createInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/createInvites201Response.ts +1 -1
- package/model/createInvitesV1Input.ts +1 -1
- package/model/createInvitesV1Output.ts +1 -1
- package/model/createLabel201Response.ts +1 -1
- package/model/createLabelV1Input.ts +1 -1
- package/model/createLabelV1Output.ts +1 -1
- package/model/createProfilesWarehouse201Response.ts +1 -1
- package/model/createProfilesWarehouseAlphaInput.ts +1 -1
- package/model/createProfilesWarehouseAlphaOutput.ts +1 -1
- package/model/createReverseETLManualSync200Response.ts +1 -1
- package/model/createReverseETLManualSyncInput.ts +1 -1
- package/model/createReverseETLManualSyncOutput.ts +1 -1
- package/model/createReverseEtlModel201Response.ts +1 -1
- package/model/createReverseEtlModelInput.ts +1 -1
- package/model/createReverseEtlModelOutput.ts +1 -1
- package/model/createSource201Response.ts +1 -1
- package/model/createSource201Response1.ts +1 -1
- package/model/createSourceAlphaInput.ts +1 -1
- package/model/createSourceAlphaOutput.ts +1 -1
- package/model/createSourceRegulation200Response.ts +1 -1
- package/model/createSourceRegulationV1Input.ts +1 -1
- package/model/createSourceRegulationV1Output.ts +1 -1
- package/model/createSourceV1Input.ts +1 -1
- package/model/createSourceV1Output.ts +1 -1
- package/model/createTrackingPlan200Response.ts +1 -1
- package/model/createTrackingPlanV1Input.ts +1 -1
- package/model/createTrackingPlanV1Output.ts +1 -1
- package/model/createTransformation200Response.ts +1 -1
- package/model/createTransformationBetaInput.ts +1 -1
- package/model/createTransformationBetaOutput.ts +1 -1
- package/model/createTransformationV1Input.ts +1 -1
- package/model/createTransformationV1Output.ts +1 -1
- package/model/createUserGroup200Response.ts +1 -1
- package/model/createUserGroupV1Input.ts +1 -1
- package/model/createUserGroupV1Output.ts +1 -1
- package/model/createValidationInWarehouse200Response.ts +1 -1
- package/model/createValidationInWarehouseV1Input.ts +1 -1
- package/model/createValidationInWarehouseV1Output.ts +1 -1
- package/model/createWarehouse201Response.ts +1 -1
- package/model/createWarehouseV1Input.ts +1 -1
- package/model/createWarehouseV1Output.ts +1 -1
- package/model/createWorkspaceRegulation200Response.ts +1 -1
- package/model/createWorkspaceRegulationV1Input.ts +1 -1
- package/model/createWorkspaceRegulationV1Output.ts +1 -1
- package/model/createWriteKeyForSource200Response.ts +1 -1
- package/model/createWriteKeyForSourceAlphaOutput.ts +1 -1
- package/model/definition.ts +1 -1
- package/model/definition1.ts +1 -1
- package/model/deleteDestination200Response.ts +1 -1
- package/model/deleteDestinationV1Output.ts +1 -1
- package/model/deleteFunction200Response.ts +1 -1
- package/model/deleteFunctionV1Output.ts +1 -1
- package/model/deleteInsertFunctionInstance200Response.ts +1 -1
- package/model/deleteInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/deleteInvites200Response.ts +1 -1
- package/model/deleteInvitesV1Output.ts +1 -1
- package/model/deleteLabel200Response.ts +1 -1
- package/model/deleteLabel200Response1.ts +1 -1
- package/model/deleteLabelAlphaOutput.ts +1 -1
- package/model/deleteLabelV1Output.ts +1 -1
- package/model/deleteRegulation200Response.ts +1 -1
- package/model/deleteRegulationV1Output.ts +1 -1
- package/model/deleteReverseEtlModel200Response.ts +1 -1
- package/model/deleteReverseEtlModelOutput.ts +1 -1
- package/model/deleteSource200Response.ts +1 -1
- package/model/deleteSource200Response1.ts +1 -1
- package/model/deleteSourceAlphaOutput.ts +1 -1
- package/model/deleteSourceV1Output.ts +1 -1
- package/model/deleteTrackingPlan200Response.ts +1 -1
- package/model/deleteTrackingPlanV1Output.ts +1 -1
- package/model/deleteTransformation200Response.ts +1 -1
- package/model/deleteTransformationBetaInput.ts +1 -1
- package/model/deleteTransformationBetaOutput.ts +1 -1
- package/model/deleteTransformationV1Output.ts +1 -1
- package/model/deleteUserGroup200Response.ts +1 -1
- package/model/deleteUserGroupV1Output.ts +1 -1
- package/model/deleteUsers200Response.ts +1 -1
- package/model/deleteUsersV1Output.ts +1 -1
- package/model/deleteWarehouse200Response.ts +1 -1
- package/model/deleteWarehouseV1Output.ts +1 -1
- package/model/deliveryMetricsSummaryBeta.ts +1 -1
- package/model/deliveryOverviewFilterBy.ts +68 -0
- package/model/deliveryOverviewMetricsDatapoint.ts +59 -0
- package/model/deliveryOverviewMetricsDataset.ts +96 -0
- package/model/destinationFilterActionV1.ts +1 -1
- package/model/destinationFilterV1.ts +1 -1
- package/model/destinationMetadataActionFieldV1.ts +1 -1
- package/model/destinationMetadataActionV1.ts +1 -1
- package/model/destinationMetadataComponentV1.ts +1 -1
- package/model/destinationMetadataFeaturesV1.ts +1 -1
- package/model/destinationMetadataMethodsV1.ts +1 -1
- package/model/destinationMetadataPlatformsV1.ts +1 -1
- package/model/destinationMetadataSubscriptionPresetV1.ts +1 -1
- package/model/destinationMetadataV1.ts +1 -1
- package/model/destinationStatusV1.ts +1 -1
- package/model/destinationSubscription.ts +1 -1
- package/model/destinationSubscriptionUpdateInput.ts +1 -1
- package/model/destinationV1.ts +1 -1
- package/model/disableEdgeFunctions200Response.ts +1 -1
- package/model/disableEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/echo200Response.ts +1 -1
- package/model/echo200Response1.ts +1 -1
- package/model/echoAlphaOutput.ts +1 -1
- package/model/echoV1Output.ts +1 -1
- package/model/edgeFunctionsAlpha.ts +1 -1
- package/model/eventSourceV1.ts +1 -1
- package/model/fQLDefinedPropertyV1.ts +1 -1
- package/model/function.ts +1 -1
- package/model/functionDeployment.ts +1 -1
- package/model/functionSettingV1.ts +1 -1
- package/model/functionV1.ts +1 -1
- package/model/generateUploadURLForEdgeFunctions200Response.ts +1 -1
- package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +1 -1
- package/model/getAudience200Response.ts +1 -1
- package/model/getAudienceAlphaOutput.ts +1 -1
- package/model/getComputedTrait200Response.ts +1 -1
- package/model/getComputedTraitAlphaOutput.ts +1 -1
- package/model/getConnectionStateFromWarehouse200Response.ts +1 -1
- package/model/getConnectionStateFromWarehouseV1Output.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyPerSourceMTUUsage200Response.ts +1 -1
- package/model/getDailyPerSourceMTUUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceMTUUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceMTUUsageV1Output.ts +1 -1
- package/model/getDeliveryOverviewMetricsAlphaOutput.ts +58 -0
- package/model/getDestination200Response.ts +1 -1
- package/model/getDestinationMetadata200Response.ts +1 -1
- package/model/getDestinationMetadataV1Output.ts +1 -1
- package/model/getDestinationV1Output.ts +1 -1
- package/model/getDestinationsCatalog200Response.ts +1 -1
- package/model/getDestinationsCatalogV1Output.ts +1 -1
- package/model/getEgressFailedMetricsFromDeliveryOverview200Response.ts +36 -0
- package/model/getEventsVolumeFromWorkspace200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Query.ts +1 -1
- package/model/getFilterInDestination200Response.ts +1 -1
- package/model/getFilterInDestinationV1Output.ts +1 -1
- package/model/getFunction200Response.ts +1 -1
- package/model/getFunctionV1Output.ts +1 -1
- package/model/getFunctionVersion200Response.ts +1 -1
- package/model/getFunctionVersionAlphaOutput.ts +1 -1
- package/model/getInsertFunctionInstance200Response.ts +1 -1
- package/model/getInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/getLatestFromEdgeFunctions200Response.ts +1 -1
- package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/getMessagingSubscriptionFailureResponse.ts +1 -1
- package/model/getMessagingSubscriptionSuccessResponse.ts +1 -1
- package/model/getRegulation200Response.ts +1 -1
- package/model/getRegulationV1Output.ts +1 -1
- package/model/getReverseETLSyncFromModel200Response.ts +1 -1
- package/model/getReverseETLSyncFromModelOutput.ts +1 -1
- package/model/getReverseEtlModel200Response.ts +1 -1
- package/model/getReverseEtlModelOutput.ts +1 -1
- package/model/getSource200Response.ts +1 -1
- package/model/getSource200Response1.ts +1 -1
- package/model/getSourceAlphaOutput.ts +1 -1
- package/model/getSourceMetadata200Response.ts +1 -1
- package/model/getSourceMetadataV1Output.ts +1 -1
- package/model/getSourceV1Output.ts +1 -1
- package/model/getSourcesCatalog200Response.ts +1 -1
- package/model/getSourcesCatalogV1Output.ts +1 -1
- package/model/getSpace200Response.ts +1 -1
- package/model/getSpaceAlphaOutput.ts +1 -1
- package/model/getSubscriptionFromDestination200Response.ts +1 -1
- package/model/getSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/getSubscriptionRequest.ts +1 -1
- package/model/getTrackingPlan200Response.ts +1 -1
- package/model/getTrackingPlanV1Output.ts +1 -1
- package/model/getTransformation200Response.ts +1 -1
- package/model/getTransformationBetaInput.ts +1 -1
- package/model/getTransformationBetaOutput.ts +1 -1
- package/model/getTransformationV1Output.ts +1 -1
- package/model/getUser200Response.ts +1 -1
- package/model/getUserGroup200Response.ts +1 -1
- package/model/getUserGroupV1Output.ts +1 -1
- package/model/getUserV1Output.ts +1 -1
- package/model/getWarehouse200Response.ts +1 -1
- package/model/getWarehouseMetadata200Response.ts +1 -1
- package/model/getWarehouseMetadataV1Output.ts +1 -1
- package/model/getWarehouseV1Output.ts +1 -1
- package/model/getWarehousesCatalog200Response.ts +1 -1
- package/model/getWarehousesCatalogV1Output.ts +1 -1
- package/model/getWorkspace200Response.ts +1 -1
- package/model/getWorkspaceV1Output.ts +1 -1
- package/model/groupSourceSettingsV1.ts +1 -1
- package/model/groupSubscriptionStatus.ts +1 -1
- package/model/groupSubscriptionStatusResponse.ts +1 -1
- package/model/handleWebhookInput.ts +1 -1
- package/model/handleWebhookOutput.ts +1 -1
- package/model/hashPropertiesConfiguration.ts +1 -1
- package/model/identifySourceSettingsV1.ts +1 -1
- package/model/insertFunctionInstanceAlpha.ts +1 -1
- package/model/integrationOptionBeta.ts +1 -1
- package/model/invitePermissionV1.ts +1 -1
- package/model/inviteV1.ts +1 -1
- package/model/labelAlpha.ts +1 -1
- package/model/labelV1.ts +1 -1
- package/model/listAudiences200Response.ts +1 -1
- package/model/listAudiencesAlphaOutput.ts +1 -1
- package/model/listAuditEvents200Response.ts +1 -1
- package/model/listAuditEventsV1Output.ts +1 -1
- package/model/listComputedTraits200Response.ts +1 -1
- package/model/listComputedTraitsAlphaOutput.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response1.ts +1 -1
- package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedDestinationsFromSourceV1Output.ts +1 -1
- package/model/listConnectedSourcesFromWarehouse200Response.ts +1 -1
- package/model/listConnectedSourcesFromWarehouseV1Output.ts +1 -1
- package/model/listConnectedWarehousesFromSource200Response.ts +1 -1
- package/model/listConnectedWarehousesFromSource200Response1.ts +1 -1
- package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedWarehousesFromSourceV1Output.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +1 -1
- package/model/listDestinations200Response.ts +1 -1
- package/model/listDestinationsV1Output.ts +1 -1
- package/model/listFiltersFromDestination200Response.ts +1 -1
- package/model/listFiltersFromDestinationV1Output.ts +1 -1
- package/model/listFunctionItemV1.ts +1 -1
- package/model/listFunctionVersions200Response.ts +1 -1
- package/model/listFunctionVersionsAlphaOutput.ts +1 -1
- package/model/listFunctions200Response.ts +1 -1
- package/model/listFunctionsV1Output.ts +1 -1
- package/model/listInsertFunctionInstances200Response.ts +1 -1
- package/model/listInsertFunctionInstancesAlphaOutput.ts +1 -1
- package/model/listInvites200Response.ts +1 -1
- package/model/listInvitesFromUserGroup200Response.ts +1 -1
- package/model/listInvitesFromUserGroupV1Output.ts +1 -1
- package/model/listInvitesV1Output.ts +1 -1
- package/model/listLabels200Response.ts +1 -1
- package/model/listLabels200Response1.ts +1 -1
- package/model/listLabelsAlphaOutput.ts +1 -1
- package/model/listLabelsV1Output.ts +1 -1
- package/model/listProfilesWarehouseInSpace200Response.ts +1 -1
- package/model/listProfilesWarehouseInSpaceAlphaOutput.ts +1 -1
- package/model/listRegulationsFromSource200Response.ts +1 -1
- package/model/listRegulationsFromSourceV1Output.ts +1 -1
- package/model/listReverseEtlModels200Response.ts +1 -1
- package/model/listReverseEtlModelsOutput.ts +1 -1
- package/model/listRoles200Response.ts +1 -1
- package/model/listRolesV1Output.ts +1 -1
- package/model/listRulesFromTrackingPlan200Response.ts +1 -1
- package/model/listRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSchemaSettingsInSource200Response.ts +1 -1
- package/model/listSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSpace200Response.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSpaceAlphaOutput.ts +1 -1
- package/model/listSources200Response.ts +1 -1
- package/model/listSources200Response1.ts +1 -1
- package/model/listSourcesAlphaOutput.ts +1 -1
- package/model/listSourcesFromTrackingPlan200Response.ts +1 -1
- package/model/listSourcesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSourcesV1Output.ts +1 -1
- package/model/listSpaces200Response.ts +1 -1
- package/model/listSpacesAlphaOutput.ts +1 -1
- package/model/listSubscriptionsFromDestination200Response.ts +1 -1
- package/model/listSubscriptionsFromDestinationAlphaOutput.ts +1 -1
- package/model/listSuppressions200Response.ts +1 -1
- package/model/listSuppressionsV1Output.ts +1 -1
- package/model/listSyncsFromWarehouse200Response.ts +1 -1
- package/model/listSyncsFromWarehouseAndSource200Response.ts +1 -1
- package/model/listSyncsFromWarehouseAndSourceV1Output.ts +1 -1
- package/model/listSyncsFromWarehouseV1Output.ts +1 -1
- package/model/listTrackingPlans200Response.ts +1 -1
- package/model/listTrackingPlansV1Output.ts +1 -1
- package/model/listTransformations200Response.ts +1 -1
- package/model/listTransformationsBetaInput.ts +1 -1
- package/model/listTransformationsBetaOutput.ts +1 -1
- package/model/listTransformationsV1Output.ts +1 -1
- package/model/listUserGroups200Response.ts +1 -1
- package/model/listUserGroupsFromUser200Response.ts +1 -1
- package/model/listUserGroupsFromUserV1Output.ts +1 -1
- package/model/listUserGroupsV1Output.ts +1 -1
- package/model/listUsers200Response.ts +1 -1
- package/model/listUsersFromUserGroup200Response.ts +1 -1
- package/model/listUsersFromUserGroupV1Output.ts +1 -1
- package/model/listUsersV1Output.ts +1 -1
- package/model/listWarehouses200Response.ts +1 -1
- package/model/listWarehousesV1Output.ts +1 -1
- package/model/listWorkspaceRegulations200Response.ts +1 -1
- package/model/listWorkspaceRegulationsV1Output.ts +1 -1
- package/model/logosBeta.ts +1 -1
- package/model/messageSubscriptionResponse.ts +1 -1
- package/model/messageSubscriptionResponseError.ts +1 -1
- package/model/messagesSubscriptionRequest.ts +1 -1
- package/model/metricBeta.ts +1 -1
- package/model/minimalUserGroupV1.ts +1 -1
- package/model/minimalUserV1.ts +1 -1
- package/model/models.ts +17 -0
- package/model/mtuSnapshotV1.ts +1 -1
- package/model/paginationInput.ts +1 -1
- package/model/paginationOutput.ts +1 -1
- package/model/permissionInputV1.ts +1 -1
- package/model/permissionResourceV1.ts +1 -1
- package/model/permissionV1.ts +1 -1
- package/model/previewDestinationFilter200Response.ts +1 -1
- package/model/previewDestinationFilterV1.ts +1 -1
- package/model/previewDestinationFilterV1Input.ts +1 -1
- package/model/previewDestinationFilterV1Output.ts +1 -1
- package/model/profilesWarehouseAlpha.ts +1 -1
- package/model/propertyRenameBeta.ts +1 -1
- package/model/propertyRenameV1.ts +1 -1
- package/model/propertyValueTransformationBeta.ts +1 -1
- package/model/propertyValueTransformationV1.ts +1 -1
- package/model/regulation.ts +1 -1
- package/model/regulationListEntryV1.ts +1 -1
- package/model/removeAudienceFromSpace200Response.ts +1 -1
- package/model/removeAudienceFromSpaceAlphaOutput.ts +1 -1
- package/model/removeComputedTraitFromSpace200Response.ts +1 -1
- package/model/removeComputedTraitFromSpaceAlphaOutput.ts +1 -1
- package/model/removeFilterFromDestination200Response.ts +1 -1
- package/model/removeFilterFromDestinationV1Output.ts +1 -1
- package/model/removeProfilesWarehouseFromSpace200Response.ts +1 -1
- package/model/removeProfilesWarehouseFromSpaceAlphaOutput.ts +1 -1
- package/model/removeRuleV1.ts +1 -1
- package/model/removeRulesFromTrackingPlan200Response.ts +1 -1
- package/model/removeRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSourceConnectionFromWarehouse200Response.ts +1 -1
- package/model/removeSourceConnectionFromWarehouseV1Output.ts +1 -1
- package/model/removeSourceFromTrackingPlan200Response.ts +1 -1
- package/model/removeSourceFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSubscriptionFromDestination200Response.ts +1 -1
- package/model/removeSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/removeUsersFromUserGroup200Response.ts +1 -1
- package/model/removeUsersFromUserGroupV1Output.ts +1 -1
- package/model/removeWriteKeyFromSource200Response.ts +1 -1
- package/model/removeWriteKeyFromSourceAlphaOutput.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +1 -1
- package/model/replaceLabelsInSource200Response.ts +1 -1
- package/model/replaceLabelsInSource200Response1.ts +1 -1
- package/model/replaceLabelsInSourceAlphaInput.ts +1 -1
- package/model/replaceLabelsInSourceAlphaOutput.ts +1 -1
- package/model/replaceLabelsInSourceV1Input.ts +1 -1
- package/model/replaceLabelsInSourceV1Output.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +1 -1
- package/model/replacePermissionsForUser200Response.ts +1 -1
- package/model/replacePermissionsForUserGroup200Response.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Input.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Output.ts +1 -1
- package/model/replacePermissionsForUserV1Input.ts +1 -1
- package/model/replacePermissionsForUserV1Output.ts +1 -1
- package/model/replaceRulesInTrackingPlan200Response.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Input.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Output.ts +1 -1
- package/model/replaceUsersInUserGroup200Response.ts +1 -1
- package/model/replaceUsersInUserGroupV1Input.ts +1 -1
- package/model/replaceUsersInUserGroupV1Output.ts +1 -1
- package/model/requestError.ts +1 -1
- package/model/requestErrorEnvelope.ts +1 -1
- package/model/resourceV1.ts +1 -1
- package/model/restoreFunctionVersion200Response.ts +1 -1
- package/model/restoreFunctionVersionAlphaInput.ts +1 -1
- package/model/restoreFunctionVersionAlphaOutput.ts +1 -1
- package/model/reverseETLManualSyncJobOutput.ts +1 -1
- package/model/reverseETLSyncOutput.ts +1 -1
- package/model/reverseEtlModel.ts +1 -1
- package/model/roleV1.ts +1 -1
- package/model/ruleInputV1.ts +1 -1
- package/model/ruleV1.ts +1 -1
- package/model/sourceAPICallSnapshotV1.ts +1 -1
- package/model/sourceAlpha.ts +1 -1
- package/model/sourceEventVolumeDatapointV1.ts +1 -1
- package/model/sourceEventVolumeV1.ts +1 -1
- package/model/sourceMetadataV1.ts +1 -1
- package/model/sourceSettingsOutputV1.ts +1 -1
- package/model/sourceV1.ts +1 -1
- package/model/space.ts +1 -1
- package/model/spaceWarehouseSchemaOverride.ts +1 -1
- package/model/spaceWarehouseSelectiveSyncItemAlpha.ts +1 -1
- package/model/streamStatusV1.ts +1 -1
- package/model/suppressedInner.ts +1 -1
- package/model/syncExtractPhase.ts +1 -1
- package/model/syncLoadPhase.ts +1 -1
- package/model/syncNoticeV1.ts +1 -1
- package/model/syncV1.ts +1 -1
- package/model/trackSourceSettingsV1.ts +1 -1
- package/model/trackingPlanV1.ts +1 -1
- package/model/transformationBeta.ts +1 -1
- package/model/transformationV1.ts +1 -1
- package/model/updateAudienceForSpace200Response.ts +1 -1
- package/model/updateAudienceForSpaceAlphaOutput.ts +1 -1
- package/model/updateAudienceForSpaceInput.ts +1 -1
- package/model/updateComputedTraitForSpace200Response.ts +1 -1
- package/model/updateComputedTraitForSpaceAlphaInput.ts +1 -1
- package/model/updateComputedTraitForSpaceAlphaOutput.ts +1 -1
- package/model/updateDestination200Response.ts +1 -1
- package/model/updateDestinationV1Input.ts +1 -1
- package/model/updateDestinationV1Output.ts +1 -1
- package/model/updateFilterForDestination200Response.ts +1 -1
- package/model/updateFilterForDestinationV1Input.ts +1 -1
- package/model/updateFilterForDestinationV1Output.ts +1 -1
- package/model/updateFunction200Response.ts +1 -1
- package/model/updateFunctionV1Input.ts +1 -1
- package/model/updateFunctionV1Output.ts +1 -1
- package/model/updateGroupSubscriptionStatusResponse.ts +1 -1
- package/model/updateInsertFunctionInstance200Response.ts +1 -1
- package/model/updateInsertFunctionInstanceAlphaInput.ts +1 -1
- package/model/updateInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouse200Response.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouseAlphaInput.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouseAlphaOutput.ts +1 -1
- package/model/updateReverseEtlModel200Response.ts +1 -1
- package/model/updateReverseEtlModelInput.ts +1 -1
- package/model/updateReverseEtlModelOutput.ts +1 -1
- package/model/updateRulesInTrackingPlan200Response.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Input.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Output.ts +1 -1
- package/model/updateSchemaSettingsInSource200Response.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Input.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/updateSelectiveSyncForWarehouse200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpace200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpaceAlphaInput.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpaceAlphaOutput.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Input.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Output.ts +1 -1
- package/model/updateSource200Response.ts +1 -1
- package/model/updateSource200Response1.ts +1 -1
- package/model/updateSourceAlphaInput.ts +1 -1
- package/model/updateSourceAlphaOutput.ts +1 -1
- package/model/updateSourceV1Input.ts +1 -1
- package/model/updateSourceV1Output.ts +1 -1
- package/model/updateSubscriptionForDestination200Response.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaInput.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaOutput.ts +1 -1
- package/model/updateTrackingPlan200Response.ts +1 -1
- package/model/updateTrackingPlanV1Input.ts +1 -1
- package/model/updateTrackingPlanV1Output.ts +1 -1
- package/model/updateTransformation200Response.ts +1 -1
- package/model/updateTransformationBetaInput.ts +1 -1
- package/model/updateTransformationBetaOutput.ts +1 -1
- package/model/updateTransformationV1Input.ts +1 -1
- package/model/updateTransformationV1Output.ts +1 -1
- package/model/updateUserGroup200Response.ts +1 -1
- package/model/updateUserGroupV1Input.ts +1 -1
- package/model/updateUserGroupV1Output.ts +1 -1
- package/model/updateWarehouse200Response.ts +1 -1
- package/model/updateWarehouseV1Input.ts +1 -1
- package/model/updateWarehouseV1Output.ts +1 -1
- package/model/upsertRuleV1.ts +1 -1
- package/model/userGroupV1.ts +1 -1
- package/model/userV1.ts +1 -1
- package/model/usersPerSourceSnapshotV1.ts +1 -1
- package/model/version.ts +1 -1
- package/model/warehouseAdvancedSyncV1.ts +1 -1
- package/model/warehouseMetadataV1.ts +1 -1
- package/model/warehouseSelectiveSyncItemV1.ts +1 -1
- package/model/warehouseSyncOverrideV1.ts +1 -1
- package/model/warehouseV1.ts +1 -1
- package/model/workspaceV1.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,966 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Segment Public API
|
|
3
|
+
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 46.0.0
|
|
6
|
+
* Contact: friends@segment.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import localVarRequest from 'request';
|
|
14
|
+
import http from 'http';
|
|
15
|
+
|
|
16
|
+
/* tslint:disable:no-unused-locals */
|
|
17
|
+
import { DeliveryOverviewFilterBy } from '../model/deliveryOverviewFilterBy';
|
|
18
|
+
import { GetEgressFailedMetricsFromDeliveryOverview200Response } from '../model/getEgressFailedMetricsFromDeliveryOverview200Response';
|
|
19
|
+
import { PaginationInput } from '../model/paginationInput';
|
|
20
|
+
import { RequestErrorEnvelope } from '../model/requestErrorEnvelope';
|
|
21
|
+
|
|
22
|
+
import {
|
|
23
|
+
ObjectSerializer,
|
|
24
|
+
Authentication,
|
|
25
|
+
VoidAuth,
|
|
26
|
+
Interceptor,
|
|
27
|
+
} from '../model/models';
|
|
28
|
+
import {
|
|
29
|
+
HttpBasicAuth,
|
|
30
|
+
HttpBearerAuth,
|
|
31
|
+
ApiKeyAuth,
|
|
32
|
+
OAuth,
|
|
33
|
+
} from '../model/models';
|
|
34
|
+
|
|
35
|
+
import { HttpError, RequestFile } from './apis';
|
|
36
|
+
|
|
37
|
+
let defaultBasePath = 'https://api.segmentapis.com';
|
|
38
|
+
|
|
39
|
+
// ===============================================
|
|
40
|
+
// This file is autogenerated - Please do not edit
|
|
41
|
+
// ===============================================
|
|
42
|
+
|
|
43
|
+
export enum DeliveryOverviewApiApiKeys {}
|
|
44
|
+
|
|
45
|
+
export class DeliveryOverviewApi {
|
|
46
|
+
protected _basePath = defaultBasePath;
|
|
47
|
+
protected _defaultHeaders: any = {};
|
|
48
|
+
protected _useQuerystring: boolean = false;
|
|
49
|
+
|
|
50
|
+
protected authentications = {
|
|
51
|
+
default: <Authentication>new VoidAuth(),
|
|
52
|
+
token: new HttpBearerAuth(),
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
protected interceptors: Interceptor[] = [];
|
|
56
|
+
|
|
57
|
+
constructor(basePath?: string);
|
|
58
|
+
constructor(
|
|
59
|
+
basePathOrUsername: string,
|
|
60
|
+
password?: string,
|
|
61
|
+
basePath?: string
|
|
62
|
+
) {
|
|
63
|
+
if (password) {
|
|
64
|
+
if (basePath) {
|
|
65
|
+
this.basePath = basePath;
|
|
66
|
+
}
|
|
67
|
+
} else {
|
|
68
|
+
if (basePathOrUsername) {
|
|
69
|
+
this.basePath = basePathOrUsername;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
set useQuerystring(value: boolean) {
|
|
75
|
+
this._useQuerystring = value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
set basePath(basePath: string) {
|
|
79
|
+
this._basePath = basePath;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
83
|
+
this._defaultHeaders = defaultHeaders;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
get defaultHeaders() {
|
|
87
|
+
return this._defaultHeaders;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
get basePath() {
|
|
91
|
+
return this._basePath;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
95
|
+
this.authentications.default = auth;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
public setApiKey(key: DeliveryOverviewApiApiKeys, value: string) {
|
|
99
|
+
(this.authentications as any)[DeliveryOverviewApiApiKeys[key]].apiKey =
|
|
100
|
+
value;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
set accessToken(accessToken: string | (() => string)) {
|
|
104
|
+
this.authentications.token.accessToken = accessToken;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
108
|
+
this.interceptors.push(interceptor);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Get events that failed to be delivered to Destination.
|
|
113
|
+
* @summary Get Egress Failed Metrics from Delivery Overview
|
|
114
|
+
* @param sourceId The sourceId for the workspace. This parameter exists in alpha.
|
|
115
|
+
* @param destinationConfigId The ID tied to a workspace destination. DestinationConfigId is required for Filtered at Destination, Failed Delivery, and Successful Delivery steps. This parameter exists in alpha.
|
|
116
|
+
* @param startTime The ISO8601 formatted timestamp corresponding to the beginning of the requested timeframe, inclusive. This parameter exists in alpha.
|
|
117
|
+
* @param endTime The ISO8601 formatted timestamp corresponding to the end of the requested timeframe, noninclusive. This parameter exists in alpha.
|
|
118
|
+
* @param granularity The size of each bucket in the requested window. Based on the granularity chosen, there are restrictions on the time range you can query: **Minute**: - Max time range: 4 hours - Oldest possible start time: 48 hours in the past **Hour**: - Max Time range: 14 days - Oldest possible start time: 30 days in the past **Day**: - Max time range: 30 days - Oldest possible start time: 30 days in the past This parameter exists in alpha.
|
|
119
|
+
* @param pagination Params to specify the page cursor and count. This parameter exists in alpha.
|
|
120
|
+
* @param groupBy A comma-delimited list of strings representing one or more dimensions to group the result by. Valid options are: `eventName`, `eventType`, `discardReason`, and `appVersion`. This parameter exists in alpha.
|
|
121
|
+
* @param filter An optional filter for `eventName`, `eventType`, `discardReason`, and/or `appVersion` that can be applied in addition to a `groupBy`. Example: `filter: {discardReason: [\'discard1\'], eventName: [\'name1\', \'name2\'], eventType: [\'type1\']}`. This parameter exists in alpha.
|
|
122
|
+
* @param subscriptionId An optional filter for actions destinations, to filter by a specific action. This parameter exists in alpha.
|
|
123
|
+
*/
|
|
124
|
+
public async getEgressFailedMetricsFromDeliveryOverview(
|
|
125
|
+
sourceId: string,
|
|
126
|
+
destinationConfigId: string,
|
|
127
|
+
startTime: string,
|
|
128
|
+
endTime: string,
|
|
129
|
+
granularity: 'day' | 'hour' | 'minute',
|
|
130
|
+
pagination: PaginationInput,
|
|
131
|
+
groupBy?: Array<string>,
|
|
132
|
+
filter?: DeliveryOverviewFilterBy,
|
|
133
|
+
subscriptionId?: string,
|
|
134
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
135
|
+
): Promise<{
|
|
136
|
+
response: http.IncomingMessage;
|
|
137
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
138
|
+
}> {
|
|
139
|
+
const localVarPath =
|
|
140
|
+
this.basePath + '/delivery-overview/failed-delivery';
|
|
141
|
+
let localVarQueryParameters: any = {};
|
|
142
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
143
|
+
{},
|
|
144
|
+
this._defaultHeaders
|
|
145
|
+
);
|
|
146
|
+
const produces = [
|
|
147
|
+
'application/vnd.segment.v1alpha+json',
|
|
148
|
+
'application/json',
|
|
149
|
+
];
|
|
150
|
+
// give precedence to 'application/json'
|
|
151
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
152
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
153
|
+
} else {
|
|
154
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
155
|
+
}
|
|
156
|
+
let localVarFormParams: any = {};
|
|
157
|
+
|
|
158
|
+
// verify required parameter 'sourceId' is not null or undefined
|
|
159
|
+
if (sourceId === null || sourceId === undefined) {
|
|
160
|
+
throw new Error(
|
|
161
|
+
'Required parameter sourceId was null or undefined when calling getEgressFailedMetricsFromDeliveryOverview.'
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// verify required parameter 'destinationConfigId' is not null or undefined
|
|
166
|
+
if (destinationConfigId === null || destinationConfigId === undefined) {
|
|
167
|
+
throw new Error(
|
|
168
|
+
'Required parameter destinationConfigId was null or undefined when calling getEgressFailedMetricsFromDeliveryOverview.'
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
173
|
+
if (startTime === null || startTime === undefined) {
|
|
174
|
+
throw new Error(
|
|
175
|
+
'Required parameter startTime was null or undefined when calling getEgressFailedMetricsFromDeliveryOverview.'
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
180
|
+
if (endTime === null || endTime === undefined) {
|
|
181
|
+
throw new Error(
|
|
182
|
+
'Required parameter endTime was null or undefined when calling getEgressFailedMetricsFromDeliveryOverview.'
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// verify required parameter 'granularity' is not null or undefined
|
|
187
|
+
if (granularity === null || granularity === undefined) {
|
|
188
|
+
throw new Error(
|
|
189
|
+
'Required parameter granularity was null or undefined when calling getEgressFailedMetricsFromDeliveryOverview.'
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
194
|
+
if (pagination === null || pagination === undefined) {
|
|
195
|
+
throw new Error(
|
|
196
|
+
'Required parameter pagination was null or undefined when calling getEgressFailedMetricsFromDeliveryOverview.'
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
if (sourceId !== undefined) {
|
|
201
|
+
localVarQueryParameters['sourceId'] = ObjectSerializer.serialize(
|
|
202
|
+
sourceId,
|
|
203
|
+
'string'
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (destinationConfigId !== undefined) {
|
|
208
|
+
localVarQueryParameters['destinationConfigId'] =
|
|
209
|
+
ObjectSerializer.serialize(destinationConfigId, 'string');
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (startTime !== undefined) {
|
|
213
|
+
localVarQueryParameters['startTime'] = ObjectSerializer.serialize(
|
|
214
|
+
startTime,
|
|
215
|
+
'string'
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (endTime !== undefined) {
|
|
220
|
+
localVarQueryParameters['endTime'] = ObjectSerializer.serialize(
|
|
221
|
+
endTime,
|
|
222
|
+
'string'
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (groupBy !== undefined) {
|
|
227
|
+
localVarQueryParameters['groupBy'] = ObjectSerializer.serialize(
|
|
228
|
+
groupBy,
|
|
229
|
+
'Array<string>'
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
if (granularity !== undefined) {
|
|
234
|
+
localVarQueryParameters['granularity'] = ObjectSerializer.serialize(
|
|
235
|
+
granularity,
|
|
236
|
+
"'day' | 'hour' | 'minute'"
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (filter !== undefined) {
|
|
241
|
+
localVarQueryParameters['filter'] = ObjectSerializer.serialize(
|
|
242
|
+
filter,
|
|
243
|
+
'DeliveryOverviewFilterBy'
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (pagination !== undefined) {
|
|
248
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
249
|
+
pagination,
|
|
250
|
+
'PaginationInput'
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
if (subscriptionId !== undefined) {
|
|
255
|
+
localVarQueryParameters['subscriptionId'] =
|
|
256
|
+
ObjectSerializer.serialize(subscriptionId, 'string');
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
260
|
+
|
|
261
|
+
let localVarUseFormData = false;
|
|
262
|
+
|
|
263
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
264
|
+
method: 'GET',
|
|
265
|
+
qs: localVarQueryParameters,
|
|
266
|
+
headers: localVarHeaderParams,
|
|
267
|
+
uri: localVarPath,
|
|
268
|
+
useQuerystring: this._useQuerystring,
|
|
269
|
+
json: true,
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
let authenticationPromise = Promise.resolve();
|
|
273
|
+
if (this.authentications.token.accessToken) {
|
|
274
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
275
|
+
this.authentications.token.applyToRequest(
|
|
276
|
+
localVarRequestOptions
|
|
277
|
+
)
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
281
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
282
|
+
);
|
|
283
|
+
|
|
284
|
+
let interceptorPromise = authenticationPromise;
|
|
285
|
+
for (const interceptor of this.interceptors) {
|
|
286
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
287
|
+
interceptor(localVarRequestOptions)
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
return interceptorPromise.then(() => {
|
|
292
|
+
if (Object.keys(localVarFormParams).length) {
|
|
293
|
+
if (localVarUseFormData) {
|
|
294
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
295
|
+
} else {
|
|
296
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return new Promise<{
|
|
300
|
+
response: http.IncomingMessage;
|
|
301
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
302
|
+
}>((resolve, reject) => {
|
|
303
|
+
localVarRequest(
|
|
304
|
+
localVarRequestOptions,
|
|
305
|
+
(error, response, body) => {
|
|
306
|
+
if (error) {
|
|
307
|
+
reject(error);
|
|
308
|
+
} else {
|
|
309
|
+
if (
|
|
310
|
+
response.statusCode &&
|
|
311
|
+
response.statusCode >= 200 &&
|
|
312
|
+
response.statusCode <= 299
|
|
313
|
+
) {
|
|
314
|
+
body = ObjectSerializer.deserialize(
|
|
315
|
+
body,
|
|
316
|
+
'GetEgressFailedMetricsFromDeliveryOverview200Response'
|
|
317
|
+
);
|
|
318
|
+
resolve({ response: response, body: body });
|
|
319
|
+
} else {
|
|
320
|
+
reject(
|
|
321
|
+
new HttpError(
|
|
322
|
+
response,
|
|
323
|
+
body,
|
|
324
|
+
response.statusCode
|
|
325
|
+
)
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
);
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Get events successfully delivered to Destination.
|
|
336
|
+
* @summary Get Egress Success Metrics from Delivery Overview
|
|
337
|
+
*/
|
|
338
|
+
public async getEgressSuccessMetricsFromDeliveryOverview(
|
|
339
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
340
|
+
): Promise<{
|
|
341
|
+
response: http.IncomingMessage;
|
|
342
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
343
|
+
}> {
|
|
344
|
+
const localVarPath =
|
|
345
|
+
this.basePath + '/delivery-overview/successful-delivery';
|
|
346
|
+
let localVarQueryParameters: any = {};
|
|
347
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
348
|
+
{},
|
|
349
|
+
this._defaultHeaders
|
|
350
|
+
);
|
|
351
|
+
const produces = [
|
|
352
|
+
'application/vnd.segment.v1alpha+json',
|
|
353
|
+
'application/json',
|
|
354
|
+
];
|
|
355
|
+
// give precedence to 'application/json'
|
|
356
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
357
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
358
|
+
} else {
|
|
359
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
360
|
+
}
|
|
361
|
+
let localVarFormParams: any = {};
|
|
362
|
+
|
|
363
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
364
|
+
|
|
365
|
+
let localVarUseFormData = false;
|
|
366
|
+
|
|
367
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
368
|
+
method: 'GET',
|
|
369
|
+
qs: localVarQueryParameters,
|
|
370
|
+
headers: localVarHeaderParams,
|
|
371
|
+
uri: localVarPath,
|
|
372
|
+
useQuerystring: this._useQuerystring,
|
|
373
|
+
json: true,
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
let authenticationPromise = Promise.resolve();
|
|
377
|
+
if (this.authentications.token.accessToken) {
|
|
378
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
379
|
+
this.authentications.token.applyToRequest(
|
|
380
|
+
localVarRequestOptions
|
|
381
|
+
)
|
|
382
|
+
);
|
|
383
|
+
}
|
|
384
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
385
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
386
|
+
);
|
|
387
|
+
|
|
388
|
+
let interceptorPromise = authenticationPromise;
|
|
389
|
+
for (const interceptor of this.interceptors) {
|
|
390
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
391
|
+
interceptor(localVarRequestOptions)
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
return interceptorPromise.then(() => {
|
|
396
|
+
if (Object.keys(localVarFormParams).length) {
|
|
397
|
+
if (localVarUseFormData) {
|
|
398
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
399
|
+
} else {
|
|
400
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
return new Promise<{
|
|
404
|
+
response: http.IncomingMessage;
|
|
405
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
406
|
+
}>((resolve, reject) => {
|
|
407
|
+
localVarRequest(
|
|
408
|
+
localVarRequestOptions,
|
|
409
|
+
(error, response, body) => {
|
|
410
|
+
if (error) {
|
|
411
|
+
reject(error);
|
|
412
|
+
} else {
|
|
413
|
+
if (
|
|
414
|
+
response.statusCode &&
|
|
415
|
+
response.statusCode >= 200 &&
|
|
416
|
+
response.statusCode <= 299
|
|
417
|
+
) {
|
|
418
|
+
body = ObjectSerializer.deserialize(
|
|
419
|
+
body,
|
|
420
|
+
'GetEgressFailedMetricsFromDeliveryOverview200Response'
|
|
421
|
+
);
|
|
422
|
+
resolve({ response: response, body: body });
|
|
423
|
+
} else {
|
|
424
|
+
reject(
|
|
425
|
+
new HttpError(
|
|
426
|
+
response,
|
|
427
|
+
body,
|
|
428
|
+
response.statusCode
|
|
429
|
+
)
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
);
|
|
435
|
+
});
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Get events that were filtered at Destination.
|
|
440
|
+
* @summary Get Filtered At Destination Metrics from Delivery Overview
|
|
441
|
+
*/
|
|
442
|
+
public async getFilteredAtDestinationMetricsFromDeliveryOverview(
|
|
443
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
444
|
+
): Promise<{
|
|
445
|
+
response: http.IncomingMessage;
|
|
446
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
447
|
+
}> {
|
|
448
|
+
const localVarPath =
|
|
449
|
+
this.basePath + '/delivery-overview/filtered-at-destination';
|
|
450
|
+
let localVarQueryParameters: any = {};
|
|
451
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
452
|
+
{},
|
|
453
|
+
this._defaultHeaders
|
|
454
|
+
);
|
|
455
|
+
const produces = [
|
|
456
|
+
'application/vnd.segment.v1alpha+json',
|
|
457
|
+
'application/json',
|
|
458
|
+
];
|
|
459
|
+
// give precedence to 'application/json'
|
|
460
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
461
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
462
|
+
} else {
|
|
463
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
464
|
+
}
|
|
465
|
+
let localVarFormParams: any = {};
|
|
466
|
+
|
|
467
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
468
|
+
|
|
469
|
+
let localVarUseFormData = false;
|
|
470
|
+
|
|
471
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
472
|
+
method: 'GET',
|
|
473
|
+
qs: localVarQueryParameters,
|
|
474
|
+
headers: localVarHeaderParams,
|
|
475
|
+
uri: localVarPath,
|
|
476
|
+
useQuerystring: this._useQuerystring,
|
|
477
|
+
json: true,
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
let authenticationPromise = Promise.resolve();
|
|
481
|
+
if (this.authentications.token.accessToken) {
|
|
482
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
483
|
+
this.authentications.token.applyToRequest(
|
|
484
|
+
localVarRequestOptions
|
|
485
|
+
)
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
489
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
490
|
+
);
|
|
491
|
+
|
|
492
|
+
let interceptorPromise = authenticationPromise;
|
|
493
|
+
for (const interceptor of this.interceptors) {
|
|
494
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
495
|
+
interceptor(localVarRequestOptions)
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
return interceptorPromise.then(() => {
|
|
500
|
+
if (Object.keys(localVarFormParams).length) {
|
|
501
|
+
if (localVarUseFormData) {
|
|
502
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
503
|
+
} else {
|
|
504
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
return new Promise<{
|
|
508
|
+
response: http.IncomingMessage;
|
|
509
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
510
|
+
}>((resolve, reject) => {
|
|
511
|
+
localVarRequest(
|
|
512
|
+
localVarRequestOptions,
|
|
513
|
+
(error, response, body) => {
|
|
514
|
+
if (error) {
|
|
515
|
+
reject(error);
|
|
516
|
+
} else {
|
|
517
|
+
if (
|
|
518
|
+
response.statusCode &&
|
|
519
|
+
response.statusCode >= 200 &&
|
|
520
|
+
response.statusCode <= 299
|
|
521
|
+
) {
|
|
522
|
+
body = ObjectSerializer.deserialize(
|
|
523
|
+
body,
|
|
524
|
+
'GetEgressFailedMetricsFromDeliveryOverview200Response'
|
|
525
|
+
);
|
|
526
|
+
resolve({ response: response, body: body });
|
|
527
|
+
} else {
|
|
528
|
+
reject(
|
|
529
|
+
new HttpError(
|
|
530
|
+
response,
|
|
531
|
+
body,
|
|
532
|
+
response.statusCode
|
|
533
|
+
)
|
|
534
|
+
);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
);
|
|
539
|
+
});
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Get events that were filtered at Source.
|
|
544
|
+
* @summary Get Filtered At Source Metrics from Delivery Overview
|
|
545
|
+
* @param sourceId The sourceId for the workspace. This parameter exists in alpha.
|
|
546
|
+
* @param startTime The ISO8601 formatted timestamp corresponding to the beginning of the requested timeframe, inclusive. This parameter exists in alpha.
|
|
547
|
+
* @param endTime The ISO8601 formatted timestamp corresponding to the end of the requested timeframe, noninclusive. This parameter exists in alpha.
|
|
548
|
+
* @param granularity The size of each bucket in the requested window. Based on the granularity chosen, there are restrictions on the time range you can query: **Minute**: - Max time range: 4 hours - Oldest possible start time: 48 hours in the past **Hour**: - Max Time range: 14 days - Oldest possible start time: 30 days in the past **Day**: - Max time range: 30 days - Oldest possible start time: 30 days in the past This parameter exists in alpha.
|
|
549
|
+
* @param pagination Optional params to specify the page cursor and count. This parameter exists in alpha.
|
|
550
|
+
* @param destinationConfigId The ID tied to a workspace destination. This parameter exists in alpha.
|
|
551
|
+
* @param groupBy A comma-delimited list of strings representing one or more dimensions to group the result by. Valid options are: `eventName`, `eventType`, `discardReason`, and `appVersion`. This parameter exists in alpha.
|
|
552
|
+
* @param filter An optional filter for `eventName`, `eventType`, `discardReason`, and/or `appVersion` that can be applied in addition to a `groupBy`. Example: `filter: {discardReason: [\'discard1\'], eventName: [\'name1\', \'name2\'], eventType: [\'type1\']}`. This parameter exists in alpha.
|
|
553
|
+
* @param subscriptionId An optional filter for actions destinations, to filter by a specific action. This parameter exists in alpha.
|
|
554
|
+
*/
|
|
555
|
+
public async getFilteredAtSourceMetricsFromDeliveryOverview(
|
|
556
|
+
sourceId: string,
|
|
557
|
+
startTime: string,
|
|
558
|
+
endTime: string,
|
|
559
|
+
granularity: 'day' | 'hour' | 'minute',
|
|
560
|
+
pagination: PaginationInput,
|
|
561
|
+
destinationConfigId?: string,
|
|
562
|
+
groupBy?: Array<string>,
|
|
563
|
+
filter?: DeliveryOverviewFilterBy,
|
|
564
|
+
subscriptionId?: string,
|
|
565
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
566
|
+
): Promise<{
|
|
567
|
+
response: http.IncomingMessage;
|
|
568
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
569
|
+
}> {
|
|
570
|
+
const localVarPath =
|
|
571
|
+
this.basePath + '/delivery-overview/filtered-at-source';
|
|
572
|
+
let localVarQueryParameters: any = {};
|
|
573
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
574
|
+
{},
|
|
575
|
+
this._defaultHeaders
|
|
576
|
+
);
|
|
577
|
+
const produces = [
|
|
578
|
+
'application/vnd.segment.v1alpha+json',
|
|
579
|
+
'application/json',
|
|
580
|
+
];
|
|
581
|
+
// give precedence to 'application/json'
|
|
582
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
583
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
584
|
+
} else {
|
|
585
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
586
|
+
}
|
|
587
|
+
let localVarFormParams: any = {};
|
|
588
|
+
|
|
589
|
+
// verify required parameter 'sourceId' is not null or undefined
|
|
590
|
+
if (sourceId === null || sourceId === undefined) {
|
|
591
|
+
throw new Error(
|
|
592
|
+
'Required parameter sourceId was null or undefined when calling getFilteredAtSourceMetricsFromDeliveryOverview.'
|
|
593
|
+
);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
597
|
+
if (startTime === null || startTime === undefined) {
|
|
598
|
+
throw new Error(
|
|
599
|
+
'Required parameter startTime was null or undefined when calling getFilteredAtSourceMetricsFromDeliveryOverview.'
|
|
600
|
+
);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
604
|
+
if (endTime === null || endTime === undefined) {
|
|
605
|
+
throw new Error(
|
|
606
|
+
'Required parameter endTime was null or undefined when calling getFilteredAtSourceMetricsFromDeliveryOverview.'
|
|
607
|
+
);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// verify required parameter 'granularity' is not null or undefined
|
|
611
|
+
if (granularity === null || granularity === undefined) {
|
|
612
|
+
throw new Error(
|
|
613
|
+
'Required parameter granularity was null or undefined when calling getFilteredAtSourceMetricsFromDeliveryOverview.'
|
|
614
|
+
);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
618
|
+
if (pagination === null || pagination === undefined) {
|
|
619
|
+
throw new Error(
|
|
620
|
+
'Required parameter pagination was null or undefined when calling getFilteredAtSourceMetricsFromDeliveryOverview.'
|
|
621
|
+
);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if (sourceId !== undefined) {
|
|
625
|
+
localVarQueryParameters['sourceId'] = ObjectSerializer.serialize(
|
|
626
|
+
sourceId,
|
|
627
|
+
'string'
|
|
628
|
+
);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
if (destinationConfigId !== undefined) {
|
|
632
|
+
localVarQueryParameters['destinationConfigId'] =
|
|
633
|
+
ObjectSerializer.serialize(destinationConfigId, 'string');
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if (startTime !== undefined) {
|
|
637
|
+
localVarQueryParameters['startTime'] = ObjectSerializer.serialize(
|
|
638
|
+
startTime,
|
|
639
|
+
'string'
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
if (endTime !== undefined) {
|
|
644
|
+
localVarQueryParameters['endTime'] = ObjectSerializer.serialize(
|
|
645
|
+
endTime,
|
|
646
|
+
'string'
|
|
647
|
+
);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
if (groupBy !== undefined) {
|
|
651
|
+
localVarQueryParameters['groupBy'] = ObjectSerializer.serialize(
|
|
652
|
+
groupBy,
|
|
653
|
+
'Array<string>'
|
|
654
|
+
);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
if (granularity !== undefined) {
|
|
658
|
+
localVarQueryParameters['granularity'] = ObjectSerializer.serialize(
|
|
659
|
+
granularity,
|
|
660
|
+
"'day' | 'hour' | 'minute'"
|
|
661
|
+
);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
if (filter !== undefined) {
|
|
665
|
+
localVarQueryParameters['filter'] = ObjectSerializer.serialize(
|
|
666
|
+
filter,
|
|
667
|
+
'DeliveryOverviewFilterBy'
|
|
668
|
+
);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
if (pagination !== undefined) {
|
|
672
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
673
|
+
pagination,
|
|
674
|
+
'PaginationInput'
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
if (subscriptionId !== undefined) {
|
|
679
|
+
localVarQueryParameters['subscriptionId'] =
|
|
680
|
+
ObjectSerializer.serialize(subscriptionId, 'string');
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
684
|
+
|
|
685
|
+
let localVarUseFormData = false;
|
|
686
|
+
|
|
687
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
688
|
+
method: 'GET',
|
|
689
|
+
qs: localVarQueryParameters,
|
|
690
|
+
headers: localVarHeaderParams,
|
|
691
|
+
uri: localVarPath,
|
|
692
|
+
useQuerystring: this._useQuerystring,
|
|
693
|
+
json: true,
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
let authenticationPromise = Promise.resolve();
|
|
697
|
+
if (this.authentications.token.accessToken) {
|
|
698
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
699
|
+
this.authentications.token.applyToRequest(
|
|
700
|
+
localVarRequestOptions
|
|
701
|
+
)
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
705
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
706
|
+
);
|
|
707
|
+
|
|
708
|
+
let interceptorPromise = authenticationPromise;
|
|
709
|
+
for (const interceptor of this.interceptors) {
|
|
710
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
711
|
+
interceptor(localVarRequestOptions)
|
|
712
|
+
);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
return interceptorPromise.then(() => {
|
|
716
|
+
if (Object.keys(localVarFormParams).length) {
|
|
717
|
+
if (localVarUseFormData) {
|
|
718
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
719
|
+
} else {
|
|
720
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
return new Promise<{
|
|
724
|
+
response: http.IncomingMessage;
|
|
725
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
726
|
+
}>((resolve, reject) => {
|
|
727
|
+
localVarRequest(
|
|
728
|
+
localVarRequestOptions,
|
|
729
|
+
(error, response, body) => {
|
|
730
|
+
if (error) {
|
|
731
|
+
reject(error);
|
|
732
|
+
} else {
|
|
733
|
+
if (
|
|
734
|
+
response.statusCode &&
|
|
735
|
+
response.statusCode >= 200 &&
|
|
736
|
+
response.statusCode <= 299
|
|
737
|
+
) {
|
|
738
|
+
body = ObjectSerializer.deserialize(
|
|
739
|
+
body,
|
|
740
|
+
'GetEgressFailedMetricsFromDeliveryOverview200Response'
|
|
741
|
+
);
|
|
742
|
+
resolve({ response: response, body: body });
|
|
743
|
+
} else {
|
|
744
|
+
reject(
|
|
745
|
+
new HttpError(
|
|
746
|
+
response,
|
|
747
|
+
body,
|
|
748
|
+
response.statusCode
|
|
749
|
+
)
|
|
750
|
+
);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
);
|
|
755
|
+
});
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Get events that failed on ingest.
|
|
760
|
+
* @summary Get Ingress Failed Metrics from Delivery Overview
|
|
761
|
+
*/
|
|
762
|
+
public async getIngressFailedMetricsFromDeliveryOverview(
|
|
763
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
764
|
+
): Promise<{
|
|
765
|
+
response: http.IncomingMessage;
|
|
766
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
767
|
+
}> {
|
|
768
|
+
const localVarPath =
|
|
769
|
+
this.basePath + '/delivery-overview/failed-on-ingest';
|
|
770
|
+
let localVarQueryParameters: any = {};
|
|
771
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
772
|
+
{},
|
|
773
|
+
this._defaultHeaders
|
|
774
|
+
);
|
|
775
|
+
const produces = [
|
|
776
|
+
'application/vnd.segment.v1alpha+json',
|
|
777
|
+
'application/json',
|
|
778
|
+
];
|
|
779
|
+
// give precedence to 'application/json'
|
|
780
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
781
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
782
|
+
} else {
|
|
783
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
784
|
+
}
|
|
785
|
+
let localVarFormParams: any = {};
|
|
786
|
+
|
|
787
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
788
|
+
|
|
789
|
+
let localVarUseFormData = false;
|
|
790
|
+
|
|
791
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
792
|
+
method: 'GET',
|
|
793
|
+
qs: localVarQueryParameters,
|
|
794
|
+
headers: localVarHeaderParams,
|
|
795
|
+
uri: localVarPath,
|
|
796
|
+
useQuerystring: this._useQuerystring,
|
|
797
|
+
json: true,
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
let authenticationPromise = Promise.resolve();
|
|
801
|
+
if (this.authentications.token.accessToken) {
|
|
802
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
803
|
+
this.authentications.token.applyToRequest(
|
|
804
|
+
localVarRequestOptions
|
|
805
|
+
)
|
|
806
|
+
);
|
|
807
|
+
}
|
|
808
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
809
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
810
|
+
);
|
|
811
|
+
|
|
812
|
+
let interceptorPromise = authenticationPromise;
|
|
813
|
+
for (const interceptor of this.interceptors) {
|
|
814
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
815
|
+
interceptor(localVarRequestOptions)
|
|
816
|
+
);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
return interceptorPromise.then(() => {
|
|
820
|
+
if (Object.keys(localVarFormParams).length) {
|
|
821
|
+
if (localVarUseFormData) {
|
|
822
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
823
|
+
} else {
|
|
824
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
return new Promise<{
|
|
828
|
+
response: http.IncomingMessage;
|
|
829
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
830
|
+
}>((resolve, reject) => {
|
|
831
|
+
localVarRequest(
|
|
832
|
+
localVarRequestOptions,
|
|
833
|
+
(error, response, body) => {
|
|
834
|
+
if (error) {
|
|
835
|
+
reject(error);
|
|
836
|
+
} else {
|
|
837
|
+
if (
|
|
838
|
+
response.statusCode &&
|
|
839
|
+
response.statusCode >= 200 &&
|
|
840
|
+
response.statusCode <= 299
|
|
841
|
+
) {
|
|
842
|
+
body = ObjectSerializer.deserialize(
|
|
843
|
+
body,
|
|
844
|
+
'GetEgressFailedMetricsFromDeliveryOverview200Response'
|
|
845
|
+
);
|
|
846
|
+
resolve({ response: response, body: body });
|
|
847
|
+
} else {
|
|
848
|
+
reject(
|
|
849
|
+
new HttpError(
|
|
850
|
+
response,
|
|
851
|
+
body,
|
|
852
|
+
response.statusCode
|
|
853
|
+
)
|
|
854
|
+
);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
);
|
|
859
|
+
});
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Get events that were successfully received by Segment.
|
|
864
|
+
* @summary Get Ingress Success Metrics from Delivery Overview
|
|
865
|
+
*/
|
|
866
|
+
public async getIngressSuccessMetricsFromDeliveryOverview(
|
|
867
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
868
|
+
): Promise<{
|
|
869
|
+
response: http.IncomingMessage;
|
|
870
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
871
|
+
}> {
|
|
872
|
+
const localVarPath =
|
|
873
|
+
this.basePath + '/delivery-overview/successfully-received';
|
|
874
|
+
let localVarQueryParameters: any = {};
|
|
875
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
876
|
+
{},
|
|
877
|
+
this._defaultHeaders
|
|
878
|
+
);
|
|
879
|
+
const produces = [
|
|
880
|
+
'application/vnd.segment.v1alpha+json',
|
|
881
|
+
'application/json',
|
|
882
|
+
];
|
|
883
|
+
// give precedence to 'application/json'
|
|
884
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
885
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
886
|
+
} else {
|
|
887
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
888
|
+
}
|
|
889
|
+
let localVarFormParams: any = {};
|
|
890
|
+
|
|
891
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
892
|
+
|
|
893
|
+
let localVarUseFormData = false;
|
|
894
|
+
|
|
895
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
896
|
+
method: 'GET',
|
|
897
|
+
qs: localVarQueryParameters,
|
|
898
|
+
headers: localVarHeaderParams,
|
|
899
|
+
uri: localVarPath,
|
|
900
|
+
useQuerystring: this._useQuerystring,
|
|
901
|
+
json: true,
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
let authenticationPromise = Promise.resolve();
|
|
905
|
+
if (this.authentications.token.accessToken) {
|
|
906
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
907
|
+
this.authentications.token.applyToRequest(
|
|
908
|
+
localVarRequestOptions
|
|
909
|
+
)
|
|
910
|
+
);
|
|
911
|
+
}
|
|
912
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
913
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
914
|
+
);
|
|
915
|
+
|
|
916
|
+
let interceptorPromise = authenticationPromise;
|
|
917
|
+
for (const interceptor of this.interceptors) {
|
|
918
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
919
|
+
interceptor(localVarRequestOptions)
|
|
920
|
+
);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
return interceptorPromise.then(() => {
|
|
924
|
+
if (Object.keys(localVarFormParams).length) {
|
|
925
|
+
if (localVarUseFormData) {
|
|
926
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
927
|
+
} else {
|
|
928
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
return new Promise<{
|
|
932
|
+
response: http.IncomingMessage;
|
|
933
|
+
body: GetEgressFailedMetricsFromDeliveryOverview200Response;
|
|
934
|
+
}>((resolve, reject) => {
|
|
935
|
+
localVarRequest(
|
|
936
|
+
localVarRequestOptions,
|
|
937
|
+
(error, response, body) => {
|
|
938
|
+
if (error) {
|
|
939
|
+
reject(error);
|
|
940
|
+
} else {
|
|
941
|
+
if (
|
|
942
|
+
response.statusCode &&
|
|
943
|
+
response.statusCode >= 200 &&
|
|
944
|
+
response.statusCode <= 299
|
|
945
|
+
) {
|
|
946
|
+
body = ObjectSerializer.deserialize(
|
|
947
|
+
body,
|
|
948
|
+
'GetEgressFailedMetricsFromDeliveryOverview200Response'
|
|
949
|
+
);
|
|
950
|
+
resolve({ response: response, body: body });
|
|
951
|
+
} else {
|
|
952
|
+
reject(
|
|
953
|
+
new HttpError(
|
|
954
|
+
response,
|
|
955
|
+
body,
|
|
956
|
+
response.statusCode
|
|
957
|
+
)
|
|
958
|
+
);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
);
|
|
963
|
+
});
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
}
|