{"note":"OpenAPI conversion -- returning structured metadata","name":"amazonaws-com-devops-guru","description":"Amazon DevOps Guru","version":"2020-12-01","base_url":"","endpoints":31,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Amazon DevOps Guru\n@version 2020-12-01\n@auth AWS SigV4\n@endpoints 31\n@hint download_for_search\n@toc channels(3), insights(4), accounts(3), anomalies(2), event-sources(2), feedback(2), organization(5), service-integrations(2), cost-estimation(2), resource-collections(2), list-log-anomalies(1), events(1), monitoredResources(1), recommendations(1)\n\n@group channels\n@endpoint PUT /channels\n@desc Adds a notification channel to DevOps Guru. A notification channel is used to notify you about important DevOps Guru events, such as when an insight is generated.  If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to send it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics. For more information, see Permissions for Amazon SNS topics. If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for Amazon Web Services KMS–encrypted Amazon SNS topics.\n@required {Config: NotificationChannelConfig}\n@returns(200) {Id: str}\n\n@endgroup\n\n@group insights\n@endpoint DELETE /insights/{Id}\n@desc Deletes the insight along with the associated anomalies, events and recommendations.\n@required {Id: str}\n\n@endgroup\n\n@group accounts\n@endpoint GET /accounts/health\n@desc Returns the number of open reactive insights, the number of open proactive insights, and the number of metrics analyzed in your Amazon Web Services account. Use these numbers to gauge the health of operations in your Amazon Web Services account.\n@returns(200) {OpenReactiveInsights: int, OpenProactiveInsights: int, MetricsAnalyzed: int, ResourceHours: int(i64), AnalyzedResourceCount: int(i64)?}\n\n@endpoint POST /accounts/overview\n@desc For the time range passed in, returns the number of open reactive insight that were created, the number of open proactive insights that were created, and the Mean Time to Recover (MTTR) for all closed reactive insights.\n@required {FromTime: str(timestamp)}\n@optional {ToTime: str(timestamp)}\n@returns(200) {ReactiveInsights: int, ProactiveInsights: int, MeanTimeToRecoverInMilliseconds: int(i64)}\n\n@endgroup\n\n@group anomalies\n@endpoint GET /anomalies/{Id}\n@desc Returns details about an anomaly that you specify using its ID.\n@required {Id: str}\n@optional {AccountId: str}\n@returns(200) {ProactiveAnomaly: ProactiveAnomaly?{Id: str?, Severity: str?, Status: str?, UpdateTime: str(timestamp)?, AnomalyTimeRange: AnomalyTimeRange?{StartTime: str(timestamp), EndTime: str(timestamp)?}, AnomalyReportedTimeRange: AnomalyReportedTimeRange?{OpenTime: str(timestamp), CloseTime: str(timestamp)?}, PredictionTimeRange: PredictionTimeRange?{StartTime: str(timestamp), EndTime: str(timestamp)?}, SourceDetails: AnomalySourceDetails?{CloudWatchMetrics: [CloudWatchMetricsDetail]?, PerformanceInsightsMetrics: [PerformanceInsightsMetricsDetail]?}, AssociatedInsightId: str?, ResourceCollection: ResourceCollection?{CloudFormation: CloudFormationCollection?{StackNames: [str]?}, Tags: [TagCollection]?}, Limit: num(f64)?, SourceMetadata: AnomalySourceMetadata?{Source: str?, SourceResourceName: str?, SourceResourceType: str?}, AnomalyResources: [AnomalyResource]?, Description: str?}, ReactiveAnomaly: ReactiveAnomaly?{Id: str?, Severity: str?, Status: str?, AnomalyTimeRange: AnomalyTimeRange?{StartTime: str(timestamp), EndTime: str(timestamp)?}, AnomalyReportedTimeRange: AnomalyReportedTimeRange?{OpenTime: str(timestamp), CloseTime: str(timestamp)?}, SourceDetails: AnomalySourceDetails?{CloudWatchMetrics: [CloudWatchMetricsDetail]?, PerformanceInsightsMetrics: [PerformanceInsightsMetricsDetail]?}, AssociatedInsightId: str?, ResourceCollection: ResourceCollection?{CloudFormation: CloudFormationCollection?{StackNames: [str]?}, Tags: [TagCollection]?}, Type: str?, Name: str?, Description: str?, CausalAnomalyId: str?, AnomalyResources: [AnomalyResource]?}}\n\n@endgroup\n\n@group event-sources\n@endpoint POST /event-sources\n@desc Returns the integration status of services that are integrated with DevOps Guru as Consumer via EventBridge. The one service that can be integrated with DevOps Guru is Amazon CodeGuru Profiler, which can produce proactive recommendations which can be stored and viewed in DevOps Guru.\n@returns(200) {EventSources: EventSourcesConfig?{AmazonCodeGuruProfiler: AmazonCodeGuruProfilerIntegration?{Status: str?}}}\n\n@endgroup\n\n@group feedback\n@endpoint POST /feedback\n@desc Returns the most recent feedback submitted in the current Amazon Web Services account and Region.\n@optional {InsightId: str}\n@returns(200) {InsightFeedback: InsightFeedback?{Id: str?, Feedback: str?}}\n\n@endgroup\n\n@group insights\n@endpoint GET /insights/{Id}\n@desc Returns details about an insight that you specify using its ID.\n@required {Id: str}\n@optional {AccountId: str}\n@returns(200) {ProactiveInsight: ProactiveInsight?{Id: str?, Name: str?, Severity: str?, Status: str?, InsightTimeRange: InsightTimeRange?{StartTime: str(timestamp), EndTime: str(timestamp)?}, PredictionTimeRange: PredictionTimeRange?{StartTime: str(timestamp), EndTime: str(timestamp)?}, ResourceCollection: ResourceCollection?{CloudFormation: CloudFormationCollection?{StackNames: [str]?}, Tags: [TagCollection]?}, SsmOpsItemId: str?, Description: str?}, ReactiveInsight: ReactiveInsight?{Id: str?, Name: str?, Severity: str?, Status: str?, InsightTimeRange: InsightTimeRange?{StartTime: str(timestamp), EndTime: str(timestamp)?}, ResourceCollection: ResourceCollection?{CloudFormation: CloudFormationCollection?{StackNames: [str]?}, Tags: [TagCollection]?}, SsmOpsItemId: str?, Description: str?}}\n\n@endgroup\n\n@group organization\n@endpoint POST /organization/health\n@desc Returns active insights, predictive insights, and resource hours analyzed in last hour.\n@optional {AccountIds: [str], OrganizationalUnitIds: [str]}\n@returns(200) {OpenReactiveInsights: int, OpenProactiveInsights: int, MetricsAnalyzed: int, ResourceHours: int(i64)}\n\n@endpoint POST /organization/overview\n@desc Returns an overview of your organization's history based on the specified time range. The overview includes the total reactive and proactive insights.\n@required {FromTime: str(timestamp)}\n@optional {ToTime: str(timestamp), AccountIds: [str], OrganizationalUnitIds: [str]}\n@returns(200) {ReactiveInsights: int, ProactiveInsights: int}\n\n@endpoint POST /organization/health/resource-collection\n@desc Provides an overview of your system's health. If additional member accounts are part of your organization, you can filter those accounts using the AccountIds field.\n@required {OrganizationResourceCollectionType: str}\n@optional {AccountIds: [str], OrganizationalUnitIds: [str], NextToken: str, MaxResults: int}\n@returns(200) {CloudFormation: [CloudFormationHealth]?, Service: [ServiceHealth]?, Account: [AccountHealth]?, NextToken: str?, Tags: [TagHealth]?}\n\n@endgroup\n\n@group accounts\n@endpoint GET /accounts/health/resource-collection/{ResourceCollectionType}\n@desc Returns the number of open proactive insights, open reactive insights, and the Mean Time to Recover (MTTR) for all closed insights in resource collections in your account. You specify the type of Amazon Web Services resources collection. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.\n@required {ResourceCollectionType: str}\n@optional {NextToken: str}\n@returns(200) {CloudFormation: [CloudFormationHealth]?, Service: [ServiceHealth]?, NextToken: str?, Tags: [TagHealth]?}\n\n@endgroup\n\n@group service-integrations\n@endpoint GET /service-integrations\n@desc Returns the integration status of services that are integrated with DevOps Guru. The one service that can be integrated with DevOps Guru is Amazon Web Services Systems Manager, which can be used to create an OpsItem for each generated insight.\n@returns(200) {ServiceIntegration: ServiceIntegrationConfig?{OpsCenter: OpsCenterIntegration?{OptInStatus: str?}, LogsAnomalyDetection: LogsAnomalyDetectionIntegration?{OptInStatus: str?}, KMSServerSideEncryption: KMSServerSideEncryptionIntegration?{KMSKeyId: str?, OptInStatus: str?, Type: str?}}}\n\n@endgroup\n\n@group cost-estimation\n@endpoint GET /cost-estimation\n@desc Returns an estimate of the monthly cost for DevOps Guru to analyze your Amazon Web Services resources. For more information, see Estimate your Amazon DevOps Guru costs and Amazon DevOps Guru pricing.\n@optional {NextToken: str}\n@returns(200) {ResourceCollection: CostEstimationResourceCollectionFilter?{CloudFormation: CloudFormationCostEstimationResourceCollectionFilter?{StackNames: [str]?}, Tags: [TagCostEstimationResourceCollectionFilter]?}, Status: str?, Costs: [ServiceResourceCost]?, TimeRange: CostEstimationTimeRange?{StartTime: str(timestamp)?, EndTime: str(timestamp)?}, TotalCost: num(f64)?, NextToken: str?}\n\n@endgroup\n\n@group resource-collections\n@endpoint GET /resource-collections/{ResourceCollectionType}\n@desc Returns lists Amazon Web Services resources that are of the specified resource collection type. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.\n@required {ResourceCollectionType: str}\n@optional {NextToken: str}\n@returns(200) {ResourceCollection: ResourceCollectionFilter?{CloudFormation: CloudFormationCollectionFilter?{StackNames: [str]?}, Tags: [TagCollectionFilter]?}, NextToken: str?}\n\n@endgroup\n\n@group anomalies\n@endpoint POST /anomalies/insight/{InsightId}\n@desc Returns a list of the anomalies that belong to an insight that you specify using its ID.\n@required {InsightId: str}\n@optional {StartTimeRange: StartTimeRange, MaxResults: int, NextToken: str, AccountId: str, Filters: ListAnomaliesForInsightFilters}\n@returns(200) {ProactiveAnomalies: [ProactiveAnomalySummary]?, ReactiveAnomalies: [ReactiveAnomalySummary]?, NextToken: str?}\n\n@endgroup\n\n@group list-log-anomalies\n@endpoint POST /list-log-anomalies\n@desc Returns the list of log groups that contain log anomalies.\n@required {InsightId: str}\n@optional {MaxResults: int, NextToken: str}\n@returns(200) {InsightId: str, AnomalousLogGroups: [AnomalousLogGroup], NextToken: str?}\n\n@endgroup\n\n@group events\n@endpoint POST /events\n@desc Returns a list of the events emitted by the resources that are evaluated by DevOps Guru. You can use filters to specify which events are returned.\n@required {Filters: ListEventsFilters}\n@optional {MaxResults: int, NextToken: str, AccountId: str}\n@returns(200) {Events: [Event], NextToken: str?}\n\n@endgroup\n\n@group insights\n@endpoint POST /insights\n@desc Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time and status (ONGOING, CLOSED, or ANY).\n@required {StatusFilter: ListInsightsStatusFilter}\n@optional {MaxResults: int, NextToken: str}\n@returns(200) {ProactiveInsights: [ProactiveInsightSummary]?, ReactiveInsights: [ReactiveInsightSummary]?, NextToken: str?}\n\n@endgroup\n\n@group monitoredResources\n@endpoint POST /monitoredResources\n@desc Returns the list of all log groups that are being monitored and tagged by DevOps Guru.\n@optional {Filters: ListMonitoredResourcesFilters, MaxResults: int, NextToken: str}\n@returns(200) {MonitoredResourceIdentifiers: [MonitoredResourceIdentifier], NextToken: str?}\n\n@endgroup\n\n@group channels\n@endpoint POST /channels\n@desc Returns a list of notification channels configured for DevOps Guru. Each notification channel is used to notify you when DevOps Guru generates an insight that contains information about how to improve your operations. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).\n@optional {NextToken: str}\n@returns(200) {Channels: [NotificationChannel]?, NextToken: str?}\n\n@endgroup\n\n@group organization\n@endpoint POST /organization/insights\n@desc Returns a list of insights associated with the account or OU Id.\n@required {StatusFilter: ListInsightsStatusFilter}\n@optional {MaxResults: int, AccountIds: [str], OrganizationalUnitIds: [str], NextToken: str}\n@returns(200) {ProactiveInsights: [ProactiveOrganizationInsightSummary]?, ReactiveInsights: [ReactiveOrganizationInsightSummary]?, NextToken: str?}\n\n@endgroup\n\n@group recommendations\n@endpoint POST /recommendations\n@desc Returns a list of a specified insight's recommendations. Each recommendation includes a list of related metrics and a list of related events.\n@required {InsightId: str}\n@optional {NextToken: str, Locale: str, AccountId: str}\n@returns(200) {Recommendations: [Recommendation]?, NextToken: str?}\n\n@endgroup\n\n@group feedback\n@endpoint PUT /feedback\n@desc Collects customer feedback about the specified insight.\n@optional {InsightFeedback: InsightFeedback}\n\n@endgroup\n\n@group channels\n@endpoint DELETE /channels/{Id}\n@desc Removes a notification channel from DevOps Guru. A notification channel is used to notify you when DevOps Guru generates an insight that contains information about how to improve your operations.\n@required {Id: str}\n\n@endgroup\n\n@group insights\n@endpoint POST /insights/search\n@desc Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING or CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE).   Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search.\n@required {StartTimeRange: StartTimeRange, Type: str}\n@optional {Filters: SearchInsightsFilters, MaxResults: int, NextToken: str}\n@returns(200) {ProactiveInsights: [ProactiveInsightSummary]?, ReactiveInsights: [ReactiveInsightSummary]?, NextToken: str?}\n\n@endgroup\n\n@group organization\n@endpoint POST /organization/insights/search\n@desc Returns a list of insights in your organization. You can specify which insights are returned by their start time, one or more statuses (ONGOING, CLOSED, and CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE).   Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search.\n@required {AccountIds: [str], StartTimeRange: StartTimeRange, Type: str}\n@optional {Filters: SearchOrganizationInsightsFilters, MaxResults: int, NextToken: str}\n@returns(200) {ProactiveInsights: [ProactiveInsightSummary]?, ReactiveInsights: [ReactiveInsightSummary]?, NextToken: str?}\n\n@endgroup\n\n@group cost-estimation\n@endpoint PUT /cost-estimation\n@desc Starts the creation of an estimate of the monthly cost to analyze your Amazon Web Services resources.\n@required {ResourceCollection: CostEstimationResourceCollectionFilter}\n@optional {ClientToken: str}\n\n@endgroup\n\n@group event-sources\n@endpoint PUT /event-sources\n@desc Enables or disables integration with a service that can be integrated with DevOps Guru. The one service that can be integrated with DevOps Guru is Amazon CodeGuru Profiler, which can produce proactive recommendations which can be stored and viewed in DevOps Guru.\n@optional {EventSources: EventSourcesConfig}\n\n@endgroup\n\n@group resource-collections\n@endpoint PUT /resource-collections\n@desc Updates the collection of resources that DevOps Guru analyzes. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks. This method also creates the IAM role required for you to use DevOps Guru.\n@required {Action: str, ResourceCollection: UpdateResourceCollectionFilter}\n\n@endgroup\n\n@group service-integrations\n@endpoint PUT /service-integrations\n@desc Enables or disables integration with a service that can be integrated with DevOps Guru. The one service that can be integrated with DevOps Guru is Amazon Web Services Systems Manager, which can be used to create an OpsItem for each generated insight.\n@required {ServiceIntegration: UpdateServiceIntegrationConfig}\n\n@endgroup\n\n@end\n"}