Skip to content

Commit

Permalink
Analytic index additions (#89)
Browse files Browse the repository at this point in the history
* Update ems-api.json for the changes

* Include the ignoreIndex query parameter

* Update release info
  • Loading branch information
CodyOwens-GE authored Feb 7, 2024
1 parent 2b03f7e commit c353129
Show file tree
Hide file tree
Showing 5 changed files with 16,140 additions and 16,102 deletions.
5 changes: 3 additions & 2 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Release 2.19.0
* Adds support for the Export Analytic Service Reprocess route.
# Release 2.20.0
* Adds analytic path properties.
* Adds the ignoreIndex optional property for getting analytic groups.
18 changes: 12 additions & 6 deletions src/Client/V2/Access/AnalyticsAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public virtual IEnumerable<AnalyticInfo> Search( string text, string groupId = n
/// </param>
/// <param name="maxResults">
/// The optional maximum number of matching results to return. If not specified, a default value of 200
/// is used. Use 0 to return all results.
/// is used. Use 0 to return the maximum of 1000 results.
/// </param>
/// <param name="category">
/// The category of analytics to search, including "Full", "Physical" or "Logical". A null value specifies
Expand Down Expand Up @@ -101,7 +101,7 @@ public virtual Task<IEnumerable<AnalyticInfo>> SearchAsync( int flightId, string
/// </param>
/// <param name="maxResults">
/// The optional maximum number of matching results to return. If not specified, a default value of 200
/// is used. Use 0 to return all results.
/// is used. Use 0 to return the maximum of 1000 results.
/// </param>
/// <param name="category">
/// The category of analytics to search, including "Full", "Physical" or "Logical". A null value specifies
Expand Down Expand Up @@ -192,12 +192,15 @@ public virtual AnalyticInfo GetInfo( int flightId, string analyticId, CallContex
/// <param name="includeMetadata">
/// When true, metadata will be returned along with analytic items.
/// </param>
/// <param name="ignoreIndex">
/// When true, the API will not attempt to use a pre-built index to answer the request.
/// </param>
/// <param name="context">
/// The optional call context to include.
/// </param>
public virtual Task<AnalyticGroupContents> GetGroupAsync( string analyticGroupId = null, Category category = Category.Full, bool includeMetadata = false, CallContext context = null )
public virtual Task<AnalyticGroupContents> GetGroupAsync( string analyticGroupId = null, Category category = Category.Full, bool includeMetadata = false, bool ignoreIndex = false, CallContext context = null )
{
return CallApiTask( api => api.GetAnalyticGroup( analyticGroupId, category, includeMetadata, context ) );
return CallApiTask( api => api.GetAnalyticGroup( analyticGroupId, category, includeMetadata, ignoreIndex, context ) );
}

/// <summary>
Expand All @@ -213,12 +216,15 @@ public virtual Task<AnalyticGroupContents> GetGroupAsync( string analyticGroupId
/// <param name="includeMetadata">
/// When true, metadata will be returned along with analytic items.
/// </param>
/// <param name="ignoreIndex">
/// When true, the API will not attempt to use a pre-built index to answer the request.
/// </param>
/// <param name="context">
/// The optional call context to include.
/// </param>
public virtual AnalyticGroupContents GetGroup( string analyticGroupId = null, Category category = Category.Full, bool includeMetadata = false, CallContext context = null )
public virtual AnalyticGroupContents GetGroup( string analyticGroupId = null, Category category = Category.Full, bool includeMetadata = false, bool ignoreIndex = false, CallContext context = null )
{
return AccessTaskResult( GetGroupAsync( analyticGroupId, category, includeMetadata, context ) );
return AccessTaskResult( GetGroupAsync( analyticGroupId, category, includeMetadata, ignoreIndex, context ) );
}

/// <summary>
Expand Down
7 changes: 5 additions & 2 deletions src/Client/V2/IEmsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public interface IEmsApi
/// </param>
/// <param name="maxResults">
/// The optional maximum number of matching results to return. If not specified, a default value of 200
/// is used. Use 0 to return all results.
/// is used. Use 0 to return the maximum of 1000 results.
/// </param>
/// <param name="category">
/// The category of analytics to search, including "Full", "Physical" or "Logical". A null value specifies
Expand Down Expand Up @@ -319,8 +319,11 @@ public interface IEmsApi
/// <param name="includeMetadata">
/// When true, metadata will be returned along with analytic items.
/// </param>
/// <param name="ignoreIndex">
/// When true, the API will not attempt to use a pre-built index to answer the request.
/// </param>
[Get( "/v2/ems-systems/1/analytic-groups" )]
Task<AnalyticGroupContents> GetAnalyticGroup( string analyticGroupId = null, Category category = Category.Full, bool includeMetadata = false, [Property] CallContext context = null );
Task<AnalyticGroupContents> GetAnalyticGroup( string analyticGroupId = null, Category category = Category.Full, bool includeMetadata = false, bool ignoreIndex = false, [Property] CallContext context = null );

/// <summary>
/// Retrieves the contents of an analytic group, which is a hierarchical tree structure used to organize analytics.
Expand Down
24 changes: 12 additions & 12 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project>
<PropertyGroup>
<VersionPrefix>2.19.0</VersionPrefix>
<VersionSuffix>prerelease</VersionSuffix>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<EmbedAllSources>true</EmbedAllSources>
<DebugType>portable</DebugType>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Authors>c-owens</Authors>
<LangVersion>10</LangVersion>
</PropertyGroup>
<Project>
<PropertyGroup>
<VersionPrefix>2.20.0</VersionPrefix>
<VersionSuffix>prerelease</VersionSuffix>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<EmbedAllSources>true</EmbedAllSources>
<DebugType>portable</DebugType>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Authors>c-owens</Authors>
<LangVersion>10</LangVersion>
</PropertyGroup>
</Project>
Loading

0 comments on commit c353129

Please sign in to comment.